combobox - bitmaps

combobox - bitmaps

Postby Otto » Wed Nov 18, 2009 6: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: Select all  Expand view

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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: combobox - bitmaps

Postby Antonio Linares » Wed Nov 18, 2009 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: combobox - bitmaps

Postby Otto » Wed Nov 18, 2009 10:07 pm

Antonio, thank you.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 86 guests