newspeoplefor developersdocumentationdownloads

nGuiWindow Script Interface

nguiwindow:

Super Class:

Subclasses:

C++ Class:

Info

A button widget.

  • 07-Jun-05 kims Added 'close', 'setclosecommand' and 'getclosecommand' to provide fading and prevent crashes when a custom nguibutton tries to close parent window.

Commands:


setescapecommand

Command Input:
s(EscapeCommand)
Command Output:
v
Command Description:
Set script command to be executed when escape key is pressed.

getescapecommand

Command Input:
v
Command Output:
s(EscapeCommand)
Command Description:
Get script command to be executed when escape key is pressed.

setmodal

Command Input:
b(ModalFlag)
Command Output:
v
Command Description:
Set the modal flag.

ismodal

Command Input:
v
Command Output:
b(ModalFlag)
Command Description:
Get the modal flag of the window.

setdismissed

Command Input:
b
Command Output:
v
Command Description:
Set the dismissed flag. Dismissed windows will be removed by the gui server after windows have been triggered.
FIXME: For now, this works only for toplevel windows.


isdismissed

Command Input:
v
Command Output:
v
Command Description:
Get the widget's dismissed flag.

setfadeintime

Command Input:
f
Command Output:
v
Command Description:
Set the number of seconds the menu takes to fade in from transparency.

setfadeouttime

Command Input:
f
Command Output:
v
Command Description:
Set the number of seconds the menu takes to fade out from transparency.

close

Command Input:
v
Command Output:
v
Command Description:
Send close request to the window +

setclosecommand

Command Input:
s(CloseCommand)
Command Output:
v
Command Description:
Set script command to be executed when window is closed. +

getclosecommand

Command Input:
v
Command Output:
s(CloseCommand)
Command Description:
Get script command to be executed when window is closed. +

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.