[futurebasic] Getting the focus of an Appearance Button Text Field

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2007 : Group Archive : Group : All Groups

From: Rich Love <richlove@...>
Date: Thu, 30 Aug 2007 07:36:34 -0500
I am using DEF SETBUTTONTEXTSTRING( btnID, "Hello" ) to set the text  
in a text field
and
pString$ = FN BUTTONTEXTSTRING$(btnID) to get the text from a text field

That works fine.

I also use Def SetButtonFocus(btnID)  to set the focus to the text  
field and that also works.

My question is, how do I get the focus (how do I know which text  
field the user has clicked on?)
Def GetButtonFocus(btnID) would be nice but is not a valid command.

In the old days before Appearance buttons, I used WINDOW(_efNum)) to  
get the currently selected text field.
But that does not work for Appearance button text fields.



Rich Love - Carnation Software
MacWise Terminal emulation for Macintosh
http://www.CarnationSoftware.com

richlove@...
512 858-9234