Anzeigeprobleme bei tab

  • Ich hab das Problem das der meinen Tap nicht mehr richtig anzeigt, kann mir jemand helfen?

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <TabConstants.au3>
    #include <WindowsConstants.au3>

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

    #Region ### START Koda GUI section ###
    $INC = GUICreate("INC", 450, 550, 215, 156, $WS_POPUP)
    GUISetIcon("D:\005.ico")
    GUISetFont(10, 400, 0, "Arial")
    GUISetBkColor(0xD2FFCC)
    $Pic1 = GUICtrlCreatePic(@ScriptDir & "\Hintergrund-1.jpg", 0, 0, 450, 550)
    GUICtrlSetState (-1,$GUI_DISABLE)
    $Tab1 = GUICtrlCreateTab(6, 45, 439, 331)
    GuiCtrlSetState(-1,$GUI_ONTOP)
    GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
    $TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
    $Edit1 = GUICtrlCreateEdit("", 11, 70, 431, 302, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_READONLY,$ES_WANTRETURN,$WS_VSCROLL), 0)
    GUICtrlSetData(-1, "Edit1")
    GUICtrlSetBkColor(-1, 0xD2FFCC)
    $TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
    GUICtrlCreateTabItem("")
    $Input1 = GUICtrlCreateInput("Input1", 45, 378, 352, 24, BitOR($ES_CENTER,$ES_AUTOHSCROLL), 0)
    GUICtrlSetBkColor(-1, 0x005F00)
    $Edit2 = GUICtrlCreateEdit("", 9, 405, 434, 113, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_VSCROLL))
    GUICtrlSetData(-1, "Edit2")
    $Button1 = GUICtrlCreateButton("Senden", 369, 520, 75, 25, 0)
    $Button2 = GUICtrlCreateButton("Optionen", 9, 519, 75, 25, 0)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

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

    EndSwitch
    WEnd

    [/autoit]

    mfg. Jam00

  • Hi Jam00,
    ich weiß nicht, warum es so schwer ist die Hilfe (vollständig) zu lesen ;).

    Zitat von Hilfe

    If a picture is set as a background picture, as the other controls will overlap, it's important to disable the pic control and create it after the others controls: GuiCtrlSetState(-1,$GUI_DISABLE). This is not enough for Tab or Listview control which behave differently. In this case you need to create the picture with the $WS_CLIPSIBLINGS style, GuiCtrlSetState(-1,$GUI_ONTOP) is necessary for the Tab or Listview control.

    [autoit]

    $Pic1 = GUICtrlCreatePic(@ScriptDir & "\Hintergrund-1.jpg", 0, 0, 450, 550,$WS_CLIPSIBLINGS)

    [/autoit]

    Das wars :).

    Ansonsten würde es vielleicht jedem gut tun, wenn du bevor du einen Thread erstellst deine englische Rechtschreibung überprüfst, auch wenn du mit Englisch vielleicht (noch) nicht viel zu tun hast hätte dir auffallen können, dass es Tab heißt.

    :)
    (jetzt hab ich in dem Post bestimmt 100 Rechtschreibfehler, die ich übersehen hab :rofl: )

    anno2008