Disable a radio button

Disable a radio button

Postby Marco Turco » Mon Dec 13, 2010 6: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Disable a radio button

Postby Enrico Maria Giordano » Mon Dec 13, 2010 7:00 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8711
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Disable a radio button

Postby sambomb » Mon Dec 13, 2010 7:13 pm

oRad:aItems[5]:Disable()
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil


Re: Disable a radio button

Postby Marco Turco » Mon Dec 13, 2010 10:16 pm

Thanks for your kind support :D
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Disable a radio button

Postby sambomb » Tue Dec 14, 2010 10:57 am

Enrico Maria Giordano wrote:
Code: Select all  Expand view
oRad:aItems[4]:Disable()


:-)

EMG

:shock:
Quando eu vi 105 eu associei com 5 radios, obrigado
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 99 guests