From 82c41335d11b5ed18090ac1a548c9b402e4d01a4 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 19 Sep 2005 01:04:06 +0000 Subject: Updates to GUI alerts --- simplegui.mod/doc/commands.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'simplegui.mod/doc') diff --git a/simplegui.mod/doc/commands.html b/simplegui.mod/doc/commands.html index c66334a..56b78b5 100644 --- a/simplegui.mod/doc/commands.html +++ b/simplegui.mod/doc/commands.html @@ -6,11 +6,12 @@

Function Reference

-
Function GUINotify( s:String ) Displays a notification alert with the supplied string.


+
Function GUINotify( s:String, i:TImage=Null ) Displays a notification alert with the supplied string.

The string s can be split into multiple lines using the '|' character. If i is not null then this image is drawn as a mouse cursor.



-
Function GUIYesNo:Int( s:String ) Displays a yes/no alert with the supplied string.

Returns: True if Yes selected, otherwise False.



+
Function GUIYesNo:Int( s:String, i:TImage=Null ) Displays a yes/no alert with the supplied string.

Returns: True if Yes selected, otherwise False.

The string s can be split into multiple lines using the '|' character. If i is not null then this image is drawn as a mouse cursor.



-
Function GUIMenu( title:String, options:String[],x,y ) Displays a pop-up menu.

Returns: The index of the selected option, -1 for none.

title is the menu title, options the options to display and x and y specify its position,.



+
Function GUIMenu( title:String, options:String[], x:Int, y:Int, i:TImage=Null ) Displays a pop-up menu.

Returns: The index of the selected option, -1 for none.

title is the menu title, options the options to display and x and y specify its position. +If i is not null then this image is drawn as a mouse cursor.



Type Reference

Type TGUIFont Defines the TBitmapFont to be used by the GUI.

@@ -83,6 +84,8 @@
Method Register( w:TWidget ) Register a widget.

Widgets call this themselves.



Method Clear() Remove all widgets.


+

+
Method SetEnable( state:Int ) Sets the enable state of all widgets.

If state is true then all widgets are enabled, otherwise all widgets are disabled



Method SetFocus( w:TWidget ) Sets the keyboard focus to the supplied widget. Pass null for no focus.


-- cgit v1.2.3