PropertyGrid crashes after ResetContent |
Post Reply |
Author | |
8irmer
Newbie Joined: 14 July 2003 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 14 July 2003 at 11:43am |
I tried to change an existing PropertyGrid. At first, i tried calling ResetContent(), and then adding new items. This works, but when i try to open a value list, eg. the {true, false} list of a bool item, the program crashes. When having a look with the debugger, the in-place list box control seems to be unitialized (HWND=0). My second try was deleting the old property grid, and then creating a new one, but this had the same effect. Do you, perhaps, have a static in-place list box control, which gets by mistake destroyed, when calling ResetContent() of a a property grid, or deleting it ? I updated to XTP 7100, but still have the same bug. Regards, Norbert Irmer
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Please send to support@codejock.com the sample code with crash. Thank you. |
|
8irmer
Newbie Joined: 14 July 2003 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
The bug is not so easy to reproduce. I have one docking pane, which contains a listctrl with a list of objects, and a second docking pane with a property grid, which shows the attributes of the currently selected object. In the listctrl, i track with OnLvnItemChanged the focused object, and recreate the property grid, when another object is focused. The bug is, that when i press the button which opens the in-place listbox of the property grid, i get ON_NOTIFY_REFLECT(LVN_ITEMCHANGEDOnLvnItemchanged) for the object list contained in the first docking pane !!! (even though this list isn't focused, and doesn't change at all) I will try to get this away by maintaining some internal state variables, but something with the XTP message handling is utterly wrong in regard to the in-place listboxes of property grid items Regards, Norbert Irmer
|
|
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 |