[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

how to set formset as child form

Posted on 2011-05-06
4
Medium Priority
?
1,543 Views
Last Modified: 2012-05-11
Hey,
I have a formset (in VFP9) consisting 2 forms. I also have a main form with properties:
- ShowWindow = 2 as-top-level
- Desktop = .F.
- WindowType = Modal

What I wan't to do is to open a formset in main form.
Just like a form with property ShowWindow = 1 in-top-level.

A formset doesn't have this property :( I have booth forms in formset properties set to:
-desktop = .F.
-ShowWindow = 1 in-top-level
- windowType = modeless

Please help.
0
Comment
Question by:dan_leniwiec
  • 2
  • 2
4 Comments
 
LVL 30

Accepted Solution

by:
Olaf Doschke earned 2000 total points
ID: 35706760
The forms within the formset have the property. The formset object is only for the formset datasession and other stuff shared among the forms of the formset.

Anyway the best recommendation you can get is to stay away from formsets.

Bye, Olaf.
0
 

Author Comment

by:dan_leniwiec
ID: 35708040
Thanks, but that doesn't help ;)
I have an application that I need to change. I would like not to make complete remake of the program. Whole application was made to work in fullscreen mode so it's written using desktop = .T. and showwindow = 0-inscreen and modal forms. I need to make it fully resizable. I make a class that resize all controls on the form during "Resize" event.
Of course I can open the formset with parameters of windowsize and resize it manualy. And after closing a formset activate previous form. But i wonder there is other, simplier solution...

0
 
LVL 30

Assisted Solution

by:Olaf Doschke
Olaf Doschke earned 2000 total points
ID: 35709317
So it's just more about the convinience to start a set of forms with the formset? And it's more a visual thing? Well, a formset is nothing but a set of forms, you can pull them out and create them separate, no need to rewrite.

Use the SaveAsClass Method while the formset is running.

Bye, Olaf.
0
 

Author Comment

by:dan_leniwiec
ID: 35718633
Heh, now I know why You can't understand me :D So stupid ;)
Everything works fine with ShowWindow = 1. But I had a base class for the formset, where starting settings was different from the one i've changed and that's why it doesn't work from the beginning :/

Thanks for Your help Olaf ;)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

At the office, we’ve started to get serious about organizing what we’re doing. I mean, it was getting to the point where every time I received a phone call, it began with “I know you’re really busy, but…” My boss was taking tasks away from me left a…
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question