Programming with Reflection
SetToolbarPosition method
Syntax object.SetToolbarPosition ToolbarName, Left, Top, Width, Height
Determines the location and shape of the toolbar. The toolbar can be reshaped, but not resized; there are a predetermined number of shapes for any given arrangement of buttons (which vary according to the number of buttons on the toolbar and how they are grouped).
If the Width and Height values that you assign do not correspond to any of the predetermined shapes, Reflection determines which of these two values is closest to a predetermined value, and then displays a toolbar that corresponds as closely as possible to the size you specified.
Use the SetToolbarMode method to attach the toolbar to or detach it from an edge of the terminal window.
ToolbarName Argument type: String
Required
The name of the toolbar. Toolbar names are not case sensitive. The default toolbar names are:
Standard
File Transfer
Visual Basic
Setup
Use NewToolbar to create a new toolbar.
Left Argument type: Integer
Required
The new location for the left toolbar margin (in number of pixels from the left margin of the screen).
Top Argument type: Integer
Required
The new location for the top toolbar margin (in number of pixels from the top margin of the screen).
Width Argument type: Integer
Required
The new width of the toolbar (in pixels).
Height Argument type: Integer
Required
The new height of the toolbar (in pixels).