Description


Include file: xgraphbt.h

Parent class: XSettingButton

Overview

Functions

Animate

Parameters

BOOL start TRUE=start, FALSE=stop
BOOL fromBegining TRUE=display from beginning, FALSE=display from current position

Return-Value

BOOL success

Remarks

Start/stop to display the animation (if GB_ANIMATION is set)

GetAnimationRate

Return-Value

LONG speed

Remarks

Query the speed of the animation

IsAnimationActive

Return-Value

BOOL result

Remarks

Query if the animation is active

SetAnimationRate

Parameters

LONG rate speed

Return-Value

BOOL result

Remarks

Set the speed of animation

XGraphicButton

Parameters

XWindow * owner owner of the button
XRect * rectangle rectangle for position/size
USHORT id id of the window
ULONG style style of the button:
GB_TWOSTATE
GB_AUTOTWOSTATE
GB_ANIMATION
GB_AUTOANIMATION
GB_DISABLEBITMAP
GB_HILITEBITMAP
GB_3D_TEXTRECESSED
GB_3D_TEXTRAISED

const char * title text to display
SHORT bitmapCount number of bitmap-ids in parameter bitmapList
SHORT * bitmapList array of bitmap-ids to use for an animation. Bitmaps with this ids must be in the programs resources (not in DLLs).

Remarks

Construct a graphic-button. To use this control you must invoke the multimedia-library!

IsSelected

Return-Value

BOOL result

Remarks

Query if the button is selected

Select

Parameters

BOOL select TRUE=select, FALSE=deselect

Remarks

Select/deselect the button

Toggle

Remarks

Toggles the button


This document was generated by Jens von Pilgrim's Autodoc