Skip to content

Commit

Permalink
Minor update in sequence box
Browse files Browse the repository at this point in the history
  • Loading branch information
KubaDee committed May 28, 2020
1 parent 15579bb commit 59c8a6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/DockingFeature/sequenceBox.rc
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
DEFPUSHBUTTON "&Reload", IDGET, 10, 5, 39, 14
PUSHBUTTON "&Clear", ID_CLEAR, 57, 5, 39, 14
PUSHBUTTON "&Copy Selected", ID_SETSELECTED, 105, 5, 60, 14
PUSHBUTTON "&|>",IDRUNALL,10,25,15,14
PUSHBUTTON "&|>||",IDRUNFIRST,28,25,15,14
PUSHBUTTON "C&opy Selected", ID_SETSELECTED, 105, 5, 60, 14
PUSHBUTTON "|>",IDRUNALL,10,25,15,14
PUSHBUTTON "|>||",IDRUNFIRST,28,25,15,14
PUSHBUTTON "&X", ID_SHOWALL, 46, 25, 14, 14
PUSHBUTTON "&>||",IDRUNNEXT,63,25,15,14
PUSHBUTTON "&>>",IDRUNREST,81,25,15,14
PUSHBUTTON ">||",IDRUNNEXT,63,25,15,14
PUSHBUTTON ">>",IDRUNREST,81,25,15,14
PUSHBUTTON "&Set Edited", IDSET, 105, 25, 60, 14, WS_DISABLED
CONTROL "Edit sequence", ID_CHECKEDIT, "Button", BS_AUTOCHECKBOX | BS_LEFTTEXT | WS_TABSTOP, 105, 45, 60, 10
LTEXT "Sequence:", ID_SEQUENCE_LABEL, 10, 45, 40, 10
EDITTEXT ID_SEQUENCE_EDIT, 10, 57, 215, 180, ES_MULTILINE | ES_AUTOVSCROLL | ES_NOHIDESEL | ES_READONLY | ES_WANTRETURN | WS_VSCROLL
EDITTEXT ID_SEQUENCE_EDIT, 10, 57, 215, 183, ES_MULTILINE | ES_AUTOVSCROLL | ES_NOHIDESEL | ES_READONLY | ES_WANTRETURN | WS_VSCROLL
END


Expand Down Expand Up @@ -69,7 +69,7 @@ GUIDELINES DESIGNINFO
BEGIN
IDD_SEQUENCEBOX, DIALOG
BEGIN
BOTTOMMARGIN, 245
BOTTOMMARGIN, 240
END
END
#endif // APSTUDIO_INVOKED
Expand Down
8 changes: 5 additions & 3 deletions src/DockingFeature/sequenceBoxDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ INT_PTR CALLBACK SequenceBoxDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM
int cy = HIWORD(lParam);
int dx = cx - save_rect.right;
int dy = cy - save_rect.bottom;

move_resize(hwDlgItem, 0, 0, dx, dy);
GetClientRect(_hSelf, &save_rect);
if (cy > 130) // fix for inner textbox overflow out of main window
{
move_resize(hwDlgItem, 0, 0, dx, dy);
GetClientRect(_hSelf, &save_rect);
}
return true;
}
GetClientRect(_hSelf, &save_rect);
Expand Down

0 comments on commit 59c8a6d

Please sign in to comment.