Creates a scrolling window for viewing text from a file or character string.
NOTE: Either the File or the Text keyword must be supplied to identify the text that WgTextTool will display.
File
Position
Rows
Text
Title
Background
Specifies the background color name.
Specifies the base color.
Specifies the name of the font used for text.
Specifies the foreground color name.
Figure 2-171 WgTextTool displays either: 1) text from a file, or 2) text from an input string. In this illustration, WgTextTool is displaying text from the copyright file that is distributed with every copy of PV-WAVE.
Figure 2-172 WgTextTool displays either: 1) text from a file, or 2) text from an input string. In this illustration, WgTextTool is displaying text from the copyright file that is distributed with every copy of PV-WAVE.
NOTE: The text displayed in the window is read only; it cannot be edited.
Copy
function will be sensitized, because the text is read-only.
parent
is defined, WgTextTool is created as a child of parent
; otherwise, WgTextTool runs on its own (i.e., in its own event loop).When you are finished interacting with the WgTextTool window, close it by clicking the
Dismiss
button.
PRO Sample_wgtexttool, parent, tool_shell IF !Version.platform EQ 'VMS' THEN BEGIN filename = GETENV('WAVE_DIR')+'copyright'
ENDIF ELSE BEGIN filename = '$WAVE_DIR/copyright'
ENDELSE IF N_ELEMENTS(parent) NE 0 THEN BEGIN WgTextTool, File=filename, parent, tool_shell
ENDIF ELSE BEGIN WgTextTool, File=filename
ENDELSE END
For more information about how to write an application program based on WAVE Widgets, refer to Chapter 5, Using WAVE Widgets, in the PV-WAVE GUI Application Developer's Guide. For more information about how to write an application program based on the PV-WAVE Widget Toolbox, refer to Chapter 6, Using the Widget Toolbox, in the PV-WAVE GUI Application Developer's Guide.