Print Page | Close Window

Password field and caps lock redraw problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=10125
Printed Date: 22 November 2024 at 5:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Password field and caps lock redraw problem
Posted By: pietervdm
Subject: Password field and caps lock redraw problem
Date Posted: 07 April 2008 at 9:28am

I have a  propertygriditem with the default password mask.  If caps lock is on and  I enter text into the  propertygriditem  the whole  propertygrid  turns  grey, except for  the  propertygriditem's textbox (where I am currently entering text into).

This happens as I start entering text. I don't even have to press enter of something.

Has anybody encountered this problem before?

Ps. I'm using Xtreme ToolkitPro v11.1.0

 



Replies:
Posted By: pietervdm
Date Posted: 16 April 2008 at 2:42am
A workaround to this problem was to  simply call  RedrawControl  on  the property grid control .  This can be done when handling the XTPWM_PROPERTYGRID_NOTIFY message with the XTP_PGN_EDIT_CHANGED argument. An example is shown below:

// in the message map
ON_MESSAGE(XTPWM_PROPERTYGRID_NOTIFY, OnPropertyGridNotify)

// the method
LRESULT CDlgUserCreateWithPropertyGrid::OnPropertyGridNotify(WPARAM wParam, LPARAM lParam)
{
    if (wParam == XTP_PGN_EDIT_CHANGED)
    {
        m_wndPropertyGrid.RedrawControl();
    }
    return FALSE;
}



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