Jump to content
Sign in to follow this  
stephanos

Controlling Accelerated Chars and Vertically Align a caption, on the same object

Recommended Posts

Dear All

 

I am being driven mad by the fact that some objects do not do things. I started with buttons and abandoned them as I could not control the colour of the caption. I went onto BitBtn’s only to find that & next to a character in the caption does not display the letter as underlined at run time and sometimes does display the letter as underlined at run time after ALT and the accelerated Char are pressed. I should also say that double &, &&Save, as a caption simply displays as “&Save” with nothing underlined.

 

I read around and discovered that labels, and I have many of those on my form, allows the display of the letter as underlined at run time and are even visible at design time. Good old labels. For this to happen I just need to ensure the property “ShowAccelChar” is enabled. I can do that!

 

So I did an experiment with another label and guess what? Yes you are right, I cannot vertically centre the caption of a label. I can of course with Button and BitBtn.

 

Before I go into a complete circle of idiocy, can I ask if there is an object that I can use as a button (onclick) that will allow me to:

a) set the tab order

b) offer a tag for use as an integer variable at run time

c) allow me to control the colour of the caption and the font size (not at run time)

d) allow to to position the caption centre vertically and horizontally (not at run time)

e) enable and un-enable at run time

 

Thanks, wait to hear

 

Windows 10, 64 bit

Free Pascal Lazarus Project, version2.0.6

Share this post


Link to post
5 minutes ago, stephanos said:

Yes you are right, I cannot vertically centre the caption of a label

At least in Delphi you can. Don't know about Lazarus.

Share this post


Link to post

Cancel that request.  I have found the answer to the vertical alignment issue.  I will continue with labels

 

Thanks

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×