sptk::CDateControl Class Reference
[GUI Classes]
Date input widget.
More...
#include <CDateControl.h>
List of all members.
|
Public Member Functions |
| | CDateControl (int x, int y, int w, int h, const char *label=0L) |
|
CSmallButton * | button () |
| | Returns internal small button pointer.
|
|
CInput_ * | input () |
| | Returns internal input box.
|
| void | resize (int x, int y, int w, int h) |
| void | preferredSize (int &w, int &h, int &editorWidth, int &buttonWidth) |
| void | preferredHeight (int &h) |
Static Protected Member Functions |
|
static void | date_cb (Fl_Widget *w, void *data) |
| | Internal callback.
|
Detailed Description
Date input widget.
A masked date input with a small drop-down button inside. Clicking on the button displays the calendar window.
Constructor & Destructor Documentation
| sptk::CDateControl::CDateControl |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h, |
|
|
const char * |
label = 0L | |
|
) |
| | |
Constructor in FLTK style
- Parameters:
-
| x | int, x-position |
| y | int, y-position |
| w | int, width |
| h | int, height |
| label | const char *, label |
Member Function Documentation
| void sptk::CDateControl::preferredHeight |
( |
int & |
h |
) |
|
Computes the best size for the control
- Parameters:
-
| void sptk::CDateControl::preferredSize |
( |
int & |
w, |
|
|
int & |
h, |
|
|
int & |
editorWidth, |
|
|
int & |
buttonWidth | |
|
) |
| | |
Computes the best size for the control
- Parameters:
-
| w | int&, control width |
| h | int&, control height |
| editorWidth | int& the width of date input |
| buttonWidth | int& the width of button |
| void sptk::CDateControl::resize |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h | |
|
) |
| | |
Resizes the control.
- Parameters:
-
| x | int, x-position |
| y | int, y-position |
| w | int, width |
| h | int, height |
The documentation for this class was generated from the following file: