FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Disable a radio button
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM

Disable a radio button

Posted: Mon Dec 13, 2010 06:55 PM

Hi,
is there a way to disable just an element of a radio button ?

Just to be clear, I have
REDEFINE RADIO oRad VAR numero ;
ID 102, 103, 104, 105 OF oDlg2

and I want to disable just the 105 element of the radio.

Thanks in advance

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Disable a radio button

Posted: Mon Dec 13, 2010 07:00 PM

You can iterate through oDlg:aControls till oDlg:aControls[ i ]:nId is 105 and then oDlg:aControls[ i ]:Disable().

EMG

Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM

Re: Disable a radio button

Posted: Mon Dec 13, 2010 07:13 PM

oRad:aItems[5]:Disable()

Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Disable a radio button

Posted: Mon Dec 13, 2010 07:26 PM
Code (fw): Select all Collapse
oRad:aItems[4]:Disable()


:-)

EMG
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM

Re: Disable a radio button

Posted: Mon Dec 13, 2010 10:16 PM

Thanks for your kind support :D

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM

Re: Disable a radio button

Posted: Tue Dec 14, 2010 10:57 AM
Enrico Maria Giordano wrote:
Code (fw): Select all Collapse
oRad:aItems[4]:Disable()


:-)

EMG

:-)
Quando eu vi 105 eu associei com 5 radios, obrigado
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2

Continue the discussion