I have built a Combobox from Resource and using the styles CBS_DROPDOWN ( preferred ) and CBS_DROPDOWNLIST ( do not want to use ) has profound font differences when you want to disable the control with this syntax :
- Code: Select all Expand view
REDEFINE COMBOBOX oCategory var cCategory ID 153 of oCont ;
ITEMS { "Contact Person","Sales Rep" } ;
when cMode <> "V" COLOR CLR_BLACK,14869218
Here is the snipit from the Resource file with the style definitions for each example :
- Code: Select all Expand view
COMBOBOX 153, 78, 21, 181, 33, CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
Screen shot with CBS_DROPDOWN
and here is the same Resource with CBS_DROPDOWNLIST
- Code: Select all Expand view
COMBOBOX 153, 78, 21, 181, 33, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
Screen shot with CBS_DROPDOWNLIST
I do not like the disabled font or appearance of the CBS_DROPDOWN however, I have chosen that style because I need to be able to Add or Edit a value not in the ITEM array.
Is there a way to work around on the disabled CBS_DROPDOWN to modify the text to look like the CBS_DROPDOWNLIST ?
I have tried to over-ride the font with oCategory:SetFont( oFont ) but it has no effect. Any help or advice would be appreciated.
Thanks
Rick Lipkin