Author: graham brown
Posted: 2001-12-28 at 20:03:43
Hi all
I've been having a play with a screen resizing control from Codemine. This
all works fine until I add containers to the form which have their own
objects and init methods.
I know that this is because the init event of the resizer stores the
starting position of each control but is firing before the container has
been placed so the new controls cannot be resized. I can "fix" the problem
by deleting the resizer vcx from the parent form and adding it again to each
child form but this is not ideal.
The only other way I can see is to add a property called something like
"ValuesDefaulted" to the parent class form then put a call in the show
method of the subclassed form if this is false. Can anyone else see a
simpler solution to this? I am sure I'm missing something obvious here.
The other problem is I wanted to create some buttons that have the picture
to the left and caption to the right so what I did was create a container
which has a picture and put it on top of the button. Looks great until I
resize the container then I end up with a tiled effect (4 images arranged in
a nice grid)
Is there a better way to do this?
Appreciate any pointers.
Regards
Graham Brown