[system] / trunk / pg / macros / parserPopUp.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/parserPopUp.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5372 Revision 5373
4 4
5sub _parserPopUp_init {}; # don't reload this file 5sub _parserPopUp_init {}; # don't reload this file
6 6
7=head1 DESCRIPTION 7=head1 DESCRIPTION
8 8
9#################################################################### 9 ####################################################################
10# 10 #
11# This file implements a pop-up menu object that is compatible 11 # This file implements a pop-up menu object that is compatible
12# with Value objects, and in particular, with the MultiPart object. 12 # with Value objects, and in particular, with the MultiPart object.
13# 13 #
14# To create a PopUp object, use 14 # To create a PopUp object, use
15# 15 #
16# $popup = PopUp([choices,...],correct); 16 # $popup = PopUp([choices,...],correct);
17# 17 #
18# where "choices" are the strings for the items in the popup menu, 18 # where "choices" are the strings for the items in the popup menu,
19# and "correct" is the choice that is the correct answer for the 19 # and "correct" is the choice that is the correct answer for the
20# popup. 20 # popup.
21# 21 #
22# To insert the popup menu into the problem text, use 22 # To insert the popup menu into the problem text, use
23# 23 #
24# BEGIN_TEXT 24 # BEGIN_TEXT
25# \{$popup->menu\} 25 # \{$popup->menu\}
26# END_TEXT 26 # END_TEXT
27# 27 #
28# and then 28 # and then
29# 29 #
30# ANS($popup->cmp); 30 # ANS($popup->cmp);
31# 31 #
32# to get the answer checker for the popup. 32 # to get the answer checker for the popup.
33# 33 #
34# You can use the PopUp menu object in MultiPart objects. This is 34 # You can use the PopUp menu object in MultiPart objects. This is
35# the reason for the pop-up menu's ans_rule method (since that is what 35 # the reason for the pop-up menu's ans_rule method (since that is what
36# MultiPart calls to get answer rules). 36 # MultiPart calls to get answer rules).
37# 37 #
38 38
39=cut 39=cut
40 40
41sub PopUp {parserPopUp->new(@_)} 41sub PopUp {parserPopUp->new(@_)}
42 42

Legend:
Removed from v.5372  
changed lines
  Added in v.5373

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9