Question about child windows (midiform)

Hi!

I'm trying to limit my child forms to a place in the main form, its a bit hard to explain what i'm trying to do, so i made a little drawing.

(http://people.zeelandnet.nl/mogwel/wow_pub_scripts/child-window.jpg )

I think this should explain enugh, if it doesnt please say so and i'll try to explain it in a different way.

For the people wanting to help, thanks!

Regards,
Ivo Jonker


Comments

  • I've never tried this before, and i don't have the components installed on this system to test it, but in theory the mergemanager component in RXLib that allows a form to be displayed on a pannel should help.

    In theory you should
    1) create your main form which would be a regular form with three panels aligned Panel1-top, panel2-right, panel3 client
    2) create your mdi parent and child forms
    3) merge the mdi parent form onto panel3

    RXLib is available at http://www.rxlib.com.

    If you try this let me know I'd like to know if it works or not, and if it doesn't I'll see what else I can come up



    : Hi!
    :
    : I'm trying to limit my child forms to a place in the main form, its a bit hard to explain what i'm trying to do, so i made a little drawing.
    :
    : (http://people.zeelandnet.nl/mogwel/wow_pub_scripts/child-window.jpg )
    :
    : I think this should explain enugh, if it doesnt please say so and i'll try to explain it in a different way.
    :
    : For the people wanting to help, thanks!
    :
    : Regards,
    : Ivo Jonker
    :
    :
    :

  • 1. Instead of mdi forms you can use a regular form and point it into a panel.
    As a simple test, you could make new project and put a button and a panel on there somewhere, and then write some code like:
    [CODE]
    with tform.create(self) do
    begin
    parent:=panel1;
    show;
    end;
    [/CODE]

    2. I also found out how to use mdi forms :)
    You'll be needing to have one mdi main form, (this will be used to insert the mdi child's). now, any child form you make will automaticly get inserted into the mdi main form.
    Dont have time to explain it, but i think you'll have enugh info now.

    note: things that align are nice for limiting your mdi child's availeble place, also a mainmenu will work nice whit maximized child's.

    Regards,
    Ivo Jonker

    ( thanks to muzzy for helping me on irc. )

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories