|
-
January 16th, 2012, 01:20 PM
#1
How to resize a combo box?
I have a combo box that contains a list of user defined project names, including an entry to add another project. Project names are generally short, but someone could easily add a long name. If they do, I’d like to be able to resize the combo box to display the entire name. To do this I’d have to “ask” the system how many pixels wide each project name is:
Code:
WidthOfName = HowWideIs(“Very Long Project Name”,”Microsoft Sans Serif, 11pt”);
Then I could find the widest name and resize the combo box and also move the “Local Path” label that follows the box.
So, is there such a system call? And, if so, what is the proper syntax?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|