Hide a radio button

Hide a radio button

Postby Rick Lipkin » Fri Sep 19, 2008 3: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
User avatar
Rick Lipkin
 
Posts: 2634
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Hide a radio button

Postby Patrick Mast » Fri Sep 19, 2008 3: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:
Code: Select all  Expand view
oRad:aItems[2]:Disable()

Patrick
User avatar
Patrick Mast
 
Posts: 246
Joined: Sat Mar 03, 2007 8:42 pm

Postby Antonio Linares » Fri Sep 19, 2008 3:47 pm

Rick,

And:

oRad:aItems[2]:Hide()

oRad:aItems[2]:Show()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41392
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Rick Lipkin » Fri Sep 19, 2008 4:56 pm

Antonio and Patrick

Thank you BOTH .. exactically what I needed !!

Rick
User avatar
Rick Lipkin
 
Posts: 2634
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 50 guests