Solved

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

Posted on 2014-07-29
7
264 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
  • 3
  • 2
7 Comments
 
LVL 25

Accepted Solution

by:
Sinisa Vuk earned 500 total points
Comment Utility
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
Comment Utility
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 25

Expert Comment

by:Sinisa Vuk
Comment Utility
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
Comment Utility
thanks for your help. Have tried to contact W2W but no reply

thanks
0
 
LVL 25

Expert Comment

by:Sinisa Vuk
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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.

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now