Page 1 of 1

How to show menuitem accelerate key on the right site?

Posted: Fri Feb 13, 2009 6:59 am
by ShumingWang
Hi,
How to show menuitem accelerate key on the right site like firefox edit menu items Ctrl+Z ,Ctrl+Y ...?
Image
Also FWH 08.01 version menu 2007 style , hot key not work.
Thanks !
Shuming Wang

Re: How to show menuitem accelerate key on the right site?

Posted: Fri Feb 13, 2009 1:57 pm
by ukoenig
You can work with TABS !!!

Image

Regards
Uwe :lol:

Re: How to show menuitem accelerate key on the right site?

Posted: Sat Feb 14, 2009 1:52 am
by ShumingWang
Ukoenig,
How to write source code?
Thanks !
Shuming Wang

Re: How to show menuitem accelerate key on the right site?

Posted: Sat Feb 14, 2009 2:37 am
by Daniel Garcia-Gil
Hello ShumingWang

use chr( 9 )

Code: Select all | Expand

         MENUITEM "&Undo" + Chr( 9 ) + "Ctrl+Z" ;
            MESSAGE "Undoes the last action" ;
            ACTION  ::oWnd:UnDo() RESOURCE "UnDo"

Re: How to show menuitem accelerate key on the right site?

Posted: Sat Feb 14, 2009 1:26 pm
by ShumingWang
Daniel Garcia-Gil,
Thanks !
Shuming Wang

Re: How to show menuitem accelerate key on the right site?

Posted: Sat Feb 14, 2009 4:03 pm
by ukoenig
Hello Shuming Wang,

the TAB - solution I told You, is the easy way.
There is a much better looking solution with left adjustment.
( space-calculations needed ).
I don't know, what style You prefer.

Image

Regards
Uwe
:lol:

Re: How to show menuitem accelerate key on the right site?

Posted: Sun Feb 15, 2009 1:03 am
by ShumingWang
ukoenig,
Menuitem "save"+chr(9)+"F2" , works as I want.
Thanks!
Shuming Wang

Re: How to show menuitem accelerate key on the right site?

Posted: Sun Feb 15, 2009 12:51 pm
by ukoenig
Shuming Wang,

menues, I only use from the main-window.
Inside my application I use xBrowse, to start a action.
Sometimes, I need a formatted menue-text inside one cell.
Maybe You need this as well.

Image

Code: Select all | Expand

  1.  
  2. AAdd( aData5, {  1, xPADR ('Col2 xBr', 150) + xPADR('owsetest',100), 'Col3 xBrowsetest '} )
  3. AAdd( aData5, {  2, xPADR ('Col2 xBrowse', 150) + xPADR ('test',100), 'Col3 xBrowsetest ' } )
  4. AAdd( aData5, {  3, xPADR ('Col2', 150) + xPADR ('xBrowsetest',100), 'Col3 xBrowsetest ' } )
  5. AAdd( aData5, {  4, 'Col2 xBrowsetest                        ', 'Col3 xBrowsetest ' } )
  6. AAdd( aData5, {  5, 'Col2 xBrowsetest                        ', 'Col3 xBrowsetest ' } )
  7. AAdd( aData5, {  6, 'Col2 xBrowsetest                        ', 'Col3 xBrowsetest ' } )
  8. AAdd( aData5, {  7, 'Col2 xBrowsetest                        ', 'Col3 xBrowsetest ' } )     
  9.  


Regards
Uwe :lol: