From 6daa6ca8f55c86512d92fa187cdf21bc7c279a6a Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 19 Sep 2005 23:24:16 +0000 Subject: Added simple number spinners --- simplegui.mod/doc/commands.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'simplegui.mod/doc/commands.html') diff --git a/simplegui.mod/doc/commands.html b/simplegui.mod/doc/commands.html index 56b78b5..b857360 100644 --- a/simplegui.mod/doc/commands.html +++ b/simplegui.mod/doc/commands.html @@ -79,6 +79,32 @@ If i is not null then this image is drawn as a mouse cursor.
Function Create:TButtonList( gui:TGUIHandler, x:Int, y:Int, options:String[], selected:Int, callback(w:TWidget) ) Create a TButtonList widget.

Returns: The created widget.

gui is the TGUIHandler object managing this wiget. x and y are its position. options are the options for the list and selected is the currently selected item. callback is called when the selection changes.




+

+
Type TNumberFloat Extends TWidget A number up/down widget for floats

+
Field value:Float The value


+

+
Field change:Float The increment/decrement


+

+
Field maxval:Float The maximum value


+

+
Field minval:Float The minimum value


+

+
Function Create:TNumberFloat( gui:TGUIHandler, x:Int, y:Int, callback(w:TWidget)=Null ) Create a TNumber widget.

Returns: The created widget.

gui is the TGUIHandler object managing this wiget. x and y are its position. +callback is called when the value changes.



+

+

+
Type TNumberInt Extends TWidget A number up/down widget for ints

+
Field value:Int The value


+

+
Field change:Int The increment/decrement


+

+
Field maxval:Int The maximum value


+

+
Field minval:Int The minimum value


+

+
Function Create:TNumberInt( gui:TGUIHandler, x:Int, y:Int, callback(w:TWidget)=Null ) Create a TNumber widget.

Returns: The created widget.

gui is the TGUIHandler object managing this wiget. x and y are its position. +callback is called when the value changes.



+

Type TGUIHandler Handles the GUI.

Method Register( w:TWidget ) Register a widget.

Widgets call this themselves.



-- cgit v1.2.3