MTblDefineFocusFrame
bOk = MTblDefineFocusFrame( hWndTbl, nThickness, nOffsetX, nOffsetY, nColor )
Defines the appearance of the focus frame.
Parameters
hWndTbl
Window Handle: Handle of the table
nThickness
Number: Thickness in pixels. Must be >= 0. Defaut value: 3.
nOffsetX
Number: Offset from the left/right edge of the focused object. May also be negative. Defaut value: -1.
nOffsetY
Number: Offset from the top/bottom edge of the focused object. May also be negative. Defaut value: -1.
nColor
Number: Color. If MTBL_COLOR_UNDEF, the focus frame has no color but inverts it's background. Default value: MTBL_COLOR_UNDEF.
Return
Boolean: TRUE if successful or FALSE if an error occured
Example
In this example the focus frame is defined as follows:
Thickness: 5
X-Offset: 0
Y-Offset: 1
Color: blue
Call MTblDefineFocusFrame( hWndTbl, 5, 0, 1, COLOR_Blue )
Remarks
If nThickness + nOffsetX < 0 or nThickness + nOffsetY < 0, the function does nothing and returns FALSE.
See also
MTblQueryFocusFrame
Cell mode
Created with the Personal Edition of HelpNDoc: Free help authoring tool