Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Minimizing VFP6 Windows

Status
Not open for further replies.

jaym

MIS
Apr 7, 2000
7
US
I wrote an application that

1. hides the main VFP window
2. displays a top level form with - and x controls in the upper right corner

The top level form displays with its first child window, but the
- (minimize) control doesn't work.

What am I doing wrong?

-jaym [sig][/sig]
 
but the
- (minimize) control doesn't work.


Which form minimize button does not work - main or child? In addition, what mean "doesn't work"? Just do not minimize? Cannot beleive. This is common Windows functionality, not VFP.
[sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
Here is a few quick things to check...

Form's minimize property set to .T. ?
Form's controlbox property set to .T. ?

Is the minimize option listed in the drop down menu when you click the form's icon during runtime? And/Or is the minize button just disabled?

[sig]<p> Pete<br><a href=mailto:blindpete@mail.com>blindpete@mail.com</a><br><a href= > </a><br>What your mother told you is true! You will go blind! (from moonshine anyway)[/sig]
 
BP,

Thanks, but ControlBox is .T.
and Minbutton (not 'minimize' - or did I miss something)
is .T. also. The controls do show min,max,X, but don't do
anything.

-jaym [sig][/sig]
 
errrg yes MinButton is correct. Sorry about that. Are the other controls on your form working or are none of the controls working?

Or email it to me... and I'll look at it.

[sig]<p> Pete<br><a href=mailto:blindpete@mail.com>blindpete@mail.com</a><br><a href= > </a><br>What your mother told you is true! You will go blind! (from moonshine anyway)[/sig]
 
More info:

When I RUN the form stand-alone in Form Designer, it minimizes.
When I run it by:
1) hiding the vfp window
2) displaying the top level form in question
3) displaying other child forms within the top level form,

the controls a rendered useless..

The top level form itself has no controls, just the min/max/X and they
don't work in this scenario. They continue not to work as other child forms
or floating forms appear.

-jaym [sig][/sig]
 
Are any of your child forms modal? If so that would prevent your top form from getting focus and therfore [-][ ][x] wouldn't work [sig]<p> Pete<br><a href=mailto:blindpete@mail.com>blindpete@mail.com</a><br><a href= > </a><br>What your mother told you is true! You will go blind! (from moonshine anyway)[/sig]
 
BP,

More symptoms.. I'm almost there..

Although the [-][ ][+] controls are inoperable when clicked,,
when I click on the upper left hand form Icon
I get a pop-down menu with min/max/move
in it. Clicking on any of these works!

For human factors sake, I would like the usual controls
to do the job.

Also, to answer your question, all child forms are modless.

-jaym [sig][/sig]
 
Windows bug? :) [sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
Sadly... I'm stumped. You have done everything correctly so far as I can tell. If you want, email it to me w/ a dummy dataset and I'll see if I can figure it out. Vlad may be correct. Something somewhere may be corrupted...

Sorry. [sig]<p> Pete<br><a href=mailto:blindpete@mail.com>blindpete@mail.com</a><br><a href= > </a><br>What your mother told you is true! You will go blind! (from moonshine anyway)[/sig]
 
Hello Jay!

I recieved your email. The problem is easily resolved. The form which you are calling for splash screen is modal. 2nd the logo1 form's click event is never fired because controls cover the entire surface of the form. There are two solutions to this.
1) in every control's click event of logo1 place thisform.click OR
2) add a shape object to your logo1 form.

Once the splash screen is cleared [-][ ][x] all worked fine.

Shape1's click event...
thisform.release

logo1's init event...
thisform.shape1.backstyle = 0
thisform.shape1.borderstyle = 0
thisform.shape1.left = 0
thisform.shape1.top = 0
thisform.shape1.width = thisform.width
thisform.shape1.height = thisform.height

I did this on what you emailed me and it worked fine. I'll email it back to you so you can see it.

Enjoy. [sig]<p> Pete<br><a href=mailto:blindpete@mail.com>blindpete@mail.com</a><br><a href= > </a><br>What your mother told you is true! You will go blind! (from moonshine anyway)[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top