Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

good day, can u pls help me, my pro 1

Status
Not open for further replies.

kensheehimura1

Programmer
Jun 2, 2003
19
PH
good day, can u pls help me, my problem is that im creating a menu with a bitmap on it, i have it nicely, but my problem is that the string that i wrote on the menu, have the tab character printed on it, when the menu has a shorcut for example, the sub menu "New Ctrl+N", and also print the ampersand on the menu like "E&xit", i tried the textout, drawtext, tabbedtextout API functions, pls help me. thanks.
 
If I understand you correctly, just use the replace function, and replace the character you want to strip out with an empty string. For example:

replace(mnuExit.Caption, "&", "")

will evaluate to "Exit", assuming mnuExit.Caption is "E&xit". Also:

replace(mnuNew.Caption, chr(8), "")

will strip out tabs from mnuNew.Caption.

Bob
 
good day bob, that helps me a lot, thanks again, have a star from me, thnks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top