fenster im fenster

  • 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

  • hilfe lesen hilft ;)


    schau dir doch mal das zweite Beispiel zu Guicreate an....


    grez

  • Meinst du so was?

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

    [/autoit] [autoit][/autoit] [autoit]

    Opt("GUICoordMode", 2)
    GUICreate ("My InputBox",190,114,-1,-1,$WS_SIZEBOX+$WS_SYSMENU) ; start the definition

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    ;GUICtrlCreateLabel ("Prompt", 8,7) ; add prompt info
    ;GUICtrlSetResizing (-1,$GUI_DOCKLEFT+$GUI_DOCKTOP)

    [/autoit] [autoit][/autoit] [autoit]

    $nEdit = GUICtrlCreateLabel ("Default", 160,0,30,114) ; add the input area
    GUICtrlSetBkColor(-1,0xFF0000)
    GUICtrlSetResizing ($nEdit,$GUI_DOCKBOTTOM+$GUI_DOCKTOP+$GUI_DOCKWIDTH)

    [/autoit] [autoit][/autoit] [autoit]

    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

    [/autoit]
  • hi


    [autoit]

    ; 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)

    [/autoit][autoit][/autoit][autoit]

    ; 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)

    [/autoit][autoit][/autoit][autoit]

    Do
    $msg = GUIGetMsg()

    [/autoit][autoit][/autoit][autoit]

    Until $msg = $GUI_EVENT_CLOSE
    EndFunc ;==>Example2

    [/autoit]