lecui 1.0.0-alpha.20
lecui C++ user interface library
|
Manipulate a form's controls. More...
#include <controls.h>
Public Member Functions | |
controls (form &fm) | |
Class constructor. More... | |
~controls () | |
Class destructor. | |
controls & | allow_resize (bool enable) |
Whether to allow a form to be resizable. More... | |
controls & | allow_minimize (bool enable) |
Whether to add a minimize control button to the form. More... | |
controls & | make_top_most (bool enable) |
Whether to make this a top most form. More... | |
controls & | start_hidden (bool hidden) |
Whether to keep the form hidden after its creation. More... | |
Manipulate a form's controls.
This manipulation is best done in the form's initialize event.
liblec::lecui::controls::controls | ( | form & | fm | ) |
Class constructor.
fm | A reference to the form. |
controls & liblec::lecui::controls::allow_minimize | ( | bool | enable | ) |
Whether to add a minimize control button to the form.
enable | Set to false to remove the minimize control button. |
The minimize control button is enabled by default if this method is never called.
controls & liblec::lecui::controls::allow_resize | ( | bool | enable | ) |
Whether to allow a form to be resizable.
enable | Set to false to disable resizing. |
If resizing is enabled by default if this method is never called.
controls & liblec::lecui::controls::make_top_most | ( | bool | enable | ) |
Whether to make this a top most form.
enable | Set to false for a normal form and to true to make the form appear above all other windows. |
controls & liblec::lecui::controls::start_hidden | ( | bool | hidden | ) |
Whether to keep the form hidden after its creation.
hidden | Set to false to keep normal form bahaviour and to true to initialize app with the form hidden. Useful when starting app in the background and when using the system tray. |
To hide a form after it has already been created use the form::hide method. To restore a form after it's creation use the form::restore method.