The GroupEx.au3
can be used to create a custom group control. It consists of a set of labels. This allows an individual design of title, background and border or border parts.
v 0.14
_GuiCtrlGroup_Create | Creates a group control as collection of labels. Returns a structure with IDs and settings of all group elements. |
_GuiCtrlGroup_Close | Starts a new group and so the previous group will closed. Only required, if outside the group radio buttons following. But it can used to close each group. |
_GuiCtrlGroup_Set | Changes values of a _GuiCtrlGroup_Create() created control. What to do is determined by the action flag passed. For moving, an array of controls can be passed that will be moved along with it. |
_GuiCtrlGroup_SetState | Changes the state of a _GuiCtrlGroup_Create() created control. ($GUI_SHOW, $GUI_HIDE, $GUI_ENABLE, $GUI_DISABLE) An array of controls in the group can be passed, and their status will be set as well. |
See the GroupsEx_Example.au3
file for how it is applied.
BORDER COLOR SETTINGS | |
$_GROUPBORDER_LEFT | Left border |
$_GROUPBORDER_TOPL | Top border left from title |
$_GROUPBORDER_TOPR | Top border right from title |
$_GROUPBORDER_TOP | Top border (_TOPL & _TOPR) |
$_GROUPBORDER_RIGHT | Right border |
$_GROUPBORDER_BOTTOM | Bottom border |
$_GROUPBORDER_ALL | Full border (all border parts) |
TEXT SETTINGS | |
$_GROUPTEXT_FORE | Sets text fore color. |
$_GROUPTEXT_BACK | Sets text BG-color, should be $GUI_BKCOLOR_TRANSPARENT (default), if Group BG-color is diffent to GUI BG-color or same as Group BG-color. |
$_GROUPTEXT_TRANS | Sets text BG-color to $GUI_BKCOLOR_TRANSPARENT |
$_GROUPTEXT_TEXT | Sets the title text |
$_GROUPTEXT_ITALIC | Sets text style to italic |
$_GROUPTEXT_DEFAULT | Sets text style back to normal |
$_GROUPTEXT_LEFT | Sets text position to left side (default) |
$_GROUPTEXT_CENTER | Sets text position centered |
$_GROUPTEXT_RIGHT | Sets text position to right side |
BACKGROUND COLOR GROUP | |
$_GROUPBACKGROUND | Sets BG-color inside border area |
MOVE / SIZE THE GROUP | |
$_GROUP_MOVE_ABS | Give param as array [x,y,width,height], values that should not change set to '*'. You can also give values as comma seperated string: "x,y,width,height". y,width,height by default has value '*', so you can omit them if not need to change. (values absolute in the child window) |
$_GROUP_MOVE_REL | Same as before, but given values relative to current position/size |