Jausn
02-25-2009, 03:19 AM
Hi ! I've got a question here.
I wanna achive this effect:
Resizing the dialog then the controls on it,like button,listbox,...,automatically change their size and pos to match the dialog's size.
And I've found some related content on Help:
on <Rollout> moved <Point2> do
Called when the dialog is being moved.
on <Rollout> resized <Point2> do
Called when the dialog is being resized.
on <Rollout> mousemove <Point2> do
Called when the mouse is being moved within the dialogs client area.
I think this one should work
on <Rollout> resized <Point2> do
But how it works?
When I type this:
on test_Rollout resized do
I got an error: >> MAXScript Rollout Handler Exception: -- Argument count error: unnamedRollout.resized wanted 0, got 1 <<
Maybe I lost the <Point2> part, so I typed:
on test_Rollout resized [10,10] do
I also got an error: -- Syntax error: at [, expected do -- In line: on unnamedRollout resized [1
That's my problem.
Anyone could help?
Thanks!
I wanna achive this effect:
Resizing the dialog then the controls on it,like button,listbox,...,automatically change their size and pos to match the dialog's size.
And I've found some related content on Help:
on <Rollout> moved <Point2> do
Called when the dialog is being moved.
on <Rollout> resized <Point2> do
Called when the dialog is being resized.
on <Rollout> mousemove <Point2> do
Called when the mouse is being moved within the dialogs client area.
I think this one should work
on <Rollout> resized <Point2> do
But how it works?
When I type this:
on test_Rollout resized do
I got an error: >> MAXScript Rollout Handler Exception: -- Argument count error: unnamedRollout.resized wanted 0, got 1 <<
Maybe I lost the <Point2> part, so I typed:
on test_Rollout resized [10,10] do
I also got an error: -- Syntax error: at [, expected do -- In line: on unnamedRollout resized [1
That's my problem.
Anyone could help?
Thanks!
