ok gui can be kinda tricky....lol just kidding
ok first u need an enter button and the txt field... u got that? k
from the Turing help file (F10 in turing 4.0.4)
Quote:
GUI.SetDefault Part of GUI module
Syntax :
GUI.SetDefault (widgetID : int, default : boolean)
Description:
Sets the "default status" of a button specified by widgetID. If a button is the default button, then it is drawn with a heavy outline and it is activated when the user presses ENTER (RETURN on a Macintosh).
Only one button can be the default button per window. If a button is set to be the default button, then the previous default button has its "default status" removed.
Example:
See GUI.CreateTextField for an example of GUI.SetCheckBox.
Status: Exported qualified.
This means that you can only call the procedures by calling GUI.SetDefault, not by calling SetDefault.
See also GUI.CreateButton.
Here is an example:
code: |
GUI.SetDefault (widgetID, true) |