User Tools

Site Tools


current_target.htm
Navigation:  Language Reference > 6 - Windows > Graphics Overview >====== Current Target ====== Previous pageReturn to chapter overviewNext page

Graphics are always drawn to the “current target.” Unless overridden with SETTARGET, the “current target” is the last window opened (and not yet closed) on the current execution thread and is the window with input focus. Drawings in a window are persistent–redraws are handled automatically by the runtime library.

Graphics in Reports

black.jpg

Graphics can also be drawn to a report. To do this, SETTARGET must first be used to nominate the REPORT as the “current target.” Optionally, SETTARGET can nominate a specific report band to receive the graphics.

Consistent Graphics

black.jpg

Every window or report has its own current pen width, color, and style. Therefore, to consistently use the same pen (which does not use the default settings) across multiple windows, the SETPENWIDTH, SETPENCOLOR, and SETPENSTYLE statements should be issued for each window.

current_target.htm.txt · Last modified: 2021/04/15 15:57 (external edit)