PDA

View Full Version : how to add a scrollbar to a modaldialog?


sun_gui
01-02-2006, 10:01 PM
In my modaldialog,there is a form inclued many edittext to input,and at last submit the form.
but the modaldialog has not enough height,so how i
add a <vscrollbar/> to the modaldialog?thanks!

ballack
01-03-2006, 09:26 AM
Something like this;

<modaldialog width="300" height="200" visible="true">
<view width="${immediateparent.width}" height="${immediateparent.height}" placement="content">
<vscrollbar/>
</view>
</modaldialog>


You just need to place everything inside the view.

sun_gui
01-03-2006, 10:29 PM
thank you.it work now,but if i use a custom form extended lzx form in the view,it doesn't work again.it's terrible!

sun_gui
01-05-2006, 04:01 PM
it does not work if i set the form's initstage attribute to "late"!