?
Solved

Delphi 7 On Windows 7 Using Woll2woll 1st Class Component Spell checker

Posted on 2014-07-29
7
Medium Priority
?
340 Views
Last Modified: 2015-02-19
Hello,

I am using Delphi 7 on Windows 7 and am having problems with spell checker using woll2woll 1st Class component

What is happening is when I right click on the editor and select the spell checker, you get the egg timer and it seems nothing is happeninng, In reality, the spell checker is hidden behing the screen.

I dynamically create an editor:-

NewEditor:TwwDBRichEditMSWord;

I use following to display the spell checker:-

NewEditor.PopupOptions:=[rpoPopupEdit, rpoPopupCut, rpoPopupCopy, rpoPopupPaste,  rpoPopupBold, rpoPopupItalic, rpoPopupUnderline, rpoPopupFont,
rpoPopupBullet, rpoPopupFind, rpoPopupReplace, rpoPopupMSWordSpellCheck  ];

NewEditor.EditorOptions:=NewEditor.EditorOptions+[reoNoConfirmation];

NewEditor.EditorOptions:=NewEditor.EditorOptions-[reoShowInsertObject];

NewEditor.OnChange:=EditorChanged;

There has got to be a way of catching the onclick event for the spell specker and getting the spell checker to display on front.
0
Comment
Question by:GaryVernon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 27

Accepted Solution

by:
Sinisa Vuk earned 2000 total points
ID: 40226559
I had similar problem - and is common on win 7 - dialog hidden behind main form.
you need to force to move in front dialog using FindWindow (to get window handle)
and win api to normalize windows - this might help you:

...
procedure SwitchToThisWindow(h1: hWnd; x: bool); stdcall; external user32 Name 'SwitchToThisWindow';
...
Application.NormalizeTopMosts;
SwitchToThisWindow(win_hndl, True);
....

Open in new window

0
 

Author Comment

by:GaryVernon
ID: 40226760
Thanks for that.

I only want to do this when the user selects spell checker from the popup menu.

so how can I invoke your code if only if that event occurs.

There is no coding inolved. I just set the popup options:-

NewEditor.PopupOptions:=[rpoPopupEdit, rpoPopupCut, rpoPopupCopy, rpoPopupPaste,  rpoPopupBold, rpoPopupItalic, rpoPopupUnderline, rpoPopupFont,
 rpoPopupBullet, rpoPopupFind, rpoPopupReplace, rpoPopupMSWordSpellCheck  ];
0
 
LVL 27

Expert Comment

by:Sinisa Vuk
ID: 40228471
It will be very good to contact W2W to fix that then...

So, there is no event like OnSpellCheckPopup or similar?
0
 

Author Comment

by:GaryVernon
ID: 40228556
thanks for your help. Have tried to contact W2W but no reply

thanks
0
 
LVL 27

Expert Comment

by:Sinisa Vuk
ID: 40228562
That's why I don't like third part sw. It makes time to build own stuff - but in a long term.... very acceptable
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
How many times a day do you open, acknowledge, or close an IT incident? What’s your process? Do you have a process depending on the incident, systems involved, and other factors? New Relic Alerts gives you options for how you interact with notifica…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question