Thank you Corrup for the script.
Can you add [ Get RTF Code and Load RTF Code ] functions?
For some reason I want to save several RTF codes in one text file.
But without the Load-Get RTF code functions I have to save each code to as many rtf files 'cause we only have a load RTF File function.
I don't know if it's technically possible.
As you know, IEcontrol allows us directly to load html code(not html file) but Iecontrol is not a htmledit control so we can't edit html code in a WYSIWYG way.
And you already got a hang of richedit control, is htmledit control a tough one for to tackle? I'm sorry if I'm asking too much. :lol:
I like your Richedit control!. Thanks.
cRichEdit - Standard RichEdit control for AutoHotkey scripts
Started by
corrupt
, May 22 2007 04:21 AM
110 replies to this topic
#31
-
Posted 18 June 2007 - 06:19 PM
Splendid control !!!
Do you think you can add a ruler with margin (right, left, indent) and tab stops (right, left, center, decimal point) ?
Thanks
Do you think you can add a ruler with margin (right, left, indent) and tab stops (right, left, center, decimal point) ?
Thanks
#32
-
Posted 18 June 2007 - 07:45 PM
ABCYourWay - Thanks . I'll add retrieving rtf code to the list.
Supercalifragilistic - Thanks . The next minor version (available soon) should contain a few paragraph options (left, center, right) and possibly tab stop options, indent and a few others. The ruler will likely take a little while longer but is on the list.
Thanks for the interest, comments and suggestions . I can't take any credit for the control itself since it's a standard Windows control but adding options for use in AutoHotkey has been interesting so far. After the next few releases I will probably only add additional options as requested. If anyone has any requests then please let me know so that I can add them to the list. If anyone has any code that they would like to see added to the version available for download then please post it here or send me a PM.
Supercalifragilistic - Thanks . The next minor version (available soon) should contain a few paragraph options (left, center, right) and possibly tab stop options, indent and a few others. The ruler will likely take a little while longer but is on the list.
Thanks for the interest, comments and suggestions . I can't take any credit for the control itself since it's a standard Windows control but adding options for use in AutoHotkey has been interesting so far. After the next few releases I will probably only add additional options as requested. If anyone has any requests then please let me know so that I can add them to the list. If anyone has any code that they would like to see added to the version available for download then please post it here or send me a PM.
#33
-
Posted 18 June 2007 - 09:23 PM
:lol: There are probably other people here with more experience with that one but I might consider giving it a try (if someone else doesn't beat me to it) after most of the work on this is complete .And you already got a hang of richedit control, is htmledit control a tough one for to tackle? I'm sorry if I'm asking too much. :lol:
#34
-
Posted 18 June 2007 - 09:31 PM
Thanks corrupt. Very good news.Supercalifragilistic - Thanks . The next minor version (available soon) should contain a few paragraph options (left, center, right) and possibly tab stop options, indent and a few others. The ruler will likely take a little while longer but is on the list.
#35
-
Posted 19 June 2007 - 03:04 AM
To Corrupt.
Hi.
I don't know if I am doing something wrong in my script, but have you ever tried to put Richedit Gui upon Tab control?
At first I thought it wasn't working with Tab control, but I noticed that Richedit control is behind the tab control. I am trying to put a richedit on the 2nd tab.
Other built-in controls are working correctly.
I think Tab control can not contain richedit control within the area.
Can you check it out please?
Thank you.
Hi.
I don't know if I am doing something wrong in my script, but have you ever tried to put Richedit Gui upon Tab control?
At first I thought it wasn't working with Tab control, but I noticed that Richedit control is behind the tab control. I am trying to put a richedit on the 2nd tab.
Other built-in controls are working correctly.
I think Tab control can not contain richedit control within the area.
Can you check it out please?
Thank you.
#36
-
Posted 19 June 2007 - 07:03 AM
To put the control on a tab control you may have to set the tab control as the parent. The current code sets the Gui window as the parent so although the control may be positioned on the tab control initially it's not linked to the tab control in any way. I'll have a look at adding an option. Thanks.
#37
-
Posted 19 June 2007 - 11:09 AM
Yeah, I managed to simulate tab control containing RichEdit using Control command with hide and move option.
Sorry for posting that topic without trying other method myself.
You should concentrate on other major requests from others rather my trivial problems.
Thanks.
Sorry for posting that topic without trying other method myself.
You should concentrate on other major requests from others rather my trivial problems.
Thanks.
#38
-
Posted 20 June 2007 - 01:12 PM
Sorry, Corrupt! Another Request.
Can you add AppendText method?
I just want to add some text programmatically,
not just loading from files!
Everytime I ask you for someting,
I wish I were a good programmer like you.
Not that I am a programmer :lol: , I'm just starting to learn, enjoy, and cosume scripts just as a user.
Thanks again.
Can you add AppendText method?
I just want to add some text programmatically,
not just loading from files!
Everytime I ask you for someting,
I wish I were a good programmer like you.
Not that I am a programmer :lol: , I'm just starting to learn, enjoy, and cosume scripts just as a user.
Thanks again.
#40
-
Posted 20 June 2007 - 04:03 PM
Hmm, I had thought that I had included that with the last update. I probably added it just after. Oops :oops: . An option for adding text along with a few other tweaks will also be available with the next version. Btw, feel free to keep the requests coming .
#41
-
Posted 20 June 2007 - 04:49 PM
Thanks , but it's mostly trial & error with a lot of patience, over time... . Don't get discouraged. We all have to start somewhere.Everytime I ask you for someting,
I wish I were a good programmer like you.
Not that I am a programmer :lol: , I'm just starting to learn, enjoy, and cosume scripts just as a user.
Thanks again.
#42
-
Posted 20 June 2007 - 04:53 PM
Updated to version 0.06
[*:32td97w3]AutoHotkey v1.0.47 or greater required
[*:32td97w3]added: Align (Left, Right, Center)
[*:32td97w3]added: ReplaceSel - to insert or replace text at the current position
[*:32td97w3]added: GetRTF - to retrieve RTF code for the current selection or contents of the RichEdit control
[*:32td97w3]added: an option to cGUI to specify the HWND of the parent control (currently untested)
[*:32td97w3]modified: removed dependency on Insert/Extract Integer functions (now uses NumPut, NumGet instead)
[*:32td97w3]updated: demo scripts (simple, feature)
[*:32td97w3]modified: method used for colour names, minor bug fixes/tweaks
[*:32td97w3]more to come soon...
[*:32td97w3]AutoHotkey v1.0.47 or greater required
[*:32td97w3]added: Align (Left, Right, Center)
[*:32td97w3]added: ReplaceSel - to insert or replace text at the current position
[*:32td97w3]added: GetRTF - to retrieve RTF code for the current selection or contents of the RichEdit control
[*:32td97w3]added: an option to cGUI to specify the HWND of the parent control (currently untested)
[*:32td97w3]modified: removed dependency on Insert/Extract Integer functions (now uses NumPut, NumGet instead)
[*:32td97w3]updated: demo scripts (simple, feature)
[*:32td97w3]modified: method used for colour names, minor bug fixes/tweaks
[*:32td97w3]more to come soon...
#43
-
Posted 24 June 2007 - 05:21 AM
Finally!
At first I was gonna ask you for two functions AppendText and say, ReplaceText but I forgot one!
But you came up with ReplaceSel - Sort of two birds with one stone!
Now I can restart my little script again.
Good to know AutoHotkey, Great to know you. Thanks Corrupt.
At first I was gonna ask you for two functions AppendText and say, ReplaceText but I forgot one!
But you came up with ReplaceSel - Sort of two birds with one stone!
Now I can restart my little script again.
Good to know AutoHotkey, Great to know you. Thanks Corrupt.
#45
-
Posted 24 June 2007 - 08:14 AM