AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

cRichEdit - Standard RichEdit control for AutoHotkey scripts
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
ABCYourWay
Guest





PostPosted: Mon Jun 18, 2007 6:19 pm    Post subject: Reply with quote

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. Laughing
I like your Richedit control!. Thanks.
Back to top
Supercalifragilistic
Guest





PostPosted: Mon Jun 18, 2007 7:45 pm    Post subject: Reply with quote

Splendid control !!!
Do you think you can add a ruler with margin (right, left, indent) and tab stops (right, left, center, decimal point) ?
Thanks
Back to top
corrupt



Joined: 29 Dec 2004
Posts: 2421

PostPosted: Mon Jun 18, 2007 9:23 pm    Post subject: Reply with quote

ABCYourWay - Thanks Smile . I'll add retrieving rtf code to the list.

Supercalifragilistic - Thanks Smile . 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 Smile . 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.
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2421

PostPosted: Mon Jun 18, 2007 9:31 pm    Post subject: Reply with quote

ABCYourWay wrote:
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. Laughing
Laughing 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 Smile .
Back to top
View user's profile Send private message Visit poster's website
Supercalifragilistic
Guest





PostPosted: Tue Jun 19, 2007 3:04 am    Post subject: Reply with quote

corrupt wrote:
Supercalifragilistic - Thanks Smile . 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 corrupt. Very good news.
Back to top
ABCYourWay
Guest





PostPosted: Tue Jun 19, 2007 7:03 am    Post subject: Reply with quote

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.
Back to top
corrupt



Joined: 29 Dec 2004
Posts: 2421

PostPosted: Tue Jun 19, 2007 11:09 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
Abcyourway
Guest





PostPosted: Wed Jun 20, 2007 1:12 pm    Post subject: Reply with quote

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.
Back to top
daonlyfreez



Joined: 16 Mar 2005
Posts: 755
Location: Berlin

PostPosted: Wed Jun 20, 2007 1:13 pm    Post subject: Reply with quote

Great work! Cool
_________________
(sorry, homesite offline atm)
Back to top
View user's profile Send private message
ABCyourway
Guest





PostPosted: Wed Jun 20, 2007 4:03 pm    Post subject: Reply with quote

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 Laughing , I'm just starting to learn, enjoy, and cosume Surprised scripts just as a user.
Thanks again.
Back to top
corrupt



Joined: 29 Dec 2004
Posts: 2421

PostPosted: Wed Jun 20, 2007 4:49 pm    Post subject: Reply with quote

Hmm, I had thought that I had included that with the last update. I probably added it just after. Oops Embarassed . 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 Smile .
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2421

PostPosted: Wed Jun 20, 2007 4:53 pm    Post subject: Reply with quote

ABCyourway wrote:
Everytime I ask you for someting,
I wish I were a good programmer like you.
Not that I am a programmer Laughing , I'm just starting to learn, enjoy, and cosume Surprised scripts just as a user.
Thanks again.
Thanks Smile , but it's mostly trial & error with a lot of patience, over time... Wink . Don't get discouraged. We all have to start somewhere.
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2421

PostPosted: Sun Jun 24, 2007 5:21 am    Post subject: Reply with quote

Updated to version 0.06
  • AutoHotkey v1.0.47 or greater required
  • added: Align (Left, Right, Center)
  • added: ReplaceSel - to insert or replace text at the current position
  • added: GetRTF - to retrieve RTF code for the current selection or contents of the RichEdit control
  • added: an option to cGUI to specify the HWND of the parent control (currently untested)
  • modified: removed dependency on Insert/Extract Integer functions (now uses NumPut, NumGet instead)
  • updated: demo scripts (simple, feature)
  • modified: method used for colour names, minor bug fixes/tweaks
  • more to come soon...
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2421

PostPosted: Sun Jun 24, 2007 5:54 am    Post subject: Reply with quote

daonlyfreez wrote:
Great work! Cool
Thanks Smile
Back to top
View user's profile Send private message Visit poster's website
ABCYourWay
Guest





PostPosted: Sun Jun 24, 2007 8:14 am    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 3 of 6

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group