Koda Input Button

  • Hi Leute, ich hab ein kleines Problem. Wenn ich in Koda nen Iput Button beim Gui mache, hat der unten immer so einen komischen Doppelrand :( Kann mir da wer helfen ?

  • Ach verschrieben ^^. Hier einmal der Code :)

    Spoiler anzeigen
    [autoit]


    #Region ### START Koda GUI section ### Form=gui.kxf
    $Form1 = GUICreate("Remote Login", 448, 202, 359, 124)
    $Combo1 = GUICtrlCreateCombo("", 8, 32, 145, 25, BitOR($CBS_SIMPLE,$CBS_AUTOHSCROLL))
    $Label1 = GUICtrlCreateLabel("Benutzername", 8, 8, 73, 17)
    $Label2 = GUICtrlCreateLabel("Passwort", 8, 64, 49, 17)
    $Combo2 = GUICtrlCreateCombo("", 8, 88, 145, 25, BitOR($CBS_SIMPLE,$CBS_AUTOHSCROLL))
    $Button1 = GUICtrlCreateButton("Login ", 8, 120, 145, 25)
    $Edit1 = GUICtrlCreateEdit("", 208, 32, 193, 153, BitOR($GUI_SS_DEFAULT_EDIT,$ES_READONLY))
    ;GUICtrlSetData(-1, "Predefined Text Edit1")
    $Label3 = GUICtrlCreateLabel("Log", 208, 8, 25, 17)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit]


    Das Ganze soll ein Remote Login werden, für ne Webseite von mir. Sozusagen der Desktop Client :) Die EditBox ist dabei das Log Fenster, falls sich wer fragt was die da soll ^^.

  • Ähm... lass doch einfach die Styles (also $CBS_SIMPLE und $CBS_AUTOHSCROLL) weg. Was sollen denn die Styles tun??
    Hab dein Skript mal entsprechend überarbeitet:

    Skript
    [autoit]


    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <EditConstants.au3>
    #Region ### START Koda GUI section ### Form=gui.kxf
    $Form1 = GUICreate("Remote Login", 448, 202, 359, 124)
    $Combo1 = GUICtrlCreateCombo("", 8, 32, 145, 25)
    GUICtrlSetData(-1, "Combobox 1")
    $Label1 = GUICtrlCreateLabel("Benutzername", 8, 8, 73, 17)
    $Label2 = GUICtrlCreateLabel("Passwort", 8, 64, 49, 17)
    $Combo2 = GUICtrlCreateCombo("", 8, 88, 145, 25)
    GUICtrlSetData(-1, "Combobox 2")
    $Button1 = GUICtrlCreateButton("Login ", 8, 120, 145, 25)
    $Edit1 = GUICtrlCreateEdit("", 208, 32, 193, 153, BitOR($GUI_SS_DEFAULT_EDIT,$ES_READONLY))
    ;GUICtrlSetData(-1, "Predefined Text Edit1")
    $Label3 = GUICtrlCreateLabel("Log", 208, 8, 25, 17)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    MsgBox(64,"Remote Login","Hier muss dann deine Funktion hin!")
    EndSwitch
    WEnd

    [/autoit]


    Hab auch noch jeweils ein Item in die Combos hinzugefügt!

    MfG button421

    Meine fertigen Projekte:
    VirtualCash
    Monopoly Digital

    Daran arbeite ich gerade:
    Einem Skript, womit man ohne Programmierkentisse eigene Programme machen kann (habe ich selber früher gesucht :D ) Stand: ||||||||||||||||||||||||| 6%

  • Zitat

    Ähm... lass doch einfach die Styles (also $CBS_SIMPLE und $CBS_AUTOHSCROLL) weg. Was sollen denn die Styles tun??


    Koda fügt diese Styles aus irgendeinem Grund automatisch ein (wharscheinlich weil es so uralt ist und nie geändert wurde). Brauchen tut man sie nicht, aber Koda denkt da halt anders.
    Daher, meint Tipp: Finger weg von Koda! Besonders als Anfänger. Die GUIs (und der Code) sind wesentlich sauberer wenn sie im Script erstellt werden.

  • Öhm, wenn ich den simple style weglasse ist das doch ne dropdown liste oder ? Und ich schreibe auch lieber Code selbst, der einzige Grund warum ich nen Proggi dafür nehme ist, weil ich die Koordinaten nicht so einschätzen kann ^^

  • Öhm, wenn ich den simple style weglasse ist das doch ne dropdown liste oder ?

    Was ja wohl auch gewollt ist wenn man GUICtrlCreateCombo verwendet...
    Wenn du ein simples input Feld willst musst du eben auch ein input erstellen.

    [autoit]


    guictrlcreateinput()

    [/autoit]