Hi, how does the Panel class work in the designer? i.e. when I drag a
button on, the designer knows to place the button inside the white area
in the centre of the panel. All coordinates are in relation to that
white area.

 

I have a container class which is similar in layout to the panel (but
different enough to require a separate class) and I want to be able to
add it to another container and then add controls to it.

 

I hope that makes sense. Maybe this ascii drawing will help :-)

 

|-------------------|

|                        |

|    |----------|     |

|    |             |    |

|    |----------|     |

|                        |

|-------------------|

 

If I drop a button onto this control, I want all coordinates to be in
relation to the centre container.

 

Thanks,

 

Mark

 

 

Reply via email to