|
-
Nov 28th, 2019, 02:11 PM
#11
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Hosam AL Dein
In CmoboBoxW , How Can I draw items manually ? and What is the difference between Fixed and Variable drawing Enums in DrawMode property .
I am asking this question because I - in most cases - use the combo style "List" , which draws a gray background for the combo box , once I changed the DrawMode property , the backcolor I set is what is shown .
My last concern is , If I draw items manually , would this affect some features or other properties ?
Thanks in advance .
Edit 1 :
Another question . what is the property ExtendedUI is intended to do . The only effect I noticed is that : If it is set to true , scrolling the combobox opens the list otherwise , scrolling does not open the list and changes the list index and text of the combobox while the list is not opened or dropped down .
Edit 2 :
I have tested the ItemDraw Event and noticed that it is not fired when the DrawMode property is set to Normal . Thus I thought it would be something to start with . But , I did not get the point of some parameters like ItemAction and ItemState . Or This is not right start point ?
The Style 'List' has special appearance. However, on OwnerDrawn only the normal appearance is drawn by default by the OS. When DrawMode is <> Normal the ItemDraw event is fired, else it's not fired.
The difference between Fixed and Variable DrawMode is that on Variable an additional event ItemMeasure is fired to let you size the height of each particular item individually instead of all items having same height.
Concerning ExtendedUI. Normally (ExtendedUI = False) the Dropdown list is rolled out by pressing F4 or Alt+Down (or Alt+Up)
If ExtendedUI is set (True) the F4 is dismissed and just Down arrow key will roll out the Dropdown list.
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
|