FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour combobox - bitmaps
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
combobox - bitmaps
Posted: Wed Nov 18, 2009 06:06 PM
To all,
I have problems to show bitmaps in a redefind combobox.
I tried like this:
I changed the testcomb.prg from the Fivewin samples.

Code (fw): Select all Collapse
REDEFINE COMBOBOX oCbx VAR cItem ITEMS { "Testing", "this", "ComboBox" } ;
      ID 110 OF oDlg  BITMAPS {"c:\FWH\bitmaps\attach.bmp","c:\FWH\bitmaps\addons32.bmp","c:\FWH\bitmaps\book.bmp"} ;
      ON CHANGE ( oSayItem:cTitle := cItem,;   // We should use also :SetText()
                  oSayAt:cTitle   := ":nAt = " + Str( oCbx:nAt, 2 ) ) ;
      VALID ( MsgBeep(), .t. )


Could someone please help me.
Thanks in advance
Otto
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: combobox - bitmaps
Posted: Wed Nov 18, 2009 09:27 PM

Otto,

Have you used the CBS_OWNERDRAWFIXED style in the RC file ?

Please review FWH\samples\ownerdra.prg and ownerdra.rc

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: combobox - bitmaps
Posted: Wed Nov 18, 2009 10:07 PM

Antonio, thank you.
Best regards,
Otto

Continue the discussion