- Offizieller Beitrag
Welchen Sinn macht eine zweite GUI, wenn sie immer sichtbar ist?
Dann reicht es doch, wenn du die Elemente der GUI auf der Main GUI platzierst und nur optisch abtrennst.
Welchen Sinn macht eine zweite GUI, wenn sie immer sichtbar ist?
Dann reicht es doch, wenn du die Elemente der GUI auf der Main GUI platzierst und nur optisch abtrennst.
hi
er hat sein problem doch geschildert...er will nicht, dass sich die controls 'falsch' verschieben(zumindest hab ich das so verstanden ) da müsste man wohl die eigenschaften der controls beim vergrößern ändern...wie ging das ncohmal?
grez
Mit GUICtrlSetResizing() kann man es "festnageln"
hilfe lesen hilft
schau dir doch mal das zweite Beispiel zu Guicreate an....
grez
Meinst du so was?
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]Opt("GUICoordMode", 2)
GUICreate ("My InputBox",190,114,-1,-1,$WS_SIZEBOX+$WS_SYSMENU) ; start the definition
;GUICtrlCreateLabel ("Prompt", 8,7) ; add prompt info
;GUICtrlSetResizing (-1,$GUI_DOCKLEFT+$GUI_DOCKTOP)
$nEdit = GUICtrlCreateLabel ("Default", 160,0,30,114) ; add the input area
GUICtrlSetBkColor(-1,0xFF0000)
GUICtrlSetResizing ($nEdit,$GUI_DOCKBOTTOM+$GUI_DOCKTOP+$GUI_DOCKWIDTH)
GUISetState () ; to display the GUI
[/autoit] [autoit][/autoit] [autoit]; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
hi
; example 2
Func Example2()
Local $gui, $background, $pic, $basti_stay, $msg
Local $sFile = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir") & "\Examples\GUI\logo4.gif"
$gui = GUICreate("Background", 400, 100)
; background picture
$background = GUICtrlCreatePic(@SystemDir & "\oobe\images\mslogo.jpg", 0, 0, 400, 100)
GUISetState(@SW_SHOW)
; transparent child window
$pic = GUICreate("", 169, 68, 0, 0, $WS_POPUP, $WS_EX_LAYERED + $WS_EX_MDICHILD, $gui)
; transparent pic
$basti_stay = GUICtrlCreatePic($sFile, 0, 0, 169, 68)
GUISetState(@SW_SHOW)
Do
$msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE
EndFunc ;==>Example2