9 RadioItem(
const wstring& actionName,
const wstring& text)
27 vector<RadioItem> _items;
32 long _maxVisibleItems;
33 __int64 _firstVisibleItem;
34 __int64 _lastVisibleItem;
85 void addOption(
const wstring& actionName,
const wstring& text);
126 void onPageUp(BOOL shiftPressed, BOOL ctrlPressed);
141 void onKeyEnd(BOOL shiftPressed, BOOL ctrlPressed);
HWND WinHandle
Definition Common.h:16
Component()
Constructs a new Component instance.
Definition Graphics.h:171
void onArrowUp(BOOL shiftPressed, BOOL ctrlPressed)
Handles Up arrow key press.
void onPageDown(BOOL shiftPressed, BOOL ctrlPressed)
Handles Page Down key press.
void onKeyEnd(BOOL shiftPressed, BOOL ctrlPressed)
Handles End key press.
void onMouseMoved(WinHandle hWnd, int x, int y, BOOL shiftPressed, BOOL ctrlPressed)
Called when the mouse is moved within the component.
virtual ~Radio()
Destroys the Radio component.
void addOption(const wstring &actionName, const wstring &text)
Adds a radio option.
int getPreferredHeight()
Returns the preferred height of the component.
void onArrowDown(BOOL shiftPressed, BOOL ctrlPressed)
Handles Down arrow key press.
void setSelectedtem(const wstring &action)
Sets the selected radio option by its action name.
void clear()
Removes all radio options.
wstring getOrientation()
Gets the current orientation.
void setOrientation(const wstring &orientation=L"VERT")
Sets the orientation of the radio group.
void onPaint(Graphics *g)
Paints the control.
void onPageUp(BOOL shiftPressed, BOOL ctrlPressed)
Handles Page Up key press.
void onKeyHome(BOOL shiftPressed, BOOL ctrlPressed)
Handles Home key press.
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc)
Gets window creation options.
Radio()
Constructs a new Radio component.
wstring getSelectedtem()
Gets the action name of the currently selected option.
void scrollBarActivity(__int64 firstVisibleItem)
void onMousePressed(WinHandle hWnd, int x, int y, int clickCount, BOOL shiftPressed, BOOL ctrlPressed)
Handles mouse press events.
void addSelectionChangedListener(SelectionChangeListener *l)
Adds a listener for selection change events.
BOOL onMouseWheel(WinHandle hWnd, int x, int y, int delta)
Handles mouse wheel scrolling.
void windowCreated()
Called when the window is created.
void onWindowResized()
Handles window resize event.
void onMouseReleased(WinHandle hWnd, int x, int y, BOOL shiftPressed, BOOL ctrlPressed)
Called when the mouse button is released within the component.
Bounds _rect
Definition Radio.h:17
RadioItem(const wstring &actionName, const wstring &text)
Definition Radio.h:9
wstring _action
Definition Radio.h:15
wstring _text
Definition Radio.h:16
Definition EventListeners.h:31