Changeset 243 for trunk/Lucide/SOURCE


Ignore:
Timestamp:
Sep 3, 2007, 2:09:14 PM (14 years ago)
Author:
Eugene Romanenko
Message:

print dialog: add 'Ignore printer margins' option to fix #110

Location:
trunk/Lucide/SOURCE/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/Lucide_res.H

    r230 r243  
    167167#define IDC_PORTRAIT            27
    168168#define IDC_LANDSCAPE           28
    169 #define IDC_MLEFT                       29
    170 #define IDC_MRIGHT                      30
    171 #define IDC_MTOP                        31
    172 #define IDC_MBOTTOM                     32
    173 #define IDC_SELECTED_FORM       33
     169#define IDC_IGNMARGINS          29
     170#define IDC_MLEFT                       30
     171#define IDC_MRIGHT                      31
     172#define IDC_MTOP                        32
     173#define IDC_MBOTTOM                     33
     174#define IDC_SELECTED_FORM       34
    174175
    175176#define IDD_PASSWORD        1009
  • trunk/Lucide/SOURCE/gui/dialogs.rc

    r242 r243  
    134134DLGTEMPLATE IDD_PRINT
    135135BEGIN
    136         DIALOG "PD_TITLE", -1, 65, 13, 258, 223, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
    137         BEGIN
    138                 CONTROL "PD_PRINTER", -1, 2, 189, 253, 32, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    139                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    140                 CONTROL "PD_NAME_LABEL", -1, 8, 203, 40, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    141                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    142                 CONTROL "", IDC_PNAME, 53, 169, 115, 43, WC_COMBOBOX, CBS_DROPDOWNLIST | ES_ANY | WS_VISIBLE | WS_GROUP | WS_TABSTOP
    143                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    144                 CONTROL "PD_JOB_PROPERTIES", IDC_JOBPROPERTIES, 174, 201, 78, 13, WC_BUTTON, BS_PUSHBUTTON | WS_VISIBLE | WS_GROUP | WS_TABSTOP | WS_DISABLED
    145                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    146                 CONTROL "PD_DRIVER_LABEL", -1, 8, 191, 40, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    147                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    148                 CONTROL "", IDC_PDESCRIPTION, 53, 191, 196, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE | WS_GROUP
    149                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    150                 CONTROL "PD_PRINT_RANGE_AND_COPIES", -1, 2, 133, 253, 55, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    151                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    152                 CONTROL "PD_RANGE_ALL", IDC_RANGEALL, 9, 170, 106, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_GROUP | WS_TABSTOP
    153                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    154                 CONTROL "PD_RANGE_CURRENT_PAGE", IDC_RANGECURRENT, 9, 160, 106, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_TABSTOP
    155                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    156                 CONTROL "PD_RANGE_PAGES", IDC_RANGEPAGES, 9, 150, 90, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_TABSTOP
    157                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    158                 CONTROL "PD_FROM", IDC_LABELFROM, 102, 151, 35, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP | WS_DISABLED
    159                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    160                 CONTROL "", IDC_PGFROM, 138, 151, 39, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP | WS_DISABLED
    161                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    162                 CONTROL "PD_TO", IDC_LABELTO, 183, 151, 22, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP | WS_DISABLED
    163                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    164                 CONTROL "", IDC_PGTO, 208, 151, 39, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP | WS_DISABLED
    165                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    166                 CONTROL "PD_NUMBER_OF_COPIES", -1, 120, 171, 85, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    167                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    168                 CONTROL "", IDC_COPIES, 208, 171, 39, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP
    169                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    170                 CONTROL "PD_RANGE_EVEN_ODD_LABEL", IDC_RANGE_EVEN_ODD_LABEL, 9, 138, 87, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    171                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    172                 CONTROL "", IDC_RANGE_EVEN_ODD, 102, 104, 145, 43, WC_COMBOBOX, CBS_DROPDOWNLIST | ES_ANY | WS_VISIBLE | WS_GROUP | WS_TABSTOP
    173                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    174                 CONTROL "PD_PRINT_TYPE", -1, 2, 91, 253, 40, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    175                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    176                 CONTROL "PD_TYPE_POSTSCRIPT", IDC_TYPE_POSTSCRIPT, 9, 113, 114, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_GROUP | WS_TABSTOP
    177                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    178                 CONTROL "PD_TYPE_ASIMAGE", IDC_TYPE_ASIMAGE, 9, 103, 240, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_TABSTOP
    179                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    180                 CONTROL "PD_PRINT_TO_FILE", IDC_PRINT_TO_FILE, 127, 113, 124, 10, WC_BUTTON, BS_AUTOCHECKBOX | WS_VISIBLE | WS_GROUP | WS_TABSTOP
    181                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    182                 CONTROL "PD_HIGHER_IMAGE_QUALITY", IDC_HIGHER_IMAGE_QUALITY, 19, 93, 230, 10, WC_BUTTON, BS_AUTOCHECKBOX | WS_VISIBLE | WS_GROUP | WS_TABSTOP
    183                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    184                 CONTROL "PD_PAGE_ORIENTATION", -1, 2, 70, 253, 20, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    185                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    186                 CONTROL "PD_PORTRAIT", IDC_PORTRAIT, 9, 72, 118, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_GROUP | WS_TABSTOP
    187                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    188                 CONTROL "PD_LANDSCAPE", IDC_LANDSCAPE, 131, 72, 118, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_TABSTOP
    189                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    190                 CONTROL "PD_MARGINS", -1, 2, 26, 253, 43, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    191                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    192                 CONTROL "PD_MLEFT", -1, 9, 53, 51, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    193                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    194                 CONTROL "", IDC_MLEFT, 61, 53, 50, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP
    195                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    196                 CONTROL "PD_MRIGHT", -1, 132, 53, 51, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    197                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    198                 CONTROL "", IDC_MRIGHT, 184, 53, 50, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP
    199                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    200                 CONTROL "PD_MTOP", -1, 9, 42, 51, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    201                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    202                 CONTROL "", IDC_MTOP, 61, 42, 50, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP
    203                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    204                 CONTROL "PD_MBOTTOM", -1, 132, 42, 51, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    205                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    206                 CONTROL "", IDC_MBOTTOM, 184, 42, 50, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP
    207                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    208                 CONTROL "PD_SELECTED_FORM", -1, 9, 29, 101, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
    209                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    210                 CONTROL "", IDC_SELECTED_FORM, 116, 29, 134, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE | WS_GROUP
    211                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    212                 DEFPUSHBUTTON "PD_BTNPRINT", DID_OK, 140, 5, 51, 14, WS_DISABLED
    213                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    214                 PUSHBUTTON "PD_BTNCANCEL", DID_CANCEL, 198, 5, 51, 14
    215                 PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
    216         END
     136        DIALOG "PD_TITLE", -1, 65, 6, 258, 230, WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
     137        BEGIN
     138                CONTROL "PD_PRINTER", -1, 2, 196, 253, 32, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     139                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     140                CONTROL "PD_NAME_LABEL", -1, 8, 210, 40, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     141                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     142                CONTROL "", IDC_PNAME, 53, 176, 115, 43, WC_COMBOBOX, CBS_DROPDOWNLIST | ES_ANY | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     143                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     144                CONTROL "PD_JOB_PROPERTIES", IDC_JOBPROPERTIES, 174, 208, 78, 13, WC_BUTTON, BS_PUSHBUTTON | WS_VISIBLE | WS_GROUP | WS_TABSTOP | WS_DISABLED
     145                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     146                CONTROL "PD_DRIVER_LABEL", -1, 8, 198, 40, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     147                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     148                CONTROL "", IDC_PDESCRIPTION, 53, 198, 196, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE | WS_GROUP
     149                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     150                CONTROL "PD_PRINT_RANGE_AND_COPIES", -1, 2, 140, 253, 55, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     151                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     152                CONTROL "PD_RANGE_ALL", IDC_RANGEALL, 9, 177, 106, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     153                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     154                CONTROL "PD_RANGE_CURRENT_PAGE", IDC_RANGECURRENT, 9, 167, 106, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_TABSTOP
     155                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     156                CONTROL "PD_RANGE_PAGES", IDC_RANGEPAGES, 9, 157, 90, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_TABSTOP
     157                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     158                CONTROL "PD_FROM", IDC_LABELFROM, 102, 158, 35, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP | WS_DISABLED
     159                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     160                CONTROL "", IDC_PGFROM, 138, 158, 39, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP | WS_DISABLED
     161                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     162                CONTROL "PD_TO", IDC_LABELTO, 183, 158, 22, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP | WS_DISABLED
     163                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     164                CONTROL "", IDC_PGTO, 208, 158, 39, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP | WS_DISABLED
     165                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     166                CONTROL "PD_NUMBER_OF_COPIES", -1, 120, 178, 85, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     167                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     168                CONTROL "", IDC_COPIES, 208, 178, 39, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     169                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     170                CONTROL "PD_RANGE_EVEN_ODD_LABEL", IDC_RANGE_EVEN_ODD_LABEL, 9, 145, 87, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     171                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     172                CONTROL "", IDC_RANGE_EVEN_ODD, 102, 111, 145, 43, WC_COMBOBOX, CBS_DROPDOWNLIST | ES_ANY | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     173                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     174                CONTROL "PD_PRINT_TYPE", -1, 2, 98, 253, 40, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     175                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     176                CONTROL "PD_TYPE_POSTSCRIPT", IDC_TYPE_POSTSCRIPT, 9, 120, 114, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     177                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     178                CONTROL "PD_TYPE_ASIMAGE", IDC_TYPE_ASIMAGE, 9, 110, 240, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_TABSTOP
     179                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     180                CONTROL "PD_PRINT_TO_FILE", IDC_PRINT_TO_FILE, 127, 120, 124, 10, WC_BUTTON, BS_AUTOCHECKBOX | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     181                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     182                CONTROL "PD_HIGHER_IMAGE_QUALITY", IDC_HIGHER_IMAGE_QUALITY, 18, 100, 235, 10, WC_BUTTON, BS_AUTOCHECKBOX | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     183                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     184                CONTROL "PD_PAGE_ORIENTATION", -1, 2, 77, 253, 20, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     185                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     186                CONTROL "PD_PORTRAIT", IDC_PORTRAIT, 9, 79, 118, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     187                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     188                CONTROL "PD_LANDSCAPE", IDC_LANDSCAPE, 131, 79, 118, 10, WC_BUTTON, BS_AUTORADIOBUTTON | WS_VISIBLE | WS_TABSTOP
     189                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     190                CONTROL "PD_IGNORE_PRINTER_MARGINS", IDC_IGNMARGINS, 10, 58, 235, 10, WC_BUTTON, BS_AUTOCHECKBOX | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     191                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     192                CONTROL "PD_MARGINS", -1, 2, 22, 253, 54, WC_STATIC, SS_GROUPBOX | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     193                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     194                CONTROL "PD_MLEFT", -1, 9, 47, 51, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     195                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     196                CONTROL "", IDC_MLEFT, 61, 47, 50, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     197                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     198                CONTROL "PD_MRIGHT", -1, 132, 47, 51, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     199                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     200                CONTROL "", IDC_MRIGHT, 184, 47, 50, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     201                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     202                CONTROL "PD_MTOP", -1, 9, 36, 51, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     203                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     204                CONTROL "", IDC_MTOP, 61, 36, 50, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     205                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     206                CONTROL "PD_MBOTTOM", -1, 132, 36, 51, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     207                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     208                CONTROL "", IDC_MBOTTOM, 184, 36, 50, 9, WC_SPINBUTTON, SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | WS_VISIBLE | WS_GROUP | WS_TABSTOP
     209                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     210                CONTROL "PD_SELECTED_FORM", -1, 9, 25, 101, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE | WS_GROUP
     211                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     212                CONTROL "", IDC_SELECTED_FORM, 116, 25, 134, 8, WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | WS_VISIBLE | WS_GROUP
     213                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     214                DEFPUSHBUTTON "PD_BTNPRINT", DID_OK, 140, 4, 51, 14, WS_DISABLED
     215                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     216                PUSHBUTTON "PD_BTNCANCEL", DID_CANCEL, 198, 4, 51, 14
     217                PRESPARAMS PP_FONTNAMESIZE "9.WarpSans"
     218        END
     219
    217220END
    218221
     
    264267                PRESPARAMS PP_FONTNAMESIZE , "9.WarpSans"
    265268        END
    266 
    267 END
    268 
     269END
     270
  • trunk/Lucide/SOURCE/gui/printDlg.cpp

    r199 r243  
    448448        long margin_right_min  = pcurForm->cx - pcurForm->xRightClip;
    449449
     450        if ( WinQueryButtonCheckstate( hwnd, IDC_IGNMARGINS ) ) {
     451            margin_top_min = margin_left_min = margin_bottom_min = margin_right_min = 0;
     452        }
     453
    450454        long margin_top_max    = pcurForm->cy - margin_bottom_min;
    451455        long margin_left_max   = pcurForm->cx - margin_right_min;
     
    630634                break;
    631635
     636                case IDC_IGNMARGINS:
     637                {
     638                    if ( ( SHORT2FROMMP(mp1) == BN_CLICKED ) ||
     639                         ( SHORT2FROMMP(mp1) == BN_DBLCLICKED ) )
     640                    {
     641                        _this->applyForm( hwnd );
     642                    }
     643                }
     644                break;
     645
    632646                // removed (copies to job props)
    633647                //case IDC_COPIES:
Note: See TracChangeset for help on using the changeset viewer.