Sign in to follow this  
Followers 0
qwert

Need RichEdit Implmentation Advice.

3 posts in this topic

I'm trying to implement a basic multiline RTF edit control. I started with the ActiveX approach, using the RichEditExample from the help file. I've had great difficulty trying to add new object parameters to the basic create object tag pool.

With $oRP; Object tag pool

.OLEDrag()

.Font = 'Arial'

.text = "Hello - Au3 supports ActiveX components like the RICHTEXT thanks to SvenP" & @CRLF & 'Try write some text and quit to reload'

;.FileName = @ScriptDir & '\RichText.rtf'

;.BackColor = 0xff00

EndWith

Ones that I'm interested in are:

Indent ... Appearance ... Alignment ... and BorderStyle.

None of the entries I try change the initial displayed result when I run the script. Yet, if I make a syntax error, it's reported as such, so I know they're being parsed.

Numerous searches for help have lead me to the extensive support provided by the GUIRichEdit UDF, which seems entirely separate from the ActiveX approach.

I now admit, I'm confused by the two choices. Which is the best path to take for a basic text edit capability?

I will be grateful if someone with any understanding of both could provide a short explanation of the benefits of each. Also, what is the proper way to add to the Obj Tag Pool?

Thanks in advance for any guidance.

Share this post


Link to post
Share on other sites



Anyone?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

The only border style I see for a RichEdit is ES_SUNKEN. You can implement that by declaring Global $ES_SUNKEN = 0x4000, and adding that to the style when you do _GuiCtrlRichEdit_Create(). It could also be set by changing the style with _WinAPI_SetWindowLong() specifying $GWL_STYLE.

I haven't used the ActiveX method to create a RichEdit control. Can you post a short demo of how you did that without the GuiRichEdit UDF?

:mellow:

Edited 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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0