... COLOR Option. but i don´nt think that you can change Border Color, only Background and Foreground in COLOR Option Combobox have 2 Parts and need Ownerdraw https://forums.fivetechsupport.com/viewtopic.php?t=44457
... , i not want list of colors, i Wish only colorize the First item text and the last item text I do understand your Problem, but do you understand Ownerdraw ? it is much more complicate than using a bitmap to mark a Item in Combobox or LIstbox using different Font and Color
hi Silvio, as i can say a normal Combobox can only change Color for all Items to change it for special Item you need Ownerdraw. i know that Fivewin have ON DRAWITEM but i have not find out how it work so i wrote my own Method here a CODE snip which i use oCombo_left:bOwnerDraw := ...
as i can say you need enable Ownerdraw https://i.postimg.cc/NF66p0GD/Combobox-Demo-Ownerdraw.jpg oCombo_left := TComboBox() :new( 0, 0,, acItem, 90, 300, oMain,,,, BFcolor, BGcolor, .T., oFontDefault,,,, ...
... LIB(s) for Option "-mt" include *.RC does NOT contain any Resource, it is just a "Dummy" --- Special I have use Combobox with Ownerdraw using Codebock Slot bOwnerDraw It have 4 Parameter between || (pipe Sign) which are Self itselfnIdCtl Control IDoStruc ...
... hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ) );} but it is NOT used in CLASS CODE except (Ownerdraw) MENU so how to get a Bitmap in gray on a "disable" BTNBMP :?: p.s. how to change Bitmap / Color after create :?:
hi, here a Demo how to use Ownerdraw with Comboxbox it also show how to access System Icon "on-fly" so it will look same as Windows OS https://i.postimg.cc/NF66p0GD/Combobox-Demo-Ownerdraw.jpg #include "Fivewin.ch"#include ...
hi, since 1st Release i have make a lot to get "Dark-Mode" Style i have change Menu, Button and use Ownerdraw (*1) for Combobox. https://i.postimg.cc/RC1Zjrr6/Dual-Grid-Black.jpg but TGrid-Column Header was still WHITE so i need Customdraw (*2) https://i.postimg.cc/8P8nf3sH/Dual-Grid-Black-Header.jpg ...
... nIcoHandle ) FreeLibrary( hModule ) now i must not provide Icon in *.RC https://i.postimg.cc/4y12RsyX/FW-Combobox-Ownerdraw-OS-Icon.png p.s. This Image show NO Highlight Bar as Mouse is not "over" Listbox-Part of Combobox ... something is missing ... hm
hi, got 1st Result https://i.postimg.cc/Dy7439zm/FW-Combobox-Ownerdraw-highlight.png but Cursor Highlight does only work when Mouse is over Listbox-Part of Combobox CASE itemAction = ODA_SELECT CASE itemAction = ODA_DRAWENTIRE CASE itemAction ...
hi, have try ComboBox Ownerdraw and "fill" bOwnerDraw with Codeblock oCombo_left:bOwnerDraw := {|a,b,c,d| DoMyComBo(a,b,c,d) } FUNCTION DoMyComBo() nCount := PCOUNT() FOR ii := 1 TO ...
... ... is there a Readme for "Dummy" ? --- bOwnerDraw -> Combobox bDrawItem -> Listbox / Combobox (CodeBlock to evaluate to select a ownerdraw bitmap to paint) METHOD DrawItem( nIdCtl, nPStruct ) CLASS TComboBox ... uVal := LbxDrawItem( nPStruct, ::aBitmaps, ::aItems, ...
you are right that i can change Background Color but not Foreground Color for Caption which is always BLACK so i need "Ownerdraw" when using BLACK Background to "see" Caption