Contents | Index | < Browse | Browse >
ATTRIBUTES
===================================================================
Attributes are a way of telling Gui4Cli various details about how
you want your gadgets to look and behave.
There are 2 ways in which attributes can be set :
- ATTR gad modifier - used as a gadget modifier
- SETATTR command - used as a normal command (like SetGad etc)
The templates are as follows :
- ATTR AtributeName Value
- SETATTR GuiName/GadID AttributeName Value
These are the attributes that can be changed (click for details)
GADGET Attributes (applicable to all gadgets)
- RESIZE (mask)LTWH
- TITLE apen/bpen/drawmode/justify/title
- FRAME (mask)Type|Recess
LISTVIEW Attributes :
- LVSTYLE StyleMask
- DIRSTYLE StyleMask
- FIELDSTYLE %FieldName/StyleMask
- LVLINEDIST Pixels
- LVFILTER Pattern
TEXTIN Attributes :
- TITYPE INT/FLOAT/HEX/DATE/UPPER/LOWER/STRING
- TIPOS Position
- TITRANS ON|OFF
xTEXTBOX Attributes
- TBSTYLE apen/bpen/drawmode/justify
- TBOX apen/bpen/bgpen/drawmode/border/recess/justify/position
SOUND Attributes
- SOUND SampleAlias
===================================================================
NOTE that with SETATTRIBUTE, you will probably have to redraw the
gui or gadget, in order to make the change visible. This allows you
to issue many SetAttribute commands and redraw once.