Hi,
just a short question:
Is it possible to get the GuiCtrlCreateLabel Font Attributes?
i.e.: I have a GuiCtrlCreateLabel that i have formated with GuiCtrlSetFont. My question is, is it possible to "readout" the give Fontsize, and Weight later in a script?
thx for you help
cu.
Zetup-EXE
Something like this?
#Include <Array.au3>
#Include <FontConstants.au3>
#Include <WinAPI.au3>
#Include <WindowsConstants.au3>
GUICreate('MyGUI', 300, 200)
$Label = GUICtrlCreateLabel('Simple Text', 20, 40, 100, 22)
GUICtrlSetFont(-1, 12, 700, 2 + 4, 'Tahoma')
GUISetState(@SW_SHOW)
$aFont = GUICtrlGetFont($Label)
_ArrayDisplay($aFont)
Do
Until GUIGetMsg() = -3
#cs
[0] - Size
[1] - Weight
[2] - Attribute
[3] - Name
[4] - Quality
#ce
Func GUICtrlGetFont($CtrlID)