Solved

right aligned "Help" menu?

Posted on 1998-08-12
3
141 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
ID: 1362000
Hi Edukas..
Try this :

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

0
 
LVL 2

Expert Comment

by:kjteng
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?  
0
 
LVL 4

Accepted Solution

by:
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 ) );
  {$ELSE}
  Help1.Caption := #8 + Help1.Caption;
  {$ENDIF}

/// John
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

774 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