Solved

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

Posted on 2014-07-29
7
322 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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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
Course of the Month4 days, 13 hours left to enroll

636 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