right aligned "Help" menu?

Posted on 1998-08-12
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?
Question by:Edukas
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1362000
Hi Edukas..
Try this :

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


Expert Comment

ID: 1362001
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?  

Accepted Solution

erajoj earned 20 total points
ID: 1362002
Very simple:

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

/// John

Featured Post

Technology Partners: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

705 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