
Public Member Functions | |
| virtual bool | AcceptsFocus () |
| virtual bool | AcceptsFocusFromKeyboard () |
| Border | BorderByFlags (int flags) |
| void | CacheBestSize (Size size) |
| virtual void | CaptureMouse () |
| void | Center (Orientation direction) |
| void | Center () |
| void | CenterOnParent (Orientation direction) |
| void | CenterOnParent () |
| void | CenterOnScreen (Orientation direction) |
| void | CenterOnScreen () |
| void | Centre (Orientation direction) |
| void | Centre () |
| void | CentreOnParent (Orientation direction) |
| void | CentreOnParent () |
| void | CentreOnScreen (Orientation direction) |
| void | CentreOnScreen () |
| virtual void | ClearBackground () |
| Point | ClientToScreen (Point clientPoint) |
| void | ClientToScreen (ref int x, ref int y) |
| bool | Close (bool force) |
| bool | Close () |
| virtual Size | ConvertDialogToPixels (Size sz) |
| virtual Point | ConvertDialogToPixels (Point pt) |
| virtual Size | ConvertPixelsToDialog (Size sz) |
| virtual Point | ConvertPixelsToDialog (Point pt) |
| virtual bool | Destroy () |
| virtual bool | DestroyChildren () |
| bool | Disable () |
| virtual Window | FindWindow (wxString name) |
| virtual Window | FindWindow (string name) |
| virtual Window | FindWindow (int id, Type type) |
| virtual Window | FindWindow (int id) |
| void | Fit () |
| void | FitInside () |
| virtual void | Freeze () |
| Window | GetNextWindow () |
| Window | GetPreviousWindow () |
| virtual int | GetScrollPos (Orientation orient) |
| virtual int | GetScrollRange (Orientation orient) |
| virtual int | GetScrollThumb (Orientation orient) |
| Size | GetTextExtent (string str) |
| void | GetTextExtent (string str, out int x, out int y, Font font) |
| void | GetTextExtent (string str, out int x, out int y) |
| void | GetTextExtent (wxString str, out int x, out int y, out int descent, out int externalLeading, Font font) |
| void | GetTextExtent (string str, out int x, out int y, out int descent, out int externalLeading, Font font) |
| void | GetTextExtent (string str, out int x, out int y, out int descent, out int externalLeading) |
| virtual bool | HasCapture () |
| virtual bool | HasCustomPalette () |
| virtual bool | HasFlag (WindowStyles flag) |
| virtual bool | HasScrollbar (Orientation orient) |
| bool | Hide () |
| virtual void | InheritAttributes () |
| void | InvalidateBestSize () |
| bool | IsBeingDeleted () |
| bool | IsEnabled () |
| virtual bool | IsExposed (int x, int y, int w, int h) |
| void | Layout () |
| virtual bool | LineDown () |
| virtual bool | LineUp () |
| virtual void | Lower () |
| virtual void | Move (int x, int y, int flags) |
| virtual bool | PageDown () |
| virtual bool | PageUp () |
| EvtHandler | PopEventHandler (bool deleteHandler) |
| virtual bool | PopupMenu (Menu menu, Point pos) |
| bool | PopupMenu (Menu menu) |
| virtual void | PrepareDC (DC dc) |
| void | PushEventHandler (EvtHandler handler) |
| virtual void | Raise () |
| virtual void | Refresh (bool eraseBackground, Rectangle rect) |
| virtual void | Refresh () |
| virtual void | RefreshRectangle (Rectangle rect) |
| virtual void | ReleaseMouse () |
| bool | RemoveEventHandler (EvtHandler handler) |
| virtual bool | Reparent (Window newParent) |
| Point | ScreenToClient (Point screenPoint) |
| virtual void | ScreenToClient (ref int x, ref int y) |
| virtual bool | ScrollLines (int lines) |
| virtual bool | ScrollPages (int pages) |
| virtual void | ScrollWindow (int dx, int dy, Rectangle rect) |
| virtual void | SetFocus () |
| virtual void | SetFocusFromKbd () |
| virtual void | SetHelpTextForId (string text) |
| virtual void | SetScrollbar (Orientation orient, int pos, int thumbSize, int range, bool refresh) |
| virtual void | SetScrollPos (Orientation orient, int pos, bool refresh) |
| void | SetSize (Size size) |
| void | SetSize (int width, int height) |
| void | SetSize (int x, int y, int width, int height) |
| void | SetSizeHints (int minW, int minH, int maxW, int maxH, int incW, int incH) |
| void | SetSizeHints (int minW, int minH, int maxW, int maxH) |
| void | SetSizeHints (int minW, int minH) |
| void | SetSizeHints (Size minimalSize) |
| void | SetSizer (Sizer sizer, bool deleteOld) |
| void | SetSizer (Sizer sizer) |
| virtual void | SetSizerAndFit (Sizer sizer, bool deleteOld) |
| virtual void | SetSizerAndFit (Sizer sizer) |
| void | SetVirtualSizeHints (int minW, int minH, int maxW, int maxH) |
| virtual bool | ShouldInheritColours () |
| bool | Show (bool show) |
| bool | Show () |
| virtual void | Thaw () |
| override string | ToString () |
| virtual void | Update () |
| virtual void | UpdateWindowUI () |
| delegate void | Validator (ref bool accepted) |
| virtual void | WarpPointer (int x, int y) |
| Window (IntPtr wxObject) | |
| Window (Window parent, Point pos, Size size, WindowStyles style, string name) | |
| Window (Window parent, int id, Point pos, Size size, wx.WindowStyles style, wxString name) | |
| Window (Window parent, int id, Point pos, Size size, wx.WindowStyles style, string name) | |
| Window (Window parent) | |
Static Public Member Functions | |
| static VisualAttributes | ClassDefaultAttributes (WindowVariant variant) |
| static VisualAttributes | ClassDefaultAttributes () |
| static Window | FindFocus () |
| static Window | FindWindowById (int id, Window parent) |
| static Window | FindWindowByLabel (wxString label, Window parent) |
| static Window | FindWindowByLabel (string label, Window parent) |
| static Window | FindWindowByName (wxString name, Window parent) |
| static Window | FindWindowByName (string name, Window parent) |
| static Window | GetCapture () |
| static int | GetNumberFromUser (wxString msg, wxString prompt, wxString caption, int value, int min, int max, Window parent, Point pos) |
| static int | GetNumberFromUser (string msg, string prompt, string caption, int value, int min, int max, Window parent, Point pos) |
| static int | GetNumberFromUser (string msg, string prompt, string caption, int value, int min, int max, Window parent) |
| static int | GetNumberFromUser (string msg, string prompt, string caption, int value, int min, int max) |
| static int | GetNumberFromUser (string msg, string prompt, string caption, int value, int min) |
| static int | GetNumberFromUser (string msg, string prompt, string caption, int value) |
| static int | GetUniqueID () |
| static int | NewControlId () |
| static int | NextControlId (int id) |
| static int | PrevControlId (int id) |
Public Attributes | |
| object | ClientData = null |
| event Validator | OnTransferDataFromWindow |
| const int | wxFRAME_EX_CONTEXTHELP = 0x00000004 |
| const int | wxID_ABOUT = 5013 |
| const int | wxID_ANY = -1 |
| const int | wxID_CANCEL = 5101 |
| const int | wxID_NO = 5104 |
| const int | wxID_OK = 5100 |
| const int | wxID_YES = 5103 |
Static Public Attributes | |
| static readonly int | wxDefaultCoord = -1 |
| static readonly Point | wxDefaultPosition = new Point(-1, -1) |
| static readonly Size | wxDefaultSize = new Size(-1, -1) |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
Properties | |
| AcceleratorTable | AcceleratorTable [get, set] |
| virtual Size | AdjustedBestSize [get] |
| Window | AncestorWithCustomPalette [get] |
| virtual bool | AutoLayout [get, set] |
| virtual Colour | BackgroundColour [get, set] |
| BackgroundStyle | BackgroundStyle [get, set] |
| Size | BestFittingSize [get, set] |
| virtual Size | BestSize [get] |
| Size | BestVirtualSize [get] |
| Border | Border [get] |
| virtual int | Bottom [get, set] |
| virtual Caret | Caret [get, set] |
| virtual int | CharHeight [get] |
| virtual int | CharWidth [get] |
| Window[] | Children [get] |
| virtual Point | ClientAreaOrigin [get] |
| virtual Rectangle | ClientRect [get] |
| Size | ClientSize [get, set] |
| virtual Sizer | ContainingSizer [get, set] |
| Cursor | Cursor [get, set] |
| virtual VisualAttributes | DefaultAttributes [get] |
| virtual DropTarget | DropTarget [get, set] |
| virtual bool | Enabled [get, set] |
| EvtHandler | EventHandler [get, set] |
| virtual uint | ExtraStyle [get, set] |
| virtual Font | Font [get, set] |
| virtual Colour | ForegroundColour [get, set] |
| virtual Window | GrandParent [get] |
| virtual int | Height [get, set] |
| virtual string | HelpText [get, set] |
| int | ID [get, set] |
| bool | IsRetained [get] |
| bool | IsShown [get] |
| virtual bool | IsTopLevel [get] |
| virtual int | Left [get, set] |
| int | MaxHeight [get] |
| Size | MaxSize [get, set] |
| int | MaxWidth [get] |
| int | MinHeight [get, set] |
| Size | MinSize [get, set] |
| int | MinWidth [get, set] |
| virtual string | Name [get, set] |
| virtual Palette | Palette [get, set] |
| virtual Window | Parent [get, set] |
| virtual Point | Position [get, set] |
| virtual Rectangle | Rect [get] |
| virtual int | Right [get, set] |
| virtual Size | Size [get, set] |
| virtual Sizer | Sizer [get, set] |
| virtual WindowStyles | StyleFlags [get, set] |
| bool | ThemeEnabled [get, set] |
| virtual string | Title [get, set] |
| virtual string | ToolTip [get, set] |
| virtual int | Top [get, set] |
| Window | TopLevelWindow [get] |
| virtual Region | UpdateRegion [get] |
| Size | VirtualSize [get, set] |
| virtual int | Width [get, set] |
| wx.WindowStyles | WindowStyle [get, set] |
| WindowVariant | WindowVariant [get, set] |
Events | |
| event EventListener | Activated [add, remove] |
| event EventListener | Char [add, remove] |
| event EventListener | Closing [add, remove] |
| virtual event EventListener | KeyDown [add, remove] |
| event EventListener | KeyUp [add, remove] |
| event EventListener | LeftDoubleClick [add, remove] |
| event EventListener | LeftDown [add, remove] |
| event EventListener | LeftUp [add, remove] |
| event EventListener | MiddleDoubleClick [add, remove] |
| event EventListener | MiddleDown [add, remove] |
| event EventListener | MiddleUp [add, remove] |
| event EventListener | MouseEnter [add, remove] |
| event EventListener | MouseLeave [add, remove] |
| event EventListener | MouseMove [add, remove] |
| event EventListener | MouseThumbTrack [add, remove] |
| event EventListener | Moved [add, remove] |
| event EventListener | Resized [add, remove] |
| event EventListener | RightDoubleClick [add, remove] |
| event EventListener | RightDown [add, remove] |
| event EventListener | RightUp [add, remove] |
| event EventListener | ScrollLineDown [add, remove] |
| event EventListener | ScrollLineUp [add, remove] |
| virtual event EventListener | UpdateUI [add, remove] |
| wx.Window.Window | ( | Window | parent | ) |
Creates a window.
| parent | The parent window. |
| wx.Window.Window | ( | Window | parent, | |
| int | id, | |||
| Point | pos, | |||
| Size | size, | |||
| wx.WindowStyles | style, | |||
| string | name | |||
| ) |
Creates a window.
| parent | The parent window. | |
| id | A numeric identifier of the window that can be used to search for particular subwindows. Use -1 if undefined. | |
| name | A string identifier of the window. | |
| pos | The upper left position of the window. | |
| size | The size of the window. | |
| style | The style of the window. |
| wx.Window.Window | ( | Window | parent, | |
| int | id, | |||
| Point | pos, | |||
| Size | size, | |||
| wx.WindowStyles | style, | |||
| wxString | name | |||
| ) |
Creates a window.
| parent | The parent window. | |
| id | A numeric identifier of the window that can be used to search for particular subwindows. Use -1 if undefined. | |
| pos | The upper left position of the window. | |
| size | The size of the window. | |
| style | The style of the window. |
| wx.Window.Window | ( | Window | parent, | |
| Point | pos, | |||
| Size | size, | |||
| WindowStyles | style, | |||
| string | name | |||
| ) |
Creates a window.
| parent | The parent window. | |
| name | A string identifier of the window. | |
| pos | The upper left position of the window. | |
| size | The size of the window. | |
| style | The style of the window. |
| wx.Window.Window | ( | IntPtr | wxObject | ) |
| virtual bool wx.Window.AcceptsFocus | ( | ) | [virtual] |
can this window have focus?
Reimplemented in wx.Gauge, and wx.ToolBar.
| virtual bool wx.Window.AcceptsFocusFromKeyboard | ( | ) | [virtual] |
can this window be given focus by keyboard navigation? if not, the only way to give it focus (provided it accepts it at all) is to click it
Reimplemented in wx.Html.HtmlWindow.
| Border wx.Window.BorderByFlags | ( | int | flags | ) |
| void wx.Window.CacheBestSize | ( | Size | size | ) |
| virtual void wx.Window.CaptureMouse | ( | ) | [virtual] |
Directs all mouse input to this window. Call wxWindow.ReleaseMouse to release the capture.
Note that wxWidgets maintains the stack of windows having captured the mouse and when the mouse is released the capture returns to the window which had had captured it previously and it is only really released if there were no previous window. In particular, this means that you must release the mouse as many times as you capture it, unless the window receives the wx.MouseCaptureLostEvent event.
Any application which captures the mouse in the beginning of some operation must handle wx.MouseCaptureLostEvent and cancel this operation when it receives the event. The event handler must not recapture mouse.
| void wx.Window.Center | ( | Orientation | direction | ) |
| void wx.Window.Center | ( | ) |
| void wx.Window.CenterOnParent | ( | Orientation | direction | ) |
Centres the window on its parent. This is a more readable synonym for Centre. This methods provides for a way to center top level windows over their parents instead of the entire screen. If there is no parent or if the window is not a top level window, then behaviour is the same as wx.Window.Centre().
| direction | Specifies the direction for the centering. May be Orientation.wxHORIZONTAL, Orientation.wxVERTICAL or Orientation.wxBOTH. |
| void wx.Window.CenterOnParent | ( | ) |
Centres the window on its parent. This is a more readable synonym for Centre. This methods provides for a way to center top level windows over their parents instead of the entire screen. If there is no parent or if the window is not a top level window, then behaviour is the same as wx.Window.Centre().
| void wx.Window.CenterOnScreen | ( | Orientation | direction | ) |
| void wx.Window.CenterOnScreen | ( | ) |
| void wx.Window.Centre | ( | Orientation | direction | ) |
| void wx.Window.Centre | ( | ) |
| void wx.Window.CentreOnParent | ( | Orientation | direction | ) |
Centres the window on its parent. This is a more readable synonym for Centre. This methods provides for a way to center top level windows over their parents instead of the entire screen. If there is no parent or if the window is not a top level window, then behaviour is the same as wx.Window.Centre().
| direction | Specifies the direction for the centering. May be Orientation.wxHORIZONTAL, Orientation.wxVERTICAL or Orientation.wxBOTH. |
| void wx.Window.CentreOnParent | ( | ) |
Centres the window on its parent. This is a more readable synonym for Centre. This methods provides for a way to center top level windows over their parents instead of the entire screen. If there is no parent or if the window is not a top level window, then behaviour is the same as wx.Window.Centre().
| void wx.Window.CentreOnScreen | ( | Orientation | direction | ) |
| void wx.Window.CentreOnScreen | ( | ) |
| static VisualAttributes wx.Window.ClassDefaultAttributes | ( | WindowVariant | variant | ) | [static] |
| static VisualAttributes wx.Window.ClassDefaultAttributes | ( | ) | [static] |
| virtual void wx.Window.ClearBackground | ( | ) | [virtual] |
| Point wx.Window.ClientToScreen | ( | Point | clientPoint | ) |
| void wx.Window.ClientToScreen | ( | ref int | x, | |
| ref int | y | |||
| ) |
| bool wx.Window.Close | ( | bool | force | ) |
This will create a wx.CloseEvent but handlers are not allowed to veto if force is true. Try wx.Utils.Exit() if you want the application to be exited. Otherwise, the application will exit automatically, if all top level windows are closed.
Refer also to Close().
| bool wx.Window.Close | ( | ) |
This function simply generates a wxCloseEvent whose handler usually tries to close the window. It doesn't close the window itself, however.
Close calls the close handler for the window, providing an opportunity for the window to choose whether to destroy the window. Usually it is only used with the top level windows (wx.Frame and wx.Dialog classes) as the others are not supposed to have any special OnClose() logic.
The close handler should check whether the window is being deleted forcibly, using wx.CloseEvent.CanVeto, in which case it should destroy the window using wx.Window.Destroy().
Note that calling Close() does not guarantee that the window will be destroyed; but it provides a way to simulate a manual close of a window, which may or may not be implemented by destroying the window. The default implementation of wx.Dialog.OnCloseWindow() does not necessarily delete the dialog, since it will simply simulate an wxID_CANCEL event which is handled by the appropriate button event handler and may do anything at all.
To guarantee that the window will be destroyed, call wx.Window.Destroy instead.
| virtual Size wx.Window.ConvertDialogToPixels | ( | Size | sz | ) | [virtual] |
| virtual Point wx.Window.ConvertDialogToPixels | ( | Point | pt | ) | [virtual] |
| virtual Size wx.Window.ConvertPixelsToDialog | ( | Size | sz | ) | [virtual] |
| virtual Point wx.Window.ConvertPixelsToDialog | ( | Point | pt | ) | [virtual] |
| virtual bool wx.Window.Destroy | ( | ) | [virtual] |
Destroy the window. Call this only is you do not want to show it again.
| virtual bool wx.Window.DestroyChildren | ( | ) | [virtual] |
Destroy the window's children. Call this only is you do not want to show them again.
| bool wx.Window.Disable | ( | ) |
| override void wx.Window.Dispose | ( | bool | disposing | ) | [protected, virtual] |
Overriden disposition. Even if we do not own the memory, we have to delete the window, since this is apparently intended by the user calling this method.
Reimplemented from wx.Object.
Reimplemented in wx.CalendarCtrl, and wx.GridCtrl.Grid.
| static Window wx.Window.FindFocus | ( | ) | [static] |
Finds the window or control which currently has the keyboard focus.
Note that this is a static function, so it can be called without needing a wx.Window pointer.
| virtual Window wx.Window.FindWindow | ( | string | name | ) | [virtual] |
| virtual Window wx.Window.FindWindow | ( | int | id, | |
| Type | type | |||
| ) | [virtual] |
This will find the window of the provided id and or create one of class type.
| virtual Window wx.Window.FindWindow | ( | int | id | ) | [virtual] |
Adds a child window. This is called automatically by window creation functions so should not be required by the application programmer.
Notice that this function is mostly internal to wxWidgets and shouldn't be called by the user code.
| child | Child window to add. |
id. The result will be null if no such window exists.
Find the first window with the given id.
If parent is null, the search will start from all top-level frames and dialog boxes; if non-null, the search will be limited to the given window hierarchy. The search is recursive in both cases.
| id | The number identifying the searched window. | |
| parent | If not null, this method will only search this window and its children. |
Find a window by its label. Depending on the type of window, the label may be a window title or panel item label. If parent is null, the search will start from all top-level frames and dialog boxes; if non-NULL, the search will be limited to the given window hierarchy. The search is recursive in both cases.
| label | The window label that this method will search for. | |
| parent | If not null, this method will only search this window and its children. |
Find a window by its label. Depending on the type of window, the label may be a window title or panel item label. If parent is null, the search will start from all top-level frames and dialog boxes; if non-NULL, the search will be limited to the given window hierarchy. The search is recursive in both cases.
| label | The window label that this method will search for. | |
| parent | If not null, this method will only search this window and its children. |
Find a window by its name (as given in a window constructor or Create function call). If parent is NULL, the search will start from all top-level frames and dialog boxes; if non-NULL, the search will be limited to the given window hierarchy. The search is recursive in both cases.
If no window with such name is found, FindWindowByLabel is called.
| name | The window name that this method will search for. | |
| parent | If not null, this method will only search this window and its children. |
Find a window by its name (as given in a window constructor or Create function call). If parent is NULL, the search will start from all top-level frames and dialog boxes; if non-NULL, the search will be limited to the given window hierarchy. The search is recursive in both cases.
If no window with such name is found, FindWindowByLabel is called.
| name | The window name that this method will search for. | |
| parent | If not null, this method will only search this window and its children. |
| void wx.Window.Fit | ( | ) |
Sizes the window so that it fits around its subwindows. This function won't do anything if there are no subwindows and will only really work correctly if the sizers are used for the subwindows layout.
Also, if the window has exactly one subwindow it is better (faster and the result is more precise as Fit() adds some margin to account for fuzziness of its calculations) to call
window->SetClientSize(child->GetSize());
| void wx.Window.FitInside | ( | ) |
Similar to Fit, but sizes the interior (virtual) size of a window. Mainly useful with scrolled windows to reset scrollbars after sizing changes that do not trigger a size event, and/or scrolled windows without an interior sizer. This function similarly won't do anything if there are no subwindows.
| virtual void wx.Window.Freeze | ( | ) | [virtual] |
Reimplemented in wx.TextCtrl.
| static Window wx.Window.GetCapture | ( | ) | [static] |
| Window wx.Window.GetNextWindow | ( | ) |
Get the next Window in the TAB order of the parent. This may be null if either this does not have a parent or the parent only has one child.
| static int wx.Window.GetNumberFromUser | ( | wxString | msg, | |
| wxString | prompt, | |||
| wxString | caption, | |||
| int | value, | |||
| int | min, | |||
| int | max, | |||
| Window | parent, | |||
| Point | pos | |||
| ) | [static] |
| static int wx.Window.GetNumberFromUser | ( | string | msg, | |
| string | prompt, | |||
| string | caption, | |||
| int | value, | |||
| int | min, | |||
| int | max, | |||
| Window | parent, | |||
| Point | pos | |||
| ) | [static] |
| static int wx.Window.GetNumberFromUser | ( | string | msg, | |
| string | prompt, | |||
| string | caption, | |||
| int | value, | |||
| int | min, | |||
| int | max, | |||
| Window | parent | |||
| ) | [static] |
| static int wx.Window.GetNumberFromUser | ( | string | msg, | |
| string | prompt, | |||
| string | caption, | |||
| int | value, | |||
| int | min, | |||
| int | max | |||
| ) | [static] |
| static int wx.Window.GetNumberFromUser | ( | string | msg, | |
| string | prompt, | |||
| string | caption, | |||
| int | value, | |||
| int | min | |||
| ) | [static] |
| static int wx.Window.GetNumberFromUser | ( | string | msg, | |
| string | prompt, | |||
| string | caption, | |||
| int | value | |||
| ) | [static] |
| Window wx.Window.GetPreviousWindow | ( | ) |
Get the previous Window in the TAB order of the parent. This may be null if either this does not have a parent or the parent only has one child.
| virtual int wx.Window.GetScrollPos | ( | Orientation | orient | ) | [virtual] |
| virtual int wx.Window.GetScrollRange | ( | Orientation | orient | ) | [virtual] |
| virtual int wx.Window.GetScrollThumb | ( | Orientation | orient | ) | [virtual] |
| Size wx.Window.GetTextExtent | ( | string | str | ) |
| void wx.Window.GetTextExtent | ( | string | str, | |
| out int | x, | |||
| out int | y, | |||
| Font | font | |||
| ) |
| void wx.Window.GetTextExtent | ( | string | str, | |
| out int | x, | |||
| out int | y | |||
| ) |
| void wx.Window.GetTextExtent | ( | wxString | str, | |
| out int | x, | |||
| out int | y, | |||
| out int | descent, | |||
| out int | externalLeading, | |||
| Font | font | |||
| ) |
| void wx.Window.GetTextExtent | ( | string | str, | |
| out int | x, | |||
| out int | y, | |||
| out int | descent, | |||
| out int | externalLeading, | |||
| Font | font | |||
| ) |
| void wx.Window.GetTextExtent | ( | string | str, | |
| out int | x, | |||
| out int | y, | |||
| out int | descent, | |||
| out int | externalLeading | |||
| ) |
| static int wx.Window.GetUniqueID | ( | ) | [static] |
This always returns a unique ID that is appropriate to denote windows.
| virtual bool wx.Window.HasCapture | ( | ) | [virtual] |
| virtual bool wx.Window.HasCustomPalette | ( | ) | [virtual] |
| virtual bool wx.Window.HasFlag | ( | WindowStyles | flag | ) | [virtual] |
True if the designated style flag has been set for this window.
| virtual bool wx.Window.HasScrollbar | ( | Orientation | orient | ) | [virtual] |
True if this displays a scrollbar on the given orientation.
| orient |
| bool wx.Window.Hide | ( | ) |
| virtual void wx.Window.InheritAttributes | ( | ) | [virtual] |
| void wx.Window.InvalidateBestSize | ( | ) |
| bool wx.Window.IsBeingDeleted | ( | ) |
| bool wx.Window.IsEnabled | ( | ) |
Returns true iff enabled.
| virtual bool wx.Window.IsExposed | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) | [virtual] |
Returns true if the given point or rectangle area has been exposed since the last repaint. Call this in an paint event handler to optimize redrawing by only redrawing those areas, which have been exposed.
| void wx.Window.Layout | ( | ) |
| virtual bool wx.Window.LineDown | ( | ) | [virtual] |
| virtual bool wx.Window.LineUp | ( | ) | [virtual] |
| virtual void wx.Window.Lower | ( | ) | [virtual] |
| virtual void wx.Window.Move | ( | int | x, | |
| int | y, | |||
| int | flags | |||
| ) | [virtual] |
| static int wx.Window.NewControlId | ( | ) | [static] |
Generate a control id for the controls which were not given one by user.
wx.NET provides property wx.Window.GetUniqueID() to generate uniqe IDs which are appropriate to designate windows.
| static int wx.Window.NextControlId | ( | int | id | ) | [static] |
Get the id of the control following the one with the given (autogenerated) id.
| virtual bool wx.Window.PageDown | ( | ) | [virtual] |
| virtual bool wx.Window.PageUp | ( | ) | [virtual] |
| EvtHandler wx.Window.PopEventHandler | ( | bool | deleteHandler | ) |
cf. PushEventHandler().
| virtual bool wx.Window.PopupMenu | ( | Menu | menu, | |
| Point | pos | |||
| ) | [virtual] |
| bool wx.Window.PopupMenu | ( | Menu | menu | ) |
| virtual void wx.Window.PrepareDC | ( | DC | dc | ) | [virtual] |
This prepares the argument for drawing.
Reimplemented in wx.ScrolledWindow.
| static int wx.Window.PrevControlId | ( | int | id | ) | [static] |
Get the id of the control preceding the one with the given (autogenerated) id
| void wx.Window.PushEventHandler | ( | EvtHandler | handler | ) |
Pushes this event handler onto the event stack for the window.
| handler | Specifies the handler to be pushed. An event handler is an object that is capable of processing the events sent to a window. By default, the window is its own event handler, but an application may wish to substitute another, for example to allow central implementation of event-handling for a variety of different window classes. |
| virtual void wx.Window.Raise | ( | ) | [virtual] |
Raises the window to the top of the window hierarchy (z-order). In current version of wxWidgets this works both for managed and child windows.
| virtual void wx.Window.Refresh | ( | bool | eraseBackground, | |
| Rectangle | rect | |||
| ) | [virtual] |
| virtual void wx.Window.Refresh | ( | ) | [virtual] |
| virtual void wx.Window.RefreshRectangle | ( | Rectangle | rect | ) | [virtual] |
| virtual void wx.Window.ReleaseMouse | ( | ) | [virtual] |
Releases mouse input captured with wx.Window.CaptureMouse().
| bool wx.Window.RemoveEventHandler | ( | EvtHandler | handler | ) |
| virtual bool wx.Window.Reparent | ( | Window | newParent | ) | [virtual] |
| Point wx.Window.ScreenToClient | ( | Point | screenPoint | ) |
| virtual void wx.Window.ScreenToClient | ( | ref int | x, | |
| ref int | y | |||
| ) | [virtual] |
| virtual bool wx.Window.ScrollLines | ( | int | lines | ) | [virtual] |
Scrolls the window by the given number of lines down (if lines is positive) or up.
| lines | Number of lines to scroll down (positive) or up (negative) |
Reimplemented in wx.TextCtrl, and wx.VScrolledWindow.
| virtual bool wx.Window.ScrollPages | ( | int | pages | ) | [virtual] |
Scrolls the window by the given number of pages down (if pages is positive) or up.
| pages | Number of pages to scroll down (positive) or up. |
Reimplemented in wx.TextCtrl, and wx.VScrolledWindow.
| virtual void wx.Window.ScrollWindow | ( | int | dx, | |
| int | dy, | |||
| Rectangle | rect | |||
| ) | [virtual] |
| virtual void wx.Window.SetFocus | ( | ) | [virtual] |
| virtual void wx.Window.SetFocusFromKbd | ( | ) | [virtual] |
This function is called by wxWidgets keyboard navigation code when the user gives the focus to this window from keyboard (e.g. using TAB key). By default this method simply calls SetFocus but can be overridden to do something in addition to this in the derived classes. Please note, that this method cannot be overridden from any class. Currently, inheritors of wx.Panel and wx.Dialog can override this.
| virtual void wx.Window.SetHelpTextForId | ( | string | text | ) | [virtual] |
| virtual void wx.Window.SetScrollbar | ( | Orientation | orient, | |
| int | pos, | |||
| int | thumbSize, | |||
| int | range, | |||
| bool | refresh | |||
| ) | [virtual] |
Sets the scrollbar properties of a built-in scrollbar.
Let's say you wish to display 50 lines of text, using the same font. The window is sized so that you can only see 16 lines at a time.
You would use:
SetScrollbar(wxVERTICAL, 0, 16, 50);
Note that with the window at this size, the thumb position can never go above 50 minus 16, or 34.
You can determine how many lines are currently visible by dividing the current view size by the character height in pixels.
When defining your own scrollbar behaviour, you will always need to recalculate the scrollbar settings when the window size changes. You could therefore put your scrollbar calculations and SetScrollbar call into a function named AdjustScrollbars, which can be called initially and also from your wxSizeEvent handler function.
| orient | Determines the scrollbar whose page size is to be set. May be wxHORIZONTAL or wxVERTICAL. | |
| pos | The position of the scrollbar in scroll units. | |
| thumbSize | The size of the thumb, or visible portion of the scrollbar, in scroll units. | |
| range | The maximum position of the scrollbar. | |
| refresh | true to redraw the scrollbar, false otherwise. |
| virtual void wx.Window.SetScrollPos | ( | Orientation | orient, | |
| int | pos, | |||
| bool | refresh | |||
| ) | [virtual] |
Sets the scrollbar properties of a built-in scrollbar.
Let's say you wish to display 50 lines of text, using the same font. The window is sized so that you can only see 16 lines at a time.
You would use:
SetScrollbar(wxVERTICAL, 0, 16, 50);
Note that with the window at this size, the thumb position can never go above 50 minus 16, or 34.
You can determine how many lines are currently visible by dividing the current view size by the character height in pixels.
When defining your own scrollbar behaviour, you will always need to recalculate the scrollbar settings when the window size changes. You could therefore put your scrollbar calculations and SetScrollbar call into a function named AdjustScrollbars, which can be called initially and also from your wxSizeEvent handler function.
| orient | Determines the scrollbar whose page size is to be set. May be wxHORIZONTAL or wxVERTICAL. | |
| pos | The position of the scrollbar in scroll units. | |
| refresh | true to redraw the scrollbar, false otherwise. |
| void wx.Window.SetSize | ( | Size | size | ) |
| void wx.Window.SetSize | ( | int | width, | |
| int | height | |||
| ) |
| void wx.Window.SetSize | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) |
| void wx.Window.SetSizeHints | ( | int | minW, | |
| int | minH, | |||
| int | maxW, | |||
| int | maxH, | |||
| int | incW, | |||
| int | incH | |||
| ) |
Use of this function for windows which are not toplevel windows (such as wxDialog or wx.Frame) is discouraged. Please assign to MinSize and MaxSize instead.
| void wx.Window.SetSizeHints | ( | int | minW, | |
| int | minH, | |||
| int | maxW, | |||
| int | maxH | |||
| ) |
Use of this function for windows which are not toplevel windows (such as wxDialog or wx.Frame) is discouraged. Please assign to MinSize and MaxSize instead.
| void wx.Window.SetSizeHints | ( | int | minW, | |
| int | minH | |||
| ) |
Use of this function for windows which are not toplevel windows (such as wxDialog or wx.Frame) is discouraged. Please assign to MinSize and MaxSize instead.
| minW | Minimal width of the dialog or frame that will be propagated to the size of the children. | |
| minH | Minimal width of the dialog or frame that will be propagated to the size of the children. |
| void wx.Window.SetSizeHints | ( | Size | minimalSize | ) |
Use of this function for windows which are not toplevel windows (such as wxDialog or wx.Frame) is discouraged. Please assign to MinSize and MaxSize instead.
| minimalSize | Minimal size of the dialog or frame that will be propagated to the size of the children. |
| void wx.Window.SetSizer | ( | Sizer | sizer, | |
| bool | deleteOld | |||
| ) |
| void wx.Window.SetSizer | ( | Sizer | sizer | ) |
| virtual void wx.Window.SetSizerAndFit | ( | Sizer | sizer, | |
| bool | deleteOld | |||
| ) | [virtual] |
| virtual void wx.Window.SetSizerAndFit | ( | Sizer | sizer | ) | [virtual] |
| void wx.Window.SetVirtualSizeHints | ( | int | minW, | |
| int | minH, | |||
| int | maxW, | |||
| int | maxH | |||
| ) |
| virtual bool wx.Window.ShouldInheritColours | ( | ) | [virtual] |
Reimplemented in wx.ControlWithItems.
| bool wx.Window.Show | ( | bool | show | ) |
Shows or hides the window. You may need to call Raise() for a top level window if you want to bring it to top, although this is not needed if Show() is called immediately after the frame creation.
| show | If true displays the window. Otherwise, hides it. |
| bool wx.Window.Show | ( | ) |
Shows or hides the window. You may need to call Raise() for a top level window if you want to bring it to top, although this is not needed if Show() is called immediately after the frame creation.
| virtual void wx.Window.Thaw | ( | ) | [virtual] |
Reimplemented in wx.TextCtrl.
| override string wx.Window.ToString | ( | ) |
String presenting type, name, and ID.
| virtual void wx.Window.Update | ( | ) | [virtual] |
| virtual void wx.Window.UpdateWindowUI | ( | ) | [virtual] |
| delegate void wx.Window.Validator | ( | ref bool | accepted | ) |
Simply a delegator for validation. Asign false to the argument if you want to indicate
| virtual void wx.Window.WarpPointer | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
| object wx.Window.ClientData = null |
In addition to the client data concept in wxWidgets, wx.NET offers you the option to tag each window with client data. The motivation for this: When you deal with events, you usually know the sender. You may use the client data to attach data to the sender that is required to deal with the event. For instance, you may have a button that shall have an effect on a particular widget. You may ease implementation of such a solution assigning the widget to the button's client data. Thus, the event handler may retrieve the widgets that is required to implement the action directly from the control that caused the action.
This will be called on wxWindowTransferDataFromWindow. This is the right place for validation.
readonly int wx.Window.wxDefaultCoord = -1 [static] |
Default coordinate. Use this when you are allowed to provide a coordinate but you do not want to provide information on a particular coordinate.
readonly Point wx.Window.wxDefaultPosition = new Point(-1, -1) [static] |
Default position. Use this when you are allowed to provide a position but you do not want to provide a particular position.
readonly Size wx.Window.wxDefaultSize = new Size(-1, -1) [static] |
Default size. Use this when you are allowed to provide a size but you do not want to specify a particular size.
| const int wx.Window.wxFRAME_EX_CONTEXTHELP = 0x00000004 |
| const int wx.Window.wxID_ABOUT = 5013 |
Default ID of the about box.
| const int wx.Window.wxID_ANY = -1 |
Indefinite window ID: -1.
| const int wx.Window.wxID_CANCEL = 5101 |
Default ID of the cancel button.
| const int wx.Window.wxID_NO = 5104 |
Default ID of the NO button.
| const int wx.Window.wxID_OK = 5100 |
Default ID of the OK button.
| const int wx.Window.wxID_YES = 5103 |
Default ID of the YES button.
AcceleratorTable wx.Window.AcceleratorTable [get, set] |
The accelerator table that is associated to this window.
virtual Size wx.Window.AdjustedBestSize [get] |
Window wx.Window.AncestorWithCustomPalette [get] |
virtual bool wx.Window.AutoLayout [get, set] |
virtual Colour wx.Window.BackgroundColour [get, set] |
Reimplemented in wx.TextCtrl.
BackgroundStyle wx.Window.BackgroundStyle [get, set] |
Returns or defines the background mode of the window. The background style indicates whether background colour should be determined by the system (wxBG_STYLE_SYSTEM), be set to a specific colour (wxBG_STYLE_COLOUR), or should be left to the application to implement (wxBG_STYLE_CUSTOM).
On GTK+, use of wxBG_STYLE_CUSTOM allows the flicker-free drawing of a custom background, such as a tiled bitmap. Currently the style has no effect on other platforms.
Size wx.Window.BestFittingSize [get, set] |
virtual Size wx.Window.BestSize [get] |
Size wx.Window.BestVirtualSize [get] |
Border wx.Window.Border [get] |
virtual int wx.Window.Bottom [get, set] |
Get or set the bottom Y-position of this window.
virtual Caret wx.Window.Caret [get, set] |
virtual int wx.Window.CharHeight [get] |
virtual int wx.Window.CharWidth [get] |
Window [] wx.Window.Children [get] |
The children of this window in an array.
virtual Point wx.Window.ClientAreaOrigin [get] |
Reimplemented in wx.Frame.
virtual Rectangle wx.Window.ClientRect [get] |
Size wx.Window.ClientSize [get, set] |
virtual Sizer wx.Window.ContainingSizer [get, set] |
Cursor wx.Window.Cursor [get, set] |
virtual VisualAttributes wx.Window.DefaultAttributes [get] |
virtual DropTarget wx.Window.DropTarget [get, set] |
On setting a value: Associates a drop target with this window. If the window already has a drop target, it is deleted. On getting the value: Returns the associated drop target, which may be NULL.
virtual bool wx.Window.Enabled [get, set] |
Enable or disable cf. read whether enabled or disabled.
Reimplemented in wx.ComboCtrl.
EvtHandler wx.Window.EventHandler [get, set] |
virtual uint wx.Window.ExtraStyle [get, set] |
virtual Font wx.Window.Font [get, set] |
Reimplemented in wx.Aui.AuiNotebook, wx.Aui.AuiToolBar, wx.ComboCtrl, and wx.TextCtrl.
virtual Colour wx.Window.ForegroundColour [get, set] |
Reimplemented in wx.TextCtrl.
virtual Window wx.Window.GrandParent [get] |
Returns the grandparent of a window, or null if there isn't one.
virtual int wx.Window.Height [get, set] |
Get or set the height of this window.
virtual string wx.Window.HelpText [get, set] |
Refer to wx.Html.HtmlHelpController.
int wx.Window.ID [get, set] |
bool wx.Window.IsRetained [get] |
Returns true if the window is retained, false otherwise.
Remarks: Retained windows are only available on X platforms.
bool wx.Window.IsShown [get] |
virtual bool wx.Window.IsTopLevel [get] |
virtual int wx.Window.Left [get, set] |
Get or set the left X-position of this window.
int wx.Window.MaxHeight [get] |
Size wx.Window.MaxSize [get, set] |
Read and set the maximum size of the window. This should be set after changing the size for instance after construction and before adding this to tha parent sizer. However, you should consider to set size hints instead of using this method.
int wx.Window.MaxWidth [get] |
This is a read-only property. Use wx.Window.MaxSize to change this.
int wx.Window.MinHeight [get, set] |
Get or set the minimal height of the window.
Reimplemented in wx.StatusBar.
Size wx.Window.MinSize [get, set] |
Read and set the minimum size of the window. This should be set after changing the size for instance after construction and before adding this to tha parent sizer. However, you should consider to set size hints instead of using this method.
int wx.Window.MinWidth [get, set] |
Get or set the minimal width of the window.
virtual string wx.Window.Name [get, set] |
virtual Palette wx.Window.Palette [get, set] |
virtual Window wx.Window.Parent [get, set] |
Get or set the parent window of this window.
Reimplemented in wx.Html.HtmlFindDialog.
virtual Point wx.Window.Position [get, set] |
virtual Rectangle wx.Window.Rect [get] |
virtual int wx.Window.Right [get, set] |
Get or set the right X-position of this window.
virtual Size wx.Window.Size [get, set] |
virtual Sizer wx.Window.Sizer [get, set] |
The sizer of this window (if defined). Assign to this property to specify a dynamic layout providing a sizer.
virtual WindowStyles wx.Window.StyleFlags [get, set] |
This will set or get the styles flags that define this window.
Reimplemented in wx.GridCtrl.Extended.Grid.
bool wx.Window.ThemeEnabled [get, set] |
virtual string wx.Window.Title [get, set] |
Reimplemented in wx.Dialog.
virtual string wx.Window.ToolTip [get, set] |
virtual int wx.Window.Top [get, set] |
Get or set the top Y-position of this window.
Window wx.Window.TopLevelWindow [get] |
Get the top level window that contains the current window.
virtual Region wx.Window.UpdateRegion [get] |
Size wx.Window.VirtualSize [get, set] |
This gets the virtual size of the window in pixels. By default it returns the client size of the window, but after a using the setter, this will return the size that has been set by the setter.
virtual int wx.Window.Width [get, set] |
Get or set the width of this window.
wx.WindowStyles wx.Window.WindowStyle [get, set] |
WindowVariant wx.Window.WindowVariant [get, set] |
event EventListener wx.Window.Activated [add, remove] |
Adds a listener to the wx.Event.wxEVT_ACTIVATE.
event EventListener wx.Window.Char [add, remove] |
Adds a listener to the wx.Event.wxEVT_CHAR.
event EventListener wx.Window.Closing [add, remove] |
Adds a listener to the wx.Event.wxEVT_CLOSE_WINDOW.
virtual event EventListener wx.Window.KeyDown [add, remove] |
Adds a listener to the wx.Event.wxEVT_KEY_DOWN.
Reimplemented in wx.ListCtrl, and wx.TreeCtrl.
event EventListener wx.Window.KeyUp [add, remove] |
Adds a listener to the wx.Event.wxEVT_KEY_UP.
event EventListener wx.Window.LeftDoubleClick [add, remove] |
Adds a listener to the wx.Event.wxEVT_LEFT_DCLICK.
event EventListener wx.Window.LeftDown [add, remove] |
Adds a listener to the wx.Event.wxEVT_LEFT_DOWN.
event EventListener wx.Window.LeftUp [add, remove] |
Adds a listener to the wx.Event.wxEVT_LEFT_UP.
event EventListener wx.Window.MiddleDoubleClick [add, remove] |
Adds a listener to the wx.Event.wxEVT_MIDDLE_DCLICK.
event EventListener wx.Window.MiddleDown [add, remove] |
Adds a listener to the wx.Event.wxEVT_MIDDLE_DOWN.
event EventListener wx.Window.MiddleUp [add, remove] |
Adds a listener to the wx.Event.wxEVT_MIDDLE_UP.
event EventListener wx.Window.MouseEnter [add, remove] |
Adds a listener to the wx.Event.wxEVT_ENTER_WINDOW.
event EventListener wx.Window.MouseLeave [add, remove] |
Adds a listener to the wx.Event.wxEVT_LEAVE_WINDOW.
event EventListener wx.Window.MouseMove [add, remove] |
Adds a listener to the wx.Event.wxEVT_MOTION.
event EventListener wx.Window.MouseThumbTrack [add, remove] |
Adds a listener to the wx.Event.wxEVT_SCROLL_THUMBTRACK.
event EventListener wx.Window.Moved [add, remove] |
Adds a listener to the wx.Event.wxEVT_MOVE.
event EventListener wx.Window.Resized [add, remove] |
Adds a listener to the wx.Event.wxEVT_SIZE.
event EventListener wx.Window.RightDoubleClick [add, remove] |
Adds a listener to the wx.Event.wxEVT_RIGHT_DCLICK.
event EventListener wx.Window.RightDown [add, remove] |
Adds a listener to the wx.Event.wxEVT_RIGHT_DOWN.
event EventListener wx.Window.RightUp [add, remove] |
Adds a listener to the wx.Event.wxEVT_RIGHT_UP.
event EventListener wx.Window.ScrollLineDown [add, remove] |
Adds a listener to the wx.Event.wxEVT_SCROLL_LINEDOWN.
event EventListener wx.Window.ScrollLineUp [add, remove] |
Adds a listener to the wx.Event.wxEVT_SCROLL_LINEUP.
virtual event EventListener wx.Window.UpdateUI [add, remove] |
Adds a listener to the wx.Event.wxEVT_UPDATE_UI.
Reimplemented in wx.Slider, wx.SpinCtrl, wx.StyledText.StyledTextCtrl, and wx.TextCtrl.