how to set formset as child form

Posted on 2011-05-06
Last Modified: 2012-05-11
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.
Question by:dan_leniwiec
    LVL 29

    Accepted Solution

    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.

    Author Comment

    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...

    LVL 29

    Assisted Solution

    by:Olaf Doschke
    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.

    Author Comment

    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 ;)

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    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…
    Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    733 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

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now