Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Blue GUI - Menu Item Alignment

Author
Message
Ian G
16
Years of Service
User Offline
Joined: 3rd Jun 2008
Location: SSM, Canada
Posted: 5th Jan 2009 01:08
I was wondering if anybody knew how to right-align items in a menu (i.e. for hotkey references). I know that in C++ you can add a '\a' in the string and it will right align everything following that, but this obviously does not work in DBP. Does anyone know of a way to do this? I assume that you could use a character code to achieve this, however I do not know what it would be.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 7th Jan 2009 00:24
Try chr$(7)

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!
Ian G
16
Years of Service
User Offline
Joined: 3rd Jun 2008
Location: SSM, Canada
Posted: 7th Jan 2009 03:15 Edited at: 7th Jan 2009 03:17
Thanks, but it didn't work it just displayed a little 'box' character instead of aligning things. In C++ I have created menus in the resource file
that do not include the 'a' just a tab character and are right aligned for the hotkey references. It may not be possible to do this through blue (it may have to be through a resource file). I know the code for the 'tab' character (9) and have tried that, but it simply tabs the text over (left aligned still). I am wondering if the '&' character might affect this, however I do not really know the purpose of it or where to place it as I did not originally write the above code but simply modified it from a website.
tiresius
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 8th Jan 2009 19:09
The & character just shows the menu what the hotkey is. &U means the user can type "U" to shortcut to that option. Sorry I can't help further.

I'm not a real programmer but I play one with DBPro!

Login to post a reply

Server time is: 2024-11-23 07:10:38
Your offset time is: 2024-11-23 07:10:38