Fenster ohne Rand

  • kann man Edit Boxen ohne Rande erstellen??? hab kein passendes Style gefunden

    Einmal editiert, zuletzt von prestige (18. August 2008 um 11:34)

  • Hi,
    ich weis zwar net ob ich das tichtig verstanden habe was du suchst aber ich gebe mir ja mühe.
    Hier mal 2 Beispiele

    Beispiel1: Edit-Box-readonly ohne Rand

    Spoiler anzeigen
    [autoit]


    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Edit_Box_readonly_ohne_Rand = GUICreate("Edit_Box_readonly_ohne_Rand", 337, 166, 193, 115)
    $Edit1 = GUICtrlCreateEdit("Ich bin eine EditBox readonly und ohne Rand", 56, 32, 217, 89, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_READONLY), 0)
    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]

    EndSwitch
    WEnd

    [/autoit]

    Beispiel2: Edit-Box ohne Rand

    Spoiler anzeigen
    [autoit]


    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Edit_Box_readonly_ohne_Rand = GUICreate("Edit_Box_readonly_ohne_Rand", 337, 166, 193, 115)
    $Edit1 = GUICtrlCreateEdit("Ich bin eine EditBox readonly und ohne Rand", 56, 32, 217, 89, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL), 0)
    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]

    EndSwitch
    WEnd

    [/autoit]

    Den Rand machten die "ExStyles" der Wert "WS_EX_Clientedge" muss auf "0" stehen. Das ist der Wert der nach BitOrd hinter den Klammern durch ein Komma getrennt ist.

    Weis aber net ob du das gesucht hast.

    MfG
    Der_Doc