Programming with Reflection

image\rwnprg32.gif 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
The name of the toolbar. Toolbar names are not case sensitive. The default toolbar names are:
 File Transfer
 Visual Basic

 Use NewToolbar to create a new toolbar.

Left Argument type: Integer
The new location for the left toolbar margin (in number of pixels from the left margin of the screen).

Top Argument type: Integer
The new location for the top toolbar margin (in number of pixels from the top margin of the screen).

Width Argument type: Integer
The new width of the toolbar (in pixels).

Height Argument type: Integer
The new height of the toolbar (in pixels).



image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command