WindowsInitializing event missing when I load layout

Docking/MDI for Windows Forms Forum

Posted 18 years ago by buraicsaba - Hungary
Avatar
OnWindowInitializing and OnWindowActivating methods not called when I load layout (LoadToolWindowLayoutFromFile).
The first event that raised OnWindowActivated when I call the tools window's Activate method.
Scenario:
1. I create toolwindows. I use subclassed ToolWindow coltrols.
2. Call LoadToolWindowLayoutFromFile.
3. Call Activate method for tool windows. (Here, on some tool windows the first event that is rais the OnWindowActivated. OnWindowInitializing and OnWindowActivating missing.)

If I don't call LoadToolWindowLayoutFromFile everythink work well.

Layout file:

<?xml version="1.0"?>

<ToolWindowLayout Version="1.0">
<LayoutData>
<HostContainerControl />
<FloatingContainers />
<AutoHide Dock="Left" />
<AutoHide Dock="Right" />
<AutoHide Dock="Top" />
<AutoHide Dock="Bottom" />
<TabbedDocuments Orientation="Horizontal" />
<Hidden>
<ToolWindow Key="SztakiSzotar" Guid="40fc1420-29b2-49f2-bb0f-5bcd4879a75e" DockedSize="455, 200" ImageIndex="0" Text="Sztaki Szótár">
<AutoHideStateInfo RootDock="Right" />
<DockedInsideHostStateInfo RootDock="Right" IsAttached="False" />
<DockedOutsideHostStateInfo IsAttached="False" />
</ToolWindow>
<ToolWindow Key="SearchHistory" Guid="ed557d0c-4815-489e-b4a1-72fecd7896c0" DockedSize="207, 200" ImageIndex="0" Text="Keresés eseménynapló">
<AutoHideStateInfo RootDock="Left" />
<DockedInsideHostStateInfo RootDock="Left" IsAttached="False">
<DockedBy Guid="41d6d14c-4ef0-46e6-8201-79a2438ee97f" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" />
<DockedBy Guid="11b198c3-8725-40df-83b2-a4742243c09d" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" />
<DockedBy Guid="d171c53e-0344-4150-9854-455cde8762c1" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" />
</DockedInsideHostStateInfo>
<DockedOutsideHostStateInfo IsAttached="False" />
</ToolWindow>
<ToolWindow Key="CommonDictionary" Guid="3e6c8fda-daae-464c-97e6-0290eef99326" DockedSize="383, 200" ImageIndex="0" Text="Közös szótár">
<AutoHideStateInfo RootDock="Bottom" />
<DockedInsideHostStateInfo RootDock="Bottom" IsAttached="False">
<DockedBy Guid="40fc1420-29b2-49f2-bb0f-5bcd4879a75e" RootDock="Right" DockOperationType="LeftOuter" IsTopMost="True" />
<DockedBy Guid="ed557d0c-4815-489e-b4a1-72fecd7896c0" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" />
<DockedBy Guid="41d6d14c-4ef0-46e6-8201-79a2438ee97f" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" />
<DockedBy Guid="11b198c3-8725-40df-83b2-a4742243c09d" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" />
<DockedBy Guid="d171c53e-0344-4150-9854-455cde8762c1" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" />
</DockedInsideHostStateInfo>
<DockedOutsideHostStateInfo IsAttached="False" />
</ToolWindow>
<ToolWindow Key="TrainingHistory" Guid="d171c53e-0344-4150-9854-455cde8762c1" ImageIndex="0" Text="Gyakorlás eseménynapló">
<AutoHideStateInfo RootDock="Left" />
<DockedInsideHostStateInfo RootDock="Left" IsAttached="False" />
<DockedOutsideHostStateInfo IsAttached="False" />
</ToolWindow>
<ToolWindow Key="Comments" Guid="11b198c3-8725-40df-83b2-a4742243c09d" ImageIndex="0" Text="Megjegyzés">
<AutoHideStateInfo RootDock="Left" />
<DockedInsideHostStateInfo RootDock="Left" IsAttached="False">
<DockedBy Guid="d171c53e-0344-4150-9854-455cde8762c1" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" />
</DockedInsideHostStateInfo>
<DockedOutsideHostStateInfo IsAttached="False" />
</ToolWindow>
<ToolWindow Key="LongmanDictionary" Guid="41d6d14c-4ef0-46e6-8201-79a2438ee97f" ImageIndex="0" Text="Longman Szótár">
<AutoHideStateInfo RootDock="Left" />
<DockedInsideHostStateInfo RootDock="Left" IsAttached="False">
<DockedBy Guid="11b198c3-8725-40df-83b2-a4742243c09d" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" />
<DockedBy Guid="d171c53e-0344-4150-9854-455cde8762c1" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" />
</DockedInsideHostStateInfo>
<DockedOutsideHostStateInfo IsAttached="False" />
</ToolWindow>
</Hidden>
</LayoutData>
<CustomData />
</ToolWindowLayout>

Comments (1)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Can you email us a tiny project showing the problem so that we can debug it? Thanks!


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.