RULERATTRIBS

typedef struct tagRULERATTRIBS 
{ 
   L_UINT uStructSize; 
   L_UINT uFlags; 
   L_INT nRulerTickSize; 
   L_INT nRulerLength; 
   L_BOOL bLongTicks; 
   L_BOOL bShowMeasurement; 
} RULERATTRIBS, * LPRULERATTRIBS; 

The RULERATTRIBS structure contains options for controlling the cell ruler style and look.

Members

uStructSize

Size of this structure in bytes, for versioning. Use the sizeof() function to calculate this value.

uFlags

Flag that indicates which how the animation will go through the frames. Possible values are:

Value Meaning
RULERATTRIBS_RULERTICKSIZE [0x000001] The nRulerTickSize member is valid or must be filled in.
RULERATTRIBS_RULERLENGTH [0x000002] The nRulerLength member is valid or must be filled in.
RULERATTRIBS_ENABLELONGTICK [0x000004] The bLongTicks member is valid or must be filled in.
RULERATTRIBS_SHOWMEASUREMENT [0x000008] The bShowMeasurement member is valid or must be filled in.
RULERATTRIBS_ALL [0x00000F] All the structure member must be valid or must be filled in.

nRulerTickSize

The size of the tick of the ruler that represents the ruler unit.

nRulerLength

The length of the ruler, setting this value to 1000 mean the cell horizontal ruler length will be the same as the cell width, and the vertical ruler will be the same as the cell height.

bLongTicks

Enable or disable the long tick, which is the tick that happens every 5 and 10 ticks. Possible values are:

Value Meaning
TRUE Enable the long tick.
FALSE Disable the long tick.

bShowMeasurement

Flag that indicates whether to show or hide the cell measurement unit text next to the ruler. Possible values are:

Value Meaning
TRUE Show the cell measurement unit.
FALSE Hide the cell measurement unit.

Comments

This structure is used by the following functions:

LImageViewerCell::GetRulerAttributes

LImageViewerCell::SetRulerAttributes

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Medical Image Viewer C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.