Changeset 229 for trunk/src/helpers/dialog.c
- Timestamp:
- Nov 24, 2002, 9:45:05 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/dialog.c
r222 r229 11 11 * 12 12 * See @dlg_algorithm for the gory details of the new 13 * algorithm used since V 0.9.21. Even though much13 * algorithm used since V1.0.0. Even though much 14 14 * of this file was rewritten, the new dialog is 15 15 * backwards-compatible with all the hacks that existing … … 254 254 * 255 255 * We now use the CSS box model for the dialog 256 * formatter (V 0.9.21).256 * formatter (V1.0.0). 257 257 * 258 258 + ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ … … 323 323 * certain controls automatically. See CalcAutoSize. 324 324 * 325 * The algorithm used here has been greatly reworked with V 0.9.21.325 * The algorithm used here has been greatly reworked with V1.0.0. 326 326 * Essentially, the new trick is that we first compute all widths 327 327 * (which requires several iterations since widths may now inherit … … 573 573 * 574 574 * See @dlg_algorithm for the new algorithm 575 * used since V 0.9.21.576 * 577 * With V 0.9.21, we now follow the CSS box model575 * used since V1.0.0. 576 * 577 * With V1.0.0, we now follow the CSS box model 578 578 * to render these things better without all 579 579 * the hacks I am no longer able to understand 580 580 * myself. See @dlg_box_model for details. 581 581 * 582 *@@changed V 0.9.21(2002-08-18) [umoeller]: completely replaced582 *@@changed V1.0.0 (2002-08-18) [umoeller]: completely replaced 583 583 */ 584 584 … … 602 602 603 603 ULONG ulColumnIndex; // zero-based column index in parent row 604 // V 0.9.21(2002-08-18) [umoeller]604 // V1.0.0 (2002-08-18) [umoeller] 605 605 606 606 // b) information for control window to be created: … … 628 628 RECTL rclPadding, // spacing, in pixels, to apply to the four borders of 629 629 rclMargin; // the content to get the box; calculated from CONTROLDEF 630 // V 0.9.21(2002-08-16) [umoeller]630 // V1.0.0 (2002-08-16) [umoeller] 631 631 632 632 LONG cxSpacingTotal; // sum of rclPadding and rclMargin xLeft and … … 684 684 685 685 ULONG cColumns; // no. of columns in this row 686 // V 0.9.21(2002-08-18) [umoeller]686 // V1.0.0 (2002-08-18) [umoeller] 687 687 688 688 // result data after recursion: … … 767 767 * set. 768 768 * 769 *@@added V 0.9.21(2002-08-16) [umoeller]769 *@@added V1.0.0 (2002-08-16) [umoeller] 770 770 */ 771 771 … … 827 827 * set. 828 828 * 829 *@@added V 0.9.21(2002-08-16) [umoeller]829 *@@added V1.0.0 (2002-08-16) [umoeller] 830 830 */ 831 831 … … 949 949 *@@changed V0.9.16 (2001-10-15) [umoeller]: added APIRET 950 950 *@@changed V0.9.16 (2002-02-02) [umoeller]: added ulWidth 951 *@@changed V 0.9.21(2002-08-18) [umoeller]: renamed; moved multi-line processing to CalcAutoSizeTextMulti951 *@@changed V1.0.0 (2002-08-18) [umoeller]: renamed; moved multi-line processing to CalcAutoSizeTextMulti 952 952 */ 953 953 … … 984 984 * static text controls. 985 985 * 986 *@@added V 0.9.21(2002-08-18) [umoeller]986 *@@added V1.0.0 (2002-08-18) [umoeller] 987 987 */ 988 988 … … 1030 1030 * 1031 1031 *@@added V0.9.20 (2002-08-10) [umoeller] 1032 *@@changed V 0.9.21(2002-08-18) [umoeller]: removed temp windows list1032 *@@changed V1.0.0 (2002-08-18) [umoeller]: removed temp windows list 1033 1033 */ 1034 1034 … … 1224 1224 *@@changed V0.9.16 (2001-10-15) [umoeller]: added APIRET 1225 1225 *@@changed V0.9.19 (2002-04-24) [umoeller]: fixed PM groups alignment 1226 *@@changed V 0.9.21(2002-08-16) [umoeller]: adjusted for new algorithm1226 *@@changed V1.0.0 (2002-08-16) [umoeller]: adjusted for new algorithm 1227 1227 */ 1228 1228 … … 1290 1290 *@@changed V0.9.19 (2002-04-17) [umoeller]: fixes for the STUPID drop-down comboboxes 1291 1291 *@@changed V0.9.19 (2002-04-24) [umoeller]: fixed PM groups alignment 1292 *@@changed V 0.9.21(2002-08-16) [umoeller]: adjusted for new algorithm1293 *@@changed V 0.9.21(2002-08-18) [umoeller]: setting entry field length to CCHMAXPATH per default now1292 *@@changed V1.0.0 (2002-08-16) [umoeller]: adjusted for new algorithm 1293 *@@changed V1.0.0 (2002-08-18) [umoeller]: setting entry field length to CCHMAXPATH per default now 1294 1294 */ 1295 1295 … … 1323 1323 flStyle = pColumn->flStyle; 1324 1324 1325 // V 0.9.21(2002-08-16) [umoeller]1325 // V1.0.0 (2002-08-16) [umoeller] 1326 1326 // Removed all the terrible hacks for the PM group 1327 1327 // control. We now use rclPadding and rclMargin … … 1355 1355 } 1356 1356 1357 if ( (!arc) // check error code V 0.9.21(2002-08-16) [umoeller]1357 if ( (!arc) // check error code V1.0.0 (2002-08-16) [umoeller] 1358 1358 && (pcszClass) 1359 1359 ) … … 1365 1365 PCSZ pcszTextEF = NULL; // for entry field 1366 1366 1367 // V 0.9.21(2002-08-16) [umoeller]1367 // V1.0.0 (2002-08-16) [umoeller] 1368 1368 // determine the position where to create the 1369 1369 // control; this is the content box, to which … … 1448 1448 // defer setting the text because we should 1449 1449 // first set the entry field limit 1450 // V 0.9.21(2002-08-18) [umoeller]1450 // V1.0.0 (2002-08-18) [umoeller] 1451 1451 pcszTextEF = pcszText; 1452 1452 pcszText = ""; // for now … … 1532 1532 // set text limit to CCHMAXPATH per default, 1533 1533 // and set the real text now 1534 // V 0.9.21(2002-08-18) [umoeller]1534 // V1.0.0 (2002-08-18) [umoeller] 1535 1535 winhSetEntryFieldLimit(pColumn->hwndControl, CCHMAXPATH); 1536 1536 WinSetWindowText(pColumn->hwndControl, (PSZ)pcszTextEF); … … 1634 1634 *@@changed V0.9.12 (2001-05-31) [umoeller]: fixed font problems 1635 1635 *@@changed V0.9.20 (2002-08-08) [umoeller]: added support for aligning columns horizontally 1636 *@@changed V 0.9.21(2002-08-16) [umoeller]: calc size rewritten for new algorithm1636 *@@changed V1.0.0 (2002-08-16) [umoeller]: calc size rewritten for new algorithm 1637 1637 */ 1638 1638 … … 1655 1655 1656 1656 case PROCESS_1_CALC_MIN_WIDTHS: 1657 // rewritten V 0.9.21(2002-08-16) [umoeller]1657 // rewritten V1.0.0 (2002-08-16) [umoeller] 1658 1658 1659 1659 if (!pColumn->pNestedTable) … … 1723 1723 1724 1724 case PROCESS_2_CALC_RELATIVE_WIDTHS: 1725 // rewritten V 0.9.21(2002-08-16) [umoeller]1725 // rewritten V1.0.0 (2002-08-16) [umoeller] 1726 1726 1727 1727 if (!pColumn->pNestedTable) … … 1816 1816 1817 1817 case PROCESS_3_ALIGN_COLUMNS: 1818 // rewritten V 0.9.21(2002-08-16) [umoeller]1818 // rewritten V1.0.0 (2002-08-16) [umoeller] 1819 1819 1820 1820 if (!pColumn->pNestedTable) … … 2101 2101 * in the row. 2102 2102 * 2103 *@@changed V 0.9.21(2002-08-16) [umoeller]: adjusted for new algorithm2103 *@@changed V1.0.0 (2002-08-16) [umoeller]: adjusted for new algorithm 2104 2104 */ 2105 2105 … … 2199 2199 * to which the nested table belongs. 2200 2200 * 2201 *@@changed V 0.9.21(2002-08-16) [umoeller]: adjusted for new algorithm2201 *@@changed V1.0.0 (2002-08-16) [umoeller]: adjusted for new algorithm 2202 2202 */ 2203 2203 … … 2220 2220 // as a separate step (PROCESS_2_INHERIT_TABLE_SIZES), 2221 2221 // but we can save ourselves a loop here 2222 // V 0.9.21(2002-08-16) [umoeller]2222 // V1.0.0 (2002-08-16) [umoeller] 2223 2223 if (pTableDef->flTable & TABLE_INHERIT_SIZE) 2224 2224 { … … 2393 2393 *@@ CreateColumn: 2394 2394 * 2395 *@@changed V 0.9.21(2002-08-18) [umoeller]: mostly rewritten for new algorithm2395 *@@changed V1.0.0 (2002-08-18) [umoeller]: mostly rewritten for new algorithm 2396 2396 */ 2397 2397 … … 2491 2491 + pColumn->rclMargin.xRight; 2492 2492 2493 // set the column index V 0.9.21(2002-08-18) [umoeller]2493 // set the column index V1.0.0 (2002-08-18) [umoeller] 2494 2494 pColumn->ulColumnIndex = (pCurrentRow->cColumns)++; 2495 2495 … … 2745 2745 pCurrentRow, 2746 2746 FALSE, // no nested table 2747 (const CONTROLDEF *)pItemThis->ul1, // pCtlDef, V 0.9.21(2002-08-18) [umoeller]2747 (const CONTROLDEF *)pItemThis->ul1, // pCtlDef, V1.0.0 (2002-08-18) [umoeller] 2748 2748 &pColumn))) 2749 2749 lstAppendItem(&pCurrentRow->llColumns, … … 2804 2804 * 2805 2805 *@@added V0.9.15 (2001-08-26) [umoeller] 2806 *@@changed V 0.9.21(2002-08-16) [umoeller]: adjusted for new algorithm2806 *@@changed V1.0.0 (2002-08-16) [umoeller]: adjusted for new algorithm 2807 2807 */ 2808 2808 … … 2813 2813 // call process mode with the first for "calc size" 2814 2814 // process modes 2815 // changed V 0.9.21(2002-08-16) [umoeller]2815 // changed V1.0.0 (2002-08-16) [umoeller] 2816 2816 if (!(arc = ProcessAll(pDlgData, 2817 2817 PROCESS_1_CALC_MIN_WIDTHS))) … … 2996 2996 * 2997 2997 * See @dlg_algorithm for the gory details of the new 2998 * algorithm used since V 0.9.21.2998 * algorithm used since V1.0.0. 2999 2999 * 3000 3000 * See @dlg_boxmodel for information about how the … … 3069 3069 *@@changed V0.9.16 (2001-12-06) [umoeller]: fixed bad owner if not direct desktop child 3070 3070 *@@changed V0.9.19 (2002-04-24) [umoeller]: added excpt handling 3071 +@@changed V 0.9.21(2002-08-21) [umoeller]: now setting wait pointer3071 +@@changed V1.0.0 (2002-08-21) [umoeller]: now setting wait pointer 3072 3072 */ 3073 3073 … … 3084 3084 APIRET arc = NO_ERROR; 3085 3085 3086 HPOINTER hptrOld = winhSetWaitPointer(); // V 0.9.21(2002-08-21) [umoeller]3086 HPOINTER hptrOld = winhSetWaitPointer(); // V1.0.0 (2002-08-21) [umoeller] 3087 3087 3088 3088 TRY_LOUD(excpt1) … … 3246 3246 } 3247 3247 3248 WinSetPointer(HWND_DESKTOP, hptrOld); // V 0.9.21(2002-08-21) [umoeller]3248 WinSetPointer(HWND_DESKTOP, hptrOld); // V1.0.0 (2002-08-21) [umoeller] 3249 3249 3250 3250 return arc; … … 3626 3626 *@@changed V0.9.20 (2002-07-12) [umoeller]: made icon spacing wider 3627 3627 *@@changed V0.9.20 (2002-08-10) [umoeller]: fixed missing close button 3628 *@@changed V 0.9.21(2002-08-16) [umoeller]: now using table alignment3628 *@@changed V1.0.0 (2002-08-16) [umoeller]: now using table alignment 3629 3629 */ 3630 3630
Note:
See TracChangeset
for help on using the changeset viewer.