Core Function GUIWindow
From Sputnik Wiki
				
				
				(Difference between revisions)
				
																
				
				
								
				 (Created page with "<pre> GUIWindow( <window> ) </pre>  === Description ===  Properties & Functions specifically for Window  === Parameters ===  ==== window ====  The GUI Window object to use.  === ...")  | 
		m (1 revision)  | 
		||
| (6 intermediate revisions by one user not shown) | |||
| Line 14: | Line 14: | ||
=== Functions ===  | === Functions ===  | ||
| + | |||
| + | ==== AcceptButton ====  | ||
| + | |||
| + | Set a button that will be triggered when enter is pressed  | ||
| + | |||
| + | <syntaxhighlight lang="sputnik">  | ||
| + | GUIWindow($GUI, "AcceptButton", $Button); // SET  | ||
| + | GUIWindow($GUI, "AcceptButton"); // REMOVE  | ||
| + | </syntaxhighlight>  | ||
| + | |||
| + | ==== CancelButton ====  | ||
| + | |||
| + | Set a button that will be triggered when enter is pressed  | ||
| + | |||
| + | <syntaxhighlight lang="sputnik">  | ||
| + | GUIWindow($GUI, "CancelButton", $Button); // SET  | ||
| + | GUIWindow($GUI, "CancelButton"); // REMOVE  | ||
| + | </syntaxhighlight>  | ||
| + | |||
| + | ==== Activate ====  | ||
| + | |||
| + | <syntaxhighlight lang="sputnik">  | ||
| + | GUIWindow($GUI, "Activate");  | ||
| + | </syntaxhighlight>  | ||
| + | |||
| + | ==== Focus ====  | ||
| + | |||
| + | <syntaxhighlight lang="sputnik">  | ||
| + | GUIWindow($GUI, "Focus");  | ||
| + | </syntaxhighlight>  | ||
==== SetIcon ====  | ==== SetIcon ====  | ||
| Line 23: | Line 53: | ||
<syntaxhighlight lang="sputnik">  | <syntaxhighlight lang="sputnik">  | ||
GUIWindow($GUI, "SetIcon", "FoX.ico");  | GUIWindow($GUI, "SetIcon", "FoX.ico");  | ||
| + | </syntaxhighlight>  | ||
| + | |||
| + | ==== BorderStyle ====  | ||
| + | |||
| + | Set the window border icon  | ||
| + | |||
| + | GET  | ||
| + | |||
| + | <syntaxhighlight lang="sputnik">  | ||
| + | GUIWindow($GUI, "BorderStyle");  | ||
| + | </syntaxhighlight>  | ||
| + | |||
| + | SET  | ||
| + | |||
| + | <syntaxhighlight lang="sputnik">  | ||
| + | GUIWindow($GUI, "BorderStyle", 0);  | ||
| + | # Possible BorderStyle options  | ||
| + | # 0 = None  | ||
| + | # 1 = Fixed Single  | ||
| + | # 2 = Fixed 3D  | ||
| + | # 3 = Fixed Dialog  | ||
| + | # 4 = Fixed Sizeable  | ||
| + | # 5 = Fixed FixedToolWindow  | ||
</syntaxhighlight>  | </syntaxhighlight>  | ||
=== Example ===  | === Example ===  | ||
| − | + | See above  | |
[[Category:Core Function]]  | [[Category:Core Function]]  | ||
Latest revision as of 12:37, 14 June 2015
GUIWindow( <window> )
Contents | 
Description
Properties & Functions specifically for Window
Parameters
window
The GUI Window object to use.
Functions
AcceptButton
Set a button that will be triggered when enter is pressed
GUIWindow($GUI, "AcceptButton", $Button); // SET GUIWindow($GUI, "AcceptButton"); // REMOVE
CancelButton
Set a button that will be triggered when enter is pressed
GUIWindow($GUI, "CancelButton", $Button); // SET GUIWindow($GUI, "CancelButton"); // REMOVE
Activate
GUIWindow($GUI, "Activate");
Focus
GUIWindow($GUI, "Focus");
SetIcon
Set the window icon
Set from File:
GUIWindow($GUI, "SetIcon", "FoX.ico");
BorderStyle
Set the window border icon
GET
GUIWindow($GUI, "BorderStyle");
SET
GUIWindow($GUI, "BorderStyle", 0); # Possible BorderStyle options # 0 = None # 1 = Fixed Single # 2 = Fixed 3D # 3 = Fixed Dialog # 4 = Fixed Sizeable # 5 = Fixed FixedToolWindow
Example
See above