Print Page | Close Window

MDI Child Forms

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=16325
Printed Date: 27 November 2024 at 2:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI Child Forms
Posted By: giobra
Subject: MDI Child Forms
Date Posted: 02 March 2010 at 6:44am
Hi all,
I'm tryng to use Toolbars in my application written in Unify Team Developer.
After succcessfully created the toolbar into an MDI container, i'm not able to open more than 1 child form, because the second one seems to hangs the entire application. If i open only 1 form everything it working well ( seems to be )
I've created the activex control directly to the toolbar space on the MDI and then associated to MDI with AttachToWindow function on the Create event.
Any idea?
Giorgio



Replies:
Posted By: giobra
Date Posted: 04 March 2010 at 1:18pm
Just to explain what happens



all i've done is
1) put an istance of Activex on MDI's toolbar in design mode
2) call AX.AttachToWindow( hWndMDI ) ---- without this call i cannot see any toolbar
3) call AX.LoadDesignerBars( 'test.xcb', optional ) ---- default toolbar from designer
4) call AX.ShowTabWorkspace( TRUE ) --- this only to see what happens

after that i create the 1st form as a child of MDI and everything is going well also closing and re-opening the same or different forms ( 1 at the time ).
When i open the second child in the same way i see the strange effect on the first one and starting from that point i cannot do any action.
Also the tab show only the secon title and the first one is rendered only as icon
If I close the foreground form the application crash.
Thank to everyone who wants to help me.

Giorgio



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net