Skip to content

Commit

Permalink
search dlg resize fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Aug 18, 2017
1 parent 60495bf commit 32f9e80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
4 changes: 4 additions & 0 deletions far/changelog
@@ -1,3 +1,7 @@
drkns 18.08.2017 09:30:57 +0000 - build 5011

1. Не работало центрирование кнопок в диалоге поиска при изменении размера.

drkns 17.08.2017 22:31:49 +0000 - build 5010

1. С форума: не обновляется строка горячих клавиш после просмотра сети.
Expand Down
13 changes: 2 additions & 11 deletions far/findfile.cpp
Expand Up @@ -1711,11 +1711,6 @@ intptr_t FindFiles::FindDlgProc(Dialog* Dlg, intptr_t Msg, intptr_t Param1, void
int IncY = pCoord->Y - DlgHeight - 2;
Dlg->SendMessage(DM_ENABLEREDRAW, FALSE, nullptr);

for (int i = 0; i <= FD_BUTTON_STOP; i++)
{
Dlg->SendMessage(DM_SHOWITEM, i, ToPtr(FALSE));
}

if ((IncX > 0) || (IncY > 0))
{
pCoord->X = DlgWidth + (IncX > 0 ? IncX : 0);
Expand All @@ -1742,9 +1737,10 @@ intptr_t FindFiles::FindDlgProc(Dialog* Dlg, intptr_t Msg, intptr_t Param1, void

if (i == FD_SEPARATOR1)
{
// Center text
rect.Left = rect.Right = -1;
}
if (i == FD_TEXT_STATUS)
else if (i == FD_TEXT_STATUS)
{
rect.Right += IncX;
}
Expand All @@ -1766,11 +1762,6 @@ intptr_t FindFiles::FindDlgProc(Dialog* Dlg, intptr_t Msg, intptr_t Param1, void
Dlg->SendMessage( DM_RESIZEDIALOG, 0, pCoord);
}

for (int i = 0; i <= FD_BUTTON_STOP; i++)
{
Dlg->SendMessage( DM_SHOWITEM, i, ToPtr(TRUE));
}

Dlg->SendMessage(DM_ENABLEREDRAW, TRUE, nullptr);
return TRUE;
}
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,5010)m4_dnl
m4_define(BUILD,5011)m4_dnl

0 comments on commit 32f9e80

Please sign in to comment.