home *** CD-ROM | disk | FTP | other *** search
- /* ------------------------------------------------------------------ */
- /* Macro: CFGFIND.AML */
- /* Written by: nuText Systems */
- /* */
- /* Description: This macro displays a configuration dialog box for */
- /* search and replace options. */
- /* ------------------------------------------------------------------ */
-
- include bootpath "define.aml"
-
- var searchopt
- var replopt
-
- // create dialog box
- dialog "Search Options" 41 13 "cp"
-
- // search options
- groupbox 'Default Search Options:' 3 2
- (menu ''
- item " [ ] &Block Only"
- item " [ ] &Global Search"
- item " [ ] &Ignore Case"
- item " [ ] Search in &Reverse"
- item " [ ] &Skip Closed Folds"
- item " [ ] &Whole Words Only"
- item " [ ] Regular E&xpressions "
- end) '' _SearchOpt "bgirswx"
-
- // replace options
- groupbox 'Default Replace Options:' 3 11
- (menu ''
- item " [ ] Replace &All"
- end) '' _ReplaceOpt "a"
-
- // ok/cancel buttons
- button "O&k" 31 3 8
- button "Cancel" 31 5 8
-
- // display dialog box
- if (getdialog ref searchopt ref replopt) == 'Ok' then
- setobj SearchOpt searchopt 'prf'
- setobj ReplaceOpt replopt 'prf'
- end
-
-