Source language: Translate to:

About ListBox getting focus

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

About ListBox getting focus

Postby carlos torres » Wed Jun 01, 2016 9:20 am

Hi dear NBK team

TIA

I tried to use the getfocus property on a listbox/combo as action trigger and that does`nt appear on the GetObjectInfo porperties list.

How can i use the getfocus property in that way (as action trigger)?

I'll appreciate any help

carlost
User avatar
carlos torres
 
Posts: 289
Joined: Mon May 02, 2005 8:14 am
Location: Pamplona, Colombia

Re: About ListBox getting focus

Postby Neosoft Support » Thu Jun 02, 2016 5:58 pm

You could use a Timer object to periodically check the contents of the global variable [FocusedObject]. For example:

If "[FocusedObject]" "=" "ComboBox1"
ShowObject "Text1" "None" "0"
Else
HideObject "Text1" "None" "0"
EndIf
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: About ListBox getting focus

Postby carlos torres » Fri Jun 03, 2016 10:17 am

Thanks dear Team

A little tricky but it works!

regards

carlost
User avatar
carlos torres
 
Posts: 289
Joined: Mon May 02, 2005 8:14 am
Location: Pamplona, Colombia


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 3 guests