FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour COMBOMETRO
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
COMBOMETRO
Posted: Sat Oct 24, 2015 08:52 PM

Dear Antonio,
method enabel/disable is missing.
Do you plan to add these.
Best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: COMBOMETRO
Posted: Sun Oct 25, 2015 09:47 AM
Otto,

As Class TComboMetro inherits from Class TControl, both methods are available. So you can do (in samples\touch.prg):

Code (fw): Select all Collapse
   @ nRow,120 COMBOMETRO oCbm VAR cCountry ITEMS { "America", "Europe", "Asia", "Africa",;
      "Oceania" } OF oPanel PIXEL FONT oFontMed SIZE 200, 40 COLOR CLR_WHITE, RGB( 0x33, 0x66, 0xCC )

   oCbm:Disable()


It is working fine. We should only change the Method Paint() to show different colors for enabled/disabled status

What colors should we use for disabled ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: COMBOMETRO
Posted: Sun Oct 25, 2015 03:10 PM

Dear Antonio,
yes you are right. I only saw nothing is changing and thought it is not implemented.
Best regards,
Otto

Continue the discussion