|
-
May 14th, 2013, 10:28 PM
#1
Thread Starter
Lively Member
CompoBox
How to Make the drop-down menu rise to the top instead of descending down in compobox
-
May 15th, 2013, 01:03 AM
#2
Re: CompoBox
I don't know the answer to your question but, as noone else has answered either, I'll provide what information I can. There is no public interface in the ComboBox class to do that, e.g. there is no DropDownDirection property. The drop-down list will automatically display above the control if there is not enough room on the screen to display it below. If you want to force that behaviour then you'd have to inherit the ComboBox class and do it yourself. I'm not sure how it would be done but I would guess that it would involve trapping one or more Windows messages in an overridden WndProc method. Working out if that is the case and which message(s) to trap may not be easy.
-
May 15th, 2013, 09:13 AM
#3
Re: CompoBox
As JMcIlhinney said, there is no built-in DropDownDirection property. You'll have to create it in an inherited class. Here is a class by JuggaloBrotha that is a MenuButton, it's similar to what you want, but in more of a button style as opposed to a combobox style.
-
May 15th, 2013, 11:35 AM
#4
Thread Starter
Lively Member
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
|