Board index » delphi » Re: Minimize Main Form But Not Second Form

Re: Minimize Main Form But Not Second Form


2007-08-21 03:52:02 PM
delphi11
Shawn Jones writes:
Quote
How can I set up a second form (not mdi and not modal) such that it
shows in the task bar and when I minimize the main form the second
form does not minimize?
This has been asked hundreds of times before, so you can find the
answer in the newsgroup archives, e.g.:
tinyurl.com/2xgtof
groups.google.de/group/borland.public.delphi.language.delphi.win3
2/browse_frm/thread/424c52bb419a73ae/cc9c063e5197a3fc?&hl=de#cc9c063e519
7a3fc
--
Peter Below (TeamB)
Don't be a vampire (slash7.com/pages/vampires),
use the newsgroup archives :
www.tamaracka.com/search.htm
groups.google.com
 
 

Re: Minimize Main Form But Not Second Form

Shawn Jones writes:
Quote
Thanks Peter.

If I may push my luck a little. I tried many google searches and
none of the results I got worked. If this has been asked hundereds
of times perhaps one or more of the following should happen: 1) It
should be included in the Delphi doco. 2) These capabilites should
be added to the Form ie: a ShowOnTaskBar property and a
MinimizeWithMainForm Property.
If you want to log a feature request, qc.codegear.com is the
place to do it. These groups are peer support groups and have no
official Codegear presence.
Quote
3) This would be a good start for a Delphi Graphics FAQ.
Well, actually it is not a graphics question, more one for
b.p.d.vcl.components.using.win32, I think.
--
Peter Below (TeamB)
Don't be a vampire (slash7.com/pages/vampires),
use the newsgroup archives :
www.tamaracka.com/search.htm
groups.google.com
 

Re: Minimize Main Form But Not Second Form

Shawn Jones <shawnjones3 writes:
Quote
3) This would be a good start for a Delphi Graphics FAQ.
I've actually made a (very small) start on the Delphi Graphics FAQ (for
2D at least) on the delphi wiki. Was planning on adding some more when I
get the time, but here it is
delphi.wikia.com/wiki/Delphi_2D_Graphics_Frequently_Asked_Questions
As Peter says though, this isn't really a graphics question.
cheers,
Dave
 

Re: Minimize Main Form But Not Second Form

"Shawn Jones @gawab.com>" <shawnjones3<nospam>writes
Quote
Thanks Peter.

If I may push my luck a little. I tried many google searches and none of
the results I got worked. If this has been asked hundereds of times
perhaps one or more of the following should happen:
1) It should be included in the Delphi doco.
2) These capabilites should be added to the Form ie: a ShowOnTaskBar
property and a MinimizeWithMainForm Property.
3) This would be a good start for a Delphi Graphics FAQ.

Try searching on Tamarack at
www.tamaracka.com/search.htm
I used search criterea:
minimize main form second form showing ^delphi
which produced several good hits to help you out including some of Peters
past posts which are excellent.
HTH
Woody (TMW)
 

Re: Minimize Main Form But Not Second Form

"Shawn Jones @gawab.com>" <shawnjones3<nospam>writes
Quote
Thanks Woody. A new tool in my toolbox.

<rant>
But still, this is an amazing amount of hoops to jump through to
accomplish what seems like should be basic TForm behavior.
</rant>
As Peter explained, it has to do with the way Delphi uses the invisible
application window as it is main window and not the main form of the
application that you build. This causes problems like this to surface.
Another one is the minimizing/restoring animation which is lacking and has
to be worked around if you want it to act like other apps.
Woody (TMW)
 

Re: Minimize Main Form But Not Second Form

"Shawn Jones @gawab.com>" <shawnjones3<nospam>writes
Quote

Woody, I understand technically (now I do, well somewhat so far <g>) why
this behavior is occuring, but my point, if there is one, is that TForm is
such a bread and butter part of Delphi application development how could
Delphi have evolved this far with such a fundamental compenent being so
impared?

You could say that about a few things in Delphi. :) However, this is no
longer a topic for this group but you could post a rant in the non-tech
group and probably get lots of pro vs con posts.
Woody (TMW)