au3scr Posted December 16, 2008 Share Posted December 16, 2008 Does someone know why my Edit control no longer accept enter key?As we all know if you press enter in edit control it should bring you to next line but in my source it's not happening. How I can make enter work again? I made my script more simple and added here: #include <EditConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <GuiEdit.au3> #include <GuiConstantsEx.au3> #Region ### START Koda GUI section ### Form= $Form1_1 = GUICreate("title", @DesktopWidth * 0.8 , @DesktopHeight *0.8, 150, 120) $Edit1 = GUICtrlCreateEdit("", 3, 19, @DesktopWidth * 0.8 - 3 , @DesktopHeight *0.8 -70,BitOR($ES_AUTOVSCROLL, $WS_VSCROLL, $ES_MULTILINE, $WS_HSCROLL, $ES_NOHIDESEL)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE If $nMsg[1]=$Form1_1 Then Exit GUIDelete($nMsg[1]) EndSwitch WEnd Link to comment Share on other sites More sharing options...
KaFu Posted December 16, 2008 Share Posted December 16, 2008 (edited) Upsa, too fast, sry... Edited December 16, 2008 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
PsaltyDS Posted December 16, 2008 Share Posted December 16, 2008 (edited) Does someone know why my Edit control no longer accept enter key?As we all know if you press enter in edit control it should bring you to next line but in my source it's not happening. How I can make enter work again? I made my script more simple and added here: ; ...<snip> $Edit1 = GUICtrlCreateEdit("", 3, 19, @DesktopWidth * 0.8 - 3 , @DesktopHeight *0.8 -70, _ BitOR($ES_AUTOVSCROLL, $WS_VSCROLL, $ES_MULTILINE, $WS_HSCROLL, $ES_NOHIDESEL)) ; ...<snip> Just add $ES_WANTRETURN to your styles for the control. Edited December 16, 2008 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
au3scr Posted December 16, 2008 Author Share Posted December 16, 2008 (edited) well$Form1_1 = GUICreate("title", @DesktopWidth * 0.8 , @DesktopHeight *0.8, 150, 120) $Edit1 = GUICtrlCreateEdit("", 3, 19, @DesktopWidth * 0.8 - 3 , @DesktopHeight *0.8 -70,$WS_HSCROLL) Also dont allow edit to accept enter I tested that onlyGUICtrlCreateEdit("", 3, 19, @DesktopWidth * 0.8 - 3 , @DesktopHeight *0.8 -70Works but I need To use Styles and ExStyle(s)and about 10 minutes ago my original source worked perfectly + no warnings at all.And I didnt change this part of my script.It seems like bug , but I am not sure.Thanks PsaltyDS Edited December 16, 2008 by au3scr Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now