XVisualsunitXApplets unitXWindows.pas unit

    This unit contains definition of XWindow, which is a base class for XForm and XApplet. It is a descender of XVisual and adds to it a set of properties and methods peculiar to windows (i.e. to windows, which are to be registered in Windows environment) : handle, styles, cursor, icon, menu and so on.
   Creating of MFC-based controls, which use XWindow class, requires some changes in its implementation, making it more similar to corresponding VCL class TWinControl. But this does not lead to essencial increasing of size of resulting executable, moreover with using only of MFC-based controls (vs self-painting controls) it can become even smaller though this even expands set of possible controls, which could be used by applet.

XWindow <= XVisual <= XClass <= TObject

XWindow properties:

Properties inherited from XVisual:

Properties inherited from XClass:

 


XWindow methods:

Methods, inherited from XVisual:

Methods inherited from XClass:

 


Events of XWindow object:

 


Other definitions of XWindows.pas unit:

Also interface class XWindowsManager is declared here and single variable GlobalWindowsManager of this type. This is derived from TObject and has no methods and properties, but has events:


Tasks.

    Usually You have not to descend objects directly from XWindow. To create new control, use XControl as a base. And to create new type of form use XForm as an ancestor. Type XWindow can be useful if You are not going to use XForm capabilities of containing controls and managing of active ones.
    In XCL, XWindow is used to derive both XForm and XApplet classes. So, XWindow includes some code to support capabilities to handle Windows messages:


goto XCL page

goto home page