Solved

right aligned "Help" menu?

Posted on 1998-08-12
3
138 Views
Last Modified: 2010-04-04
in Delphi1 menuitem1.caption:=Char(9)+"Caption" works, but this trick do not work in Delphi3?
How I do it?
0
Comment
Question by:Edukas
3 Comments
 
LVL 7

Expert Comment

by:Motaz
Comment Utility
Hi Edukas..
Try this :

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

0
 
LVL 2

Expert Comment

by:kjteng
Comment Utility
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
 
LVL 4

Accepted Solution

by:
erajoj earned 20 total points
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now