Finding the Hilited Field or Button

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
JereMiami
Posts: 127
Joined: Mon Nov 03, 2014 12:17 am

Finding the Hilited Field or Button

Post by JereMiami »

Mobile keyboard is popping up when the card opens and I was wondering if there is a quick and dirty way to find out which field or button is being hilited without going through each property inspector. Any thoughts?
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Finding the Hilited Field or Button

Post by Klaus »

Sounds like you want to check -> the focusedobject
andresdt
Posts: 156
Joined: Fri Aug 16, 2019 7:51 pm
Contact:

Re: Finding the Hilited Field or Button

Post by andresdt »

You can try with:

Code: Select all

on openCard
    // code
    focus on nothing
end openCard
Be kind, we all have our own wars.
https://torocruzand.com/
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Finding the Hilited Field or Button

Post by Klaus »

andresdt wrote: Thu Nov 24, 2022 3:06 pm You can try with:

Code: Select all

on openCard
    // code
    focus on nothing
end openCard
Or this way, if that is what you are after.
JereMiami
Posts: 127
Joined: Mon Nov 03, 2014 12:17 am

Re: Finding the Hilited Field or Button

Post by JereMiami »

Thank you!!!!!!!
Post Reply