TWindow is the super class of all windows. A window is a rectangle area on the screen which receives input events, eg. from the mouse pointer, the keyboard, displays graphics and can contain other windows.
| ||
| ||
| ||
| ||
Create the X11 window. |
| ||
Destroy and remove all children that have been added since Create(). |
| ||
| ||
| ||
| ||
| ||
| ||
Same as GrabMouse but window will receive a 'closeRequest' when button is pressed outside the window and the other window will get the mouse event. |
| ||
| ||
Invalidate an area of the window. This will generate a paint event when
all other events in the message queue have been processed. Multiple calls
to ´Invalidate´ sum up into a single paint event. Before ´paint´ is called,
the background of the invalidated area is cleared with the current
background color.
|
| ||
| ||
Returns 'true' when the window owns the keyboard focus. |
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
Update the whole invalidated window region right now. The normal behaviour is to wait until no other events than paint events are left in the message queue. |
| ||
| ||
| ||
| ||
| ||
| ||
| ||
Scroll area within the given rectangle. No scrolling occures, when dx or dy are >= the size of the rectangle. |
| ||
Set the origin for all drawing operations and scroll the windows content
to the new position. Attention: Child windows will not be moved! |
| ||||||||
Scroll window contents:
|
| ||
Select a background bitmap for the window. |
| ||
| ||
| ||
Requests the keyboard focus for the window. |
| ||
| ||||||||||||||||||
Before a 'mouseMove(int,int,unsigned)' message is called you must select
the desired event types. TOAD will deliver a warning when 'mouseMove' is
implemented but no messages have been selected. The following values
define mode and can be joined by the '|' operator:
|
| ||
Set the origin for all drawing operations. |
| ||
| ||
| ||
| ||
BEWARE: OLD DESCRIPTION Some action methods like SetPostion or SetSize call reaction methods, e.g. when calling SetSize it will call resize() and the parents childResize method. Calling SetSuppressMessages(true) will avoid this for some methods. Please don't use this method until you know what you're doing. See also IsSuppressMessages. |
| ||
| ||
| ||
Show or hide the window. |
| ||
Starts the drag operation. dc contains the data to be send. |
| ||
| ||
| ||
| ||
Obsolete, use 'Invalidate' instead. |
| ||
Returns `true' when the window is visible. |
| ||
| ||
| ||
| ||
| ||
| ||
| ||
The are two ways to initialize a window:
When you have a window needing some sophisticated configuration
and you've decided not to do it all in the constructor but after you've
created the object, then you might need a method being called after this
configuration is done and before the window will be created. When you've decided to use create() you will have to keep some things in mind:
|
| ||
| ||
Called after the window was created. |
| ||
| ||
| ||
Notifies the window that the focus has changed. |
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
Called when parts of the window must be redrawn. |
| ||
| ||
| ||