The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
| |
|
Re: Risize form in script at runtime
Posted: 07 Apr 06 10:03 AM
|
fiogf49gjkf0d MainViews are the only thing I know of that let you change the size correctly. You can use Form.Height to READ the property but I don't think it's writeable. Plus the MainView.Show command is the only thing I know of that lets you create the form, resize it, then show it at some other time. When you do things the normal way, everything has to be loaded from the design time properties and by then it's too late to change them.
Edited to add: Insert Opportunity has great examples of MainView form calls and how to set the size at runtime. |
|
|
|
Re: Risize form in script at runtime
Posted: 07 Apr 06 10:24 AM
|
fiogf49gjkf0d Jeremy is right on, the only chance you have to resize the form is to use a MainView. Normal forms cannot be resized (we'll they can, but it takes a lot of tricks with some Win32 APIs). Normal forms are hosted inside a container window (which you don't have access to) making it impossible to just resize the form itself (since the container wouldn't resize with it).
A MainView is made to give you exactly that level of access. You can resize the form easily. |
|
|
| |
|
Re: Risize form in script at runtime
Posted: 28 Apr 11 9:21 AM
|
fiogf49gjkf0d Hello guys!
Im trying to do a "Hide / Shows Details" button in SLX... And when the user click on "Show Details", the form must be resized and show the controls...But i cant change the height of the form, as i saw in your posts...But i dont have ideia how to do this...This can be done somehow?
thanks!!
Rafael |
|
|
|