Syntax
Widget = CreateTitleBar(x, y, Width, Height, Title$="", Flags=#PG_TitleBar_Default)Description
Constructs a fully skinnable window title bar widget, encompassing draggable behavior, an application icon, a title label, and standard system buttons (minimize, maximize, close).
Parameters
x, y, Width, Height
The dimensions and position in DIPs. Usually managed automatically by
grid/flex layout when attached to a window.
Title$ (optional)
The text to display in the title bar.
Flags (optional)
Determines which system buttons are included:
#PG_TitleBar_Minimize#PG_TitleBar_Maximize#PG_TitleBar_Close#PG_TitleBar_Default(Includes all three)
Return Value
Returns the handle of the newly created title bar widget.
Remarks
When using CreateWindow() with
#PG_Window_Default but without the
#PG_Window_System flag, ProGUI internally uses this command
to construct the custom borderless window frame. The buttons internally
respond to OS-specific Aero snapping, double-clicking (for
maximization), and window dragging.
See Also
TitleBarSetTitle, CreateWindow
Supported OS
Windows, Linux