Hi,
stehe gerade etwas auf dem Schlauch
Wie kann man die Position von einer mit GUICtrlCreatePic erstelltem Cotroll herausfinden?
Hab schon WinGetPos versucht aber das funktioniert irgenwie nicht richtig.
MfG
Bladerunner
Hi,
stehe gerade etwas auf dem Schlauch
Wie kann man die Position von einer mit GUICtrlCreatePic erstelltem Cotroll herausfinden?
Hab schon WinGetPos versucht aber das funktioniert irgenwie nicht richtig.
MfG
Bladerunner
Zitat
Hab schon WinGetPos versucht aber das funktioniert irgenwie nicht richtig.
WinGetPos ist auch für Fenster gedacht, versuch es mal mit ControlGetPos.
Abgesehen davon: Wieso suchst du nach etwas das du selbst an einer bestimmten Position erzeugt hast?
Das ist doch viel zu aufwendig.
ControlGetPos
[/autoit]Danke das funktioniert schonmal !
Wie kann ich das selbe bei einer GUI machen?
Man kann ja bei WinGetPos keine ControllID angeben.
MfG
Bladerunner
#include <Array.au3>
$hGUI = GUICreate()
$cLabel = GUICtrlCreateLabel("Test",20,20,200,20)
$aCPos = ControlGetPos($hGUI,"",$cLabel)
_Arraydisplay($aCPos)
ZitatWie kann ich das selbe bei einer GUI machen?
Man kann ja bei WinGetPos keine ControllID angeben.
Doch, nur ist es ein Handle und keine ID. Schreib statt dem Fenstertitel einfach dein WinHandle rein, also die Variable die vor GUICreate steht.