Important: The information in this document is obsolete and should not be used for new development.
SectionOptionsDialog
Use theSectionOptionsDialogfunction to display the publisher options and subscriber options dialog boxes on the user's screen.
FUNCTION SectionOptionsDialog (VAR reply: SectionOptionsReply): OSErr;
reply- The
replyparameter contains a section options reply record. You specify a handle to the publisher's or subscriber's section record in thesectionHfield of this record. TheSectionOptionsDialogfunction returns information concerning the user's actions in thecanceled,changed, andactionfields.TYPE SectionOptionsReply = RECORD canceled: Boolean; {user canceled dialog box} changed: Boolean; {changed the section record} sectionH: SectionHandle; {handle to the specified } { section record} action: ResType; {action codes} END;
Field Description
canceled- The
SectionOptionsDialogfunction returns in this field a value that indicates whether the user canceled the dialog box. The function returnsTRUEin thecanceledfield if the user canceled the dialog box. Otherwise, the function returnsFALSEin this field.changed- The
SectionOptionsDialogfunction returnsTRUEin this field if the user changed the section record. For example, the update mode may have changed. Otherwise, the function returnsFALSEin this field.sectionH- A handle to the section record for the section the user selected.
action- The
SectionOptionsDialogfunction returns in this field the code for one of five user actions: action code'read'for user selection of the Get Edition Now button, action code'writ'for user selection of the Send Edition Now button, action code'goto'for user selection of the Open Publisher button, action code'cncl'for user selection of the Cancel Publisher or Cancel Subscriber button, or action code' '($20202020) for user selection of the OK button.DESCRIPTION
TheSectionOptionsDialogfunction displays the appropriate options dialog box for the specified section record. The function displays information about the subscriber or publisher, such as its latest edition and current update mode setting, and allows the user to perform various actions. TheSectionOptionsDialogfunction handles all user interaction until the user selects a button. The function returns the user's action in theactionfield of thereplyparameter; your application should then perform the corresponding action.RESULT CODES
noErr 0 No error memFullErr -108 Memory full SEE ALSO
For illustrations of the section options dialog box, see Figure 2-13 through Figure 2-16 beginning on page 2-43. For an example of the use ofSectionOptionsDialog, see Listing 2-8 beginning on page 2-46. For a description of the section record, see page 2-72.