1 post in this topic
Tell me, please, how to set / change the cursor over RichEdit (created with _GUICtrlRichEdit_Create)?
When presenting a form containing a richedit control, is there any way to make the displayed text, within said richedit control, non-selectable?
In addition, is there any way to hide the vertical line cursor, within said richedit control?
I've finally come up with some simple solutions for dragging & dropping a URL onto a control.
There have been many requests here for this over the years.
I do have an issue though, with my second code example solution as is mentioned here.
The issue relates to working in Win 7 (and no doubt newer Windows).
As I state there, failure is no doubt due to 'MSCOMCT2.OCX' missing from the System32 folder, at the very least.
Not sure if it would be wise to just dump 'MSCOMCT2.OCX' from WinXP into the Win 7 System32 folder. I expect not.
I imagine there is a better solution available in Win 7. Maybe a different OCX file, and perhaps a different Class of object etc.
Any help would be greatly appreciated.
Code is here (second example).
Okay, I have rediscovered that 'MSCOMCT2.OCX' is a VB6 ActiveX control. So while I could dig up a copy and register it, that would probably not be helpful to everyone.
And registering it didn't help. Possibly other dependencies are also needed?
When running the script, it is clear going by the error reported, that Object is not being created.
Please tell me, who knows how to apply and cancel styles in RTF?
The following code does not work:
#include <GuiRichEdit.au3> #include <WindowsConstants.au3> $hGUI = GUICreate("RichEdit Style", 500, 500, -1, -1) $hRichEdit = _GUICtrlRichEdit_Create($hGui, "Test", 20,40,460,400) GUISetState(@SW_SHOW, $hGUI) Sleep(3000) GUICtrlSetStyle($hRichEdit, $ES_RIGHT) Sleep(3000) GUICtrlSetStyle($hRichEdit, -1) Sleep(3000) Thanks!
Could you tell me is there any UDF that can help to highlight syntax in the _GUICtrlRichEdit element on the fly?
Is it possible to implement this feature in script in simple way using some UDF or something, instead of writing thousand of strings manually?
Thanks in advance.