[27343] in CVS-changelog-for-Kerberos-V5
krb5 commit [krb5-1.10]: Leave 'OK' button visible in Leash AboutBox
daemon@ATHENA.MIT.EDU (Tom Yu)
Wed Dec 5 16:39:40 2012
Date: Wed, 5 Dec 2012 16:39:30 -0500
From: Tom Yu <tlyu@mit.edu>
Message-Id: <201212052139.qB5LdUaD009911@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu
https://github.com/krb5/krb5/commit/962fa17d0be37f94b187753bafe1b08bb8becda5
commit 962fa17d0be37f94b187753bafe1b08bb8becda5
Author: Ben Kaduk <kaduk@mit.edu>
Date: Mon Dec 3 12:25:07 2012 -0500
Leave 'OK' button visible in Leash AboutBox
The AboutBox dialog as specified in the resource file is larger than
the one we display; the dialog init routine marks several things as
non-visible, moves the 'OK' button up to where the now-invisible items
were, and shrinks the dialog's bounding rectangle.
However, the edit boxes containing copyright and version information
seem to always present as being on top of the 'OK' button, and their
background causes the button to appear almost invisible with the current
repositioning.
To keep the 'OK' button visible, reduce the amount that it is moved
(and the amount the dialog is shrunk) so that the button does not overlap
with the edit box.
(cherry picked from commit ceb486df4301608d5b2462011fed6534e60721bd)
ticket: 7443
status: resolved
src/windows/leash/LeashAboutBox.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/windows/leash/LeashAboutBox.cpp b/src/windows/leash/LeashAboutBox.cpp
index 632dc59..d5c6be2 100644
--- a/src/windows/leash/LeashAboutBox.cpp
+++ b/src/windows/leash/LeashAboutBox.cpp
@@ -268,7 +268,7 @@ BOOL CLeashAboutBox::OnInitDialog()
GetDlgItem(IDC_STATIC_NO_OF_MODULES)->ShowWindow(SW_HIDE);
m_LB_DLLsLoaded.ShowWindow(SW_HIDE);
// shrink window, move 'OK' button
- const int hideDiff = 175;
+ const int hideDiff = 150;
RECT okRect;
CWnd* pOK = GetDlgItem(IDOK);
pOK->GetWindowRect(&okRect);
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5