.Description not updating |
Post Reply |
Author | |
Gutauckis
Newbie Joined: 06 December 2004 Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 23 December 2004 at 1:30pm |
I notice once the property grid has been displayed, if I try to change
the description of an item, it does not paint itself. If I click
another item in the grid and then go back to the item I changed the
description has been updated.
Here is what I am doing: 'Sets up the item Set Item = Category.AddChildItem(PropertyItemString, "Description", "") With Item &nbs p; .Description = "Material Name" &nbs p; .Tag = ID_PROPERTY_MATERIAL_NAME &nbs p; .Flags = ItemHasComboButton &nbs p; LoadMaterialGrid Item 'this loads the combo list with some names End With Now in the program Private Sub wndPropertyGrid_ValueChanged(ByVal Item As XtremePropertyGrid.IPropertyGridItem) Select Case Item.Tag Case Defines.ID_PROPERTY_MATERIAL_NAME: Item.Description = "New Name" End Select End Sub This does not actaully paint the grid with the new text. The only way to get the new text is to click another item in the grid and then click back on the original item. Edited by Gutauckis |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Can you reproduce this in one of the sample projects?
|
|
Gutauckis
Newbie Joined: 06 December 2004 Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Yes, I can. I open up the visual basic sample app for "property grid".
Add Item.Description = "Hello" to the wndPropertyGrid_ValueChanged event. I added the line after the "Debug.Print Item.Value" line. Run the app. Change a value, any one of the items. I changed window size; press enter and you will see the description does not change. Now click on a different item then click back on the item you changed the value for. you will then see the updated description. |
|
Gutauckis
Newbie Joined: 06 December 2004 Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Has anybody confirmed this to be a bug? Is there a workaround?
|
|
Gutauckis
Newbie Joined: 06 December 2004 Status: Offline Points: 12 |
Post Options
Thanks(0)
|
New version and this has not been fixed....
|
|
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 |