OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Window Properties

TDialog also provides functions that let you change resources and properties of the interface element.

Because TWindow provides generic functionality for a large variety of objects, it does not provide very specific functions for resource and property manipulation. High-level objects provide much more specific functionality. But that specific functionality builds on and is in addition to the functionality provided by TWindow:

  • SetCaption() sets the window caption to the string that you pass as a parameter.
  • GetWindowTextTitle() returns a string containing the current window caption.
  • SetCursor() sets the cursor of the instance, identified by the TModule parameter, to the cursor passed as a resource in the second parameter.
  • You can set the accelerator table for a window by assigning the resource ID (which can be a string or an integer) to Attr.AccelTable. For example, suppose you have an accelerator table resource called MY_ACCELS. You would assign the resource to Attr.AccelTable like this:
    TMyWnd::TMyWnd(const char* title)
    {
    Init(0, title);
    Attr.AccelTable = MY_ACCELS; // AccelTable can be assigned
    }

The TWindow::Init() function in this example is used to initialize a the base class of a derived window class.

See Also