QTIPS - Reusing Symbolics in Windows
Published By | Date | Version | Knowledge Level | Keywords |
---|---|---|---|---|
Sprezzatura Ltd | 01 JUN 1991 | 2.03+ | EXPERT | SYMBOLIC, WINDOWS, WC_RING_PTR%, WC_XCNT%, VOC, TEMPLATE, WINDOW_COMMON% |
One of the most commonly used symbolics in windows is
$INSERT INCLUDE, WINDOW_COMMON% IF WC_XCNT% > 1 THEN @ANS = WC_RING_PTR% : " of " : WC_XCNT% @ANS := " - Alt-F Forward Alt-B Backward" END ELSE @ANS = "" END
It seems excessive to have to include this in the dictionary of every file that needs it just so that it can be included in the window.
To circumvent this problem, put the symbolic in the dict of VOC and put a dummy symbolic into the template where the browse message ought to appear. Once the template has been saved, edit it and replace the dummy symbolic name with the name of the symbolic in the dict of VOC. This will now work as required (until the window is repainted - when this happens the procedure will need to be repeated). This works because as previously mentioned in REVMEDIA, if RTP27 cannot find what it wants in @DICT it looks in the dict of VOC. By extension this should work wherever {} are used.
(Volume 3, Issue 2, Page 5)