|
Re: Problem with setSplitHorizontal() in AbstractSplitBox [message #1822243 is a reply to message #1822197] |
Mon, 02 March 2020 11:50 |
|
Unfortunately, changing the splitter orientation at runtime is not currently supported.
You have two options:
- Let the user select the desired orientation in some kind of "user settings" dialog and apply the setting when the application is restarted.
- If you really need the dynamic feature, you could try the following: When changing the orientation, remove and destroy the current SplitBox field from the container field, create a new instance with the changed orientation and add it to the container field again (using AbstractCompositeField#removeField(IFormField) and AbstractCompositeField#addField(IFormField)). If your split box contains value fields, you have to manually transfer all values to the new corresponding new field instances. This is not an optimal solution, since it requires quite a but of code and resources, but it should principally work.
Regards,
Beat
|
|
|
|
Powered by
FUDForum. Page generated in 0.03301 seconds