nWinNum Window number. Default is current window. nRows Number of lines to add or reduce (if nRows < 0).
Returns
.T. if successful, .F. otherwise.
Description
Adds or reduces lines from window. The new lines will be colored from column zero color, from prior line. There's no checking to determine if the window is bigger than desktop area (except if in MainCoord mode, because we need these boundaries to MaxRow() function).
hMenu Identifies the menu to be changed. nFlags Specifies flags to control the appearance and behavior of the new menu item. This parameter can be a combination of values (all flags can be viewed in winuser.ch file). nMenuItemId Specifies either the identifier of the new menu item or, if the uFlags parameter is set to MF_POPUP, the handle to the drop-down menu or submenu. cCaption Specifies the string content of the new menu item or full path to a bitmap to the new menu item.
Returns
If successful, a value greater than zero. Otherwise zero.
Description
Adds a new menu item. Through this function we can specifies the content, appearance and behavior of each menu item.
nWinNum Window number. Default is current window. nTop, nLeft Coordinates of combobox. nWidth Width of combobox. aText Array with all combobox elements. Default is empty. bBlock Code block, executed for the following events: CBN_SELCHANGE: CBN_SETFOCUS: CBN_KILLFOCUS: User change selection (not executed when made by program itself) When focus go to combobox When focus lost from combobox
This code block will be evaluated with the following arguments: nWinNumnCBIdnTypenIndex Actual windows number Combobox ID Event type (only the three types above are supported) Index on selected item (start from 0)
nListLines Number of lines to list items (default is 3). will be automatically truncated if this parameter is greater than Len(aText). nReserved Reserved for future use. nKbdType Specifies the behavior of combobox. Can be one of the following values: 0: 1: Similar to standard windows convention (i.e., ENTER/ESC will kill focus from combobox) Similar to CA-Cl*pper (i.e., ENTER shows all combobox's items, UP/DOWN/TAB/SHIFT+TAB/ESC will kill focus from combobox)
Default is 0.
aOffset Array with four elements containing offsets to corner pixels { x1, y1, x2, y2 }, to adjust dimension of combobox. Default is { -2, -2, +2, +2 }. The third element (y2) is actually ignored. Height of combobox is always 1 char height.
Returns
Handle of combobox, if successful. Zero if failed.
nWinNum Window number. Default is current window. nCBId ID of Combobox. lEnable Enable (.T.) or disable (.F.) combobox button in current window. Default is .T.
Returns
Return old configuration of combobox (.T. enable, .F. disable). If failed, return .F..
Description
Enable/Disable access of combobox in current window.
nHandleDialog Handle of window dialog. nIDCombobox ID of combobox. nIndex Index of item (start from zero). If 1, remove current selection and clean edit control of combobox.
nWinNum Window number. Default is current window. cFontName Name of the font. nHeight Height of the font's character. nWidth Specifies average width of character in the font. nWeight Specifies the weight of the font in the range 0 through 1000 (see About Fonts section). nQuality Specifies the output quality. lItalic Specifies an italic font if set to TRUE. lUnderline Specifies an underlined font if set to TRUE. lStrikeout Specifies a strikeout font if set to TRUE.
Returns
.T. if successful, .F. otherwise.
Description
This will initialize font for all comboboxes on current window (including ones created later on).
nWinNum Window number. Default is current window. nTop, nLeft Row/column of top/left corner. nBottom, nRight Row/column of bottom/right corner. cText Text of checkbox. Default is empty. cImage/nImage If numeric, represent an resource ID from a .RC file. If string, represent a bitmap file name (must be supplied with a full path). bBlock Code block to execute on every BN_CLICK event. This code block will be evaluated with these parameters: current window and checkbox id. If this parameter is omitted, the checkbox will not be created. aOffSet Array of four elements {x1,y1,x2,y2} with offsets to corner pixels to adjust dimension of checkbox. Default is {-2,-2,+2,+2}. nStretchBitmap A number between 0 and 1 (inclusive) as a factor to stretch the bitmap. Example: 1.0 0.5 0 Bitmap covers the whole button Bitmap covers 50% of button Bitmap is not stretch
Default is 1. lMap3Dcolors If image will have transparent effect (.T.) or not (.F.). This will work on 256 colored bitmaps only.
Returns
Returns checkbox handle, if successful. If failed, return zero.
nRGBInit Initial color. aRGB16 Array of 16 elements, with color index. Default is an array with color set of button. nFlags A set of bit flags that you can use to initialize the color common dialog box. When the dialog box returns, it sets these flags to indicate the user's input. Default is a combination of CC_ANYCOLOR | CC_RGBINIT | CC_FULLOPEN.
Returns
Contains the RGB color value of the color selected by the user, if the user clicks OK button of the dialog box.
cFontName Name of the font. nHeight Height of the font's character. nWidth Specifies average width of character in the font. nWeight Specifies the weight of the font in the range 0 through 1000 (see About Fonts section) nQuality Specifies the output quality. lItalic Specifies an italic font if set to TRUE. lUnderline Specifies an underlined font if set to TRUE. lStrikeout Specifies a strikeout font if set to TRUE.
Returns
None.
Description
Creates a common font dialog box that enables the user to choose attributes for a logical font.
cFontFace Name of the font. nHeight Height of the font's character. nWidth Specifies average width of character in the font. nWeight Specifies the weight of the font in the range 0 through 1000 (see About Fonts section) lItalic Specifies an italic font if set to TRUE. lUnderline Specifies an underlined font if set to TRUE. lStrikeOut Specifies a strikeout font if set to TRUE. nCharSet Identify the character set. nQuality Specifies the output quality nEscapement Specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device.
Returns
If successful, the return value is a handle to a logical font. If failed, return zero.
Description
creates a logical font that has the characteristics specified in the parameters. The font can subsequently be selected as the current font for any device context.
Creates a drop-down menu, submenu or shortcut menu. The menu is initially empty, but you can insert or append menu items by using the wvw_AppendMenu() function.
hMenu Identifies the menu to be changed. nPosition Specifies a menu item to be changed. nFlag Specifies how nPosition will be interpreted. This parameter can be one of two values: MF_BYCOMMAND MF_BYPOSITION Indicates that nPosition gives the identifier of the menu item. The MF_BYCOMMAND flag is the default flag if neither the MF_BYCOMMAND nor MF_BYPOSITION flag is specified. Indicates that nPosition gives the zero-based relative position of the menu item.
Returns
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.
Description
This function deletes an item from the specified menu. If the menu item opens a menu or submenu, this function destroys the handle to the menu or submenu and frees the memory used by the menu or submenu.
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.
Description
This function deletes an item from the specified menu. If the menu item opens a menu or submenu, this function destroys the handle to the menu or submenu and frees the memory used by the menu or submenu.
Draws a box to an input get. Unlike GTWVT, GTWVW draw white lines on outer right and outer bottom. Besides, scope is the same as DRAWBOXRECESSED, i.e., two pixel out of char boundary.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a box. aOffset Array of four elements with top/left and bottom/right corner coordinates to align the box with row/column.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a box. lTight/aOffset If lTight, box is draw inside the character region and top and left lines are lower two pixel down to make room for above/left object. If aOffset, an array of four elements is defined with coordinates top, left, bottom right to align box with row/column.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a box. lTight/aOffset If lTight, box is drawn inside the character region and top and left lines are lower two pixel down to make room for above/left object. If aOffset, an array of four elements is defined with coordinates top, left, bottom right to align box with row/column.
nWinNum Window number. Default is current window. nTop, <nLeft, nButtom, nRight> Coordinates to draws a button. cText Text of button. cImage/nImage If string, specifies a bitmap filename (full path is required). If numeric, specifies the position of image in application image cache. nFormat Specifies shape of button: 0 1 2 Raised (default) Recessed Outline
nTextColor Index to button's color. nBkColor Index of button's background color. nImageAt Ignored.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a rectangle. aOffPixels Array of four elements with top/left and bottom/right coordinates to align the rectangle with row/column. nRGBColor Color to fill the rectangle.
Returns
None.
Description
Draws a color rectangle. wvw_FillRectangle(). This function is for compatibility with GTWVT, similar to
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw an ellipse. aOffset Array of four elements with top/left and bottom/right coordinates to align the ellipse with row/column.
Returns
Returns a nonzero value, if successful, otherwise zero.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a rectangle. aOffset Array of four elements with top/left and bottom/right coordinates to align the rectangle with row/column.
Returns
Returns a nonzero value, if successful, otherwise zero.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw horizontal grid. nRows Number of lines to horizontal grid.
nWinNum Window number. Default is current window. nTop, nBottom Initial/final line to draw vertical grid. aCols Array with sizes of columns to be draw. nCols Number of columns to be draw. aOffset Array of four row/column. elements with top/left, bottom/right offset to align vertical grid to
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw an image. If nBottom is NIL, so image's height will be proportional to image's width. If nRight is NIL, so image's width will be proportional to image's height. If both nBottom and nRight are NIL, so original size of image will be used. cImage/nPictureSlot If string, an image will be read from cImage (full path). If numeric, will an index in an image list (previously loaded by application). WARNING: this function will always cache the image. Do not use it to draw large number of images, because image handle is never closed. lTight/aOffset Specifies how image will be adjusted (in pixels) to row/column coordinates. lTransparent If .T., specifies a transparent image, otherwise .F. If .T., transparency color will be the top left corner pixel.
Returns
.T. if successful (draws an image), .F. otherwise.
nWinNum Window number. Default is current window. nRow, nCol Row/column to draw a label. cLabel String to be draw. nAlign String alignment. Default is TA_LEFT (another definitions: see file wingdi.ch). nEscapement Specifies angle. nTextColor Color index of label. nBkColor Color index of background of label. cFontFace Name of the font. nHeight Height of the font's character. nWidth Specifies average width of character in the font. nWeight Specifies the weight of the font in the range 0 through 1000 (see About Fonts section). nQuality Specifies the output quality.
nCharSet Specifies set of characters to be used. lItalic Specifies an italic font if set to TRUE. lUnderline Specifies an underline font if set to TRUE. lStrikeOut Specifies a strikeout font if set to TRUE.
nWinNum Window number. Default is current window. nRow, nCol Row/column to draw a label. cLabel String to be draw. nAlign Text alignment. Default is TA_LEFT (see wingdi.ch to another definitions). cTextColor Index color of the font. nBkColor Index color of label background. nSlotFont Index of application cache fonts. If image cache is empty (or index does not exist), function will be not executed.
Returns
.T. if successful (draws a label), .F. otherwise (returns .F. if nSlotFont invalid).
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a label. cLabel String to be draw. nAlignHorz Horizontal align of the label. Default is zero. nAlignVert Vertical align. Default is zero. nTextColor Index color of the label. nBkColor Index background color of the label. hFont Specifies which font will be used to draw a label. aOffSet String of four elements to align label with coordinates nTop, <nLeft, nBottom, nRight>.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a line. nOrient Line orientation: 0 1 Horizontal Vertical
nFormat Line format: 0 1 2 Raised Recessed Plain
nAlign Line alignment: 0 1 2 3 4 Center Top Bottom Left Right
nStyle Specifies pen style. See wingdi.ch (PS_SOLID, PS_DOT, etc.). nThick Specifies the width of the pen, in logical units. If zero, the pen is a single pixel wide, regardless of the current transformation. Default is zero (width of one pixel). nColor Specifies a color reference for the pen color ( a 32-bit value from RGB color). aOffset Array of four row/column. elements with top/left, bottom/right of coordinates to align line with
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a line. nOrient Line orientation: 0 1 Horizontal Vertical
nFormat Line format: 0 1 2 Raised Recessed Plain
nAlign Line alignment: 0 1 2 3 4 Center Top Bottom Left Right
This function repaint the menu bar of the current window. If the menu bar changes after Windows has created the window, this function must be called to repaint the changed menu bar.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a box. nThick Style of pen. See wingdi.ch file for definitions (PS_SOLID, PS_DOT, etc.). nShape Ignored. nRGBColor Specifies color reference for pen (a 32-bit RGB color value).
Returns
Always .T.
Description
Draws a outline arguments. box in nTop, <nLeft, nBottom, nRight> coordinates, with style and color
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw an image. nSlot index on image's cache. lTight/aOffset Array with four row/column. elements with top/left, bottom/right coordinates to align image with
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a progress bar. aOffPixels Array with four elements with top/left, bottom/right coordinates to align progress bar with row/column. nPercent Maximum range value. nBackColor Background color. nBarColor Progress bar color. cImage An image to show when progress bar is running. lVertical Specifies if progress bar is vertical (.T.) or horizontal (.F.). nDirection 0 Specifies a left to right progress bar (default) 1 Specifies a right to left progress bar
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a rectangle. aOffset Array with four elements with top/left, bottom/right coordinates to align rectangle with row/column.
Returns
If successful returns a non-zero value, otherwise zero.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a rectangle. aOffset Array with four elements with top/left, bottom/right coordinates to align rectangle with row/column. nRoundHeight Width of ellipse to round rectangle's corner. nRoundWidth Height of ellipse to round rectangle's corner.
Returns
If successful returns a non-zero value, otherwise zero.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a scrollbutton. aOffPixels Array with four elements with top/left, bottom/right coordinates to align scrollbutton with row/column. nTLBR Specifies scrollbutton direction: 1 2 3 4 Up arrow button Left arrow button Bottom arrow button Right arrow button
lDepressed If .F., specifies raised button, .T. recessed button.
Returns
None.
Description
Draws a scrollbutton. With functions wvw_xb*(), this function becomes obsolete.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw scrollbar movement button. aOffPixels Array of four elements with top/left, bottom/right coordinates to align scrollbar movement button with row/column. nThumbPos Initial column position.
Returns
None.
Description
Draws a horizontal obsolete. scrollbar button. With functions wvw_xb*(), this function becomes
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw scrollbar movement button. aOffPixels Array of four elements with top/left, bottom/right coordinates to align scrollbar movement button with row/column. nThumbPos Initial line position.
Returns
None.
Description
Draws a vertical obsolete. scrollbar button. With functions wvw_xb*(), this function becomes
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw a rectangle. aOffPixels Array of four elements with top/left, bottom/right coordinates to align rectangle with row/column. nHorVert Specifies draws method and how to interpret rectangle fill array ( aRGBb and aRGBe). Default is GRADIENT_FILL_RECT_H (see wingdi.ch file for all definitions). aRGBb Array of four color position (Red, Green, Blue, Alpha), with initial rectangle position. aRGBe Array of four color position (Red, Green, Blue, Alpha), with final rectangle position.
Returns
.T. if successful, otherwise .F.
Description
Draws a rectangle in specified coordinates, with gradient filling colors, varying from aRGBb to aRGBe.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw text. aOffPixels Array of four row/column. cText Text to be draw. nAlignHorz Specifies text alignment inside coordinates: 0 1 2 Left (default) Right Centralized elements with top/left, bottom/right coordinates to align text with
nAlignVert Ignored. nTextColor Color of text. nBackColor Background color. nBackMode Background mode how color is used. Default is OPAQUE (see wingdi.ch for all definitions). hFont Font of the text.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to draw toolbutton. aOffPixels Array of four elements with top/left, bottom/right coordinates to align toolbutton with row/column. nState Button state: 0 1 2 Flat Raised Recessed
hMenu ID of menu. nPosition Specifies position of item to be enabled/disabled (see nFlag argument). nFlag For Harbour, in practice, we should define only two values: MF_DISABLE MF_ENABLE Specifies item to be disabled. Specifies item to be enabled.
Returns
Returns old configuration of menu item. If menu item is invalid, returns zero.
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to fill a rectangle. nRGBColor/hBrush Rectangle filling color (a 32-bit value with RGB color). lTight Filling pattern will be adjusted in all coordinates area. lUseBrush If .T., nRGBColor/hBrush argument is interpreted as a handle to a pen model. Otherwise, is used as a RGB color.
Returns array of paint pending rect { top, left, bottom, right }. Warning: unlike WVT, top maybe > bottom or left maybe > right. in these cases, no paint request is pending (in WVT these is reflected in { 0, 0, 0, 0 }).
nSlotFont Index of font cache. cFontName Name of the font. nHeight Height of the font's character. nWidth Specifies average width of character in the font. nWeight Specifies the weight of the font in the range 0 through 1000 (see About Fonts section). lItalic Specifies an italic font if set to TRUE. lUnderline Specifies an underlined font if set to TRUE. lStrikeout Specifies a strikeout font if set to TRUE. nCharSet Identify the character set. For example, ANSI_CHARSET, DEFAULT_CHARSET, OEM_CHARSET, etc. (all models can be viewed in file wingdi.ch). nQuality Specifies the output quality. nEscapement Angle of escapement of the font.
Returns
None.
Description
Load all information about the specified font, writing it in font cache.
nSlot Index of cache of pen, defined by the user. nStyle Style of the pen. nWidth Specifies the width of the pen, in logical units. If nWidth is zero, the pen is a single pixel wide, regardless of the current transformation. nRGBColor Specifies a color reference for the pen color.
Returns
Returns .T. if read and write of definition is OK, .F. otherwise.
Description
Load definition of the pen (style, width and color) to a cache of pen.
nSlot Position of the cache where the image will be loaded. If there is any image in this position, will be replaced. cFilePicture Image to be loaded in the cache.
Returns
.T. if successful, .F. otherwise.
Description
Load an image in cache of images. Please, read an observation about cache of images, in the introduction.
Maximize current window (argument nWinNum is ignored). If application define a callback function WVW_SIZE() the window will be maximized, otherwise, only restores window.
nWinNum Window number. Default is current window. cMessage Message to be displayed. cTitle Dialog box title. nOption Specifies a set of buttons that determine the contents and behavior of the dialog box. Default is MB_OK ( OK button, without icons). You can see all definitions in file winuser.ch.
Returns
Number of selected option (IDOK to OK button, IDCANCEL to Cancel button, etc.) You can see all definitions in file winuser.ch
Description
Creates, displays, and operates a message box. The message box contains an application defined message and title, plus any combination of predefined icons and push buttons.
cWinName Title of window. If omitted, the name of executable will be used. row1, col1, row2, col2 Specifies initial row/column and final row/column of the window coordinates are relative to main window, not to current window. This coordinates are used to: 1) Put window in initial position. 2) Determine size of the window (new MaxRow() and MaxCol()). 3) Save in RowOfs and ColOfs to MainCoord mode. nStyle Style of the window. All definitions are in file winuser.ch. Default is WS_CAPTION|WS_SYSMENU|WS_CLIPCHILDREN. If you will use controls such as PUSHBUTTON, you MUST include WS_CLIPCHILDREN. nParentWin Is the mother of the new window. Default is current window (in Standard mode) and the last window (in MainCoord mode). If you want the new window to not have parent, pass -1 as argument. nExStyle Extended style to window (for example: WS_EX_TOOLTIPWINDOW). Default is NIL. Note: this parameter does not exist in original GTWVW to be opened. This
Returns
Number of window, if successful, zero if failed.
Description
Opens a window in specified coordinates. Depending of parameter in function wvw_NoStartupSubWindow() the window will be displayed or remains invisible ( until we call function wvw_ShowWindow()).
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to create the button. cText Text of the button. Default is "". cImage/nImage If specified as numeric, identify ID from Resource in a .RC file. If specified as string, must have a full path to an image file. bBlock Code block to be executed whenever a BN_CLICK event occurred (press and release the button). Always pass as a parameter: nWinNum and ID of button. aOffset Array of four row/column. elements with top/left, bottom/right coordinates to align button with
nStretchBitmap Number between 0 and 1 (inclusive) as a stretch factor: 1.0 0.5 0 The bitmap will cover all button. The bitmap will cover only 50% of the button. The bitmap will not be stretched.
Default is 1. lMap3DColors Specified if an image will be transparent (.T.) or not (.F.). This will work on 256 colored bitmaps only.
Returns
Returns the handle of the new pushbutton, if successful (or zero if failed).
nWinNum Window number. Default is current window. cFontName Name of the font. nHeight Height of the font's character. nWidth Specifies average width of character in the font. nWeight Specifies the weight of the font in the range 0 through 1000 (see About Fonts section). nQuality Specifies the output quality. lItalic Specifies an italic font if set to TRUE. lUnderline Specifies an underlined font if set to TRUE. lStrikeout Specifies a strikeout font if set to TRUE.
Returns
.T. if successful, .F. if failed.
Description
This function will initialize font for ALL pushbuttons in window nWinNum, including ones created later on.
nWinNum Window number. Default is current window. nPBId ID of pushbutton. nStyle Define style of pushbutton. You can see all possibilities BS_PUSHBUTTON, BS_DEFPUSHBUTTON, etc.). Typical usage: BS_DEFPUSHBUTTON BS_PUSHBUTTON in file winuser.ch (
1: Turn the button into default button (thick border) 0: Turn the button into regular pushbutton
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Coordinates to create a progress bar. aOffset Array of four elements with top/left, bottom/right coordinates to align progress bar with row/column. nBackColor Background color. nBarColor Progress bar color. lSmooth.T. draw progress bar as a continuum bar .F. draw progress bar with tiny distinct rectangles (default) lVertical.T. draw as vertical progress bar .F. draw as horizontal progress bar (default)
Returns
Progress bar handle, if successful. Zero if failed.
Description
Create progress bar for current window. Progress bar range is initially set as 0 to 100, start from 0.
Restores the window (nWinNum is ignored). Restoring window from its maximized state might need handling in callback function WVW_SIZE(), because this function assumes no change in MaxRow()/MaxCol().
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Screen coordinates to display data saved by function wvw_SaveScreen(). aScr Array with three elements (height, width and handle of bitmap). lDoNotDestroyBMP If .T., after restore screen, delete the bitmap used to save screen. If .F., the bitmap will not be erased. (default)
nWinNum Window number. Default is current window. cMaxText If present, the width of status bar will be the width of this text. nWidth Width of status bar part. Ignored, if cMaxText is passed. nStyle Style of status bar: 0 0x100 0x200 Recessed (default) No borders Raised
lResetParts If .T., remove all previously created parts. If .F., a new status bar part will be created and added to previous parts. cIcon/cTooltip Ignored.
Returns
Returns number of parts, if successful. Zero if failed.
Description
Adds a new division in a status cMaxText/nWidth and nStyle. bar, with width and style specified in arguments
nWinNum Window number. Default is current window. nTop, <nLeft, nBottom, nRight> Screen coordinates to save screen (always from current window, because argument nWinNum is ignored).
Returns
Array of three elements, with height, width and handle of the bitmap.
Description
Save a region of screen, writing in a bitmap file.
nStyle Identify pen style. All definitions can be viewed in file wingdi.ch ( BS_SOLID, BS_NULL, etc.). nColor Index color to pen draw. nHatch Define the filling pattern of pen. All definitions can be viewed in file wingdi.ch ( HS_VERTICAL, HS_HORIZONTAL, etc.).
cFontName Name of the font. (e.g., MS Sans Serif). nFontHeight Height of the font's character. nFontWidth Specifies average width of character in the font. nFontWeight Specifies the weight of the font in the range 0 through 1000 (see About Fonts section). nFontQuality Specifies the output quality. All arguments are optional. This function uses the values assigned in windows creation.
Returns
.T. if successful, .F. otherwise.
Description
Modify the font or the arguments related to the font (height, width, quality, etc.).
nWinNum Window number. Default is current window. nLineSpacing If passed, change line spacing in current window, otherwise read actual configuration.
Returns
Returns old configuration, if nLineSpacing is passed, or actual configuration.
Description
Read/set line spacing for current window. If window size will become too high, line spacing is restored. To change default line spacing for next window open, use wvw_SetDefLineSpacing().
nMaxCache Limit of cache bitmaps. Default is 20, minimum is 1.
Returns
Returns old setting of maximum user-bitmap cache.
Description
To minimize bitmap loading operation, wvw_DrawImage() caches bitmap once it reads from disk. I.e., subsequent wvw_drawimage will use the bitmap from the memory. When the maximum number of cache is used, the least recently opened bitmap will be discarded from the cache. There is no way to discard a specific bitmap from the cache. If you want to control bitmap caching manually, use wvw_LoadPicture() instead.
nWinNum Window number. Default is current window. lMouseMove.T. recognize mouse in application .F. do not recognize mouse in application If not passed, returns actual configuration.
Returns
If passed lMouseMove, returns .T. to successful operation or .F. otherwise. If omitted, returns last valid configuration.
Description
Enable/disable mouse recognition by the application.
The window will be always visible, even if the focus is in another window. This function change properties of the window, thus it will be on top of any other opened window.
nPenStyle Defines pen style. All definition are in file wingdi.ch ( PS_SOLID, PS_DOT, etc.). nWidth Specifies width of the pen. nColor Index color of pen.
nWinNum Window number. Default is current window. nIcon Model of icon to be read. May be a string which identify a resource in a RC file or may be a predefined window model (default is IDC_ARROW). All definition are in winuser.ch file.
nWinNum Window number. Default is current window. nIcon Identify if it will be displayed an icon with text in tooltip. Is allowed one of the following values: 0 1 2 3 no icon (default) information warning Error
any other value greater than 3, the GTWVW convert to 0.
nWinNum Window number. Default is current window. lCentre.T. centralize window .F. not centralize window lPaintIt.T. Repaint all windows immediate. .F. Just update configuration.
Returns
None.
Description
Update parameter to centralization of all opened windows (and newly opened). If passed lPaintIt and lCentre, all windows are repainted and centralized.
nWinNum Window number. Default is current window. nStyle New windows style. If the windows has any control (PUSHBUTTON, SCROLLBAR, etc.), must be added WS_CLIPCHILDREN style.
Returns
Returns old style of the window.
Description
Read or set style for window nWinNum. If windows is minimized or hidden, and if passed nStyle, the window will be showed.
nWinNum Window number. Default is current window. nMode Points out how window will be showed. Default is SW_SHOWNORMAL (another definitions in file winuser.ch).
nWinNum Window number. Default is current window. nCommand ID of action to be executed when user press button. xBitmap ID of bitmap resource in .RC file (in this case, the image cannot have more than 256 colors) or full path to a file name. cLabel Text of button. If passed lDisplayText (in function wvw_tbCreate()) to .T., the text will be showed below image, otherwise will be used as a tooltip. nBitmapType Bitmap type. Can be: 0 1 2 3 Custom Standard windows bitmaps (COPY, PAST, FIND, OPEN, etc.) System view bitmaps System history bitmaps
lMap3DColors If the image will be transparent (meaningful for custom bitmap only).
Returns
Always .T.
Description
Adds one button on the right of existing buttons, in a toolbar.
nWinNum Window number. Default is current window. lDIsplayText.T. Text of button will be showed with the image .F. Text will be showed as a tooltip ( default) nStyle Style of toolbar. Default is TBSTYLE_FLAT | TBSTYLE_TOOLTIPS (another definitions are in file commctrl.h). nSystemBitmap Points out if will be used Windows system bitmaps. Can be: 0 1 2 Do not use Windows system bitmaps Use Windows system bitmaps (small) Use Windows system bitmaps (large)
nImageWidth, nImageHeight Length and width of image (meaningful only if nSystemBitmap is zero).
Returns
Handle of toolbar, if successful. Zero if failed.
Description
Creates a toolbar on top of current window (with no button).
nWinNum Window number. Default is current window. nButton Number of button do delete. The separator button count as a button, and can be deleted. This list is zero based.
nWinNum Window number. Default is current window. nButton Number of button in a toolbar (zero based list). lToggle.T. Enable the button .F. Disable the button
nWinNum Window number. Default is current window. nBottomPixels Passed by reference, to keep the number of lines (in pixels). nRightPixels Passed by reference, to keep the number of columns (in pixels).
Returns
Number of rows/columns in pixels.
Description
Read the number of pixels out of reach to lines and columns when window nWinNum is maximized.
nWinNum Window number. Default is current window. nStyle 0 Horizontal 1 Vertical nTop, nLeft Initial row/column of scrollbar (in characters). nLength Length of scrollbar (in characters). bBlock Code block to execute on every VM_VSCROLL/VM_HSCROLL. This code block will be evaluated with these parameters: nWinNumnXBidnXBmsg window number scrollbar ID scrollbar message. Can be divided in two categories:
The "may not be handled" messages: SB_TUMBPOSITION SB_THUMBTRACK SB_ENDSCROLLnXBPos 4: scroll thumb is released at position nXBpos 5: scroll thumb is being dragged at position nXBpos 8: end of scroll
scrollthumb position (only if message = SB_THUMBPOSITION or SB_THUMBTRACK)
aOffset Array with four elements with top/left, bottom/right coordinates, in pixels, to adjust the dimensions of scrollbar.
nWinNum Window number. Default is current window. nXBId ID of scrollbar. nFlags The following values are allowed: 0 1 2 3 enable both arrows disable left/up arrow disable right/down arrow disable both arrow
nWinNum Window number. Default is current window. nXBId ID of scrollbar.
Returns
Array with five elements (if successful): nMinnMaxnPageSizenPosnTrackPos Minimum positions to scrolling Maximum positions to scrolling Page size Position of scrolling button Exact position of the scrolling button, when the user beginning a drag-and-drop operation.
nWinNum Window number. Default is current window. nXBId ID of scrollbar. nPos Specifies the position of scrolling button. nPageSize Page size. This value is used by scrollbar to determine the proportional size to page jump. nMin Minimum value to scrolling. nMax Maximum value to scrolling.
Returns
Returns current position of scroll thumb, if successful. -1 if failed.
Description
Update and redisplay a scrollbar data. The parameters nPos, nPageSize, nMin and nMax are optional, however, both nMin and nMax must be supplied, or not at all.
lAnchored If .T., all subwindows are positioned according to their respective coordinate If .F., all subwindows are positioned according to whatever their "CenterWindow" setting