ProvideX V8.20 > Language Reference > 5. Mnemonics
619
You can send 'MESSAGE' to segment 0 zero and to defined segments by segment
number. By default, if you omit the segment number, your text is displayed in
segment 0 starting at column 0.
Note: If you use a positive column number, the segment's separator is offset that many
columns from the left of the message bar. Use negative values to have the separator's
placement offset from the right instead. If you want to centre text within a segment,
use $09$ ( Tab character) as the first character of the text to print.
Example
0010
print
'message'(def 7,-20) ! create seg1 @(7), seg2 @(20 cols from right)
0020
print
'message'("") ! Null displayed in segment 0
0030
print
'message'("hello",1),'message'("there",2)
0040
print
"To reset the message bar PRINT 'message'(def 0)"
Message Bar Region Events
LEFT-MOUSE-CLICK and RIGHT-MOUSE-CLICK events are now supported in the message bar
region. ProvideX returns CTL values when the user clicks on a segment in the
'MESSAGE' region.
Note: The existence/height of the message bar can be controlled by an INI file setting.
Each of the four possible segments of the message bar region has been assigned a
different negative CTL value. The event is reported on the button UP only. The
return values are shown in the chart below.
LEFT-MOUSE-BUTTON-UP
RIGHT-MOUSE-BUTTON-UP
'MESSAGE' Region
1st area (segment zero)
CTL= -1400
CTL= -1410
2nd area (segment 1)
CTL= -1401
CTL= -1411
3rd area (segment 2)
CTL= -1402
CTL= -1412
4th area (segment 3)
CTL= -1403
CTL= -1413
'MINSIZE' Mnemonic
   Window Resize User Limit
GUI Display
Description
Same as 'MAXSIZE' & 'MINSIZE' Window Resize User Limit, p.617.