About ListBox getting focus

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

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

About ListBox getting focus

Post by carlos torres »

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
Neosoft Support
NeoSoft Team
Posts: 5628
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA
Contact:

Re: About ListBox getting focus

Post by Neosoft Support »

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
User avatar
carlos torres
Posts: 289
Joined: Mon May 02, 2005 8:14 am
Location: Pamplona, Colombia

Re: About ListBox getting focus

Post by carlos torres »

Thanks dear Team

A little tricky but it works!

regards

carlost
Locked