proc getMenuBar(self: wFrame): wMenuBar {...}{.inline, raises: [], tags: [].}
-
Returns the menubar currently associated with the frame (if any).
proc setTopMost(self: wFrame; top = true) {...}{.raises: [], tags: [].}
-
Sets whether the frame top most to all windows.
proc setIcon(self: wFrame; icon: wIcon) {...}{.raises: [], tags: [].}
-
Sets the icon for this frame.
proc getIcon(self: wFrame): wIcon {...}{.inline, raises: [], tags: [].}
-
Returns the standard icon.
proc minimize(self: wFrame; flag = true) {...}{.raises: [], tags: [].}
-
Minimizes or restores the frame
proc iconize(self: wFrame; flag = true) {...}{.inline, raises: [], tags: [].}
-
Iconizes or restores the frame. The same as minimize().
proc maximize(self: wFrame; flag = true) {...}{.raises: [], tags: [].}
-
Maximizes or restores the frame.
proc restore(self: wFrame) {...}{.inline, raises: [], tags: [].}
-
Restore a previously iconized or maximized frame to its normal state.
proc isIconized(self: wFrame): bool {...}{.inline, raises: [], tags: [].}
-
Returns true if the frame is iconized.
proc isMaximized(self: wFrame): bool {...}{.inline, raises: [], tags: [].}
-
Returns true if the frame is maximized.
proc enableCloseButton(self: wFrame; flag = true) {...}{.raises: [], tags: [].}
-
Enables or disables the Close button.
proc disableCloseButton(self: wFrame) {...}{.inline, raises: [], tags: [].}
-
Disables the Close button.
proc enableMaximizeButton(self: wFrame; flag = true) {...}{.raises: [], tags: [].}
-
Enables or disables the Maximize button.
proc disableMaximizeButton(self: wFrame) {...}{.inline, raises: [], tags: [].}
-
Disables the Maximize button.
proc enableMinimizeButton(self: wFrame; flag = true) {...}{.raises: [], tags: [].}
-
Enables or disables the Minimize button.
proc disableMinimizeButton(self: wFrame) {...}{.inline, raises: [], tags: [].}
-
Disables the Minimize button.
proc shortcut(self: wFrame; flag: int; keyCode: int; handler: wEventProc): wEventConnection {...}{.
discardable, raises: [wNilAccess], tags: [RootEffect].}
-
Quickly bind a keyboard shortcut to an event handler. If this frame not yet have a accelerator table, it will create a new one. This function use wCommandID between 64257..65535.
proc shortcut(self: wFrame; flag: int; keyCode: int; handler: wEventNeatProc): wEventConnection {...}{.
discardable, raises: [wNilAccess], tags: [RootEffect].}
-
Quickly bind a keyboard shortcut to an event handler. If this frame not yet have a accelerator table, it will create a new one. This function use wCommandID between 64257..65535.
proc setReturnCode(self: wFrame; retCode: int) {...}{.inline, raises: [], tags: [].}
-
Sets the return code for this window.
proc getReturnCode(self: wFrame): int {...}{.inline, raises: [], tags: [].}
-
Gets the return code for this window.
proc isModal(self: wFrame): bool {...}{.inline, raises: [], tags: [].}
-
Returns true if the frame is modal, false otherwise.
proc showModal(self: wFrame): int {...}{.discardable, raises: [Exception],
tags: [RootEffect].}
-
Shows the frame as an application-modal dialog. Program flow does not return until the dialog has been dismissed with endModal.
proc showWindowModal(self: wFrame): int {...}{.discardable, raises: [Exception],
tags: [RootEffect].}
-
Shows a dialog modal to the parent top level window only. Program flow does not return until the dialog has been dismissed with endModal.
proc endModal(self: wFrame; retCode: int = 0) {...}{.raises: [Exception], tags: [RootEffect].}
-
Ends a modal dialog, passing a value to be returned from the showModal() invocation.
proc setTrayIcon(self: wFrame; icon: wIcon; tooltip = "") {...}{.
raises: [wNilAccess, IndexDefect, Exception], tags: [RootEffect].}
-
Creates the system tray icon.
proc removeTrayIcon(self: wFrame) {...}{.raises: [], tags: [RootEffect].}
-
Removes the system tray icon.
proc showBalloon(self: wFrame; title: string; text: string; timeout: int = 3000;
flag = wBallonNone) {...}{.raises: [IndexDefect], tags: [].}
-
Display a balloon notification. Only works when the frame already have a tray icon. flag is one of wBallonNone, wBallonInfo, wBallonWarning or wBallonError.
proc init(self: wFrame; owner: wWindow = nil; title = ""; pos = wDefaultPoint;
size = wDefaultSize; style: wStyle = wDefaultFrameStyle; className = "wFrame") {...}{.raises: [
wWindowError, wCursorError, wBrushError, Exception, IndexDefect, wFontError],
tags: [RootEffect].}
-
Initializes a frame.
proc Frame(owner: wWindow = nil; title = ""; pos = wDefaultPoint; size = wDefaultSize;
style: wStyle = wDefaultFrameStyle; className = "wFrame"): wFrame {...}{.inline,
discardable, raises: [wWindowError, wCursorError, wBrushError, Exception,
IndexDefect, wFontError], tags: [RootEffect].}
-
Constructor.