Page 1 of 1
Setting form parent problem
Posted: Tue Sep 15, 2009 2:43 pm
by Daniel
Hi,
In Jade 6.3 where we have a form and use Form::setFormParent to set the parent of a newly created form to self, we are finding that the return value of Form::getFormParent is always null.
e.g.
create child;
child.setFormParent(self);
write(self);
write(child.getFormParent);
child.showModal();
From output viewer:
TestParent/18449.1
Form/0.0
Any thoughts?
Re: Setting form parent problem
Posted: Tue Sep 15, 2009 2:51 pm
by Jade Support
I believe you'll find that the getFormParent() method of the Form class returns the parent of the form that was set by using the setFormParent() method or if the parent form was set directly by using a Windows API call.
As the getFormParent method does not return the MDI frame for an MDI child, use the getMdiFrame method if you want to return the MDI frame for an MDI child.
Re: Setting form parent problem
Posted: Tue Sep 15, 2009 2:57 pm
by BeeJay
Daniel,
There does seem to be a change in behaviour between 6.2 and 6.3. I'd suggest you put a Contact into Parsys for Jade Support to look into it further...
Cheers,
BeeJay.
Re: Setting form parent problem
Posted: Tue Sep 15, 2009 3:01 pm
by Daniel
Hi,
Yes our existing 6.11 code causes an exception now in 6.3. Its not mdi related, and can be duplicated with the simple example given.
Cheers
Re: Setting form parent problem
Posted: Tue Sep 15, 2009 5:15 pm
by Jade Support
Thanks for raising this Daniel, it is indeed a fault. As such, JADE PAR #52218 has been opened to deal with it.
Aaron Morgan.
Re: Setting form parent problem
Posted: Wed Sep 23, 2009 9:41 am
by BeeJay
For the benefit of those that use setFormParent/getFormParent, a 6.3.04 HotFix for this issue is now available for downloading via Parsys.
Cheers,
BeeJay.