GETCLIPUIVERSION() | Get CLIP-UI library version. |
GETDRIVER() | Get current UIDriver object. |
GETSYSIMAGE() | Get content of predefined icons (XPM format). |
MAPGET() | Get value from associated array by its key. If specified key is not found, value <defVal> is returned. |
SPLITGEOM() | Extract array from string. |
USEDRIVER() | Use specified driver. |
VAL2STR() | Transform value to string. |
XMLGETTAG() | Get XML element by specified hierarchy. |
getClipUIVersion() --> <sVersion>
No arguments
CLIP-UI library version.
getDriver([<name>],[<params>]) --> <oDriver>
Current UIDriver object.
static driver := getDriver()
getSysImage(<id>) --> <sImage>
<id> | - Number. Identifier of predefined images. |
<itemizedlist mark="bullet"> | |
<listitem> | <para><constant>IMG_EMPTY</constant> — empty (transparent) pixmap (16x16)</para></listitem> |
<listitem> | <para><constant>IMG_OK</constant> — symbol "i" in blue circle (32x32)</para></listitem> |
<listitem> | <para><constant>IMG_INFO</constant> — symbol "i" in blue circle (32x32)</para></listitem> |
<listitem> | <para><constant>IMG_ERROR</constant> — symbol "x" in red circle (32x32)</para></listitem> |
<listitem> | <para><constant>IMG_QUESTION</constant> — symbol "i" in blue circle (32x32)</para></listitem> |
</itemizedlist> |
Content of specified predefined images.
imgContent := getSysImage( IMG_INFO )
mapget(<m>,<key>,<defVal>) --> <val>
Value by specified key or <defVal>.
m := mapget( tag:attr, "METHOD", "" )
splitGeom(<str>,[<alen>]) --> <aGeometry>
Array of values.
a := splitGeom( "22", 2 ) // {22,NIL}
useDriver(<name>)
Returns NIL.
useDriver("gtk2")
val2str(<value>,[<format>]) --> <sVal>
Value as string.
s := val2str( 55 ) // "55"
XMLGetTag(<root>,<path>) --> <oTag>
<root> | - XMLTag object. Element from which lookup is begun. |
<path> | - String. Hierarchy as tag names (in upper case) delimited by dots. For example, if queried "HEAD.VALUE" will be lookup first child element with name 'head' and its child element with name 'value' will be returned. If tag not found in hierarchy NI |
L is returned. |
Tag by specified hierarchy.
t := XMLGetTag( self:root, "INTERFACE.WIDGET" ) // Find <widget> tag under tag <interface> from element self:root.
Andrey Cherepanov <<skull@eas.lrn.ru>>
No dependies of platform.