Click or drag to resize

ShellWindow Class (Typed)

X#
Create a shell window, which provides MDI support for your applications.
Inheritance Hierarchy
Object
  VObject
    EventContext
      Window
        AppWindow
          ShellWindow
            OLEShellWindow

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS ShellWindow INHERIT AppWindow
Request Example View Source

The ShellWindow type exposes the following members.

Constructors
  NameDescription
Public methodShellWindow
Construct a shell window.
Top
Properties
  NameDescription
Public propertyChildToolBarLocation
Specifies the position of a child window's toolbar.
Public propertyMenu (Overrides Menu.)
Public propertyToolBar
The toolbar in use by the window.
(Overrides ToolBar.)
Top
Functions
  NameDescription
Public methodArrange
Tile, iconize, or cascade all the child windows that are currently open in this shell window.
Public methodCloseAllChildren
Send a close message to all open MDI child windows.
Public methodDestroy
Provide a method to free memory resources allocated for a ShellWindow object and its derived objects.
(Overrides Destroy.)
Public methodEnableOleStatusMessages
Control the status message display of an in-place active OLE object.
Public methodEnableScrollBars
Public methodGetActiveChild
Return the window object for the currently active MDI child window.
Public methodGetPreviousChildForm
Public methodHandle
Return the handle for a shell window.
Public methodOnOleStatusMessage
Provide a handler routine called with an OLE object's status message.
Public methodSetActiveChild
Top
Remarks
A shell window is similar to a top application window except that it acts as an MDI client window and all children of this window act as MDI child windows. The style of a child window is determined by the type of its owner. By default, a child application window whose owner is a shell window automatically functions as an MDI child window. If you do not desire this behavior, you can inhibit it using the ChildAppWindow:Init(). When a child window is activated, its menu is automatically placed on the parent window. When there are no open child windows, the parent's menu is used. MenuCommand events are sent to any currently active child window. If there is no active child window, the default event handler sends events to the parent. For an in-depth discussion on event propagation, refer to the Programmer's Guide. With MDI applications, there is typically one pull-down menu which contains the captions of currently open MDI child windows. The name of the currently active MDI window is checked on the menu; also, when the user selects one of the names on this menu, the system activates the corresponding MDI window. Use the Menu:SetAutoUpdate() method to specify which pull-down menu to use.
See Also