Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Detecting Changes in Values
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Detecting Changes in Values

 Post Reply Post Reply
Author
Message
jwhagen View Drop Down
Groupie
Groupie
Avatar

Joined: 09 May 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote jwhagen Quote  Post ReplyReply Direct Link To This Post Topic: Detecting Changes in Values
    Posted: 12 June 2003 at 7:54am

I am working with the GUI_VisualStudio7 sample program. My goal is to detect a change in an item's value (e.g. user edited the value) for the grid found in CPropertiesBar. In the CPropertiesBar file I have added detection of the following message and associated handler:

ON_MESSAGE(XTWM_PROPERTYGRID_NOTIFY, OnGridNotify)

I am expecting the following message to fire (XtremeToolkit v2.00):

m_pGrid->GetParent()->GetOwner()->SendMessage(XTWM_PROPERTYGRID_NOTIFY, XT_PGN_ITEMVALUE_CHANGED, (LPARAM)this);

The message does indeed fire (used debug to prove it) but is never received by the CPropertiesBar message handler. Therefore I am unable to detect changes to any of the data.

Can you point me in the right direction as to why and what I need to do to have the message received? I looked at the XT 2.00 version of PropertyGrid and was able to capture the message being sent but it is going to a dialogbox window. This is not how it is coded in the GUI-VisualStudio7 program.

Thanks!

John Hagen

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2003 at 2:21pm

Try to add m_wndPropertyGrid.SetOwner(this) in the CPropertiesBar::OnCreate method.

It is fixed in the Xtreme Toolkit 3.00

Back to Top
jwhagen View Drop Down
Groupie
Groupie
Avatar

Joined: 09 May 2003
Location: United States
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote jwhagen Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2003 at 4:17pm

Hi Oleg,

Thanks for the information. It fixed my problem.

By the way, I looked at the example for the 3.10 version and it wasn't in there either. I did find in in the FrameWork file for the 2.00 version but a search of the 3.10 version came up empty.

Thanks again.

John

Back to Top
voxel View Drop Down
Newbie
Newbie


Joined: 19 April 2004
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote voxel Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2004 at 2:45pm
If you have more then 1 property pane (grid), how do you detect which pane the XTP_PGN_ITEMVALUE_CHANGED belongs to? Thank oyu for the help...
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 April 2004 at 2:58pm

if (wParam == XTP_PGN_ITEMVALUE_CHANGED)
 {
  CXTPPropertyGridItem* pItem = (CXTPPropertyGridItem*)lParam;
  

   ((CXTPPropertyGrid*) pItem->GetGrid ()->GetP arent())

}

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.250 seconds.