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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exe forms 1

Status
Not open for further replies.

rclarke

Technical User
May 14, 2001
78
GB
I have created an exe out of my database and set forms to modal and showwindow to 1, and all seem to work but it is messy none of the forms close they just keep popping up on top of one another.

How do I get it to look neat and tidy and close forms? as the other ones open I have tried the read event close events thing on the login screen but this leaves it up on the screen too. All buttons to open other forms end with line thisform.release but it does not close the form on screen it does in VFP what am I doing wrong.

Thanks

Rach
 
Could you post your main programm so we can have a look what could be wrong ??

Weedz (Wietze Veld) They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best. - Steve McConnell
 
Hi Rachel,
Good you had a nice weekend.. Me too ...

1. You can have the forms defined with autocenter = .t.
2. The forms should have the same height and width property ... or atleast make them with property.. WindowSatet = 2 (max).. So when the modal forms show up, they are always on top and occupy the entire screen.
3. Now that you get this idea.. you will get the next.. that the forms are all not of same size as created by you.

As always, I suggest, you should have your own subclass of the Base Form and from where you initiate your form building. If this is done, you can easily build classes to address these problems. I always have only one screen size for all the forms. When I build I take care of this. If the user resizes, I use a proportinal font size adjustments, which gets applied on all the objects in the forms, so the user gets a nice visual impact. If you need some such class to take effect whenever the user resizes, you can email me. I will forward the class.

Best of luck !
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
Thanks Ramani

I am glad you had a good weekend best thing about work is the weekends off.

Can I ask you a question.

Can I use the lostfocusevent and in it put Thisform.hide or is this Bad?

It makes it tidy and seems to work OKay are there any draw backs to using this??
 
Nothing wrong in hiding the form.. But take care to Show them or release them properly when it matters. Or else you are going to land in a mess sooner or later ! ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top