hiliteChanged

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

hiliteChanged

Post by Samuele »

Hi, how can i choose whater i want somenthing to happen when the user switches on or off the switch button widget?
meaning, i want somenthing to happen when the hiliteChanged is set to on and something else when he switches off
Thanks!
Samuele.
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: hiliteChanged

Post by Klaus »

Code: Select all

on hiliteChanged
   ## Hilited:
   if the hilite of me then
    ## do this...

    ## Not hilited
  else
    ## do something else...
  end if
end hiliteChanged
Is that what you mean?
Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

Re: hiliteChanged

Post by Samuele »

yes, Thanks!
Samuele.
Post Reply