Changeset 65 for trunk/src/helpers/dialog.c
- Timestamp:
- Apr 29, 2001, 2:10:31 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/dialog.c
r61 r65 400 400 401 401 VOID ProcessColumn(PCOLUMNDEF pColumnDef, 402 PROWDEF pOwningRow, 403 PROCESSMODE ProcessMode, 402 PROWDEF pOwningRow, // in: current row from ProcessRow 403 PROCESSMODE ProcessMode, // in: processing mode (see ProcessAll) 404 404 PLONG plX, // in/out: PROCESS_CALC_POSITIONS only 405 405 PDLGPRIVATE pDlgData) … … 673 673 /* 674 674 *@@ ProcessRow: 675 * 675 * level-3 procedure (called from ProcessTable), 676 * which in turn calls ProcessColumn for each column 677 * in the row. 678 * 679 * See ProcessAll for the meaning of ProcessMode. 676 680 */ 677 681 678 682 VOID ProcessRow(PROWDEF pRowDef, 679 PTABLEDEF pOwningTable, 680 PROCESSMODE ProcessMode, 681 PLONG plY, 683 PTABLEDEF pOwningTable, // in: current table from ProcessTable 684 PROCESSMODE ProcessMode, // in: processing mode (see ProcessAll) 685 PLONG plY, // in/out: current y position (decremented) 682 686 PDLGPRIVATE pDlgData) 683 687 { … … 727 731 /* 728 732 *@@ ProcessTable: 729 * 730 * This routine is a bit sick because it can be 731 * called recursively if a nested table is found 732 * in a COLUMNDEF. 733 * level-2 procedure (called from ProcessAll), 734 * which in turn calls ProcessRow for each row 735 * in the table (which in turn calls ProcessColumn 736 * for each column in the row). 737 * 738 * See ProcessAll for the meaning of ProcessMode. 739 * 740 * This routine is a bit sick because it can even be 741 * called recursively from ProcessColumn (!) if a 742 * nested table is found in a COLUMNDEF. 733 743 * 734 744 * With PROCESS_CALC_POSITIONS, pptl must specify … … 742 752 VOID ProcessTable(PTABLEDEF pTableDef, 743 753 const CONTROLPOS *pcpTable, // in: table position with PROCESS_CALC_POSITIONS 744 PROCESSMODE ProcessMode, 754 PROCESSMODE ProcessMode, // in: processing mode (see ProcessAll) 745 755 PDLGPRIVATE pDlgData) 746 756 { … … 783 793 /* 784 794 *@@ ProcessAll: 795 * level-1 procedure, which in turn calls ProcessTable 796 * for each root-level table found (which in turn 797 * calls ProcessRow for each row in the table, which 798 * in turn calls ProcessColumn for each column in 799 * the row). 800 * 801 * The first trick to formatting is that ProcessAll will 802 * get three times, thus going down the entire tree three 803 * times, with ProcessMode being set to one of the 804 * following for each call (in this order): 785 805 * 786 806 * -- PROCESS_CALC_SIZES: calculates the sizes 787 807 * of all tables, rows, columns, and controls. 788 808 * 809 * After this first call, we know all the sizes 810 * only and then then calculate the positions. 811 * 789 812 * -- PROCESS_CALC_POSITIONS: calculates the positions 790 813 * based on the sizes calculated before. … … 793 816 * positions and sizes calculated before. 794 817 * 818 * The second trick is the precondition that tables may 819 * nest by allowing a table definition instead of a 820 * control definition in a column. This way we can 821 * recurse from columns back into tables and thus 822 * know the size and position of a nested table column 823 * just as if it were a regular control. 795 824 */ 796 825
Note:
See TracChangeset
for help on using the changeset viewer.