class PtSlider PtGauge { slider_flags; // flag (Pt_ARG_SLIDER_FLAGS) slider_handle_height; // unsigned short (Pt_ARG_SLIDER_HANDLE_HEIGHT) slider_handle_width; // unsigned short (Pt_ARG_SLIDER_HANDLE_WIDTH) slider_image; // PhImage (Pt_ARG_SLIDER_IMAGE) slider_increment; // unsigned short (Pt_ARG_SLIDER_INCREMENT) slider_label_br; // string (Pt_ARG_SLIDER_LABEL_BR) slider_label_br_col; // color (Pt_ARG_SLIDER_LABEL_BR_COL) slider_label_tl; // string (Pt_ARG_SLIDER_LABEL_TL) slider_label_tl_col; // color (Pt_ARG_SLIDER_LABEL_TL_COL) slider_multiple; // unsigned short (Pt_ARG_SLIDER_MULTIPLE) slider_tick_major_col; // color (Pt_ARG_SLIDER_TICK_MAJOR_COL) slider_tick_major_div; // long (Pt_ARG_SLIDER_TICK_MAJOR_DIV) slider_tick_major_len; // unsigned short (Pt_ARG_SLIDER_TICK_MAJOR_LEN) slider_tick_minor_col; // color (Pt_ARG_SLIDER_TICK_MINOR_COL) slider_tick_minor_div; // long (Pt_ARG_SLIDER_TICK_MINOR_DIV) slider_tick_minor_len; // unsigned short (Pt_ARG_SLIDER_TICK_MINOR_LEN) slider_trough_col; // color (Pt_ARG_SLIDER_TROUGH_COL) slider_trough_size; // unsigned short (Pt_ARG_SLIDER_TROUGH_SIZE) }
This widget is a sliding scale that accepts numerical data input in analog fashion. It consists of a handle that moves along a trough and points to optional tick marks.
![]() | For detailed information, please refer to PtSlider in the Photon documentation. |
| Constant | Description |
|---|---|
| Pt_TICKS_ON_TOP | Put the scale marks on top of the trough. |
| Pt_TICKS_ON_LEFT | Put the scale marks to the left of the trough. |
| Pt_TICKS_ON_BOTTOM | Put the scale marks on the bottom of the trough. |
| Pt_TICKS_ON_RIGHT | Put the scale marks to the right of the trough. |
| Pt_TICKS_TOUCH_TROUGH | Make the scale marks touch the trough. |
| Pt_TICKS_ETCHED_IN | Give the scale marks an etched-in appearance. |
| Pt_TICKS_ETCHED_OUT | Give the scale marks an etched-out appearance. |
| Pt_SLIDER_POINT_LEFT | The handle will point left. |
| Pt_SLIDER_POINT_UP | The handle will point up. |
| Pt_SLIDER_POINT_RIGHT | The handle will point right. |
| Pt_SLIDER_POINT_DOWN | The handle will point down. |
| Pt_SLIDER_IMAGE | The slider handle is an image specified by slider_image.. |
| Pt_SLIDER_MASK | Internal informational bit. |
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.