Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Password field and caps lock redraw problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Password field and caps lock redraw problem

 Post Reply Post Reply
Author
Message
pietervdm View Drop Down
Newbie
Newbie
Avatar

Joined: 07 April 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote pietervdm Quote  Post ReplyReply Direct Link To This Post Topic: Password field and caps lock redraw problem
    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

 
Back to Top
pietervdm View Drop Down
Newbie
Newbie
Avatar

Joined: 07 April 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote pietervdm Quote  Post ReplyReply Direct Link To This Post 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;
}
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.160 seconds.