wxWindow
wxWindow is a very well used class. Most controls are derived from
wxWindow, so you should
remember that anything that can be done to a window can be done to an object derived from wxWindow.
The parameters for creating a
wxWindow are:
- atom parent
- atom id
- integer x [ = -1]
- integer y [ = -1]
- integer cx [ = -1]
- integer cy [ = -1]
- atom style [ = 0]
An object of class
wxWindow must have a parent. Therefore,
you cannot create an object of class
wxWindow to be your top level window. Your top level window
should be either of type
wxFrame or
wxDialog. In fact, you should probably rarely
create an object using wxWindow. See
wxPanel.
Functions/Procedures
Supertopics
Subtopics
wxWindow
Category:
wxWindow
This forces a mouse to keep the position it had when it left a window.
If you call this while the cursor is in the 'double-arrow stance, it
will keep that. However, if it has the normal arrow position when it is
called, it will make the cursor turn into a wait stance while it is over
the specified window.
wxWindow
Category:
wxWindow
Centers the window on its parent. direction can be wxHORIZONTAL, wxVERTICAL or wxBOTH.
wxWindow
Category:
wxWindow
This returns the size of this in a sequence of {x,y}. This can
be any wx class that is graphical ( i.e., not wxFontData or
wxArrayString. )
wxWindow
Category:
wxWindow
Returns the id for objects that are derived from class wxWindow. This includes
frames, windows and most controls, but does not include menu items. You should
use get_menuitem_id() for that.
wxWindow
Category:
wxWindow
wxWindow
Category:
wxWindow
Returns the style flag for the specified window.
wxWindow
Category:
wxWindow
Forces a wxWindow to repaint itself. params can take one of several forms:
- atom: this pointer to wxWindow to be refreshed. erase_background is set to 1
- sequence:
- { this, erase_background}
- { this, erase_background, x1, y1, x2, y2}
- If erase_background is 0, then the background is not erased before repainting.
- { x1, y1, x2, y2} defines a rectangle to repaint. If no rectangle is specified,
then the entire wxWindow will be refreshed.
wxWindow
Category:
wxWindow
This releases the mouse position after capture_mouse has been called.
wxWindow
Category:
wxWindow
- window: the window whose color is to be set
- color: a wxColour object
wxWindow
Category:
wxWindow
- window: the window whose color is to be set
- color: a wxColour object
wxWindow
[proc]
set_title ( atom window, sequence title )
Category:
wxWindow
This resets the title of a wxFrame and allows you to put whatever
you want in it's place. You can use set_icon to change the icon
beside of it.
wxWindow
Category:
wxWindow
Set the style for the specified window.
wxWindow
[proc]
show_popup_menu ( atom win, atom menu, integer x, integer y )
Category:
wxWindow