|
Styling help
Real API_Styling_SetTransparent (Real Control ID, Real Enable Transparency);
This function enables (set argument1 to 1) or disables (set argument1 to 0) control transparency.
Transparent controls use the brush of the parent window relative to the position of the control as their background.
Return value:
Always returns 1.
Real API_Styling_PrepareFont (Real Font Weight,Real Is Italic, Real Is Underlined, Real Character Set, Real Quality);
This function sets extra options for the font before you call API_Styling_SetAutoFont or API_Styling_SetFont.
Argument list:
Argument0: Font Weight:
Specifies the boldness of the font, you can use one of these constants:
FW_DONTCARE |
0 |
FW_THIN |
100 |
FW_EXTRALIGHT |
200 |
FW_ULTRALIGHT |
200 |
FW_LIGHT |
300 |
FW_NORMAL |
400 |
FW_REGULAR |
400 |
FW_MEDIUM |
500 |
FW_SEMIBOLD |
600 |
FW_DEMIBOLD |
600 |
FW_BOLD |
700 |
FW_EXTRABOLD |
800 |
FW_ULTRABOLD |
800 |
FW_HEAVY |
900 |
FW_BLACK |
900 |
A normal font weight is 400.
Argument1: Is Italic:
Set this to 1 to make the font italic and 0 to make it not.
Argument2: Is Underlined:
Set this to 1 to make the font underlined and 0 to make it not.
Argument3: Character set:
Use one of these constants:
ANSI_CHARSET
BALTIC_CHARSET
CHINESEBIG5_CHARSET
DEFAULT_CHARSET
EASTEUROPE_CHARSET
GB2312_CHARSET
GREEK_CHARSET
HANGUL_CHARSET
MAC_CHARSET
OEM_CHARSET
RUSSIAN_CHARSET
SHIFTJIS_CHARSET
SYMBOL_CHARSET
TURKISH_CHARSET
VIETNAMESE_CHARSET
JOHAB_CHARSET
ARABIC_CHARSET
HEBREW_CHARSET
THAI_CHARSET
Set this argument to 0 to use the default.
Argument4: Font Quality:
ANTIALIASED_QUALITY Windows NT 4.0 and later: Font is antialiased, or smoothed, if the font supports it and the size of the font is not too small or too large.
CLEARTYPE_QUALITY Windows XP: If set, text is rendered (when possible) using ClearType antialiasing method.
DEFAULT_QUALITY Appearance of the font does not matter.
DRAFT_QUALITY Appearance of the font is less important than when the PROOF_QUALITY value is used.
NONANTIALIASED_QUALITY Windows 95 with Plus!, Windows 98/Me, Windows NT 4.0 and later: Font is never antialiased, that is, font smoothing is not done.
PROOF_QUALITY Character quality of the font is more important than exact matching of the logical-font attributes.
Return value:
Always returns 1.
Real API_Styling_SetFont (Real Control ID,String Font Name, Real Font Size);
This function sets the font for a control.
Return value:
Returns true (1) when succesful, and false (0) when failed.
Real API_Styling_SetAutoFont (Real Enabled, String Font Name,Real Font Size);
This function enables or disables auto font.
All controls created after setting the auto font will have this font.
Return value:
Returns true (1) when succesful, and false (0) when failed.
Real API_Styling_SetBackBitmap (Real Control ID, Real Bitmap Resource Handle);
This function puts a bitmap on the background of a control.
To load a bitmap from a file, use API_Resource_LoadBitmap.
Return value:
Returns true (1) when succesful, and false (0) when failed.
Real API_Styling_SetBackColor (Real Control ID, Real Color);
This function changes the background color of a control.
Return value:
Returns true (1) when succesful, and false (0) when failed.
Real API_Styling_SetAutoTransparency (Real Enable);
This function enables or disables auto transparency.
All controls created after enabling auto transparency are automatically made transparent.
Return value:
Always returns 1.
Real API_Styling_SetAutoColor (Real Enable, Real Color);
This function enables or disables an auto background color.
All controls created after enabling an auto background color are automatically colored.
Return value:
Always returns 1.
Real API_Styling_SetAutoBrush (Real Enable, Real Brush Handle)
This function enables or disables an auto background brush.
All controls created after enabling an auto background brush are automatically brushed.
Return value:
Always returns 1.
Real API_Styling_SetTextColor (Real Window handle, Real Color) ;
This function changes the text color of a control.
Return value:
Always returns 1;
Real API_Styling_UseGameWindow (Real Control ID, Real Is Enabled) ;
This function enables (argument1 is 1) or disables (argument1 is 0) game window support.
When game window support is enabled, the
Return value:
Always returns 1;
Return to help index
|
|