Print Page | Close Window

Color picker not 120 dpi proof

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=924
Printed Date: 25 December 2024 at 7:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Color picker not 120 dpi proof
Posted By: maartevan
Subject: Color picker not 120 dpi proof
Date Posted: 08 July 2004 at 1:56pm
The color pcker is not large font proof.
When I change the windows font to 120 dpi the custom color tab
will not show the edit fields for green and blue.

This problem is reproduceable with the color picker example.



Replies:
Posted By: Kenneth
Date Posted: 10 July 2004 at 11:46am

Its been this way as far as I can remember.  I don't think they know 120dpi even exits within Windows.  To fix, modify XTColorDialog.cpp as follows:

 BOOL CXTColorDialog::OnInitDialog()
 {
 BOOL bResult = CPropertySheet::OnInitDialog();
 int big  = 0;
 int size = LOWORD(GetDialogBaseUnits());
 if(size == 10)
      big = 1;
 // TODO: Add your specialized code here
 if(!big)
      SetWindowPos(NULL,0,0,329,341,SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
      else
      SetWindowPos(NULL,0,0,400,400,SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
 if(!big)
      GetTabControl()->SetWindowPos(NULL,0,0,226,280,SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
      else
      GetTabControl()->SetWindowPos(NULL,0,0,292,340,SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
.
.
.
.

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net