Sets the default directory. SetFilterIndex int filterIndex. Sets the default filter index, starting from zero. Sets the message that will be displayed on the dialog.
Public Member Functions inherited from wxDialog. Default constructor. Adds an identifier to be regarded as a main button for the non-scrolling area of a dialog.
Returns true if this dialog can and should perform layout adaptation using DoLayoutAdaptation , usually if the dialog is too large to fit on the display. Centres the dialog box on the display. Used for two-step dialog box construction. CreateButtonSizer long flags. Creates a sizer with standard buttons. CreateSeparatedButtonSizer long flags. Creates a sizer with standard buttons using CreateButtonSizer separated from the rest of the dialog contents by a horizontal wxStaticLine.
Returns the sizer containing the given one with a separating wxStaticLine if necessarily. CreateStdDialogButtonSizer long flags. Creates a wxStdDialogButtonSizer with standard buttons. Splits text up at newlines and places the lines into wxStaticText objects with the specified maximum width in a vertical wxBoxSizer.
Performs layout adaptation, usually if the dialog is too large to fit on the display. EndModal int retCode. Ends a modal dialog, passing a value to be returned from the ShowModal invocation. GetAffirmativeId const. Gets the identifier of the button which works like standard OK button in this dialog. GetContentWindow const. Override this to return a window containing the main content of the dialog.
GetEscapeId const. Gets the identifier of the button to map presses of ESC button to. GetLayoutAdaptationDone const. Returns true if the dialog has been adapted, usually by making it scrollable to work with a small display. GetLayoutAdaptationLevel const. Gets a value representing the aggressiveness of search for buttons and sizers to be in the non-scrolling part of a layout-adapted dialog.
GetLayoutAdaptationMode const. Gets the adaptation mode, overriding the global adaptation flag. Returns an array of identifiers to be regarded as the main buttons for the non-scrolling area of a dialog. GetReturnCode const. Gets the return code for this window. GetToolBar const. On PocketPC, a dialog is automatically provided with an empty toolbar. Iconizes or restores the dialog. IsIconized const.
Returns true if the dialog box is iconized. Returns true if id is in the array of identifiers to be regarded as the main buttons for the non-scrolling area of a dialog. IsModal const. Returns true if the dialog box is modal, false otherwise. SetAffirmativeId int id. Sets the identifier to be used as OK button. SetEscapeId int id. Sets the identifier of the button which should work like the standard "Cancel" button in this dialog.
Sets the icon for this dialog. Sets the icons for this dialog. SetLayoutAdaptationDone bool done. Marks the dialog as having been adapted, usually by making it scrollable to work with a small display. SetLayoutAdaptationLevel int level. Sets the aggressiveness of search for buttons and sizers to be in the non-scrolling part of a layout-adapted dialog.
Sets the adaptation mode, overriding the global adaptation flag. SetReturnCode int retCode. Sets the return code for this window. Hides or shows the dialog. Shows a dialog modal to the parent top level window only.
Shows a dialog modal to the parent top level window only and call a functor after the dialog is closed. Default ctor. Constructor creating the top level window.
Creates the top level window. Returns true if the platform supports making the window translucent. A synonym for CentreOnScreen. Centres the window on screen. Enables or disables the Close button most often in the right upper corner of a dialog and the Close entry of the system menu most often in the left upper corner of the dialog. Enables or disables the Maximize button in the right or left upper corner of a frame or dialog.
Enables or disables the Minimize button in the right or left upper corner of a frame or dialog. GetDefaultItem const. Returns a pointer to the button which is the default for this window, or NULL. GetIcon const. Returns the standard icon of the window.
GetIcons const. Returns all icons associated with the window, there will be none of them if neither SetIcon nor SetIcons had been called before. GetTitle const. Gets a string containing the window title. Returns true if this window is currently active, i. IsAlwaysMaximized const.
Returns true if this window is expected to be always maximized, either due to platform policy or due to local policy regarding particular class. IsFullScreen const. Returns true if the window is in fullscreen mode. IsMaximized const. Returns true if the window is maximized. IsUsingNativeDecorations const. This method is specific to wxUniversal port. Lays out the children using the window sizer or resizes the only child of the window to cover its entire area.
Maximizes or restores the window. MSW-specific function for accessing the system menu. Use a system-dependent way to attract users attention to the window when it is in background. Restore a previously iconized or maximized window to its normal state. Restores the window to the previously saved geometry. Save the current window geometry to allow restoring it later. Changes the default item for the panel, usually win is a button.
GetTmpDefaultItem const. Sets the icon for this window. A simpler interface for setting the size hints than SetSizeHints. Allows specification of minimum and maximum window sizes, and window size increments. Sets the window title. SetTransparent wxByte alpha. If the platform supports it will set the window to be translucent. ShouldPreventAppExit const. This virtual function is not meant to be called directly but can be overridden to return false it returns true by default to allow the application to close even if this, presumably not very important, window is still opened.
OSXSetModified bool modified. OSXIsModified const. Sets the file name represented by this wxTopLevelWindow. Show the wxTopLevelWindow , but do not give it keyboard focus.
Enables the zoom button to toggle full screen mode. Depending on the value of show parameter the window is either shown full screen or restored to its normal state. If the platform supports it, sets the shape of the window to that depicted by region. Set the window shape to the given path. Public Member Functions inherited from wxWindow. Constructs a window, which can be a child of a frame, dialog or any other non-control window.
AcceptsFocus const. This method may be overridden in the derived classes to return false to indicate that this control doesn't accept input at all i. AcceptsFocusFromKeyboard const. This method may be overridden in the derived classes to return false to indicate that while this control can, in principle, have focus if the user clicks it with the mouse, it shouldn't be included in the TAB traversal chain when using the keyboard.
AcceptsFocusRecursively const. Overridden to indicate whether this window or one of its children accepts focus. Disable giving focus to this window using the keyboard navigation keys. IsFocusable const. Can this window itself have focus? CanAcceptFocus const. Can this window have focus right now? CanAcceptFocusFromKeyboard const. Can this window be assigned focus from keyboard right now? HasFocus const. Returns true if the window or in case of composite controls, its main child window has focus.
SetCanFocus bool canFocus. EnableVisibleFocus bool enable. Enables or disables visible indication of keyboard focus. This sets the window to receive keyboard input. This function is called by wxWidgets keyboard navigation code when the user gives the focus to this window from keyboard e. Adds a child window. Destroys all children of a window. FindWindow long id const. Find a child of this window, by id.
Find a child of this window, by name. Returns a reference to the list of the window's children. GetChildren const. Returns a const reference to the list of the window's children. Removes a child window. GetGrandParent const. Returns the grandparent of a window, or NULL if there isn't one. GetNextSibling const. Returns the next window after this one among the parent's children or NULL if this window is the last child.
GetParent const. Returns the parent of the window, or NULL if there is no parent. GetPrevSibling const. Returns the previous window before this one among the parent's children or NULL if this window is the first child. Check if the specified window is a descendant of this one.
Reparents the window, i. Call this function to force one or both scrollbars to be always shown, even if the window is big enough to show its entire contents without scrolling.
GetScrollPos int orientation const. Returns the built-in scrollbar position. GetScrollRange int orientation const. Returns the built-in scrollbar range. GetScrollThumb int orientation const. Returns the built-in scrollbar thumb size. CanScroll int orient const. Returns true if this window can have a scroll bar in this orientation. HasScrollbar int orient const.
Returns true if this window currently has a scroll bar for this orientation. IsScrollbarAlwaysShown int orient const. Return whether a scrollbar is always shown. ScrollLines int lines. Scrolls the window by the given number of lines down if lines is positive or up. ScrollPages int pages. Scrolls the window by the given number of pages down if pages is positive or up. Physically scrolls the pixels in the window and move child windows accordingly. Same as ScrollLines Same as ScrollLines 1.
Same as ScrollPages Same as ScrollPages 1. Sets the position of one of the built-in scrollbars. Sets the scrollbar properties of a built-in scrollbar. A synonym for Centre. A synonym for CentreOnParent. Centres the window.
Centres the window on its parent. This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows. GetPosition const. GetRect const. Returns the position and size of the window as a wxRect object.
Returns the window position in screen coordinates, whether the window is a child window or a top level one. GetScreenPosition const. GetScreenRect const. Returns the position and size of the window on the screen as a wxRect object. GetClientAreaOrigin const. Get the origin of the client area of the window relative to the window top left corner the client area may be shifted because of the borders, scrollbars, other decorations GetClientRect const.
Get the client rectangle in window i. Moves the window to the given position. Moves the window to the specified position. Converts to screen coordinates from coordinates relative to this window. Converts a point or size from dialog units to pixels. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument s it accepts.
Converts a point or size from pixels to dialog units. Converts from screen to client window coordinates. Clears the window by filling it with the current background colour. Freezes the window or, in other words, prevents any updates from taking place on screen, the window is not redrawn at all. Re-enables window updating after a previous call to Freeze. IsFrozen const. Returns true if the window is currently frozen by a call to Freeze.
GetBackgroundColour const. Returns the background colour of the window. GetBackgroundStyle const. Returns the background style of the window. GetCharHeight const. Returns the character height for this window. GetCharWidth const. Returns the average character width for this window. GetDefaultAttributes const. GetDPI const. Return the DPI of the display used by this window. GetFont const.
Returns the font for this window. GetForegroundColour const. Returns the foreground colour of the window. Gets the dimensions of the string as it would be drawn on the window with the currently selected font. GetUpdateRegion const. Returns the region specifying which parts of the window have been damaged.
GetUpdateClientRect const. Get the update rectangle bounding box in client coords. Returns true if this window background is transparent as, for example, for wxStaticText and should show the parent window background. Causes this window, and all of its children recursively, to be repainted. Redraws the contents of the given rectangle: only the area inside it will be repainted. Calling this method immediately repaints the invalidated area of the window and all of its children recursively this normally only happens when the flow of control returns to the event loop.
Sets the background colour of the window. SetBackgroundStyle wxBackgroundStyle style. Sets the background style of the window. Checks whether using transparent background might work. Sets the font for this window. Sets the foreground colour of the window. Sets the background colour of the window but prevents it from being inherited by the children of this window.
InheritsBackgroundColour const. Return true if this window inherits the background colour from its parent. UseBgCol const. Return true if a background colour has been set for this window.
UseBackgroundColour const. Sets the font of the window but prevents it from being inherited by the children of this window. Sets the foreground colour of the window but prevents it from being inherited by the children of this window.
UseForegroundColour const. Return true if a foreground colour has been set for this window. InheritsForegroundColour const. Return true if this window inherits the foreground colour from its parent. ShouldInheritColours const. Return true from here to allow the colours of this window to be changed by InheritAttributes.
SetThemeEnabled bool enable. This function tells a window if it should use the system's "theme" code to draw the windows' background instead of its own background drawing code. GetThemeEnabled const. Returns true if the window uses the system theme for drawing its background. GetEventHandler const. Returns the event handler for this window. This function will generate the appropriate call to Navigate if the key event is one normally used for keyboard navigation and return true in this case.
Shorthand for: More Convenient wrapper for ProcessEvent. Removes and returns the top-most event handler on the event handler stack. Pushes this event handler onto the event stack for the window. Find the given handler in the windows event handler stack and removes but does not delete it from the stack. Sets the event handler for this window.
GetExtraStyle const. Returns the extra style bits for the window. GetWindowStyleFlag const. Gets the window style that was passed to the constructor or Create method. GetWindowStyle const.
See GetWindowStyleFlag for more info. HasExtraStyle int exFlag const. Returns true if the window has the given exFlag bit set in its extra styles. HasFlag int flag const. Returns true if the window has the given flag bit set. SetExtraStyle long exStyle. Sets the extra style bits for the window. SetWindowStyleFlag long style. Sets the style of the window. SetWindowStyle long style.
See SetWindowStyleFlag for more info. ToggleWindowStyle int flag. Turns the given flag on if it's currently turned off and vice versa. Moves this window in the tab navigation order after the specified win. Same as MoveAfterInTabOrder except that it inserts this window just before win instead of putting it right after it. Performs a keyboard navigation action starting from this window.
Performs a keyboard navigation action inside this window. Lowers the window to the bottom of the window hierarchy Z-order. Raises the window to the top of the window hierarchy Z-order. Equivalent to calling wxWindow::Show false. This function hides a window, like Hide , but using a special visual effect if possible. IsEnabled const. Returns true if the window is enabled, i.
IsExposed int x, int y const. Returns true if the given point or rectangle area has been exposed since the last repaint. IsExposed int x, int y, int w, int h const. IsShown const. Returns true if the window is shown, false if it has been hidden. IsShownOnScreen const. Returns true if the window is physically visible on the screen, i. Disables the window. Enable or disable the window for user input.
SetPickerCtrlProportion int prop. Sets the proportion value of the picker. Sets the text control as growable when grow is true. SetTextCtrlProportion int prop. Sets the proportion value of the text control. Public Member Functions inherited from wxControl. Constructs a control. Default constructor to allow 2-phase creation. Simulates the effect of the user issuing a command to the item. GetLabel const.
Returns the control's label, as it was passed to SetLabel. GetLabelText const. Returns the control's label without mnemonics. Determine the size needed by the control to leave the given area for its text. This is an overloaded member function, provided for convenience.
It differs from the above function only in what argument s it accepts. Determine the minimum size needed by the control to display the given text. Sets the control's label.
Sets the control's label to exactly the given string. Sets the controls label to a string using markup. Public Member Functions inherited from wxWindow. Default constructor. Constructs a window, which can be a child of a frame, dialog or any other non-control window. AcceptsFocus const. This method may be overridden in the derived classes to return false to indicate that this control doesn't accept input at all i.
AcceptsFocusFromKeyboard const. This method may be overridden in the derived classes to return false to indicate that while this control can, in principle, have focus if the user clicks it with the mouse, it shouldn't be included in the TAB traversal chain when using the keyboard. AcceptsFocusRecursively const. Overridden to indicate whether this window or one of its children accepts focus. Disable giving focus to this window using the keyboard navigation keys.
IsFocusable const. Can this window itself have focus? CanAcceptFocus const. Can this window have focus right now?
CanAcceptFocusFromKeyboard const. Can this window be assigned focus from keyboard right now? HasFocus const. Returns true if the window or in case of composite controls, its main child window has focus. SetCanFocus bool canFocus.
EnableVisibleFocus bool enable. Enables or disables visible indication of keyboard focus. This sets the window to receive keyboard input. This function is called by wxWidgets keyboard navigation code when the user gives the focus to this window from keyboard e. Adds a child window. Destroys all children of a window. FindWindow long id const. Find a child of this window, by id. Find a child of this window, by name. Returns a reference to the list of the window's children.
GetChildren const. Returns a const reference to the list of the window's children. Removes a child window. GetGrandParent const. Returns the grandparent of a window, or NULL if there isn't one. GetNextSibling const. Returns the next window after this one among the parent's children or NULL if this window is the last child. GetParent const. Returns the parent of the window, or NULL if there is no parent. GetPrevSibling const. Returns the previous window before this one among the parent's children or NULL if this window is the first child.
Check if the specified window is a descendant of this one. Reparents the window, i. Call this function to force one or both scrollbars to be always shown, even if the window is big enough to show its entire contents without scrolling. GetScrollPos int orientation const. Returns the built-in scrollbar position.
GetScrollRange int orientation const. Returns the built-in scrollbar range. GetScrollThumb int orientation const. Returns the built-in scrollbar thumb size. CanScroll int orient const. Returns true if this window can have a scroll bar in this orientation. HasScrollbar int orient const. Returns true if this window currently has a scroll bar for this orientation.
IsScrollbarAlwaysShown int orient const. Return whether a scrollbar is always shown. ScrollLines int lines. Scrolls the window by the given number of lines down if lines is positive or up. ScrollPages int pages. Scrolls the window by the given number of pages down if pages is positive or up. Physically scrolls the pixels in the window and move child windows accordingly.
Same as ScrollLines Same as ScrollLines 1. Same as ScrollPages Same as ScrollPages 1. Sets the position of one of the built-in scrollbars. Sets the scrollbar properties of a built-in scrollbar. A synonym for Centre. A synonym for CentreOnParent.
Centres the window. Centres the window on its parent. This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows.
GetPosition const. GetRect const. Returns the position and size of the window as a wxRect object. Returns the window position in screen coordinates, whether the window is a child window or a top level one. GetScreenPosition const. GetScreenRect const. Returns the position and size of the window on the screen as a wxRect object.
GetClientAreaOrigin const. Get the origin of the client area of the window relative to the window top left corner the client area may be shifted because of the borders, scrollbars, other decorations GetClientRect const. Get the client rectangle in window i. Moves the window to the given position.
Moves the window to the specified position. Converts to screen coordinates from coordinates relative to this window. Converts a point or size from dialog units to pixels. Converts a point or size from pixels to dialog units.
Converts from screen to client window coordinates. Clears the window by filling it with the current background colour. Freezes the window or, in other words, prevents any updates from taking place on screen, the window is not redrawn at all.
Re-enables window updating after a previous call to Freeze. IsFrozen const. Returns true if the window is currently frozen by a call to Freeze. GetBackgroundColour const. Returns the background colour of the window. GetBackgroundStyle const. Returns the background style of the window. GetCharHeight const. Returns the character height for this window. GetCharWidth const.
Returns the average character width for this window. GetDefaultAttributes const. GetDPI const. Return the DPI of the display used by this window. GetFont const. Returns the font for this window. GetForegroundColour const. Returns the foreground colour of the window.
Gets the dimensions of the string as it would be drawn on the window with the currently selected font. GetUpdateRegion const. Returns the region specifying which parts of the window have been damaged. GetUpdateClientRect const. Get the update rectangle bounding box in client coords. Returns true if this window background is transparent as, for example, for wxStaticText and should show the parent window background. Causes this window, and all of its children recursively, to be repainted.
Redraws the contents of the given rectangle: only the area inside it will be repainted. Calling this method immediately repaints the invalidated area of the window and all of its children recursively this normally only happens when the flow of control returns to the event loop. Sets the background colour of the window. SetBackgroundStyle wxBackgroundStyle style. Sets the background style of the window. Checks whether using transparent background might work.
Sets the font for this window. Sets the foreground colour of the window. Sets the background colour of the window but prevents it from being inherited by the children of this window. InheritsBackgroundColour const. Return true if this window inherits the background colour from its parent. UseBgCol const. Return true if a background colour has been set for this window.
UseBackgroundColour const. Sets the font of the window but prevents it from being inherited by the children of this window. Sets the foreground colour of the window but prevents it from being inherited by the children of this window.
UseForegroundColour const. Return true if a foreground colour has been set for this window. InheritsForegroundColour const. Return true if this window inherits the foreground colour from its parent. ShouldInheritColours const. Return true from here to allow the colours of this window to be changed by InheritAttributes. SetThemeEnabled bool enable. This function tells a window if it should use the system's "theme" code to draw the windows' background instead of its own background drawing code.
GetThemeEnabled const. Returns true if the window uses the system theme for drawing its background. Returns true if the system supports transparent windows and calling SetTransparent may succeed. SetTransparent wxByte alpha. Set the transparency of the window. GetEventHandler const. Returns the event handler for this window. This function will generate the appropriate call to Navigate if the key event is one normally used for keyboard navigation and return true in this case.
Shorthand for: More Convenient wrapper for ProcessEvent. Removes and returns the top-most event handler on the event handler stack. Pushes this event handler onto the event stack for the window. Find the given handler in the windows event handler stack and removes but does not delete it from the stack. Sets the event handler for this window. GetExtraStyle const. Returns the extra style bits for the window.
GetWindowStyleFlag const. Gets the window style that was passed to the constructor or Create method. GetWindowStyle const. See GetWindowStyleFlag for more info. HasExtraStyle int exFlag const. Returns true if the window has the given exFlag bit set in its extra styles. HasFlag int flag const. Returns true if the window has the given flag bit set. SetExtraStyle long exStyle. Sets the extra style bits for the window. SetWindowStyleFlag long style. Sets the style of the window. SetWindowStyle long style.
See SetWindowStyleFlag for more info. ToggleWindowStyle int flag. Turns the given flag on if it's currently turned off and vice versa. Moves this window in the tab navigation order after the specified win. Same as MoveAfterInTabOrder except that it inserts this window just before win instead of putting it right after it. Performs a keyboard navigation action starting from this window. Performs a keyboard navigation action inside this window.
Lowers the window to the bottom of the window hierarchy Z-order. Raises the window to the top of the window hierarchy Z-order. Equivalent to calling wxWindow::Show false. This function hides a window, like Hide , but using a special visual effect if possible. IsEnabled const. Returns true if the window is enabled, i. IsExposed int x, int y const. Returns true if the given point or rectangle area has been exposed since the last repaint.
IsExposed int x, int y, int w, int h const. IsShown const. Returns true if the window is shown, false if it has been hidden. IsShownOnScreen const. Returns true if the window is physically visible on the screen, i. Disables the window. Enable or disable the window for user input. Shows or hides the window. This function shows a window, like Show , but using a special visual effect if possible. GetHelpText const. Gets the help text to be used as context-sensitive help for this window. Sets the help text to be used as context-sensitive help for this window.
GetToolTip const. Get the associated tooltip or NULL if none. GetToolTipText const. Get the text of the associated tooltip or empty string if none. Attach a tooltip to the window. Unset any existing tooltip. This function shows a popup menu at the given position in this window and returns the selected id. Pops up the given menu at the specified coordinates, relative to this window, and returns control when the user has dismissed the menu. Validator functions. Deletes the current validator if any and sets the window validator, having called wxValidator::Clone to create a new validator of this type.
Transfers values from child controls to data areas specified by their validators. Transfers values to child controls from data areas specified by their validators. Validates the current values of the child controls using their validators. GetId const. Returns the identifier of the window. GetLayoutDirection const. Mirror coordinates for RTL layout if this window uses it and if the mirroring is not done automatically like Win GetName const.
Returns the window's name. GetWindowVariant const. Returns the value previously passed to SetWindowVariant. SetId wxWindowID winid. Sets the identifier of the window. SetLayoutDirection wxLayoutDirection dir. Sets the layout direction for this window. Sets the window's name.
SetWindowVariant wxWindowVariant variant. Chooses a different variant of the window display to use. Gets the accelerator table for this window. Returns the accessible object for this window, if any. Sets the accelerator table for this window. Sets the accessible for this window. This function simply generates a wxCloseEvent whose handler usually tries to close the window. Destroys the window safely. IsBeingDeleted const.
0コメント