event LayoutChanged ()
Occurs when control's layout is changed.

 TypeDescription 

Use the LayoutChanged event to notify your application that the control's content is changed. The LayoutChanged event is called if the control is resized, if a group is expanded or collapsed, if the control is scrolled, and so on. The Left, Top, Width and Height properties determine the location of the group's list in client coordinates.

C++ The following tutorial shows the steps that are required to insert an ActiveX control inside the control. Shortly, the idea is to insert child windows to the control, and to move the windows when the control fires the LayoutChanged event. The following sample shows how to add a SysTreeView32 window to the control. The following sample contains all code you need to handle ActiveX inside the control.

The initHost function changes the Z order of the window, change the parent window, holds the window's handle to the group's user data, and moves the window to the new position.

The moveHost function moves the window to the coordinates specified by Left, Top, Width and Height properties of the Group object.

VB The following tutorial shows the steps that are required to insert an ActiveX control inside the control. Shortly, the idea is to insert child windows to the control, and to move the windows when the control fires the LayoutChanged event. The following sample shows how to add a ListBox control to the ExplorerBar control. The following sample contains all code you need to handle ActiveX inside the control.

The initHost function change the parent window, holds the control to the group's user data, and moves the control to the new position.

Private Sub ExplorerBar1_LayoutChanged()
    Dim g As EXPLORERBARLibCtl.Group
    For Each g In ExplorerBar1.Groups
        moveHost ExplorerBar1, g.Index
    Next
End Sub

Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.