hgeGUISlider::SetMode
Changes the slider's behaviour mode.
void SetMode(
float fMin,
float fMax,
int mode
);
Parameters
- fMin
- The minimum value allowed for the slider.
- fMax
- The maximum value allowed for the slider.
- mode
- The slider's visualization mode. May be one of these:
- HGESLIDER_BAR
The slider is displayed as a bar that starts at the slider's leftmost point
and ends at the current slider's position. The slider's image is stretched,
so, to avoid visual distortion, ensure that it spreads for one pixel in each
direction outside of the specified region of the texture.
- HGESLIDER_BARRELATIVE
The slider is displayed as a bar that starts at the slider's center
and ends at the current slider's position. The slider's image is stretched,
so, to avoid visual distortion, ensure that it spreads for one pixel in each
direction outside of the specified region of the texture.
- HGESLIDER_SLIDER
The slider is displayed as a fixed size head that is
positioned based on the current slider's value.
Requirements
Header: hgeguictrls.h
Import library: hgehelp.lib
|