AlexB
2008-06-04 05:51:40 UTC
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
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
Alex