Popup and Normal Forms
For my Contact Manager I want to have 1) a Background Form which is maximized and stays consistent regardless of which other form is opened; 2) a Family Form which lists the families and includes an embedded browse of family members; 3) an Individuals Form which lists the details for the individuals. The desire is that on the Family Form you can double-click on the name of the individual in the embedded browse and the Individuals Form would open with that individual displayed. The Family Form and Individuals Form are also coded so that they are first opened with form.view(), and then hidden with a form.hide(). The next time the form is opened it responds to a form.show() command.
I actually got this to work fine, but whenever the Background Form lost focused (deactivated?) then it shrank in size and no longer filled the screen as it should when it is maximized. I read many posts and tried fill,fill etc, but could only get it to work properly when I changed the Family Form and Individuals Form to 'Popup' forms. Then everything appears as I desire it.
But then I discovered that the correct individual was not appearing in the Individuals Form after the double-click. After playing with this for some time I realized that the xbasic query in the OnActivate event of the Individuals Form was not working.
I then did some testing with the Trace window. I discovered that a Popup form does not fire OnActivate. When the Popup form is first viewed, it goes through OnInit, OnFetch and CanChange, before settling on the first field of the Tab Order with an OnArrive. That is, unless that first field is on a Tabbed Object, in which case it doesn't settle on anything, unless you physically click in the field. If the Popup form is hidden and then subsequently show()n, then even the OnArrive for that first field is not fired.
So, I guess I have 2 questions. The first is, does anyone have any suggestions for how to handle the query to display the desired individual since there is no consistent event? The second would be, has anyone really successfully got a full-screen (ie equivalent to maximized) background form to work? If so, how?
Thanks
Les
For my Contact Manager I want to have 1) a Background Form which is maximized and stays consistent regardless of which other form is opened; 2) a Family Form which lists the families and includes an embedded browse of family members; 3) an Individuals Form which lists the details for the individuals. The desire is that on the Family Form you can double-click on the name of the individual in the embedded browse and the Individuals Form would open with that individual displayed. The Family Form and Individuals Form are also coded so that they are first opened with form.view(), and then hidden with a form.hide(). The next time the form is opened it responds to a form.show() command.
I actually got this to work fine, but whenever the Background Form lost focused (deactivated?) then it shrank in size and no longer filled the screen as it should when it is maximized. I read many posts and tried fill,fill etc, but could only get it to work properly when I changed the Family Form and Individuals Form to 'Popup' forms. Then everything appears as I desire it.
But then I discovered that the correct individual was not appearing in the Individuals Form after the double-click. After playing with this for some time I realized that the xbasic query in the OnActivate event of the Individuals Form was not working.
I then did some testing with the Trace window. I discovered that a Popup form does not fire OnActivate. When the Popup form is first viewed, it goes through OnInit, OnFetch and CanChange, before settling on the first field of the Tab Order with an OnArrive. That is, unless that first field is on a Tabbed Object, in which case it doesn't settle on anything, unless you physically click in the field. If the Popup form is hidden and then subsequently show()n, then even the OnArrive for that first field is not fired.
So, I guess I have 2 questions. The first is, does anyone have any suggestions for how to handle the query to display the desired individual since there is no consistent event? The second would be, has anyone really successfully got a full-screen (ie equivalent to maximized) background form to work? If so, how?
Thanks
Les
Comment