FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Hide a radio button
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Hide a radio button
Posted: Fri Sep 19, 2008 03:25 PM

To All

I have a redefine on two radio buttons and on certain roles I have set up by the following conditions .. I want to HIDE or DISABLE the second radio button defined as ID 123.

Any ideas ??

Rick Lipkin
SC Dept of Health, USA

DO CASE
CASE xSUPER = 'Y'
REDEFINE RADIO oRAD var nRAD ID 121, 123 of oDLG UPDATE
CASE xPROJ = 'Y' .and. xSUPER = 'N'
REDEFINE RADIO oRAD var nRAD ID 121 of oDLG UPDATE // <-- here
ENDCASE

Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Re: Hide a radio button
Posted: Fri Sep 19, 2008 03:44 PM
Hey Rick,
Rick Lipkin wrote:I have a redefine on two radio buttons and on certain roles I have set up by the following conditions .. I want to HIDE or DISABLE the second radio button defined as ID 123.

Any ideas ??

Rick Lipkin
SC Dept of Health, USA


DO CASE
CASE xSUPER = 'Y'
REDEFINE RADIO oRAD var nRAD ID 121, 123 of oDLG UPDATE
CASE xPROJ = 'Y' .and. xSUPER = 'N'
REDEFINE RADIO oRAD var nRAD ID 121 of oDLG UPDATE // <-- here
ENDCASE

Did you try:
oRad:aItems[2]:Disable()

Patrick
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Hide a radio button
Posted: Fri Sep 19, 2008 03:47 PM

Rick,

And:

oRad:aItems[2]:Hide()

oRad:aItems[2]:Show()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Hide a radio button
Posted: Fri Sep 19, 2008 04:56 PM

Antonio and Patrick

Thank you BOTH .. exactically what I needed !!

Rick

Continue the discussion