Difference between revisions of "Form"

From Lianjapedia
Jump to: navigation, search
Line 5: Line 5:
 
This class supports the [[:Category:Common_Properties|Common Properties]] plus the following:
 
This class supports the [[:Category:Common_Properties|Common Properties]] plus the following:
  
{| class="wikitable" width=100%
+
{| class="wikitable" width="100%"
 
!width="20%"|Property
 
!width="20%"|Property
 
!Access (R/RW)
 
!Access (R/RW)
Line 36: Line 36:
 
|valign="top"|Current y coordinate for the next drawing method
 
|valign="top"|Current y coordinate for the next drawing method
 
|-
 
|-
|valign=top|AutoCenter
+
|valign="top"|AutoCenter
|valign=top|RW
+
|valign="top"|RW
|valign=top|Boolean
+
|valign="top"|Boolean
 
|Whether form is autocentered
 
|Whether form is autocentered
 
|-
 
|-
|valign=top|Picture
+
|valign="top"|Picture
|valign=top|RW
+
|valign="top"|RW
|valign=top|Character
+
|valign="top"|Character
 
|Filename of background image
 
|Filename of background image
 
|-
 
|-
Line 51: Line 51:
 
|Whether form is closable
 
|Whether form is closable
 
|-
 
|-
|valign=top|Statusbar
+
|valign="top"|Statusbar
|valign=top|RW
+
|valign="top"|RW
|valign=top|Boolean
+
|valign="top"|Boolean
 
|Whether form has a statusbar
 
|Whether form has a statusbar
 
|-
 
|-
|valign=top|Message
+
|valign="top"|Message
|valign=top|RW
+
|valign="top"|RW
|valign=top|Character
+
|valign="top"|Character
 
|Text displayed in statusbar
 
|Text displayed in statusbar
 
|-
 
|-
Line 121: Line 121:
 
|valign="top"|Scrollbars: 0 = none, 1 = horizontal, 2 = vertical, 3 = both
 
|valign="top"|Scrollbars: 0 = none, 1 = horizontal, 2 = vertical, 3 = both
 
|-
 
|-
|valign=top|ControlCount
+
|valign="top"|ControlCount
|valign=top|R
+
|valign="top"|R
|valign=top|Numeric
+
|valign="top"|Numeric
 
|Number of controls in form
 
|Number of controls in form
 
|-
 
|-
Line 131: Line 131:
 
|Fill style setting
 
|Fill style setting
 
|-
 
|-
|valign=top|FillColor
+
|valign="top"|FillColor
|valign=top|RW
+
|valign="top"|RW
|valign=top|Numeric or Character
+
|valign="top"|Numeric or Character
|valign=top|Fill color
+
|valign="top"|Fill color
 
|-
 
|-
 
|valign="top"|DrawWidth
 
|valign="top"|DrawWidth
Line 147: Line 147:
 
This class supports the [[:Category:Common_Methods|Common Methods]] plus the following:
 
This class supports the [[:Category:Common_Methods|Common Methods]] plus the following:
  
{| class="wikitable" width=100%
+
{| class="wikitable" width="100%"
 
!width="20%"|Method
 
!width="20%"|Method
 
!Args
 
!Args
Line 206: Line 206:
 
This class supports the [[:Category:Common_Events|Common Events]] plus the following:
 
This class supports the [[:Category:Common_Events|Common Events]] plus the following:
  
{| class="wikitable" width=100%
+
{| class="wikitable" width="100%"
 
!width="20%"|Event
 
!width="20%"|Event
 
!Args
 
!Args

Revision as of 11:32, 5 February 2013

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Properties

This class supports the Common Properties plus the following:

Property Access (R/RW) Value Description
WindowState RW Numeric Window state: 0 = normal, 1 = minimized, 2 = maximized, 3 = fullscreen/kiosk
WindowType RW Numeric Window type: 0 = modeless, 1 = modal
Caption RW Character Text displayed in caption
CurrentX RW Numeric Current x coordinate for the next drawing method
CurrentY RW Numeric Current y coordinate for the next drawing method
AutoCenter RW Boolean Whether form is autocentered
Picture RW Character Filename of background image
Closable RW Boolean Whether form is closable
Statusbar RW Boolean Whether form has a statusbar
Message RW Character Text displayed in statusbar
AlwaysOnTop RW Boolean Whether form should always be on top
AlwaysOnBottom RW Boolean Whether form should always be on the bottom
ShowTips RW Boolean Whether tooltips are shown for controls in the form
MinButton RW Boolean Whether form has a minimize button
MaxButton RW Boolean Whether form has a maximize button
Titlebar RW Boolean Whether form has a titlebar
Actionbar RW Boolean Whether form has an actionbar
BufferMode RW Numeric Buffer mode
MousePointer RW Numeric Mouse pointer: 0 = arrow, 1 = arrow, 2 = cross, 3 = I-beam, 5 = size, 6 = NE/SW, 7 = size N/S, 8 = size NW/SE, 9 = size W/E, 10 = up arrow, 12 = no drop, 15 = pointing hand
KeyPreview RW Boolean Whether keypreview is enabled
ExitOnClose RW Boolean Whether to exit session on closing form
Scrollbars RW Numeric Scrollbars: 0 = none, 1 = horizontal, 2 = vertical, 3 = both
ControlCount R Numeric Number of controls in form
FillStyle RW Numeric Fill style setting
FillColor RW Numeric or Character Fill color
DrawWidth RW Numeric Line width in pixels for draw operations

Methods

This class supports the Common Methods plus the following:

Method Args Description
AddObject existing as Object | newobject as Character, class as Character Add an existing object or a new object, in which case the object's class must also be specified
RemoveObject existing as Object Remove the specified object
TextHeight None Return current text height setting in pixels
TextWidth text as Character Return pixels required to display specified text
Controls control as Numeric Return an object reference to the specified control within the form
Clear None Clear the form
Print text as Character Print the specified text in the form
Draw None Repaint form
Line x as Numeric, y as Numeric[, x2 as Numeric, y2 as Numeric] Draw a line from currentx, currenty to x, y. If x2 and y2 are specified, draw a line from x, y to x2, y2
Box x as Numeric, y as Numeric[, x2 as Numeric, y2 as Numeric] Draw a box from currentx, currenty to x, y. If x2 and y2 are specified, draw a box from x, y to x2, y2
Circle radius as Numeric[, x as Numeric, y as Numeric] Draw a circle with the specified radius at currentx, currenty. If x and y are specified, draw the circle at x, y
Release None Release form

Events

This class supports the Common Events plus the following:

Event Args Description
load None Occurs before form is activated