Detecting Changes in Values |
Post Reply |
Author | |
jwhagen
Groupie Joined: 09 May 2003 Location: United States Status: Offline Points: 43 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Try to add m_wndPropertyGrid.SetOwner(this) in the CPropertiesBar::OnCreate method. It is fixed in the Xtreme Toolkit 3.00 |
|
jwhagen
Groupie Joined: 09 May 2003 Location: United States Status: Offline Points: 43 |
Post Options
Thanks(0)
|
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 |
|
voxel
Newbie Joined: 19 April 2004 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
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...
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
if (wParam == XTP_PGN_ITEMVALUE_CHANGED) ((CXTPPropertyGrid*) pItem->GetGrid ()->GetP arent()) } |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |