Graphics

  • Hey liebe Gemeinde,

    Ich schreibe gerade ein Script wo ich gerne oben so eine Diskette und nen Ordner zum durchsuchen,... haben möchte. Doch was ist das in Koda. Was fur ein Element muss ich da einfügen.

    Ich möchte einfach oben so eine leiste, wie z.B. auch in Koda, wenn ich auf die Diskette klicke, wird es gespeichert, und sw.

    Danke euch :)

    Tim


    PS: Worry wenn cih mich etwas unverständlich ausgedrückt habe. Hier noch ein Bild:

    [Blockierte Grafik: http://i.imagehost.org/0860/fff.png]

    • Offizieller Beitrag

    Habe ich doch geschrieben: ImageIndex
    Du mußt später im Code eine ImageList erstellen. Die dort zugefügten Images haben einen Index (0 fortlaufend). Und den betreffenden setzt du dort ein.

    NB. Für solche GUI-Elemente ist Koda nicht sonderlich geeignet, gerade weil das notwendige "Drumherum" nicht mit erstellt wird.
    Schau in die entsprechende UDF in der Hilfe zu Toolbar, da findest du auch Beispiele.

  • Also, ich habe nun eine ImageList erstelt, und da die Shell32.dll eingebunden.
    Nun habe ich die ganzen Icons durchnummeriert.
    Wenn ich nun bei der Toolbar so einen Button anklicke, und dort für ImageIndex die Zahl angebe, z.B. 3, dann wird aber immernoch kein Icon angezeigt.

    Woran liegt das, oder was habe ich vergessen ?

    mfg Tim

    Edit: Zuspät :)
    DANKE dir

  • Habe in Koda nun fertig designed. Nun wünsche ich mir, das ich in die toolbar noch ein Ordner Symbol zum öffnen, eine Diskette zum Speichern, und ein X zum verwerfen habe. Doch, weis ich nicht, wie ich eine Passene Imagelist einfüge. Ich habe mit das Beispiel in den UDF´s angeschaut, doch blicke ich noch nicht ganz hinter denen Ihr Konzept.

    DANKE

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <GuiToolbar.au3>
    #include <StaticConstants.au3>
    #include <ToolbarConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=c:\users\user\desktop\easyshowcreator\128-step.kxf
    $Step = GUICreate("Step", 670, 675, 199, 129, BitOR($WS_MAXIMIZEBOX,$WS_MINIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_SYSMENU,$WS_CAPTION,$WS_OVERLAPPEDWINDOW,$WS_TILEDWINDOW,$WS_POPUP,$WS_POPUPWINDOW,$WS_GROUP,$WS_TABSTOP,$WS_BORDER,$WS_CLIPSIBLINGS))
    $Input1 = GUICtrlCreateInput("Input1", 68, 80, 57, 21)
    $Input2 = GUICtrlCreateInput("Input1", 68, 120, 57, 21)
    $Input3 = GUICtrlCreateInput("Input1", 68, 160, 57, 21)
    $Input4 = GUICtrlCreateInput("Input1", 68, 200, 57, 21)
    $Input5 = GUICtrlCreateInput("Input1", 68, 240, 57, 21)
    $Input6 = GUICtrlCreateInput("Input1", 68, 280, 57, 21)
    $Input7 = GUICtrlCreateInput("Input1", 68, 320, 57, 21)
    $Input8 = GUICtrlCreateInput("Input1", 68, 360, 57, 21)
    $Input9 = GUICtrlCreateInput("Input1", 68, 400, 57, 21)
    $Input10 = GUICtrlCreateInput("Input1", 68, 440, 57, 21)
    $Input11 = GUICtrlCreateInput("Input1", 68, 480, 57, 21)
    $Input12 = GUICtrlCreateInput("Input1", 68, 520, 57, 21)
    $Input13 = GUICtrlCreateInput("Input1", 428, 80, 57, 21)
    $Input14 = GUICtrlCreateInput("Input1", 428, 120, 57, 21)
    $Input15 = GUICtrlCreateInput("Input1", 428, 160, 57, 21)
    $Input16 = GUICtrlCreateInput("Input1", 428, 200, 57, 21)
    $Input17 = GUICtrlCreateInput("Input1", 428, 240, 57, 21)
    $Input18 = GUICtrlCreateInput("Input1", 428, 280, 57, 21)
    $Input19 = GUICtrlCreateInput("Input1", 428, 320, 57, 21)
    $Input20 = GUICtrlCreateInput("Input1", 428, 360, 57, 21)
    $Input21 = GUICtrlCreateInput("Input1", 428, 400, 57, 21)
    $Input22 = GUICtrlCreateInput("Input1", 428, 440, 57, 21)
    $Input23 = GUICtrlCreateInput("Input1", 428, 480, 57, 21)
    $Input24 = GUICtrlCreateInput("Input1", 428, 520, 57, 21)
    $Input25 = GUICtrlCreateInput("Input25", 244, 80, 57, 21)
    $Input26 = GUICtrlCreateInput("Input25", 244, 120, 57, 21)
    $Input27 = GUICtrlCreateInput("Input25", 244, 200, 57, 21)
    $Input28 = GUICtrlCreateInput("Input25", 244, 280, 57, 21)
    $Input29 = GUICtrlCreateInput("Input25", 244, 400, 57, 21)
    $Input30 = GUICtrlCreateInput("Input25", 244, 360, 57, 21)
    $Input31 = GUICtrlCreateInput("Input25", 244, 160, 57, 21)
    $Input32 = GUICtrlCreateInput("Input25", 244, 240, 57, 21)
    $Input33 = GUICtrlCreateInput("Input25", 244, 320, 57, 21)
    $Input34 = GUICtrlCreateInput("Input25", 244, 520, 57, 21)
    $Input35 = GUICtrlCreateInput("Input25", 244, 440, 57, 21)
    $Input36 = GUICtrlCreateInput("Input25", 244, 480, 57, 21)
    $Input37 = GUICtrlCreateInput("Input25", 604, 80, 57, 21)
    $Input38 = GUICtrlCreateInput("Input25", 604, 120, 57, 21)
    $Input39 = GUICtrlCreateInput("Input25", 604, 200, 57, 21)
    $Input40 = GUICtrlCreateInput("Input25", 604, 280, 57, 21)
    $Input41 = GUICtrlCreateInput("Input25", 604, 400, 57, 21)
    $Input42 = GUICtrlCreateInput("Input25", 604, 360, 57, 21)
    $Input43 = GUICtrlCreateInput("Input25", 604, 160, 57, 21)
    $Input44 = GUICtrlCreateInput("Input25", 604, 240, 57, 21)
    $Input45 = GUICtrlCreateInput("Input25", 604, 320, 57, 21)
    $Input47 = GUICtrlCreateInput("Input25", 604, 440, 57, 21)
    $Input48 = GUICtrlCreateInput("Input25", 604, 480, 57, 21)
    $Label1 = GUICtrlCreateLabel("Kanal 1", 12, 80, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label2 = GUICtrlCreateLabel("Kanal 2", 12, 120, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label3 = GUICtrlCreateLabel("Kanal 3", 12, 160, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label4 = GUICtrlCreateLabel("Kanal 4", 12, 200, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label5 = GUICtrlCreateLabel("Kanal 5", 12, 240, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label6 = GUICtrlCreateLabel("Kanal 6", 12, 280, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label7 = GUICtrlCreateLabel("Kanal 7", 12, 320, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label8 = GUICtrlCreateLabel("Kanal 9", 12, 400, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label9 = GUICtrlCreateLabel("Kanal 8", 12, 360, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label10 = GUICtrlCreateLabel("Kanal 10", 12, 440, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label11 = GUICtrlCreateLabel("Kanal 11", 12, 480, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label12 = GUICtrlCreateLabel("Kanal 12", 12, 520, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label13 = GUICtrlCreateLabel("Kanal 13", 364, 80, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label14 = GUICtrlCreateLabel("Kanal 14", 364, 120, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label15 = GUICtrlCreateLabel("Kanal 15", 364, 160, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label16 = GUICtrlCreateLabel("Kanal 16", 364, 200, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label17 = GUICtrlCreateLabel("Kanal 17", 364, 240, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label18 = GUICtrlCreateLabel("Kanal 18", 364, 280, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label19 = GUICtrlCreateLabel("Kanal 19", 364, 320, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label20 = GUICtrlCreateLabel("Kanal 21", 364, 400, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label21 = GUICtrlCreateLabel("Kanal 20", 364, 360, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label22 = GUICtrlCreateLabel("Kanal 22", 364, 440, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label23 = GUICtrlCreateLabel("Kanal 23", 364, 480, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label24 = GUICtrlCreateLabel("Kanal 24", 364, 520, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label25 = GUICtrlCreateLabel("Verzögerung", 164, 80, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label26 = GUICtrlCreateLabel("Verzögerung", 164, 120, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label27 = GUICtrlCreateLabel("Verzögerung", 164, 160, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label28 = GUICtrlCreateLabel("Verzögerung", 164, 200, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label29 = GUICtrlCreateLabel("Verzögerung", 164, 240, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label30 = GUICtrlCreateLabel("Verzögerung", 164, 280, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label31 = GUICtrlCreateLabel("Verzögerung", 164, 320, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label32 = GUICtrlCreateLabel("Verzögerung", 164, 360, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label33 = GUICtrlCreateLabel("Verzögerung", 164, 400, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label34 = GUICtrlCreateLabel("Verzögerung", 164, 440, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label35 = GUICtrlCreateLabel("Verzögerung", 164, 480, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label36 = GUICtrlCreateLabel("Verzögerung", 164, 520, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label37 = GUICtrlCreateLabel("Verzögerung", 524, 80, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label38 = GUICtrlCreateLabel("Verzögerung", 524, 120, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label39 = GUICtrlCreateLabel("Verzögerung", 524, 160, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label40 = GUICtrlCreateLabel("Verzögerung", 524, 200, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label41 = GUICtrlCreateLabel("Verzögerung", 524, 240, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label42 = GUICtrlCreateLabel("Verzögerung", 524, 280, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label43 = GUICtrlCreateLabel("Verzögerung", 524, 320, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label44 = GUICtrlCreateLabel("Verzögerung", 524, 360, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label45 = GUICtrlCreateLabel("Verzögerung", 524, 400, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label46 = GUICtrlCreateLabel("Verzögerung", 524, 440, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label47 = GUICtrlCreateLabel("Verzögerung", 524, 480, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Edit1 = GUICtrlCreateEdit("", 12, 568, 649, 97)
    GUICtrlSetData(-1, "Edit1")
    GUICtrlSetResizing(-1, $GUI_DOCKAUTO+$GUI_DOCKHCENTER)
    $ToolBar1 = _GUICtrlToolbar_Create($Step, 0)
    _GUICtrlToolbar_AddButton($ToolBar1, 0, 3)
    _GUICtrlToolbar_AddButton($ToolBar1, 0, 1)
    _GUICtrlToolbar_AddButton($ToolBar1, 0, 2)
    $Scharf = GUICtrlCreateButton("Step / PC", 88, 32, 105, 33, $WS_GROUP)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    $Pic1 = GUICtrlCreatePic("C:\Users\User\Desktop\EasyShowCreator\grün.jpg", 208, 32, 33, 33, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Button1 = GUICtrlCreateButton("Zündung / Start", 456, 32, 105, 33, $WS_GROUP)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

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

    Case $Input2
    Case $Input8
    Case $Input14
    Case $Input20
    Case $Label28
    Case $Label40
    Case $Scharf
    Case $Button1
    EndSwitch
    WEnd

    [/autoit]


    Edit: Ich habe das beispiel nochmal Studiert, und habe soweit die Funktionen für mein Skript übernommen, doch klappt es einfach nicht. Ich habe die Namen soweit abgeändert, doch bekomme ich ständig Fehlermeldungen.

    Edit2, So sieht mein Skript nun aus, ich kann es öffnen aber meine Toolbar ist weg !

    Spoiler anzeigen
    [autoit]

    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <GuiImageList.au3>
    #include <GuiToolbar.au3>
    #include <ImageListConstants.au3>
    #include <StaticConstants.au3>
    #include <ToolbarConstants.au3>
    #include <WindowsConstants.au3>

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

    Local $Step, $Toolbar1
    Local Enum $idNew = 1000, $idOpen, $idSave, $idHelp


    #Region ### START Koda GUI section ### Form=c:\users\user\desktop\easyshowcreator\128-step.kxf
    $Step = GUICreate("Step", 670, 675, 199, 129, BitOR($WS_MAXIMIZEBOX,$WS_MINIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_SYSMENU,$WS_CAPTION,$WS_OVERLAPPEDWINDOW,$WS_TILEDWINDOW,$WS_POPUP,$WS_POPUPWINDOW,$WS_GROUP,$WS_TABSTOP,$WS_BORDER,$WS_CLIPSIBLINGS))
    $Input1 = GUICtrlCreateInput("Input1", 68, 80, 57, 21)
    $Input2 = GUICtrlCreateInput("Input1", 68, 120, 57, 21)
    $Input3 = GUICtrlCreateInput("Input1", 68, 160, 57, 21)
    $Input4 = GUICtrlCreateInput("Input1", 68, 200, 57, 21)
    $Input5 = GUICtrlCreateInput("Input1", 68, 240, 57, 21)
    $Input6 = GUICtrlCreateInput("Input1", 68, 280, 57, 21)
    $Input7 = GUICtrlCreateInput("Input1", 68, 320, 57, 21)
    $Input8 = GUICtrlCreateInput("Input1", 68, 360, 57, 21)
    $Input9 = GUICtrlCreateInput("Input1", 68, 400, 57, 21)
    $Input10 = GUICtrlCreateInput("Input1", 68, 440, 57, 21)
    $Input11 = GUICtrlCreateInput("Input1", 68, 480, 57, 21)
    $Input12 = GUICtrlCreateInput("Input1", 68, 520, 57, 21)
    $Input13 = GUICtrlCreateInput("Input1", 428, 80, 57, 21)
    $Input14 = GUICtrlCreateInput("Input1", 428, 120, 57, 21)
    $Input15 = GUICtrlCreateInput("Input1", 428, 160, 57, 21)
    $Input16 = GUICtrlCreateInput("Input1", 428, 200, 57, 21)
    $Input17 = GUICtrlCreateInput("Input1", 428, 240, 57, 21)
    $Input18 = GUICtrlCreateInput("Input1", 428, 280, 57, 21)
    $Input19 = GUICtrlCreateInput("Input1", 428, 320, 57, 21)
    $Input20 = GUICtrlCreateInput("Input1", 428, 360, 57, 21)
    $Input21 = GUICtrlCreateInput("Input1", 428, 400, 57, 21)
    $Input22 = GUICtrlCreateInput("Input1", 428, 440, 57, 21)
    $Input23 = GUICtrlCreateInput("Input1", 428, 480, 57, 21)
    $Input24 = GUICtrlCreateInput("Input1", 428, 520, 57, 21)
    $Input25 = GUICtrlCreateInput("Input25", 244, 80, 57, 21)
    $Input26 = GUICtrlCreateInput("Input25", 244, 120, 57, 21)
    $Input27 = GUICtrlCreateInput("Input25", 244, 200, 57, 21)
    $Input28 = GUICtrlCreateInput("Input25", 244, 280, 57, 21)
    $Input29 = GUICtrlCreateInput("Input25", 244, 400, 57, 21)
    $Input30 = GUICtrlCreateInput("Input25", 244, 360, 57, 21)
    $Input31 = GUICtrlCreateInput("Input25", 244, 160, 57, 21)
    $Input32 = GUICtrlCreateInput("Input25", 244, 240, 57, 21)
    $Input33 = GUICtrlCreateInput("Input25", 244, 320, 57, 21)
    $Input34 = GUICtrlCreateInput("Input25", 244, 520, 57, 21)
    $Input35 = GUICtrlCreateInput("Input25", 244, 440, 57, 21)
    $Input36 = GUICtrlCreateInput("Input25", 244, 480, 57, 21)
    $Input37 = GUICtrlCreateInput("Input25", 604, 80, 57, 21)
    $Input38 = GUICtrlCreateInput("Input25", 604, 120, 57, 21)
    $Input39 = GUICtrlCreateInput("Input25", 604, 200, 57, 21)
    $Input40 = GUICtrlCreateInput("Input25", 604, 280, 57, 21)
    $Input41 = GUICtrlCreateInput("Input25", 604, 400, 57, 21)
    $Input42 = GUICtrlCreateInput("Input25", 604, 360, 57, 21)
    $Input43 = GUICtrlCreateInput("Input25", 604, 160, 57, 21)
    $Input44 = GUICtrlCreateInput("Input25", 604, 240, 57, 21)
    $Input45 = GUICtrlCreateInput("Input25", 604, 320, 57, 21)
    $Input47 = GUICtrlCreateInput("Input25", 604, 440, 57, 21)
    $Input48 = GUICtrlCreateInput("Input25", 604, 480, 57, 21)
    $Label1 = GUICtrlCreateLabel("Kanal 1", 12, 80, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label2 = GUICtrlCreateLabel("Kanal 2", 12, 120, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label3 = GUICtrlCreateLabel("Kanal 3", 12, 160, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label4 = GUICtrlCreateLabel("Kanal 4", 12, 200, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label5 = GUICtrlCreateLabel("Kanal 5", 12, 240, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label6 = GUICtrlCreateLabel("Kanal 6", 12, 280, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label7 = GUICtrlCreateLabel("Kanal 7", 12, 320, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label8 = GUICtrlCreateLabel("Kanal 9", 12, 400, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label9 = GUICtrlCreateLabel("Kanal 8", 12, 360, 40, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label10 = GUICtrlCreateLabel("Kanal 10", 12, 440, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label11 = GUICtrlCreateLabel("Kanal 11", 12, 480, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label12 = GUICtrlCreateLabel("Kanal 12", 12, 520, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label13 = GUICtrlCreateLabel("Kanal 13", 364, 80, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label14 = GUICtrlCreateLabel("Kanal 14", 364, 120, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label15 = GUICtrlCreateLabel("Kanal 15", 364, 160, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label16 = GUICtrlCreateLabel("Kanal 16", 364, 200, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label17 = GUICtrlCreateLabel("Kanal 17", 364, 240, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label18 = GUICtrlCreateLabel("Kanal 18", 364, 280, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label19 = GUICtrlCreateLabel("Kanal 19", 364, 320, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label20 = GUICtrlCreateLabel("Kanal 21", 364, 400, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label21 = GUICtrlCreateLabel("Kanal 20", 364, 360, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label22 = GUICtrlCreateLabel("Kanal 22", 364, 440, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label23 = GUICtrlCreateLabel("Kanal 23", 364, 480, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label24 = GUICtrlCreateLabel("Kanal 24", 364, 520, 46, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label25 = GUICtrlCreateLabel("Verzögerung", 164, 80, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label26 = GUICtrlCreateLabel("Verzögerung", 164, 120, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label27 = GUICtrlCreateLabel("Verzögerung", 164, 160, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label28 = GUICtrlCreateLabel("Verzögerung", 164, 200, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label29 = GUICtrlCreateLabel("Verzögerung", 164, 240, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label30 = GUICtrlCreateLabel("Verzögerung", 164, 280, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label31 = GUICtrlCreateLabel("Verzögerung", 164, 320, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label32 = GUICtrlCreateLabel("Verzögerung", 164, 360, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label33 = GUICtrlCreateLabel("Verzögerung", 164, 400, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label34 = GUICtrlCreateLabel("Verzögerung", 164, 440, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label35 = GUICtrlCreateLabel("Verzögerung", 164, 480, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label36 = GUICtrlCreateLabel("Verzögerung", 164, 520, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label37 = GUICtrlCreateLabel("Verzögerung", 524, 80, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label38 = GUICtrlCreateLabel("Verzögerung", 524, 120, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label39 = GUICtrlCreateLabel("Verzögerung", 524, 160, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label40 = GUICtrlCreateLabel("Verzögerung", 524, 200, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label41 = GUICtrlCreateLabel("Verzögerung", 524, 240, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label42 = GUICtrlCreateLabel("Verzögerung", 524, 280, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label43 = GUICtrlCreateLabel("Verzögerung", 524, 320, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label44 = GUICtrlCreateLabel("Verzögerung", 524, 360, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label45 = GUICtrlCreateLabel("Verzögerung", 524, 400, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label46 = GUICtrlCreateLabel("Verzögerung", 524, 440, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Label47 = GUICtrlCreateLabel("Verzögerung", 524, 480, 64, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $Edit1 = GUICtrlCreateEdit("", 12, 568, 649, 97)
    GUICtrlSetData(-1, "Edit1")
    GUICtrlSetResizing(-1, $GUI_DOCKAUTO+$GUI_DOCKHCENTER)

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

    Func _Main()

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

    $ToolBar1 = _GUICtrlToolbar_Create($Step)
    GUISetState()

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

    _GUICtrlToolbar_AddBitmap($Toolbar1, 1, -1, $IDB_STD_LARGE_COLOR)

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

    ; Fügt die Buttons hinzu
    _GUICtrlToolbar_AddButton($Toolbar1, $idNew, $STD_FILENEW)

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

    ; Die Schleife wiederholt sich, bis der Benutzer die Beenden-Aktion der GUI auslöst
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE

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

    EndFunc ;==>_Main

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

    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

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

    Case $Input2
    Case $Input8
    Case $Input14
    Case $Input20
    Case $Label28
    Case $Label40
    EndSwitch
    WEnd

    [/autoit] [autoit][/autoit] [autoit][/autoit]
    • Offizieller Beitrag

    Ein großer Nachteil von Koda ist die sinnlose Code-Erzeugung.
    Was du machst geht mit ein paar Codezeilen in einer Schleife. Hab es mal schnell angepaßt.
    Mein Tipp: Laß Koda Koda sein und benutze deinen Kopf. Geht schneller und ist effektiver. ;)

    Spoiler anzeigen
    [autoit]

    #include <GuiToolbar.au3>
    #include <GuiConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <Constants.au3>

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

    Local $Step, $Toolbar1
    Local Enum $idNew = 1000, $idOpen, $idSave, $idHelp

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

    #Region ### START Koda GUI section ### Form=c:\users\user\desktop\easyshowcreator\128-step.kxf
    $Step = GUICreate("Step", 670, 675, 199, 129, BitOR($WS_MAXIMIZEBOX,$WS_MINIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_SYSMENU,$WS_CAPTION,$WS_OVERLAPPEDWINDOW,$WS_TILEDWINDOW,$WS_POPUP,$WS_POPUPWINDOW,$WS_GROUP,$WS_TABSTOP,$WS_BORDER,$WS_CLIPSIBLINGS))

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

    Local $aInput[48], $aLabel[48]
    Local $x = 74, $y = 80, $x1 = 12, $s

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

    For $i = 1 to 48
    $s = "Kanal " & $i
    If $i > 24 Then $s = "Verzögerung"
    If $i = 13 Then
    $x1 = 364
    $x = 428
    $y = 80
    ElseIf $i = 25 Then
    $x1 = 164
    $x = 244
    $y = 80
    ElseIf $i = 37 Then
    $x1 = 524
    $x = 604
    $y = 80
    EndIf
    $aInput[$i-1] = GUICtrlCreateInput("Input" & $i, $x, $y, 57, 21)
    $aLabel[$i-1] = GUICtrlCreateLabel($s, $x1, $y, 60, 17)
    GUICtrlSetResizing(-1, $GUI_DOCKHEIGHT)
    $y += 40
    Next

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

    $Edit1 = GUICtrlCreateEdit("", 12, 568, 649, 97)
    GUICtrlSetData(-1, "Edit1")
    GUICtrlSetResizing(-1, $GUI_DOCKAUTO+$GUI_DOCKHCENTER)

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

    $ToolBar1 = _GUICtrlToolbar_Create($Step)
    GUISetState()

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

    _GUICtrlToolbar_AddBitmap($Toolbar1, 1, -1, $IDB_STD_LARGE_COLOR)

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

    _GUICtrlToolbar_AddButton($Toolbar1, $idNew, $STD_FILENEW)

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

    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    If BitAND(_GUICtrlToolbar_GetButtonState($ToolBar1, $idNew), $TBSTATE_PRESSED) = $TBSTATE_PRESSED Then
    MsgBox(0, '', 'Toolbar "New" geklickt')
    ; hier den zugehörigen Code einfügen
    EndIf
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

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

    EndSwitch
    WEnd

    [/autoit]