Layout :: Layout - Constructor
Fonts might be used in order to change the current font settings for a control, region or column. Font properties might be retrieved either from the resource database or from a control, region, column or cell.
Font properties might be changed without affecting the GUI resource (control, region, etc.). In order to apply the font to a GUI resource, the font property ( font ) of the corresponding GUI resource has to be set.
In order to get font settings from a GUI resource, the font property of the GUI resource can be provided. In order to read fonts from the resource database, a control context has to be connected to the font ( read() ).
Implementation overview
- Copy constructor
Layout :: Layout ( cLayout ) - Default constructor
Layout :: Layout (  ) - Create layout by name
Layout :: Layout ( sResource )
Implementation details
-
Copy constructor
Layout  :: Layout ( odabagui::Layout &cLayout )
The constructor creates a copy from the layout instance passed in c Layout .
- cLayout
- Constant layout reference
The layout object contains layout information for controls and data items.
to list
- cLayout
- Constant layout reference
-
Default constructor
Layout  :: Layout (  )
The default constructor creates a default layout, which is not linked to a context resource. Without being linked to a context resource, several font functions may cause an exception. The font can be linked to a context object by setting the context by means of the context property.
to list
-
Create layout by name
Layout  :: Layout ( odaba::String &sResource )
The constructor creates the layout from the layout resource passed to the function. sName is the layout name as being defined for the font resource in the ODE Designer.
- sResource
- Name of resoure
"ok_button" // button in the current window
"address.street" // line edit in the address subwindow
".name" // line edit in the upper control (window)
to list
- sResource
- Name of resoure