Functions | |
void | MEnableCustomizing (void) |
char * | MGetStringOption (const char *obj_name, const char *opt_name) |
char * | MGetTextOption (const char *obj_name) |
int | MGetIntOption (const char *obj_name, const char *opt_name, int *ret) |
int | MGetFontOption (const char *obj_name, MTFont *ret) |
int | MGetBGColorOption (const char *obj_name, int *pr, int *pg, int *pb) |
int | MGetFGColorOption (const char *obj_name, int *pr, int *pg, int *pb) |
int | MGetShadowOption (const char *obj_name, int *shadow, int *i_t, int *o_t) |
void | MSetStringOption (const char *obj_name, const char *opt_name, const char *text) |
void | MSetTextOption (const char *obj_name, const char *text) |
void | MSetIntOption (const char *obj_name, const char *opt_name, int val) |
void | MSetFontOption (const char *obj_name, MTFont font) |
void | MSetBGColorOption (const char *obj_name, int r, int g, int b) |
void | MSetFGColorOption (const char *obj_name, int r, int g, int b) |
void | MSetShadowOption (const char *obj_name, int shadow, int in_t, int out_t) |
void | MSaveOptions (void) |
|
This function enables the run-time resource changing dialog. You can set object properties as font, color, text and shadow using a run-time dialog window. If MEnableCustomizing() in your program, then pressing the right mouse button while holding down both Shift and Ctlr keys on an enabled object, the customizing dialog is open. The object must be enabled by calling the MEnableOptions() function, specifying the object name and the properties you want to be able to change at run-time. Via the customizing dialog you can optionally save the changes made in the application's resource file.
|
|
Retrieves a Background Color option from the resource database. A Background Color option is stored in the application or the MGUI resource files using 'background' as the option name.
|
|
Retrieves a Foreground Color option from the resource database. A Foreground Color option is stored in the application or the MGUI resource files using 'foreground' as the option name.
|
|
Retrieves a Font option from the resource database. A Font option is stored in the application or the MGUI resource files using an option named "font". Only the following fonts are currently supported:
|
|
Retrieves an integer option from the resource database. The integer option is identified by two names: the object name and the option name. Both names are free, the application can retrieve integer options manually defined in the application and the MGUI resource files or stored previously (in the application resource file) via MSaveOptions .
|
|
Retrieves a Shadow option from the resource database. A Shadow option is stored in the application or the MGUI resource files using an option named "shadow".
|
|
Retrieves a generic string option from the resource database. The string option is identified by two names: the object name and the option name. Both names are free, the application can retrieve string options manually defined in the application or the MGUI resource files or stored (in the application resource file) via MSaveOptions .
|
|
Retrieves a text option from the resource database. The text option is identified by only one name: the object name. A text option is stored in the application or the MGUI resource files using an option named "text".
|
|
Saves in the application's resource file all defined options. The file is entirely rewritten using option values read at startup from the same file and all options eventually defined at run time using:
|
|
Stores a Background Color option in the resource database. A Background Color option is stored in the application or the MGUI resource files using an option named "background". The RGB values 'r', 'g', and 'b' are stored as the color definition.
|
|
Stores a Foreground Color option in the resource database. A Foreground Color option is stored in the application or the MGUI resource files using an option named "foreground". The RGB values 'r', 'g', and 'b' are stored as the color definition.
|
|
Stores a Font option in the resource database. A Font option is stored in the application or the MGUI resource files using an option named "font". Only the following fonts are currently supported:
|
|
Stores an integer option in the resource database. The integer option is identified by two names: the object name and the option name. Both names are free, the application can store integer options manually defining them in the application or the MGUI resource files or via MSaveOptions (in the application resource file only).
|
|
Stores a Shadow option in the resource database. A Shadow option is stored in the application or the MGUI resource files using an option named "shadow". The Shadow values are stored in the database using the variables 'shadow', 'in_t' and 'out_t' (respectively: 'shadow type', 'internal thickness' and 'out thickness').
|
|
Stores a generic string option in the resource database. The string option is identified by two names: the object name and the option name. Both names are free, the application can store string options manually defining them in the application or the MGUI resource files or via MSaveOptions (in the application resource file only). The value is stored in a new allocated buffer.
|
|
Stores a text option in the resource database. The text option is identified by only one name: the object name. A text option is stored in the application or the MGUI resource files using an option named "text". The value is stored in a new allocated buffer.
|