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: 119
Joined: Mon Nov 03, 2014 12:17 am

Finding the Hilited Field or Button

Post by JereMiami » Thu Nov 24, 2022 1:31 pm

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

Re: Finding the Hilited Field or Button

Post by Klaus » Thu Nov 24, 2022 1:51 pm

Sounds like you want to check -> the focusedobject

andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Re: Finding the Hilited Field or Button

Post by andresdt » Thu Nov 24, 2022 3:06 pm

You can try with:

Code: Select all

on openCard
    // code
    focus on nothing
end openCard

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Finding the Hilited Field or Button

Post by Klaus » Thu Nov 24, 2022 3:27 pm

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: 119
Joined: Mon Nov 03, 2014 12:17 am

Re: Finding the Hilited Field or Button

Post by JereMiami » Fri Dec 02, 2022 12:29 am

Thank you!!!!!!!

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”