11-19-2014 03:31 AM
Hi,
is there a way to recognize a resize of a dialog? My objective is to show scrollbars in a dialog, if the dialog gets smaller than its initial state. The trick is, if you expand the dialog, a listbox in this dialog should expand too. Now i got this to work (see attachments). If i enable the scrollbars, the flex properties are ignored, if i disable scrollbars you can make the listbox disappear.
Thanks in advance
Martin
11-21-2014 03:01 AM
Hi Martin,
yes, if the scrollbars are active, the resize is ignored. You have to choose how you want to visualize the dialog.
If you use the scrollbars the dialog is i fixed in its appearance and you can scroll through if you can not see all because it has been resized to a smaller view.
And if you resize the objects in the dialog you do not need the scrollbars.
You can play a little bit with the options in the flex property, you can customize the resize of the different elements of the dialog seperatly.
I hope this helps.
Best wishes
Dennis
11-25-2014 03:43 AM
Hi Dennis,
thank you for your help. but i was looking for a hybrid way. Show scrollbars if the dialog gets smaller then x & y, else use flex settings.
Unfortunately it seems that DIAdem is not supporting this kind of feature 🙂
11-25-2014 03:46 AM
You could use the change event and set a script that is fetching the new size of the dialog and then set new sizes for all the elements.
The scripted changes whould appear after the size change and not on the fly, but this could help you to get a semi-hybid dialog.
11-25-2014 03:54 AM
But the Dialog-Class itself doesn't inherit a EventChange-method...
I tested it with a xtable, but the change event is not set after a resize.
11-25-2014 08:09 AM
You are right, is is a method o the Listbox, not of the dialog itself.
Sorry for this misinformation.
Then there is no way to create a hybrid dialog as you wanted.