If I create a new Vertical TabGroup, then the OnResize for the Form in the new TabGroup is triggered, but not the OnResize for the Form in the existing TabGroup...
Is that normal? Now I have to write a lot of code subscribing to the TabGroupResized event and triggering a resize event in the Form...
Hello,
Can you provide a little more information on what you are doing? My understanding is that you're reporting that OnResize() is not called for forms in the original TabGroup when a form is moved to a new TabGroup. I attempted to reproduce the behavior, but was unsuccessful. I've attached the sample I attempted to duplicate the issue with. When you have the opportunity, please test the attached sample to see if you can reproduce the problem.
Thanks,
Chris
I have some logs from the TabGroupResized event. This looks strange.
So first I right click on a Tab and choose New Vertical Tab Group. In the TabGroupResized event handler I'm getting this:
[13/04/12@10:39:43.873+0200] P-009592 T-010712 1 4GL APPL LCA UltraTabbedMdiManager_TabGroupResized:2[13/04/12@10:39:43.874+0200] P-009592 T-010712 1 4GL APPL LCA MdiTabGroup: MdiTabGroup Tab Count=3[13/04/12@10:39:43.874+0200] P-009592 T-010712 1 4GL APPL LCA WorkflowForm: be.mips.ablframework.gui.WorkflowForm, Text: Home[13/04/12@10:39:43.874+0200] P-009592 T-010712 1 4GL APPL LCA WorkflowForm: be.mips.ablframework.gui.WorkflowForm, Text: Orders by receipt time[13/04/12@10:39:52.995+0200] P-009592 T-010712 1 4GL APPL LCA WorkflowForm: be.mips.ablframework.gui.WorkflowForm, Text: Orders by short id, receipt time[13/04/12@10:39:55.252+0200] P-009592 T-010712 1 4GL APPL LCA MdiTabGroup: MdiTabGroup Tab Count=0
So there are two MdiTabGroups, which is correct, but one Tab should be in the second MdiTabGroup, and it isn't...
Next I move the splitter between the two MdiTabGroups a little bit and I'm getting this:
[13/04/12@10:44:04.890+0200] P-009592 T-010712 1 4GL APPL LCA UltraTabbedMdiManager_TabGroupResized:2[13/04/12@10:44:04.890+0200] P-009592 T-010712 1 4GL APPL LCA MdiTabGroup: MdiTabGroup Tab Count=2[13/04/12@10:44:04.891+0200] P-009592 T-010712 1 4GL APPL LCA WorkflowForm: be.mips.ablframework.gui.WorkflowForm, Text: Home[13/04/12@10:44:04.891+0200] P-009592 T-010712 1 4GL APPL LCA WorkflowForm: be.mips.ablframework.gui.WorkflowForm, Text: Orders by receipt time[13/04/12@10:44:05.121+0200] P-009592 T-010712 1 4GL APPL LCA MipsWindowsContainer:OnClientResized[13/04/12@10:44:09.315+0200] P-009592 T-010712 1 4GL APPL LCA MdiTabGroup: MdiTabGroup Tab Count=1
This seems correct, but shouldn't it have been like that the first time?
It's like the TabGroupResized event is triggered too soon... Or should be triggered an extra time. Or it's triggered before the MdiTab is actually moved to the new MdiTabGroup...
You are correct in that the TabGroupResized is fired before the MdiTab is moved to the new MdiTabGroup. When a MdiTabGroup is split, the new MdiTabGroup is created and the sizes/extents of the MdiTabGroups are set (causing the TabGroupResized event to fire) prior to the MdiTab being moved into the new group.
Depending on what you are trying to accomplish, you may be able to utilize the TabMoved event which will fire after a MdiTab has been repositioned.