Search Locate Previous Next Contents

Tool Control (TCTL)


Description
Interface to the IE4-style ‘Rebar’ controls. You can have a single toolbar, or you can set the ‘Cool’ property to “true” to allow several toolbars to share the same region at the top of the form. At present, the only valid child control is the new-style tool button.

As the user drags these around, the depth of the parent region may change (also setting captions on/off will affect this) so you can ask the toolcontrol to manage a collection of other objects by listing any number of group names in the Reposition property.

N.B. If you have several toolcontrols, only set this property on the first one you create. You can use the ‘Sequence’ property to change the actual order in which they appear.

N.B. Do not set the ‘Newline’ property of the first control in the sequence to 1, Dyalog tolerates this, but it confuses the repositioning algorithm!

Class Property Table
NameTypeDefaultDescription
LocalsNamelist
AlignOneOf‘Top’
StyleOneOf
CoolBoolOccupy a ‘Coolbar’ parent
NewlineUserDoes it start a new line in the coolbar?
SequenceRuntimeOrder relative to other tool controls
ArtworkRuntimee.g. a 16 × 16n integer array of bitmap data
SeeThruInt8Colour used as transparent (not yet implemented)
CaptionsRuntimeBoolean – are captions shown on the buttons
VisibleRuntimeIs ToolControl visible (boolean)
RepositionStringlistGroup(s) to be repositioned when size changes or bar is hidden
CurrentNSRuntimeNamespace where data is found and actions run

Class-specific Events
PCPost-Create
CAPCaptions on/off

Class-specific Functions
GetIndexQuery sequence relative to other controls


Continue to: Tool Control – Newline Property
© Copyright Causeway Graphical Systems Ltd 2003