Setting form parent problem

The use of specific JADE features and proposals for new feature suggestions
Daniel
Posts: 8
Joined: Tue Sep 15, 2009 2:16 pm

Setting form parent problem

Postby Daniel » Tue Sep 15, 2009 2:43 pm

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?

User avatar
Jade Support
Posts: 103
Joined: Mon Aug 17, 2009 10:27 am
Location: Jade Software Corporation, Christchurch

Re: Setting form parent problem

Postby Jade Support » Tue Sep 15, 2009 2:51 pm

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.
Jade Support
Jade Software Corporation Ltd

Email: jadesupport@jadeworld.com
Web: http://www.jadeworld.com

Jade Software – complex business problems solved beautifully.

User avatar
BeeJay
Posts: 312
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

Re: Setting form parent problem

Postby BeeJay » Tue Sep 15, 2009 2:57 pm

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.

Daniel
Posts: 8
Joined: Tue Sep 15, 2009 2:16 pm

Re: Setting form parent problem

Postby Daniel » Tue Sep 15, 2009 3:01 pm

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

User avatar
Jade Support
Posts: 103
Joined: Mon Aug 17, 2009 10:27 am
Location: Jade Software Corporation, Christchurch

Re: Setting form parent problem

Postby Jade Support » Tue Sep 15, 2009 5:15 pm

Thanks for raising this Daniel, it is indeed a fault. As such, JADE PAR #52218 has been opened to deal with it.

Aaron Morgan.
Jade Support
Jade Software Corporation Ltd

Email: jadesupport@jadeworld.com
Web: http://www.jadeworld.com

Jade Software – complex business problems solved beautifully.

User avatar
BeeJay
Posts: 312
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

Re: Setting form parent problem

Postby BeeJay » Wed Sep 23, 2009 9:41 am

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.


Return to “Feature Discussions”

Who is online

Users browsing this forum: No registered users and 9 guests