Undo the last action performed on a control. The last action can also be the Undo action. Ex: CTRL-Z on a TextInput.
Always returns ActionReturn::None.
Return a Vec containing the IDs of the control children. Do not include the children of the children.
If a control do not have children, return an empty Vec.
Return the current checkstate of a control. Return one of the following value: CheckState::Checked, CheckState::Unchecked and CheckState::Indeterminate.
Set the current checkstate of a control. One of the following value acn be set: CheckState::Checked, CheckState::Unchecked and CheckState::Indeterminate. Always return ActionReturn::None.
Set the display state of a window. Can be one of the following values: Return one of the following value: WindowDisplay::Maximised, WindowDisplay::Minimised and WindowDisplay::Normal.
Always return ActionReturn::None.
Set the selected item index in a control with a collection (ex: combobox). If the index is out of bounds, return ActionReturn::Error(constants::Error::INDEX_OUT_OF_BOUNDS)
If the set value is None, remove the currently selected item.
actions::helper::remove_selected() can be used to remove the current item. actions::helper::set_selected_index(i: i32) can be used to set the current item.
Action::SetSelectedIndex(Option<u32>)ActionReturn::None// OKActionReturn::Error(constants::Error)// Index out of bounds
Set the placeholder visible to the user if a control value is blank. Currently, there is a limit of 255 characters for a placeholder. Always return ActionReturn::None.
actions::helper::set_placeholder<S: Into<String>>(s:S) can be used to set a placeholder. actions::helper::remove_placeholder() can be used to remove the current placeholder.
Remove a string item from a control with a collection. The helper actions::helper::remove_string<S: Into<String>>(s: S) can be used.
If the string is not found a ActionReturn::Error(constants::Error::ITEM_NOT_FOUND) is returned.
Action::RemoveString(Box<String>)ActionReturn::NoneActionReturn::Error(constants::Error)// String not found
Return the index of a string within a control with a collection. The helper actions::helper::find_string<S: Into<String>>(s: S) can be used.
If the string is not found a ActionReturn::Error(constants::Error::ITEM_NOT_FOUND) is returned.
Action::FindString(Box<String>)ActionReturn::ItemIndex(u32)// String foundActionReturn::Error(constants::Error)// String not found
Insert a string item at a selected position within a control with a collection. If the index is out of bounds, a ActionReturn::Error(constants::Error::INDEX_OUT_OF_BOUNDS)
is raised othherwise return a ActionReturn::None.
Return the visible text at the designed position in a control with a collection. If the index is out of bounds, a ActionReturn::Error(constants::Error::INDEX_OUT_OF_BOUNDS)
is raised othherwise return a ActionReturn::Text containing the visible text.
Return an item at the specified index in a control with a collection. If the index is out of bounds, return ActionReturn::Error(constants::Error::INDEX_OUT_OF_BOUNDS),
otherwise return ActionReturn::None.
Display a messagebox that block further input to the parent until it is dimissed or accepted.
Always return a ActionReturn::MessageChoice.
It is always a great idea to use the helper: