query the current status of a radio Button

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

query the current status of a radio Button

Post by Nakia » Fri Mar 09, 2012 9:19 am

Is there a way to query the current status of a radio button?
searching for radio button in the dictionary provides no information at all?

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: query the current status of a radio Button

Post by jmburnod » Fri Mar 09, 2012 9:42 am

Hi Nakia,

if i understand what you want you can use a script like that:

Code: Select all

on mouseup
   if the hilite of btn "MyRadioBtn" then
      -- do what you want
   else
      -- do what you want
   end if
end mouseup
Best regards

Jean-Marc
https://alternatic.ch

Klaus
Posts: 14212
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: query the current status of a radio Button

Post by Klaus » Fri Mar 09, 2012 12:31 pm

Hi Kia,

yes, for CHECKBOXes and RADIOBUTTONs you can check their "hilite" property for true/false.


Best

Klaus

Post Reply