Click or drag to resize

RegionButton Constructor (Byte, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, UInt32, UInt16, UInt16, UInt16, UInt16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Int32, Boolean, Boolean, Boolean, Boolean, Boolean, Int32, String, Int32, Int32)

Initializes a new instance of the RegionButton class.

Namespace:  ProScript
Assembly:  proscript-csharp (in proscript-csharp.dll) Version: 1.2.79.0 (1.2.79.0)
Syntax
public RegionButton(
	byte number,
	bool acceptTouch,
	bool decode,
	bool visible,
	bool inUse,
	bool hasFrame,
	bool outputToHost,
	bool reserved1,
	uint reserved2,
	ushort x1,
	ushort x2,
	ushort y1,
	ushort y2,
	byte foreAlpha,
	byte foreRed,
	byte foreGreen,
	byte foreBlue,
	byte backAlpha,
	byte backRed,
	byte backGreen,
	byte backBlue,
	int parent,
	bool enable,
	bool highlightOnSelect,
	bool clearOnSelect,
	bool confirmOnSelect,
	bool useResource,
	int buttonReserved,
	string caption,
	int resourceNumberNormal,
	int resourceNumberSelected
)

Parameters

number
Type: SystemByte
the region number
acceptTouch
Type: SystemBoolean
whether or not this region accepts touch
decode
Type: SystemBoolean
whether or not this region generates coordinate events
visible
Type: SystemBoolean
whether or not this region is visible
inUse
Type: SystemBoolean
Whether or not this region is currently in use.
hasFrame
Type: SystemBoolean
whether or not this region has a box around it
outputToHost
Type: SystemBoolean
Whether or not this region will output information to the host
reserved1
Type: SystemBoolean
The parameter is not used.
reserved2
Type: SystemUInt32
The parameter is not used.
x1
Type: SystemUInt16
left most edge
x2
Type: SystemUInt16
right most edge
y1
Type: SystemUInt16
top most edge
y2
Type: SystemUInt16
bottom most edge
foreAlpha
Type: SystemByte
foreground alpha value
foreRed
Type: SystemByte
foreground red value
foreGreen
Type: SystemByte
foreground green value
foreBlue
Type: SystemByte
foreground blue value
backAlpha
Type: SystemByte
background alpha value
backRed
Type: SystemByte
background red value
backGreen
Type: SystemByte
background green value
backBlue
Type: SystemByte
background blue value
parent
Type: SystemInt32
the parent region number
enable
Type: SystemBoolean
whether or not this button is enabled
highlightOnSelect
Type: SystemBoolean
whether or not this button highlights when selected
clearOnSelect
Type: SystemBoolean
whether or not this button clears the screen when selected
confirmOnSelect
Type: SystemBoolean
Whether or not this button sends a confirmation when selected
useResource
Type: SystemBoolean
Whether or not this button uses a resource instead of a caption
buttonReserved
Type: SystemInt32
The parameter is not used.
caption
Type: SystemString
the caption to display on the button
resourceNumberNormal
Type: SystemInt32
Resource id used while button is idle
resourceNumberSelected
Type: SystemInt32
Resource id used while button is selected
See Also