Purpose With Mark you can mark entry fields with a small red cross. For example, you can mark all fields that should be entered by the user.
Examples Mark F[Base unit of measure]
Mark F[Base unit of measure] "-green"
Mark F[Base unit of measure] Image="C:\GuiXT\circle.gif"
Format Mark [entry field]

A small red cross is displayed in front of the entry field

Options
-red Color red (Default)
-green Color green
-blue Color blue
-yellow Color yellow
-black Color black
-white Color white
Image=filename Instead of a small cross the specified image file (e.g., .bmp, .gif) is displayed. The image size should be 8x8 pixels.
-Text The mark is displayed in front of the field designation text
Displaying
help files in html or PDF format
Component "Controls" is required for this option

When the user clicks on the small red cross, the help file  ViewHelp="..." is displayed at the right hand side of the SAP screen. Interactions with SAP can be specified in the html file, as described for the  View-command  (Setting values, calling functions).

The connectHTML function is automatically executed for the page displayed.

Mark [entry field] ViewHelp="filename.html"

Example Mark F[Base unit of measure] Image="help.gif" ViewHelp="doc_unit.pdf"  
Options for ViewHelp
ViewHelpWidth= Width of the help display (in pixel). If no width is specified, 40% of the total window width is taken.
It is also possible to specify the width in percentage, e.g. ViewHelpWidth=60%
ViewHelpHeight= Height of the help display (in pixel). If no height is specified,  the total window height is taken.
It is also possible to specify the height in percentage, e.g. ViewHelpHeight=50%
ViewHelpPosition= Position (upper left corner) of the help display in the form (row,column). E.g.: ViewHelpPosition=(10,50). Or relative to other screen elements, e.g.  ViewHelpPosition="F[Material]+(1,30)".
If you specify a position without specifying width and height, the whole window is used, starting at the specified position (lower right part of the window).
Example Mark F[Base unit of measure] Image="help.gif" ViewHelp="doc_unit.htm"  ViewHelpWidth="200"
Tips
& Tricks
If you need the small cross icons separately, for example in order to display a short explanation of the signs, you can use the Image command and the filenames
  • "mark_red.res"
  • "mark_green.res"
  • "mark.blue.res"
  • ...
Components GuiXT