Toolbar

AssignButton, AssignButtonEx, ChangeTools, DefaultToolbar, EnlargeToolbars, Set_ToolTipText, SetupTools, Toolbar_Next, Toolbar_Prev

AssignButton

Description 

 AssignButton(
   int  number,
   char *bitmap,
   char *command
);

This function creates a button on a toolbar and assigns commands to it.

Parameters

int number

Zero based index of a toolbar buttons. If number == -1, the toolbar is redrawn.

char *bitmap

Predefined bitmap string.

char *command

A command associated with the button. If the command contains a string e.g. RunMacro("MyMacro"), you should specify ~ instead of ": AssignButton(number, bitmap, "RunMacro(~MyMacro~)");

See Also 
AssignButtonEx

AssignButtonEx

Description 

 AssignButtonEx(
   int  number,
   char *bitmap,
   char *command,
   char *command2
);

This legacy function creates a button on a toolbar and assigns commands to it.

Parameters

int number

Zero based index of a toolbar buttons. If number == -1, the toolbar is redrawn.

char *bitmap

Predefined bitmap string.

char *command

A command associated with the button. If the command contains a string e.g. RunMacro("MyMacro"), you should specify ~ instead of ": AssignButton(number, bitmap, "RunMacro(~MyMacro~)");

char *command2

A command associated with the button. Executed, when button is in pressed state. If the command contains a string e.g. RunMacro("MyMacro"), you should specify ~ instead of ": AssignButton(number, bitmap, "RunMacro(~MyMacro~)");

See Also 
AssignButton

ChangeTools

Description 

 ChangeTools(
   char *Tools
);

This function loads the specified toolbar.

Parameters

char *Tools

Toolbar name. There are eight pre-defined toolbars (e.g. color, binary). In addition, you can create your own tool bar.

See Also 
SetupTools

DefaultToolbar

This function runs the View > Customize Toolbar > Default command.

Description 

 DefaultToolbar(
   int  UseDefaultToolbar
);

This function displays/hides the default toolbar.

Parameters

int UseDefaultToolbar

Displays or hides the toolbar.

TRUE

Displays the toolbar.

FALSE

Hides the toolbar.

EnlargeToolbars

Description 

 EnlargeToolbars(
   bool  EnlargedToolbars
);

This function changes the size of the icons of the main application toolbars and document toolbars.

Parameters

bool EnlargedToolbars

0

Standard icon size 16 pixels.

1

Icons enlarged to 32 pixels.

Set_ToolTipText

Description 

 Set_ToolTipText(
   int  Index,
   char *text
);

This function changes the image description of the specified image. Index parameter is the zero-based index of the button on the toolbar.

Parameters

int Index

Index number (zero-based).

char *text

text in the tooltip

Return Values

The function returns 0 if successful otherwise returns 1.

SetupTools

This function runs the View > Customize Toolbar > Setup command.

Description 

 SetupTools();

This function displays the Toolbar Setup dialog box along with a possibility to change the toolbar buttons, button-associate commands, etc.

See Also 
ChangeTools, Toolbar_Next, Toolbar_Prev

Toolbar_Next

This function runs the View > Customize Toolbar > Next command.

Description 

 Toolbar_Next();

This function displays the next toolbar.

See Also 
Toolbar_Prev, SetupTools

Toolbar_Prev

This function runs the View > Customize Toolbar > Previous command.

Description 

 Toolbar_Prev();

This function displays the previous toolbar.

See Also 
Toolbar_Next, SetupTools