]> cygwin.com Git - cygwin-apps/setup.git/blame - res.rc
Make DIALOG STYLEs consistent
[cygwin-apps/setup.git] / res.rc
CommitLineData
392ba1ba 1#include "resource.h"
392ba1ba 2#include "windows.h"
ce9f6dd0 3#include "commctrl.h"
392ba1ba 4
9d0a3d8a
DK
5#define SETUP_STANDARD_DIALOG_W 339
6#define SETUP_STANDARD_DIALOG_H 179
acd64421
JT
7#define SETUP_MEDIUM_DIALOG_W 277
8#define SETUP_MEDIUM_DIALOG_H 137
9d0a3d8a
DK
9#define SETUP_SMALL_DIALOG_W 215
10#define SETUP_SMALL_DIALOG_H 95
11
12#define SETUP_STANDARD_DIALOG_DIMS SETUP_STANDARD_DIALOG_W, SETUP_STANDARD_DIALOG_H
acd64421 13#define SETUP_MEDIUM_DIALOG_DIMS SETUP_MEDIUM_DIALOG_W, SETUP_MEDIUM_DIALOG_H
9d0a3d8a
DK
14#define SETUP_SMALL_DIALOG_DIMS SETUP_SMALL_DIALOG_W, SETUP_SMALL_DIALOG_H
15
16#define SETUP_HEADICON_X (SETUP_STANDARD_DIALOG_W - 27)
17
9d0a3d8a 18// Width for Keep/Prev/Curr/Exp buttons.
d20523d1 19#define SETUP_KPCE_W (52)
9d0a3d8a
DK
20
21// Right-aligned controls.
d20523d1 22#define SETUP_EXP_X (SETUP_STANDARD_DIALOG_W - SETUP_KPCE_W/2 - 7)
d78ce5e2
JT
23#define SETUP_SYNC_X (SETUP_EXP_X - SETUP_KPCE_W - 5)
24#define SETUP_BEST_X (SETUP_SYNC_X - SETUP_KPCE_W - 5)
25#define SETUP_KEEP_X (SETUP_BEST_X - SETUP_KPCE_W - 5)
9d0a3d8a
DK
26
27// Left-aligned controls.
ef681685 28#define SETUP_VIEW_X (7)
d20523d1 29#define SETUP_VIEW_W (30)
4f0fb3e4 30#define SETUP_VIEWLIST_X (SETUP_VIEW_X + SETUP_VIEW_W + 2)
d20523d1
JT
31#define SETUP_VIEWLIST_W (68)
32#define SETUP_SEARCH_X (SETUP_VIEWLIST_X + SETUP_VIEWLIST_W)
9d0a3d8a
DK
33#define SETUP_SEARCH_W (32)
34#define SETUP_SEARCHTEXT_X (SETUP_SEARCH_X + SETUP_SEARCH_W + 2)
35#define SETUP_SEARCHTEXT_W (60)
36#define SETUP_CLEAR_X (SETUP_SEARCHTEXT_X + SETUP_SEARCHTEXT_W + 2)
d20523d1 37#define SETUP_CLEAR_W (38)
515a81ff
JT
38#define SETUP_CHOOSE_X (7)
39#define SETUP_CHOOSE_W (SETUP_STANDARD_DIALOG_W - 2*SETUP_CHOOSE_X)
9d0a3d8a 40
a38fde1a
BD
41/////////////////////////////////////////////////////////////////////////////
42//
43// Manifest
44//
45
daab12c7 46CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "setup.exe.manifest"
392ba1ba 47
392ba1ba
CF
48/////////////////////////////////////////////////////////////////////////////
49//
50// Icon
51//
52
53// Icon with lowest ID value placed first to ensure application icon
54// remains consistent on all systems.
cd8da753
JT
55IDI_CYGWIN_SETUP ICON "cygwin-setup.ico"
56IDI_CYGWIN ICON "cygwin.ico"
57IDI_CYGWIN_TERMINAL ICON "cygwin-terminal.ico"
58IDI_TREE_PLUS ICON "tree-plus.ico"
59IDI_TREE_MINUS ICON "tree-minus.ico"
392ba1ba
CF
60
61/////////////////////////////////////////////////////////////////////////////
62//
63// FILE
64//
65
cd8da753
JT
66CYGWIN-SETUP.ICON FILE "cygwin-setup.ico"
67CYGWIN.ICON FILE "cygwin.ico"
68CYGWIN-TERMINAL.ICON FILE "cygwin-terminal.ico"
392ba1ba 69
392ba1ba 70/////////////////////////////////////////////////////////////////////////////
392ba1ba 71//
f5229571 72// English (en_US) resources
392ba1ba
CF
73//
74
202ad5f0
JT
75// Throughout, we use the font "MS Shell Dlg". This seems to be necessary to
76// work around some not-fully-understood issues with PropertySheets. Hopefully,
77// using this font will cause things to 'just work'. Further information on
78// this topic is at:
443c580d
JT
79// https://sourceware.org/legacy-ml/cygwin-apps/2003-05/msg00177.html
80//
81// The issue alluded to here seems to be a bug in propsheet, in that the DLU for
82// each page is determined using the font of the property sheet frame, not that
83// specified in the propsheet dialog. Allegedly, the DS_SHELLFONT style
84// indicates that you don't want compatibility with that buggy behaviour, but
85// that the DLU should be correctly computed based on the propsheet font
86// instead.
202ad5f0 87
f5229571 88#include "res/en/res.rc"
ce5242d3
JT
89
90/////////////////////////////////////////////////////////////////////////////
91//
92// Translations
93
a21e9598 94#include "res/de/res.rc"
ce5242d3 95#include "res/fr/res.rc"
a21e9598 96#include "res/pl/res.rc"
446722fe 97#include "res/tr/res.rc"
27287ee4 98#include "res/zh_Hans/res.rc"
This page took 0.194673 seconds and 5 git commands to generate.