Ignore:
Timestamp:
Nov 24, 2002, 9:45:05 PM (23 years ago)
Author:
umoeller
Message:

Sources as of 1.0.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/dialog.c

    r222 r229  
    1111 *
    1212 *      See @dlg_algorithm for the gory details of the new
    13  *      algorithm used since V0.9.21. Even though much
     13 *      algorithm used since V1.0.0. Even though much
    1414 *      of this file was rewritten, the new dialog is
    1515 *      backwards-compatible with all the hacks that existing
     
    254254 *
    255255 *      We now use the CSS box model for the dialog
    256  *      formatter (V0.9.21).
     256 *      formatter (V1.0.0).
    257257 *
    258258 +      ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
     
    323323 *          certain controls automatically. See CalcAutoSize.
    324324 *
    325  *      The algorithm used here has been greatly reworked with V0.9.21.
     325 *      The algorithm used here has been greatly reworked with V1.0.0.
    326326 *      Essentially, the new trick is that we first compute all widths
    327327 *      (which requires several iterations since widths may now inherit
     
    573573 *
    574574 *      See @dlg_algorithm for the new algorithm
    575  *      used since V0.9.21.
    576  *
    577  *      With V0.9.21, we now follow the CSS box model
     575 *      used since V1.0.0.
     576 *
     577 *      With V1.0.0, we now follow the CSS box model
    578578 *      to render these things better without all
    579579 *      the hacks I am no longer able to understand
    580580 *      myself. See @dlg_box_model for details.
    581581 *
    582  *@@changed V0.9.21 (2002-08-18) [umoeller]: completely replaced
     582 *@@changed V1.0.0 (2002-08-18) [umoeller]: completely replaced
    583583 */
    584584
     
    602602
    603603    ULONG       ulColumnIndex;      // zero-based column index in parent row
    604                                     // V0.9.21 (2002-08-18) [umoeller]
     604                                    // V1.0.0 (2002-08-18) [umoeller]
    605605
    606606    // b) information for control window to be created:
     
    628628    RECTL       rclPadding,         // spacing, in pixels, to apply to the four borders of
    629629                rclMargin;          // the content to get the box; calculated from CONTROLDEF
    630                                     // V0.9.21 (2002-08-16) [umoeller]
     630                                    // V1.0.0 (2002-08-16) [umoeller]
    631631
    632632    LONG        cxSpacingTotal;     // sum of rclPadding and rclMargin xLeft and
     
    684684
    685685    ULONG       cColumns;           // no. of columns in this row
    686                                     // V0.9.21 (2002-08-18) [umoeller]
     686                                    // V1.0.0 (2002-08-18) [umoeller]
    687687
    688688    // result data after recursion:
     
    767767 *      set.
    768768 *
    769  *@@added V0.9.21 (2002-08-16) [umoeller]
     769 *@@added V1.0.0 (2002-08-16) [umoeller]
    770770 */
    771771
     
    827827 *      set.
    828828 *
    829  *@@added V0.9.21 (2002-08-16) [umoeller]
     829 *@@added V1.0.0 (2002-08-16) [umoeller]
    830830 */
    831831
     
    949949 *@@changed V0.9.16 (2001-10-15) [umoeller]: added APIRET
    950950 *@@changed V0.9.16 (2002-02-02) [umoeller]: added ulWidth
    951  *@@changed V0.9.21 (2002-08-18) [umoeller]: renamed; moved multi-line processing to CalcAutoSizeTextMulti
     951 *@@changed V1.0.0 (2002-08-18) [umoeller]: renamed; moved multi-line processing to CalcAutoSizeTextMulti
    952952 */
    953953
     
    984984 *      static text controls.
    985985 *
    986  *@@added V0.9.21 (2002-08-18) [umoeller]
     986 *@@added V1.0.0 (2002-08-18) [umoeller]
    987987 */
    988988
     
    10301030 *
    10311031 *@@added V0.9.20 (2002-08-10) [umoeller]
    1032  *@@changed V0.9.21 (2002-08-18) [umoeller]: removed temp windows list
     1032 *@@changed V1.0.0 (2002-08-18) [umoeller]: removed temp windows list
    10331033 */
    10341034
     
    12241224 *@@changed V0.9.16 (2001-10-15) [umoeller]: added APIRET
    12251225 *@@changed V0.9.19 (2002-04-24) [umoeller]: fixed PM groups alignment
    1226  *@@changed V0.9.21 (2002-08-16) [umoeller]: adjusted for new algorithm
     1226 *@@changed V1.0.0 (2002-08-16) [umoeller]: adjusted for new algorithm
    12271227 */
    12281228
     
    12901290 *@@changed V0.9.19 (2002-04-17) [umoeller]: fixes for the STUPID drop-down comboboxes
    12911291 *@@changed V0.9.19 (2002-04-24) [umoeller]: fixed PM groups alignment
    1292  *@@changed V0.9.21 (2002-08-16) [umoeller]: adjusted for new algorithm
    1293  *@@changed V0.9.21 (2002-08-18) [umoeller]: setting entry field length to CCHMAXPATH per default now
     1292 *@@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
    12941294 */
    12951295
     
    13231323                flStyle = pColumn->flStyle;
    13241324
    1325                 // V0.9.21 (2002-08-16) [umoeller]
     1325                // V1.0.0 (2002-08-16) [umoeller]
    13261326                // Removed all the terrible hacks for the PM group
    13271327                // control. We now use rclPadding and rclMargin
     
    13551355    }
    13561356
    1357     if (    (!arc)            // check error code V0.9.21 (2002-08-16) [umoeller]
     1357    if (    (!arc)            // check error code V1.0.0 (2002-08-16) [umoeller]
    13581358         && (pcszClass)
    13591359       )
     
    13651365        PCSZ        pcszTextEF = NULL;          // for entry field
    13661366
    1367         // V0.9.21 (2002-08-16) [umoeller]
     1367        // V1.0.0 (2002-08-16) [umoeller]
    13681368        // determine the position where to create the
    13691369        // control; this is the content box, to which
     
    14481448                    // defer setting the text because we should
    14491449                    // first set the entry field limit
    1450                     // V0.9.21 (2002-08-18) [umoeller]
     1450                    // V1.0.0 (2002-08-18) [umoeller]
    14511451                    pcszTextEF = pcszText;
    14521452                    pcszText = "";          // for now
     
    15321532                    // set text limit to CCHMAXPATH per default,
    15331533                    // and set the real text now
    1534                     // V0.9.21 (2002-08-18) [umoeller]
     1534                    // V1.0.0 (2002-08-18) [umoeller]
    15351535                    winhSetEntryFieldLimit(pColumn->hwndControl, CCHMAXPATH);
    15361536                    WinSetWindowText(pColumn->hwndControl, (PSZ)pcszTextEF);
     
    16341634 *@@changed V0.9.12 (2001-05-31) [umoeller]: fixed font problems
    16351635 *@@changed V0.9.20 (2002-08-08) [umoeller]: added support for aligning columns horizontally
    1636  *@@changed V0.9.21 (2002-08-16) [umoeller]: calc size rewritten for new algorithm
     1636 *@@changed V1.0.0 (2002-08-16) [umoeller]: calc size rewritten for new algorithm
    16371637 */
    16381638
     
    16551655
    16561656        case PROCESS_1_CALC_MIN_WIDTHS:
    1657             // rewritten V0.9.21 (2002-08-16) [umoeller]
     1657            // rewritten V1.0.0 (2002-08-16) [umoeller]
    16581658
    16591659            if (!pColumn->pNestedTable)
     
    17231723
    17241724        case PROCESS_2_CALC_RELATIVE_WIDTHS:
    1725             // rewritten V0.9.21 (2002-08-16) [umoeller]
     1725            // rewritten V1.0.0 (2002-08-16) [umoeller]
    17261726
    17271727            if (!pColumn->pNestedTable)
     
    18161816
    18171817        case PROCESS_3_ALIGN_COLUMNS:
    1818             // rewritten V0.9.21 (2002-08-16) [umoeller]
     1818            // rewritten V1.0.0 (2002-08-16) [umoeller]
    18191819
    18201820            if (!pColumn->pNestedTable)
     
    21012101 *      in the row.
    21022102 *
    2103  *@@changed V0.9.21 (2002-08-16) [umoeller]: adjusted for new algorithm
     2103 *@@changed V1.0.0 (2002-08-16) [umoeller]: adjusted for new algorithm
    21042104 */
    21052105
     
    21992199 *      to which the nested table belongs.
    22002200 *
    2201  *@@changed V0.9.21 (2002-08-16) [umoeller]: adjusted for new algorithm
     2201 *@@changed V1.0.0 (2002-08-16) [umoeller]: adjusted for new algorithm
    22022202 */
    22032203
     
    22202220            // as a separate step (PROCESS_2_INHERIT_TABLE_SIZES),
    22212221            // but we can save ourselves a loop here
    2222             // V0.9.21 (2002-08-16) [umoeller]
     2222            // V1.0.0 (2002-08-16) [umoeller]
    22232223            if (pTableDef->flTable & TABLE_INHERIT_SIZE)
    22242224            {
     
    23932393 *@@ CreateColumn:
    23942394 *
    2395  *@@changed V0.9.21 (2002-08-18) [umoeller]: mostly rewritten for new algorithm
     2395 *@@changed V1.0.0 (2002-08-18) [umoeller]: mostly rewritten for new algorithm
    23962396 */
    23972397
     
    24912491                                      + pColumn->rclMargin.xRight;
    24922492
    2493             // set the column index V0.9.21 (2002-08-18) [umoeller]
     2493            // set the column index V1.0.0 (2002-08-18) [umoeller]
    24942494            pColumn->ulColumnIndex = (pCurrentRow->cColumns)++;
    24952495
     
    27452745                                         pCurrentRow,
    27462746                                         FALSE,        // no nested table
    2747                                          (const CONTROLDEF *)pItemThis->ul1, // pCtlDef, V0.9.21 (2002-08-18) [umoeller]
     2747                                         (const CONTROLDEF *)pItemThis->ul1, // pCtlDef, V1.0.0 (2002-08-18) [umoeller]
    27482748                                         &pColumn)))
    27492749                    lstAppendItem(&pCurrentRow->llColumns,
     
    28042804 *
    28052805 *@@added V0.9.15 (2001-08-26) [umoeller]
    2806  *@@changed V0.9.21 (2002-08-16) [umoeller]: adjusted for new algorithm
     2806 *@@changed V1.0.0 (2002-08-16) [umoeller]: adjusted for new algorithm
    28072807 */
    28082808
     
    28132813    // call process mode with the first for "calc size"
    28142814    // process modes
    2815     // changed V0.9.21 (2002-08-16) [umoeller]
     2815    // changed V1.0.0 (2002-08-16) [umoeller]
    28162816    if (!(arc = ProcessAll(pDlgData,
    28172817                           PROCESS_1_CALC_MIN_WIDTHS)))
     
    29962996 *
    29972997 *      See @dlg_algorithm for the gory details of the new
    2998  *      algorithm used since V0.9.21.
     2998 *      algorithm used since V1.0.0.
    29992999 *
    30003000 *      See @dlg_boxmodel for information about how the
     
    30693069 *@@changed V0.9.16 (2001-12-06) [umoeller]: fixed bad owner if not direct desktop child
    30703070 *@@changed V0.9.19 (2002-04-24) [umoeller]: added excpt handling
    3071  +@@changed V0.9.21 (2002-08-21) [umoeller]: now setting wait pointer
     3071 +@@changed V1.0.0 (2002-08-21) [umoeller]: now setting wait pointer
    30723072 */
    30733073
     
    30843084    APIRET      arc = NO_ERROR;
    30853085
    3086     HPOINTER    hptrOld = winhSetWaitPointer();     // V0.9.21 (2002-08-21) [umoeller]
     3086    HPOINTER    hptrOld = winhSetWaitPointer();     // V1.0.0 (2002-08-21) [umoeller]
    30873087
    30883088    TRY_LOUD(excpt1)
     
    32463246    }
    32473247
    3248     WinSetPointer(HWND_DESKTOP, hptrOld); // V0.9.21 (2002-08-21) [umoeller]
     3248    WinSetPointer(HWND_DESKTOP, hptrOld); // V1.0.0 (2002-08-21) [umoeller]
    32493249
    32503250    return arc;
     
    36263626 *@@changed V0.9.20 (2002-07-12) [umoeller]: made icon spacing wider
    36273627 *@@changed V0.9.20 (2002-08-10) [umoeller]: fixed missing close button
    3628  *@@changed V0.9.21 (2002-08-16) [umoeller]: now using table alignment
     3628 *@@changed V1.0.0 (2002-08-16) [umoeller]: now using table alignment
    36293629 */
    36303630
Note: See TracChangeset for help on using the changeset viewer.