ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIERichEdit questions

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
jrpcguru Posted - Oct 17 2021 : 17:19:02
The Help file documents a variety of keyboard shortcuts for TIERichEdit. It does not mention the following:

Ctrl+1 Line spacing = 1 line.
Ctrl+2 Line spacing = 2 lines.
Ctrl+5 Line spacing = 1.5 lines.

It also does not show a constant for each of these shortcuts that I could use to suppress them via code similar to this:
IEGlobalSettings().KeyboardShortcuts[ iesSelectAll ] := 0

Your help file says that TIERichEdit supports RichEdit 3.0 and your website says RichEdit 8.0?

Using the demo program, I turned on the spell checking, so it now displays the red squiggly line under a misspelled word. However, the right click menu is weird. I've documented it in this attached file:




I'm wondering what spell check system is being used. I'm guessing it is provided in all Win 10 installations?

J.R.
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 28 2022 : 22:30:36
Hi JR

You can email me for an update that makes disabling TIERichEdit.KeyboardShortcuts more extensive.

Nigel
Xequte Software
www.imageen.com
jrpcguru Posted - Apr 21 2022 : 06:55:52
I've finally returned to this issue with the following results:

I am using the demo: Demos\Other\RichEdit\RichEdit.dpr I want to turn off certain keyboard shortcuts in TIERichEdit and ImageEn 10.3.5. If I use
Editor.KeyboardShortcuts := false;
That turns off Bold, Italic, and Underline, but does not turn off clipboard shortcut keys. The actual keys that I want to turn off are LeftAlign, Center, Justify, and RightAlign, are not turned off, either. I haven't found a way to do so. I searched for any explicit short cuts set for your buttons and found none. No shortcuts are listed on your PopupMenuAuto either. I turned that off but still got these shortcut keys. And I removed irbRichEditAlignment from your popupmenu and still got these shortcut keys. I've tried the suggestions in the Help file with no affect either:
IEGlobalSettings().KeyboardShortcuts[ iesLeftAlign ] := 0;
IEGlobalSettings().KeyboardShortcuts[ iesRightAlign ] := 0;
Editor.KeyboardShortcuts := false;
I also find that if I turn on KeyboardShortcuts and try to turn off iesCut, that does not work.
And, if I turn off KeyboardShortcuts, Ctrl + I then appears to delete selected text since Italics has been turned off.

In my own program, using the following does nothing to turn off those shortcutkeys:
Editor.KeyboardShortcuts := false;
IEGlobalSettings().KeyboardShortcuts[ iesLeftAlign ] := 0;
IEGlobalSettings().KeyboardShortcuts[ iesCenterAlign ] := 0;
IEGlobalSettings().KeyboardShortcuts[ iesRightAlign ] := 0;
IEGlobalSettings().KeyboardShortcuts[ iesJustified ] := 0;

The good news: KeyboardShortcuts := false; does turn off Ctrl+1/2/5 for line spacing. But there seems to be no way to individually turn those shortcuts off, still. At this point I've decided to keep those shortcuts, so I'm just reporting the facts.

Fortunately, I do find it possible to override these shortcut keys by setting them as shortcuts on various other menu options.


J.R.
xequte Posted - Oct 17 2021 : 20:26:08
Forgot to mention that spell checking functionality comes from the RichEdit control.

Nigel
Xequte Software
www.imageen.com
xequte Posted - Oct 17 2021 : 19:13:03
Hi JR

Thanks for the report.

If you enable spell checking, please disable the auto-popup menu:

procedure TMainForm.btnSpellCheckingClick(Sender: TObject);
begin
  // Show squiggly lines under misspelled words?
  Editor.SpellChecking := btnSpellChecking.Down;
  Editor.PopupMenuAuto := not Editor.SpellChecking;
end;


This will happen automatically for the next release. Also, we will disable the line spacing shortcuts if KeyboardShortcuts=False and updated the documentation.



Nigel
Xequte Software
www.imageen.com