Function GraBackground() Foundation
Draw the background of an Xbase Part.
GraBackground( <oPS>, [<aStart>], [<aEnd>], [<lErase>], [<nPart>] ) --> <lSuccess>
This function returns the value .T., if the background is erased successfully. Otherwise, .F. is returned.
The function GraBackground() draws the background of an Xbase Part. If a visual style is assigned to the Xbase Part, GraBackground() uses the background image defined in the visual style to draw the background. The style image used is selected with respect to the current state of the Xbase Part, see XbpWindow:controlState for further information. For more information on style image selection, see the instance variables XbpWindow:styleClass and XbpWindow:stylePart. If an invalid style part is specified in parameter <nPart>, the function GraBackground() behaves as if no visual style is assigned to the Xbase Part.
If no visual style is assigned to the Xbase Part, or visual styles are disabled for the application, GraBackground() draws the background using the background color of the Xbase Part. If the background color assigned is transparent (XBPSYSCLR_TRANSPARENT), GraBackground() uses information from the parent of the associated Xbase Part to draw the output rectangle.
Visual styles have been introduced with Windows XP and are not available on older platforms.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.