|
Cuthalion Beginner
Joined: 29 Jun 2003 Posts: 18 Location: USA
|
Posted: Sun Jul 27, 2003 8:26 pm
two parter on buttons and gauges |
can anyone define the fields for me in a scripted button?
#BUTTON idnumber {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} "" {} {} {} {panelnumber}
just insert in brackets what is in that field
I keep getting my arguments wrong cause I keep putting stuff in wrong field
second part...I am trying to create a gauge within a temp class and I want to understand this better...
#BUTTON {} {} {} {} {} {} {} {Size} {30} {92} {} {} {} {16} {} {Gauge||12|11|4|7} {} "" {Explore|Inset} {} {} {2}
that button kind field ...{Gauge||12|11|4|7} ... please define this better for me...it is a gauge then there is an empty field, then lowcolor I think, then maxvalue,low value, and then I dont know.
I know I can make better buttons and gauges if you can help me with these fields
thanks
Cuthalion |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Jul 27, 2003 9:00 pm |
I don't know why you didn't just look this up for yourself. All I did was copy what's in the helpfile.
#BUTTON id|number Off-caption On-command On-caption Off-command Value-expression Variable-name Bitmap-filename AutoSize Width Height AutoPos Top Left Off-color On-color Button-Kind Bitmap-margin Classname Options ToolTip ID PanelNum
Description of all arguments
Here is description of each argument used in the full button creation command (used in Export and Import)
id|number
The numeric position of the button on the button bar, or the ID name of the button to modify
Off-caption
The text displayed on the button when it is off. For a multi-state button, this is the master caption for the button. This argument is subject to expansion, use quotes instead of braces if variable or function references are used.
On-command
The command to be executed when the button is clicked (when the button state changes to "on"). For a Menu button, this is the name of the menu class.
On-caption
For a toggle button, this text is displayed on the button when the button is pushed in (on). To create a multi-state button, use a string list to define the caption for each button state.
Off-command
For a toggle button, this command is executed when the button state changes to "off" (button clicked when it is down). For a multi-state button, this is a string list of commands corresponding to each button state.
Value-expression
This is the expression used to determine the button state. 0 is off, 1 is on. For multistate buttons, this numeric expression sets the button state. This allows the button state to be controlled from a script. For gauge buttons, this expression controls the value of the gauge.
Variable-name
The name of a variable to contain the state of the button. Whenever the button changes state, the current value of the button is written to this variable. Also, if this variable changes value in a script, the button state will change to reflect the new variable value.
Bitmap-filename
The name of the BMP image to display on the button. Instead of a BMP filename, this can also be the name of an internal resource bitmap.
AutoSize
If it is blank, then the AutoSize option is selected, and the values of the next two arguments are ignored.
Width
The width of the button in pixels. Only used if the AutoSize option is not selected.
Height
The height of the button in pixels. Only used if the AutoSize option is not selected.
AutoPos
If blank, then the AutoPosition option is selected, and the values of the next two arguments are ignored
Top
The top of the button in pixels. Only used if the AutoPos option is not selected.
Left
The left edge of the button in pixels. Only used if the AutoPos option is not selected.
Off-color
The color of the button when it is in the Off state. Also, the background color of a gauge button.
On-color
The color of the button when it is in the On state. For multistate buttons, this should be a string list of colors for each button state.
Button-kind
For separator buttons, this has the value of "Separ". For Menu buttons, this has the value of "Menu". For Gauge buttons, this argument is a string list. The first value of the string list is "Gauge". The second value of the string list is the Gauge normal color, the third value is the gauge low color, the 4th value is the GaugeMax expression, the 5th value is the GaugeLow expression..
Bitmap-margin
Indicates the spacing between the bitmap icon and the text caption. -1 is the default. Other negative values can be used to control the absolute position of the button on the button bar. If the bitmap is on top, the top position of the button is -(Margin+2). If the bitmap is on the left, the left position of the button is -(Margin+2).
Classname
The name of the class to assign this button to.
Options
A string list of various options. Value option values are: "explore" to set the explorer-style buttons, "inset" to draw an inset rectangle around the button, "stack" to stack this button with the previous one, "top" to display the icon on the top instead of to the left of the caption, "right" to set the button to be right-aligned.
Tooltip
The help tip displayed when the mouse hovers over the button.
ID
The ID name for the button
PanelNum
The panel number to display this button in. Value can be from 1 to 4. If omitted, the default value of 1 is used. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|