Article View: borland.public.delphi.opentoolsapi
Article #57Expert is not visible
From: AlexB
Date: Wed, 04 Jun 2008 05:51
Date: Wed, 04 Jun 2008 05:51
47 lines
2066 bytes
2066 bytes
Hi all.
I have a strange problem.
If I install my expert in IDE (right click in progect manager->Install)
I can invoke the expert with click on a specially added 'Tools' menu
item; I see the expert's form and all works like a charm.
But clicking menu (my menu item is still in the right place) doesn't
show the form after restarting of the IDE; IDE caption becomes inactive
but exspert is invisible. It looks like the expert becomes active but
it is offscreen or in wrong Z-order. Now I can start a dummy test
project (expert is still invisible and I can't show it by repeated menu
clicks); but arter finish of the dummy progect the expert becomes
visible and all works like a charm again!
I use the DockingForm example from "Erik's Open Tools API FAQ and
Resources" page (http://www.gexperts.org/opentools/):
unit BaseDockForm;
...
procedure ShowDockableForm(Form: TBaseDockableForm);
begin
if not Assigned(Form) then
Exit;
if not Form.Floating then
begin
Form.ForceShow;
FocusWindow(Form);
end
else
Form.Show;
end;
I've already tried to add
Form.Visible:=true;
Form.BringToFront();
Form.Activate;
in different combination with no luck ...
Can anyone help?
TIA
--
Alex
Technical Details
Message-ID:
<48462d6c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10c3df,63c10f42433cd03e,start X-Google-Attributes: gid10c3df,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "AlexB" <b.a.v@inbox.ru> Subject: Expert is not visible Newsgroups: borland.public.delphi.opentoolsapi User-Agent: XanaNews/1.18.1.6 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 NNTP-Posting-Host: 212.192.185.54 Message-ID: <48462d6c@newsgroups.borland.com> Date: 3 Jun 2008 22:51:40 -0700 X-Trace: newsgroups.borland.com 1212558700 212.192.185.54 (3 Jun 2008 22:51:40 -0700) Lines: 47 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1900