Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>legend_say()</b> t_exam05 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LEGEND_SAY()                                                       T_EXAM05
   Prints the legend for each Y column on the screen.

   Syntax
         LEGEND_SAY(nX,nY,nOrientation [,nJustify] [,nAlignment]
                    [,nFrameDist] [,nDistance])

   Arguments
         nX             X screen position for legend.
         nY             Y screen position for legend.
         nOrientation   Orientation         (0-horizontal, 1-vertical)
         OPTIONAL PARAMETERS
         nJustify       Justification.      (0-start, 1-center, 2-end)
         nAlignment     Vertical alignment. (0-top, 1-middle, 2-bottom)
         nFrameDist     Distance of frame from legend. [0-no frame]
         nDistance      Added distance between legend labels.

   Note: ATX() and ATY() can be used to place the legend. Placement type
         2 works well for legends.

   Description
         Each Y column can have a legend that will be printed on the screen
         with LEGEND_SAY(). Each of the possible legends can have a maximum
         of 20 characters. If the legend has a string length of 0, then
         the legend will not be printed.

         nOrientation determines whether the legend will be printed
         horizontally or vertically. A value of 0 is horizontal and 1 is
         vertical. Space for the legend can be created at the bottom of the
         screen with the SET_AREA() function.

         nJustification allows you to print the entire legend justified at
         the start, center, or end of the X,Y position.

         nAlignment allows you to print the entire legend aligned at
         the top, middle, or bottom of the X,Y position.

         nFrameDist value greater than 0 draws a frame around the legend
         text. The greater the value of nFrameDist distance, the greater
         distance the frame is from the edge of the legend.

         nDistance adds or substracts space between legend labels.

         The color of the inside of the legend frame is set with GRF_COLORS().

See Also: LEGEND_SET()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson