Madza91 Posted November 11, 2008 Posted November 11, 2008 (edited) I add in RichEdit.au3 this: If Not IsDeclared("E_INVALIDARG") THen Global Const $E_INVALIDARG = 0x80070057 EndIf And again same error... and than put Include in first line and get this: C:\Program Files\AutoIt3\Include\ImageListConstants.au3(10,41) : ERROR: $E_INVALIDARG previously declared as a 'Const' Global Const $E_INVALIDARG = 0x80070057 Than I added what you said to ImageListConstants.au3 and again, same error... Edit: How to create RichEdit in Tab? Edited November 12, 2008 by n3nE [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)
ivan Posted November 11, 2008 Posted November 11, 2008 This is great, no further comments! Thanks. IVAN Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3
ProgAndy Posted November 12, 2008 Author Posted November 12, 2008 @n3nE: There are 2 errors1) Au3Check lists this error -> it says POSSIBLY, becuase of the If Not Isdeclared, it can't determine, when this will be declared. Running Script should be fine 2) The error is from AutoIt.exe -> Then it is a real declaration error.Btw. This constant is not used from me, and the user won't need it. Just remove it I#ll do that in the next version, too. *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
Madza91 Posted November 14, 2008 Posted November 14, 2008 Okay... Btw, how i can create RichEdit without edges? [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)
ProgAndy Posted November 14, 2008 Author Posted November 14, 2008 the edges are included in standard style. To use remove them, just set the parameter v_styles to 0 *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
Madza91 Posted November 16, 2008 Posted November 16, 2008 Hi again, why is Hiding of Richedit so sloooow?! :S i have a few RichEdit's, and I hide it and show it with tabs, and there are very sloooow... why?! :S [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)
ProgAndy Posted November 17, 2008 Author Posted November 17, 2008 I can't change this... This is a problem of the control itself, i think. But you can try, if this works faster: ControlHide($h_RichEdit,"","") ControlShow($h_RichEdit,"","") *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
Madza91 Posted November 20, 2008 Posted November 20, 2008 Work Ok now... One more question Is possible to detect double click on RichEdit? [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)
ProgAndy Posted November 21, 2008 Author Posted November 21, 2008 (edited) To detect double clicks, you have to subclass the RichEdit. But if you only wanat to detect click on Links, it should work this way: Case $iCode = $EN_LINK Local $ENLINK = DllStructCreate($tagENLINK,$ilParam) Local $Link_Msg = DllStructGetData($ENLINK,4) If $Link_Msg = $WM_LBUTTONDBLCLK Then MsgBox(0, '', "DblClick") Edited November 21, 2008 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
Madza91 Posted December 11, 2008 Posted December 11, 2008 Hi again, can you made func for removing RichEdit? Because if delete it with WinClose or some similar func memory usage will be rising! [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)
ProgAndy Posted December 11, 2008 Author Posted December 11, 2008 (edited) try this: _WinAPI_DestroyWindow($h_richedit) are there other possibilities to to it? //Edit: if this works as expected , I'll add it Edited December 11, 2008 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
Madza91 Posted December 11, 2008 Posted December 11, 2008 I tried that too, and unfortunately it doesn't work... [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)
ProgAndy Posted December 11, 2008 Author Posted December 11, 2008 (edited) well, i think thats the only possibility. in AHK it's done the same way... I will add it in the next version anyway, but why do you need it? Edited December 11, 2008 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
Madza91 Posted December 11, 2008 Posted December 11, 2008 For my IRC Client... In it you can open and close query/channel window countless times, and I made it perfectly, but when use Client a little longer time, Memory Usage will bigger and bigger... because of RichEdit... [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)
sandin Posted December 11, 2008 Posted December 11, 2008 I'm using your richedit input, and it's great!, but how can I set it as focused control? I tried controlfocus and winactivate, neither worked 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
Josbe Posted December 11, 2008 Posted December 11, 2008 I'm using your richedit input, and it's great!, but how can I set it as focused control? I tried controlfocus and winactivate, neither worked This works for me. $sTitle= "Rich Edit Example" WinActivate($sTitle) ControlFocus($sTitle, '', "RICHEDIT50W1") AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
sandin Posted December 11, 2008 Posted December 11, 2008 huh, strange, not even controlhide works for me =(, am I missing something? #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GuiRichEdit.au3> $Form1 = GUICreate("Form1", 448, 81, 193, 125) $Input1 = _GUICtrlRichEdit_CreateInput($Form1, 8, 8, 385, 21, BitOR($WS_CHILD, $WS_VISIBLE, $ES_AUTOHSCROLL), $WS_EX_CLIENTEDGE) $button_show = GUICtrlCreateButton("SHOW", 8, 35) $button_hide = GUICtrlCreateButton("HIDE", 200, 35) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $button_show ;~ WinSetState($Input1, "", @SW_SHOW) ControlShow($Input1, "", "") Case $button_hide ;~ WinSetState($Input1, "", @SW_HIDE) ControlHide($Input1, "", "") 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
wraithdu Posted December 11, 2008 Posted December 11, 2008 (edited) am I missing something?Well, lots actually. First, your syntax of ControlHide() is wrong. The first parameter is the title or window handle or the window that owns the control, the second param is some text in that window (if you need to use it; not necessary if using a window handle), and the third param is some designation of the control you want to interact with. See the helpfile for possible values for this parameter. So it's gonna be something like this, assuming the correct control ClassNN - ControlHide($Form1, "", "RICHEDIT50W1") Edited December 11, 2008 by wraithdu
sandin Posted December 11, 2008 Posted December 11, 2008 Well, lots actually. First, your syntax of ControlHide() is wrong. The first parameter is the title or window handle or the window that owns the control, the second param is some text in that window (if you need to use it; not necessary if using a window handle), and the third param is some designation of the control you want to interact with. See the helpfile for possible values for this parameter. So it's gonna be something like this, assuming the correct control ClassNN - ControlHide($Form1, "", "RICHEDIT50W1")oÝ÷ Ûú®¢×°zYm+"³Z´úè ÝÊÆ¢vêå neither worked. 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
sandin Posted December 11, 2008 Posted December 11, 2008 Your example showed me what I wanted to know, tnx =) P.S. sorry for double post (EDIT POST show some hieroglyphes instead of my post) 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
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