• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 148
  • Last Modified:

right aligned "Help" menu?

in Delphi1 menuitem1.caption:=Char(9)+"Caption" works, but this trick do not work in Delphi3?
How I do it?
0
Edukas
Asked:
Edukas
1 Solution
 
MotazCommented:
Hi Edukas..
Try this :

  Open1.Caption:='                Open';
  Save1.Caption:='      Save into file';
  Exit1.Caption:='                   E&xit';

0
 
kjtengCommented:
I thought it is supposed to be

menuitem1.caption:= chr(8)+ 'Caption'?

ie by adding backspace character to the menuitem text in menu resource statement

I will check out why it doesn't work, may be the windows API has changed but M$ did tell us?  
0
 
erajojCommented:
Very simple:

  {$IFDEF WIN32}
  ModifyMenu( MainMenu1.Handle, 3 {if 4th position}, MF_BYPOSITION or MF_POPUP or MF_HELP, Help1.Handle, PChar( Help1.Caption ) );
  {$ELSE}
  Help1.Caption := #8 + Help1.Caption;
  {$ENDIF}

/// John
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now