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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIERichEdit questions
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jrpcguru

USA
254 Posts

Posted - Oct 17 2021 :  17:19:02  Show Profile  Reply
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.

xequte

38182 Posts

Posted - Oct 17 2021 :  19:13:03  Show Profile  Reply
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
Go to Top of Page

xequte

38182 Posts

Posted - Oct 17 2021 :  20:26:08  Show Profile  Reply
Forgot to mention that spell checking functionality comes from the RichEdit control.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

jrpcguru

USA
254 Posts

Posted - Apr 21 2022 :  06:55:52  Show Profile  Reply
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.
Go to Top of Page

xequte

38182 Posts

Posted - Apr 28 2022 :  22:30:36  Show Profile  Reply
Hi JR

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

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: