Creating controls in code
Hi all,
I am creating a panel with 4 subpanels on it - please see code example below:
dim aPanel as new Panel
dim bPanel as panel
dim i as integer
aPanel.widhth = pixel(400)
aPanel.height = pixel(200)
for i = 0 to 3
bPanel = new panel
bPanel.height=aPanel.height
bPanel.width = pixel(100)
aPanel.controls.add(bPanel)
next
this works fine but all my panels are listed vertically.
I want my panels to be listed horizontally - ie aPanel holds
4 child panels across its width.
How can I set my child panels to be added to my parent panel
so that they are horizontal ?
Cheers?
|