Print Page | Close Window

Detecting Changes in Values

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=65
Printed Date: 21 November 2024 at 4:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Detecting Changes in Values
Posted By: jwhagen
Subject: Detecting Changes in Values
Date 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




Replies:
Posted By: Oleg
Date 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



Posted By: jwhagen
Date 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



Posted By: voxel
Date 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...


Posted By: Oleg
Date 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



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