LAnnToolBar::SetButtonVisible

#include "ltwrappr.h"

virtual L_INT LAnnToolBar::SetButtonVisible(uButton, bVisible)

L_UINT uButton;

/* constant that specifies the tool */

L_BOOL bVisible;

/* flag that specifies the visibility of the tool */

Shows or hides the specified tool on the annotation toolbar.

Parameter

Description

uButton

The constant that specifies the tool. For a list of possible values, refer to Annotation Toolbar Buttons.

bVisible

Flag that indicates whether to make the specified tool visible on the toolbar. Possible values are:

 

Value

Meaning

 

TRUE

Make the tool visible on the toolbar.

 

FALSE

Make the tool invisible.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

When a tool is invisible, other tools in the toolbar are arranged so that no gaps are left, and so that their order is maintained (left-to-right and top-to-bottom, just as text would wrap).

Required DLLs and Libraries

LTANN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

LAnnotation::SetOptions, Class Members

Topics:

Annotation Functions: Implementing Automation

 

Implementing Annotations

 

Automated User Interface for Annotations

 

Key Annotation Features

Example

For an example, refer to LAnnToolBar::Create.