home *** CD-ROM | disk | FTP | other *** search
- program nested_dials;
-
- uses gem, geminit, newobs, pform, tools, alert;
-
- (*$I nested.i*)
-
- var
- tree : AESTreePtr;
- rc, x, y, w, h : integer;
- spf : SUBPFORM;
-
- begin
- if not initgem then
- exit;
- if rsrc_load('nested.rsc') = 0 then
- begin
- exitgem;
- exit;
- end;
- graf_mouse(ARROW, NIL);
- init_pform(vdihandle, TRUE);
- init_newobs(vdihandle);
- fix_all(TRUE);
- rsrc_gaddr(R_TREE, FORM, pointer(tree));
-
- wind_update(BEG_UPDATE);
- wind_update(BEG_MCTRL);
- pform_center(tree, x, y, w, h);
- pform_dial(FMD_START, x, y, w, h, x, y, w, h);
- objc_draw(tree, ROOT, MAX_DEPTH, x, y, w, h);
- repeat
- rc := pform_do(tree, 0) and $7fff;
- if rc = HELP_BUTTON then
- begin
- init_subdial(tree, spf);
- do_alert(@INFO, 'Hier könnte ein Hilfetext stehen, z. B. ' +
- 'mit dem Hinweis, daß der nächste aus dem ' +
- 'Hause Atari kommen sollte!', ' [OK ', 0, -1);
- exit_subdial(spf);
- end;
- deselect(tree^[rc]);
- draw_object(tree, rc);
- until rc <> HELP_BUTTON;
- pform_size(tree, x, y, w, h);
- pform_dial(FMD_FINISH, x, y, w, h, x, y, w, h);
- wind_update(END_MCTRL);
- wind_update(END_UPDATE);
-
-
- fix_all(FALSE);
- exit_pform;
- rsrc_free;
- exitgem;
- end.