SourceForge.net wxWindow

wxWindow

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: 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

[proc]
capture_mouse
( atom window )

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

[proc]
center_on_parent
( atom win, integer direction )

Category: wxWindow

Centers the window on its parent. direction can be wxHORIZONTAL, wxVERTICAL or wxBOTH.


wxWindow

[func]
get_client_size
( atom this )

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

[func]
get_id
( atom this )

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

[func]
get_top_level_parent
( atom window )

Category: wxWindow


wxWindow

[func]
get_window_style
( atom win )

Category: wxWindow

Returns the style flag for the specified window.


wxWindow

[proc]
refresh_window
( object params )

Category: wxWindow

Forces a wxWindow to repaint itself. params can take one of several forms:


wxWindow

[proc]
release_mouse
( atom window )

Category: wxWindow

This releases the mouse position after capture_mouse has been called.


wxWindow

[proc]
set_back_color
( atom window, atom color )

Category: wxWindow


wxWindow

[proc]
set_fore_color
( atom window, atom color )

Category: wxWindow


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

[proc]
set_window_style
( atom win, atom style )

Category: wxWindow

Set the style for the specified window.


wxWindow

[proc]
show_popup_menu
( atom win, atom menu, integer x, integer y )

Category: wxWindow