• Welcome to Theos PowerBasic Museum 2017.

Font Changes

Started by Scott Slater, March 18, 2010, 01:41:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Herman Kieskamp

#15
Ok, so for that I have to use the wm_setfont as normal, but I will have to do it after the skinning,
because winlift does not sample the controls(read: asses font and sizes) after creating the editbox I noticed.
I just thought you had built-in sk-commands for easy access and adjustment after skinning,without disturbing
layout rules for skin.

Herman.

[edited later]
Ok just read the manual where it says the above mentioned command works exclusively for label and button.

Does it also only work at creation time? because I cant seem to change a label on the fly.


Patrice Terrier

#16
skSkinChildControl

To skin a new child control on the fly, it is to be used AFTER the initial call to skInitEngine.


SUB skSkinChildControl ( _
BYVAL hCtrl AS LONG,         ' The main window handle.
BYVAL RedrawFlag AS LONG _   ' Redraw boolean flag.   
)


Set the RedrawFlag to TRUE if you want to force an immediate redraw of the child control.


See also:
skSkinDisable, skSkinEnable, skSkinWindowUpdate


See also the Custom controls section within the CHM help file.
and skSetLabelFont
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Herman Kieskamp

Correction, the command is  : skSkinChildCtrl
skSkinChildControl is unknown function, I noticed after getting a error, and reading the inc file.
Although your help file also names it skskinchildcontrol.
Its a bit confusing, please either change chm file or inc file to reflect the correct syntax.

Herman.