sandin Posted June 18, 2008 Share Posted June 18, 2008 Hi all. I tried to use Input in my script, but input doesn't support SetSel function like edit does - _GUICtrlEdit_SetSel() then I tried to use Edit, but if I use style like to make Edit text centered, then I have limited amount of characters Both of the controls are giving me problems, and both of them doesn't support CTRL+A (select all) hotkey, why is that?, can anyone help? Edit + centered text + no horizontal boundaries, or Input + Select All default text function ...is what I need (with CTRL+A hotkey if it's possible). p.s. I tried with controlfocus, but it doesn't select input's text, it just give me input control over it without selecting any text. Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 18, 2008 Share Posted June 18, 2008 then I have limited amount of characters_GUICtrlEdit_SetLimitText() .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
sandin Posted June 18, 2008 Author Share Posted June 18, 2008 tnx for the tip, I tried but it's still the same... #include <GUIConstants.au3> #include <GuiEdit.au3> $Form1 = GUICreate("Form1", 246, 74, 193, 125) $Edit1 = GUICtrlCreateEdit("", 8, 16, 100, 17, $ES_CENTER) _GUICtrlEdit_SetLimitText($Edit1, 999) GUICtrlSetData(-1, "Some Text Goes here") GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
Valuater Posted June 18, 2008 Share Posted June 18, 2008 #include <GUIConstants.au3> #include <GuiEdit.au3> $Form1 = GUICreate("Form1", 246, 74, 193, 125) $Edit1 = _GUICtrlEdit_Create($Form1, "", 8, 16, 100, 17, $ES_CENTER) _GUICtrlEdit_SetLimitText($Edit1, 999) GUICtrlSetData(-1, "Some Text Goes here") GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd 8) Link to comment Share on other sites More sharing options...
NELyon Posted June 18, 2008 Share Posted June 18, 2008 #include <GUIConstants.au3> #include <GuiEdit.au3> $Form1 = GUICreate("Form1", 246, 74, 193, 125) $Edit1 = _GUICtrlEdit_Create($Form1, "", 8, 16, 100, 17, $ES_CENTER) _GUICtrlEdit_SetLimitText($Edit1, 999) GUICtrlSetData(-1, "Some Text Goes here") GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd 8) It does seem that built-in functions and GUI UDF functions don't mix well. Link to comment Share on other sites More sharing options...
Valuater Posted June 18, 2008 Share Posted June 18, 2008 It does seem that built-in functions and GUI UDF functions don't mix well.yea, I had to learn that one by trial and error too!8) Link to comment Share on other sites More sharing options...
sandin Posted June 19, 2008 Author Share Posted June 19, 2008 tnx for the help though it's still limited to edit's width... Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
NELyon Posted June 19, 2008 Share Posted June 19, 2008 tnx for the help though it's still limited to edit's width... Set the style to $ES_AUTOHSCROLL. Link to comment Share on other sites More sharing options...
sandin Posted June 19, 2008 Author Share Posted June 19, 2008 tnx for the help! Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll 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