Creation/Dev/Script/Client/GuiWindowCtrl: Difference between revisions
From Graal Bible
mNo edit summary |
Pooper200000 (talk | contribs) No edit summary |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Scripting Reference]] | |||
Inherits from [[Creation/Dev/Script/Client/GuiControl|GuiControl]]. | |||
=Description= | |||
[[Image:Guicontrol_window.png]] | |||
Works as a container for other control and displays a title bar and buttons for minimizing, maximizing and closing. With Ctrl+Tab you can switch between active windows. | |||
=Variables= | |||
{| border="1" cellpadding="2" width="100%" | |||
| '''Name''' | |||
| '''Type''' | |||
| '''Description''' | |||
|- | |||
| canclose | |||
| boolean | |||
| | |||
|- | |||
| canmaximize | |||
| boolean | |||
| | |||
|- | |||
| canminimize | |||
| boolean | |||
| | |||
|- | |||
| closequery | |||
| boolean | |||
| | |||
|- | |||
| destroyonhide | |||
| boolean | |||
| | |||
|- | |||
| extent | |||
| string | |||
| | |||
|- | |||
| maximized | |||
| boolean | |||
| | |||
|- | |||
| minimized | |||
| boolean | |||
| | |||
|- | |||
| tile | |||
| boolean | |||
| | |||
|} | |||
=Events= | |||
onCloseQuery() - is invoked when the user clicks on the close-button of a window and closequery=true; the script should then either hide or destroy the window; if closequery=false then the window is just hidden (not destroyed) | |||
=Example= | |||
<pre> | <pre> | ||
new GuiWindowCtrl("Test_Window") { | |||
profile = GuiBlueWindowProfile; | |||
x = 10; | |||
y = 10; | |||
width = 160; | |||
height = 80; | |||
text = "Window"; | |||
} | |||
</pre> | </pre> |
Latest revision as of 23:57, 15 February 2010
Inherits from GuiControl.
Description
Works as a container for other control and displays a title bar and buttons for minimizing, maximizing and closing. With Ctrl+Tab you can switch between active windows.
Variables
Name | Type | Description |
canclose | boolean | |
canmaximize | boolean | |
canminimize | boolean | |
closequery | boolean | |
destroyonhide | boolean | |
extent | string | |
maximized | boolean | |
minimized | boolean | |
tile | boolean |
Events
onCloseQuery() - is invoked when the user clicks on the close-button of a window and closequery=true; the script should then either hide or destroy the window; if closequery=false then the window is just hidden (not destroyed)
Example
new GuiWindowCtrl("Test_Window") { profile = GuiBlueWindowProfile; x = 10; y = 10; width = 160; height = 80; text = "Window"; }