Sign in to follow this  
Followers 0
LimeSeed

Guictrlcreateedit?

6 posts in this topic

how could i create a guictrlcreateedit that will not let the enter key make a new line? also is there a way to create an edit with word wrap, like in notepad?


global $warming = true

Share this post


Link to post
Share on other sites



For your first question try GUICtrlCreateInput instead of an edit. For your second question add the style $ES_MULTILINE to your edit:

GUICtrlCreateEdit("blah..", 10, 10, 200, 20, $ES_MULTILINE)


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

For your first question try GUICtrlCreateInput instead of an edit. For your second question add the style $ES_MULTILINE to your edit:

GUICtrlCreateEdit("blah..", 10, 10, 200, 20, $ES_MULTILINE)
about not allowing the enter, i need it to be an edit, so i can use this _GUICtrlEdit_SetLimitText($txt, 160) and some other commands like that, and the $ES_MULTILINE in my edit still doesnt allow word wrap, it scrolls off the edit :-(

global $warming = true

Share this post


Link to post
Share on other sites

about not allowing the enter, i need it to be an edit, so i can use this _GUICtrlEdit_SetLimitText($txt, 160) and some other commands like that, and the $ES_MULTILINE in my edit still doesnt allow word wrap, it scrolls off the edit :-(

This is what I have used to choose either wordwrap or not

If $wordwrap Then
    $edit = GUICtrlCreateEdit($text, $x, $y, $w, $h, BitOR($WS_HSCROLL, $ES_WANTRETURN, $ES_AUTOVSCROLL, $WS_VSCROLL, $ES_MULTILINE, $ES_NOHIDESEL))
Else
    $edit = GUICtrlCreateEdit($text, $x, $y, $w, $h, BitOR($ES_AUTOVSCROLL, $WS_VSCROLL, $ES_MULTILINE, $ES_NOHIDESEL))
EndIf

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

This is what I have used to choose either wordwrap or not

If $wordwrap Then
    $edit = GUICtrlCreateEdit($text, $x, $y, $w, $h, BitOR($WS_HSCROLL, $ES_WANTRETURN, $ES_AUTOVSCROLL, $WS_VSCROLL, $ES_MULTILINE, $ES_NOHIDESEL))
Else
    $edit = GUICtrlCreateEdit($text, $x, $y, $w, $h, BitOR($ES_AUTOVSCROLL, $WS_VSCROLL, $ES_MULTILINE, $ES_NOHIDESEL))
EndIf
thanks that works fine now, but how would i quickly change an inputs state from readonly to not readonly or from disabled to enabled, whenever i change it, it alwasy takes like 20 clicks before i can write in it?

global $warming = true

Share this post


Link to post
Share on other sites

thanks that works fine now, but how would i quickly change an inputs state from readonly to not readonly or from disabled to enabled, whenever i change it, it alwasy takes like 20 clicks before i can write in it?

nvm that was a stupid question!!


global $warming = true

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0