
kevin
Forum Replies Created
-
Hi Andreas,
Thank you so much for your insight and quick response (as always).
So, to summarise, Omnis Studio: –
* Does not cater for more than one active or current subform at anytime
* Does not permit you to change the current subform
* constructs subforms AFTER the main form has been instantiated (the reverse of desktop equivalents).
I was hoping to approximate the behaviour/appearance of equivalent desktop windows and subwindows.
I use subwindows and subforms where there is a need to display the same data in different situations – without having to duplicate the window/remote form in each case. Standard stuff I believe.
I ran some tests by creating a tabpane on a simple remote form and placing a (different) subwindow on each and tried to set a reference to each subform using $subint. I discovered that I could set a reference to the subform on the 1st pane by default. However, I could not get a valid reference to the pane until after the 2nd pane had been opened.
Once the 2nd pane had been opened I could then set a valid reference to the subwindow (using $subinst). Furthermore, the reference to the 1st subform seems to persist. This is what I was looking for. I will have to run some more tests to check the downstream results.
This then leads to how to use $loadfinished. It is not clear how or when you use this method. Do we have to call this method repeatedly until we get an answer? Do we over-ride it and set a flag of our own? For instance, after opening the 2nd pane (and thereby instantiating the subform on that pane) how do I invoke $loadfinished to know when it is OK to set a reference to the subform?
I know this is not in line with your suggestion but I would like to explore this methodology to see if it is viable – unless you have already been down that road and discovered a dead-end.
Once again thanks for your valuable advice.
Kevin