int par1, par2, par3, par4; ApplSet( mode, par1, par2, par3, par4);Usage of par1, par2, par3 and par4 depends on mode value. The following table lists the different mode of ApplSet(). Each mode matches one or more variables inside the WinDom Configuration file. Correspondance with these variables are printer under the mode name. The DEFVAL value does not change the value. For example :
/* Set only the color of string objects */ ApplSet( APS_STRSTYLE, DEFVAL, DEFVAL, RED);
Mode/Variable | Description | Parameters |
APS_ICONSIZE | Set the window icon | par1 = icon width |
windom.iconify | size. | par2 = icon height |
APS_FLAG | Set the application | par1 = flags. Flags are: |
flags. | ||
par1 = Bit to set/unset | ||
par2 = TRUE/FALSE | ||
Possible bits are : | ||
windom.evnt.button | FLG_KEYMOUSE keybord event | |
on mouse | ||
windom.evnt.keybd | FLG_BUTMOUSE mouse event | |
on mouse | ||
no variable | FLG_NOPAL disable color | |
palette handling | ||
windom.menu.scroll | FLG_MNSCRL enable menu | |
scroller widget | ||
no variable | FLG_NOKEYMENU disable menu | |
shortcuts handling | ||
windom.fsel.fslx | FLG_NOMGXFSEL disable MagiC | |
file selector. | ||
APS_WINBG | Set the window | par1 = VDI color index |
windom.window.bg | background style. | par2 = VDI type of pattern |
par3 = VDI style index | ||
APS_KEYCOLOR | Set the color of | par1 = VDI color index |
windom.shortcut | keyboards shortcut. | |
APS_STRSTYLE | Set the style of | par1 = GDOS font id |
windom.string | string object. | par2 = font size |
par3 = VDI color index | ||
APS_BUTSTYLE | Set the style of | as APS_STRSTYLE |
windom.button | BUTTON object. | |
APS_EXITSTYLE | Set the style of | as APS_STRSTYLE |
windom.exit | EXIT object. | |
APS_TITLESTYLE | Set the style of | as APS_STRSTYLE |
windom.menu | TITLE object. | |
APS_3DEFFECT | Control object 3D | par1 = windom.relief.color |
windom.relief | effect. | par2 = windom.relief.mono |
APS_MENUEFFECT | Control the flashing | par1 = windom.menu.effect |
windom.menu | effect of window | |
menu selection. | ||
APS_BUBBLESTYLE | Set the style of | par1 = GDOS font id |
windom.bubble | bubble help. | par2 = font size |
APS_POPUPSTYLE | Set the style of | par1 = background AES color index |
windom.popup | menu popup. | par2 = border AES color index |
par3 = frame AES color index | ||
par4 = background AES style index | ||
APS_POPUPWIND | Use menu popup window | par1 = TRUE/FALSE |
windom.popup | ||
APS_WINDOWS | General window | par1 = window/dialog centering |
windom.window | parameters. | Possible values are : |
CENTER center in screen | ||
WMOUSE center on mouse position | ||
UP_RIGHT upper right screen corner | ||
UP_LEFT upper left screen corner | ||
DN_RIGHT down right screen corner | ||
DN_LEFT down left screen corner | ||
FCENTER center with form_center() | ||
par2 = grafic effect when open and | ||
close window (TRUE/FALSE) | ||
par3 = window wigdet of modal | ||
dialog (as in WindCreate()). |