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: FourthWorld, heatherlaine, Klaus, kevinmiller

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

hiliteChanged

Post by Samuele » Sun Jan 23, 2022 2:31 pm

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: 14193
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: hiliteChanged

Post by Klaus » Sun Jan 23, 2022 2:36 pm

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 » Sun Jan 23, 2022 3:48 pm

yes, Thanks!
Samuele.

Post Reply