Moin,
wie kann ich von einem GUI-Objekt wieder die Größe auslesen?
Beispielcode:
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 308, 438, 607, 124)
$Button1 = GUICtrlCreateButton("Button1", 40, 240, 225, 97)
$Label1 = GUICtrlCreateLabel("Label1", 48, 64, 212, 129)
GUICtrlSetBkColor(-1, 0x3399FF)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Und nun will ich in einer MsgBox die Abmessungen / Position des Labels und des Buttons haben.
Au3Info kann das - kein Thema - aber wie schaffe ich das? Einen Zeiger auf die Objekte habe ich ja, mir fehlt der Befehl / DLL Aufruf oder sonst etwas ...
Danke
BLinz