Questions about MDI application

F

FP

Hi,
i would like to write an MDI application with MS VS2005,but i have some
preliminary questions.
1)If i place a control,say a button,in the MDI parent's client area,this
control will always appear on top of child dialogs.How can i fix it?

2)I would like to use a backgroud image for the client area,but i would
also like the user to interact with this image,making him capable to do
different things depending on the zone he clicks:for example in this image
there might be a house and a tree (i know....sucky example :)) ).So i would
like that,if the user clicks the house's portion of the image,the "house"
dialog is shown,while instead if he clicks the tree portion,the "tree"
dialog is shown.So,something similar to what happens with the AREA html
tag,basically dividing an image in "regions".How could i do this?

Thanks in advance :))
 
Z

zacks

Hi,
i would like to write an MDI application with MS VS2005,but i have some
preliminary questions.
1)If i place a control,say a button,in the MDI parent's client area,this
control will always appear on top of child dialogs.How can i fix it?

Use the Visible property appropriately.
2)I would like to use a backgroud image for the client area,but i would
also like the user to interact with this image,making him capable to do
different things depending on the zone he clicks:for example in this image
there might be a house and a tree (i know....sucky example :)) ).So i would
like that,if the user clicks the house's portion of the image,the "house"
dialog is shown,while instead if he clicks the tree portion,the "tree"
dialog is shown.So,something similar to what happens with the AREA html
tag,basically dividing an image in "regions".How could i do this?

Place four panels on top of the image control and use the Click event
for each panel.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top