Skip to content

Commit

Permalink
PuTTie: make config window & session/... boxes larger (fixes #15.)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalbornoz committed May 15, 2024
1 parent bd65989 commit 9c4d921
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions PuTTie/winfrip_feature_storage_priv.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ WffsInitPanel(
ctrl_columns(s, 2, 75, 25);
ctx->listbox[WFFS_DIR_FROM] = ctrl_listbox(s, NULL, NO_SHORTCUT, WFP_HELP_CTX, handler, P(ctx));
ctx->listbox[WFFS_DIR_FROM]->column = 0;
ctx->listbox[WFFS_DIR_FROM]->listbox.height = 6;
ctx->listbox[WFFS_DIR_FROM]->listbox.height = 10;
ctx->listbox[WFFS_DIR_FROM]->listbox.multisel = 1;
ctx->button_clear[WFFS_DIR_FROM] = ctrl_pushbutton(s, "Clear...", NO_SHORTCUT, WFP_HELP_CTX, handler, P(ctx));
ctx->button_clear[WFFS_DIR_FROM]->column = 1;
Expand Down Expand Up @@ -268,7 +268,7 @@ WffsInitPanel(
ctrl_columns(s, 2, 75, 25);
ctx->listbox[WFFS_DIR_TO] = ctrl_listbox(s, NULL, NO_SHORTCUT, WFP_HELP_CTX, handler, P(ctx));
ctx->listbox[WFFS_DIR_TO]->column = 0;
ctx->listbox[WFFS_DIR_TO]->listbox.height = 6;
ctx->listbox[WFFS_DIR_TO]->listbox.height = 10;
ctx->listbox[WFFS_DIR_TO]->listbox.multisel = 1;
ctx->button_clear[WFFS_DIR_TO] = ctrl_pushbutton(s, "Clear...", NO_SHORTCUT, WFP_HELP_CTX, handler, P(ctx));
ctx->button_clear[WFFS_DIR_TO]->column = 1;
Expand Down
2 changes: 1 addition & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,7 @@ void setup_config_box(struct controlbox *b, bool midsession,
*ssd_listbox = ssd->listbox;
/* winfrip }}} */
ssd->listbox->column = 0;
ssd->listbox->listbox.height = 7;
ssd->listbox->listbox.height = 16;
if (!midsession) {
ssd->loadbutton = ctrl_pushbutton(s, "Load", 'l',
HELPCTX(session_saved),
Expand Down
4 changes: 2 additions & 2 deletions windows/dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ static INT_PTR GenericMainDlgProc(HWND hwnd, UINT msg, WPARAM wParam,
case WM_INITDIALOG:
pds_initdialog_start(pds, hwnd);

pds_create_controls(pds, TREE_BASE, IDCX_STDBASE, 3, 3, 235, "");
pds_create_controls(pds, TREE_BASE, IDCX_STDBASE, 3, 3, 305, "");

SendMessage(hwnd, WM_SETICON, (WPARAM) ICON_BIG,
(LPARAM) LoadIcon(hinst, MAKEINTRESOURCE(IDI_CFGICON)));
Expand Down Expand Up @@ -593,7 +593,7 @@ static INT_PTR GenericMainDlgProc(HWND hwnd, UINT msg, WPARAM wParam,
r.left = 3;
r.right = r.left + 95;
r.top = 13;
r.bottom = r.top + 219;
r.bottom = r.top + 289;
MapDialogRect(hwnd, &r);
treeview = CreateWindowEx(WS_EX_CLIENTEDGE, WC_TREEVIEW, "",
WS_CHILD | WS_VISIBLE |
Expand Down
4 changes: 2 additions & 2 deletions windows/putty-common.rc2
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ BEGIN
END

/* Accelerators used: aco */
IDD_MAINBOX DIALOG DISCARDABLE 0, 0, 300, 252
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
IDD_MAINBOX DIALOG DISCARDABLE 0, 0, 300, 322
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "PuTTY Configuration"
FONT 8, "MS Shell Dlg"
CLASS "PuTTYConfigBox"
Expand Down

0 comments on commit 9c4d921

Please sign in to comment.