🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.opentoolsapi
7 messages
7 total messages Started by Christian Wilkerson Thu, 06 Mar 2008 04:58
Problem with registering dockable form in desktop
#139
Author: Christian Wilkerson
Date: Thu, 06 Mar 2008 04:58
36 lines
1850 bytes
A long time ago Gerrit Beuze posted the following message, but no one ever
replied.  Well, I have the exact same issue, except with D2006.  So I'm
wondering how this turned out or what the work around is.


Hi all,

I have a problem with registering a DockForm.TDockableForm descendant in a
desktop (D7)
I have do the same for ModelMaker Code Explorer and there it works #%^&$!
After analyzing the problem (see below) it seems that my window IS created,
but Visible state of the windows handle and VCL form are out of sync:
Form.Visible = True
IsWindowVisible(Handle) = False


Any one an idea what might be causing this?
Details below.


Thanks in advance


Gerrit Beuze
ModelMaker Tools



I also would like to offer my thanks in advance.

-- 
Christian Wilkerson
Home made country music
@ http://www.myspace.com/christianwilkersonmusic

And now with Blog!
Re: Problem with registering dockable form in desktop
#140
Author: Gerrit Beuze
Date: Thu, 06 Mar 2008 06:50
14 lines
1481 bytes
Hello Christian,

>A long time ago Gerrit Beuze posted the following message, but no one ever
> replied.  Well, I have the exact same issue, except with D2006.  So I'm
> wondering how this turned out or what the work around is.

Situation is still the same. No real work arounds.
Work around = make sure you have your form visible in *all* desktop files
including project desktops. Even if it is just hidden in a tab somewhere.
You might need to delete (temp rename?) exsiting ide + project desktops
and restart from scratch.

Gerrit Beuze
ModelMaker Tools
Re: Problem with registering dockable form in desktop
#141
Author: Christian Wilkerson
Date: Thu, 06 Mar 2008 15:29
36 lines
2275 bytes
"Gerrit Beuze" <gerrit[at][-nospam]modelmakertools[dot]com> wrote in message 
news:47cf9449@newsgroups.borland.com...
> Hello Christian,
>
>>A long time ago Gerrit Beuze posted the following message, but no one ever
>> replied.  Well, I have the exact same issue, except with D2006.  So I'm
>> wondering how this turned out or what the work around is.
>
> Situation is still the same. No real work arounds.
> Work around = make sure you have your form visible in *all* desktop files
> including project desktops. Even if it is just hidden in a tab somewhere.
> You might need to delete (temp rename?) exsiting ide + project desktops
> and restart from scratch.
>
> Gerrit Beuze
> ModelMaker Tools
>


Thanks for getting back so quickly.

Sorry to hear there's no real fix.  It did occur to me, however, to erase 
the desktop files and start over with those.  My only fear is that if/when I 
distribute this, what do I tell my users?  Do I also run some code that 
alters all of their desktop files?

Again, thanks for the help.  Also, keep up the good work on ModelMaker.  I'm 
not sure what I'd do without it.

-- 
Christian Wilkerson
Home made country music
@ http://www.myspace.com/christianwilkersonmusic

And now with Blog!
Re: Problem with registering dockable form in desktop
#142
Author: Christian Wilkerson
Date: Fri, 07 Mar 2008 00:27
46 lines
2790 bytes
>>>A long time ago Gerrit Beuze posted the following message, but no one 
>>>ever
>>> replied.  Well, I have the exact same issue, except with D2006.  So I'm
>>> wondering how this turned out or what the work around is.
>>
>> Situation is still the same. No real work arounds.
>> Work around = make sure you have your form visible in *all* desktop files
>> including project desktops. Even if it is just hidden in a tab somewhere.
>> You might need to delete (temp rename?) exsiting ide + project desktops
>> and restart from scratch.
>>
>> Gerrit Beuze
>> ModelMaker Tools
>>
>
>
> Thanks for getting back so quickly.
>
> Sorry to hear there's no real fix.  It did occur to me, however, to erase 
> the desktop files and start over with those.  My only fear is that if/when 
> I distribute this, what do I tell my users?  Do I also run some code that 
> alters all of their desktop files?
>
> Again, thanks for the help.  Also, keep up the good work on ModelMaker. 
> I'm not sure what I'd do without it.
>


Well, I think I've figured it out.  Once I removed FormCreate and 
FormDestroy events everything seems to work fine.  When I say removed, I 
mean completely commented or deleted from the source.

I'm reasonably confident that this is the case because when I re-inserted 
them, the problems came back.  I was also surprised that just having them 
there (not hooked up to the dfm), caused issues.  Perhaps somebody with more 
knowledge can shed light on this.

Anyhow, I'm very happy to have this figured out, and Gerrit, thanks again 
for your help.

-- 
Christian Wilkerson
Home made country music
@ http://www.myspace.com/christianwilkersonmusic

And now with Blog!
Re: Problem with registering dockable form in desktop
#143
Author: Gerrit Beuze
Date: Fri, 07 Mar 2008 17:54
17 lines
1914 bytes
> Well, I think I've figured it out.  Once I removed FormCreate and FormDestroy events everything seems to work fine.  When I say 
> removed, I mean completely commented or deleted from the source.
> I'm reasonably confident that this is the case because when I re-inserted them, the problems came back.  I was also surprised that 
> just having them there (not hooked up to the dfm), caused issues.

They are published methods and the RTTI TObject.MethodName will point to
your methods, *even* if they are not hooked in the designer.
This is interesting: perhaps it also works if you call "inherited" in your methods?


> Anyhow, I'm very happy to have this figured out, and Gerrit, thanks again for your help.

And thank you for getting back.
This could lead to a general solution for the problem.

Gerrit Beuze
ModelMaker Tools 
Re: Problem with registering dockable form in desktop
#144
Author: Gerrit Beuze
Date: Fri, 07 Mar 2008 17:57
12 lines
1589 bytes
> Well, I think I've figured it out.  Once I removed FormCreate and FormDestroy events everything seems to work fine.  When I say 
> removed, I mean completely commented or deleted from the source.

Just checked the source:
The Code Explorer - which works OK - has an FormCreate and FormDestroy and *does* call "inherited;"
as the last thing in the OnCreate eventhandler.
The Source Indexer - which does *not* work OK, does *not* call inherited,

I think you've got it figured out!

Gerrit Beuze
ModelMaker Tools 
Re: Problem with registering dockable form in desktop
#145
Author: Christian Wilkerson
Date: Fri, 07 Mar 2008 19:22
30 lines
2039 bytes
"Gerrit Beuze" <gerrit[at][-nospam]modelmakertools[dot]com> wrote in message 
news:47d18210@newsgroups.borland.com...
>> Well, I think I've figured it out.  Once I removed FormCreate and 
>> FormDestroy events everything seems to work fine.  When I say removed, I 
>> mean completely commented or deleted from the source.
>
> Just checked the source:
> The Code Explorer - which works OK - has an FormCreate and FormDestroy and 
> *does* call "inherited;"
> as the last thing in the OnCreate eventhandler.
> The Source Indexer - which does *not* work OK, does *not* call inherited,
>
> I think you've got it figured out!
>
> Gerrit Beuze
> ModelMaker Tools

Good to know.

Wow, I feel a little like a cold case detective.

BTW and OT, Greg Stevenson says he'll be done with the help project this 
weekend (although he says you've heard that before).

-- 
Christian Wilkerson
Home made country music
@ http://www.myspace.com/christianwilkersonmusic

And now with Blog!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads