FLATSCROLLBAR (since 3.22)

Complementary attributes when a flat scrollbar is used (a drawn scrollbar).

Used in IupFlatScrollBox, and in IupMatrix when FLATSCROLLBAR is defined.

Attributes (non inheritable)

BACKCOLOR (non inheritable): color used as background for the scrollbar. By default it will inherit from BGCOLOR.

FORECOLOR (non inheritable): handler and arrow color. Default: "220 220 220". Used instead of FGCOLOR to avoid inheritance problems.

HIGHCOLOR (non inheritable): handler and arrow color when highlight. Default: "132 132 132".

PRESSCOLOR (non inheritable): handler and arrow color when pressed. Default: "96 96 96".

SCROLLBARSIZE (non inheritable): The width of the vertical scrollbar or the height of the horizontal scrollbar. Default: 15.

SHOWARROWS (non inheritable): Allow to show or hide the arrows. Default: Yes.

SHOWFLOATING (non inheritable): the scrollbar is shown only when used, over the space it occupied. Move the mouse over the scrollbar area to show the scrollbars. They are automatically hidden after not being used by the time defined in FLOATINGDELAY.

FLOATINGDELAY (non inheritable): time to hide the scrollbar when SHOWFLOATING=Yes in milliseconds. Default: 2000.

ARROWIMAGES (non inheritable): replace the drawn arrows by the following images. Default: No.

IMAGELEFT, IMAGERIGHT, IMAGETOP, IMAGEBOTTOM (non inheritable): Arrow image name (the attribute is relative to where the arrow is pointing). Use IupSetHandle or IupSetAttributeHandle to associate an image to a name. See also IupImage. IMPORTANT = all images must be square with side equals to SCROLLBARSIZE.

IMAGE*HIGHLIGHT (non inheritable): Arrow image name of the element in highlight state. If it is not defined then the IMAGE* is used.

IMAGE*INACTIVE (non inheritable): Arrow image name of the element when inactive. If it is not defined then the IMAGE* is used and its colors will be replaced by a modified version creating the disabled effect.

IMAGE*PRESS (non inheritable): Arrow image name of the element in pressed state. If it is not defined then the IMAGE* is used.

Affects

IupFlatScrollBox, IupMatrix

Notes

When SHOWFLOATING=Yes the natural size of the IupMatrix is reduced because it will not include the scrollbars area. But notice that when vertically scrolling the last column or horizontally scrolling the last line the visibility or the cells are reduced because the scrollbar is show above the cells.

See Also

SCROLLBAR, POSX, XMIN, XMAX, DX, POSY, YMIN, YMAX, DY