Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - .Description not updating
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

.Description not updating

 Post Reply Post Reply
Author
Message
Gutauckis View Drop Down
Newbie
Newbie


Joined: 06 December 2004
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gutauckis Quote  Post ReplyReply Direct Link To This Post Topic: .Description not updating
    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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 24 December 2004 at 8:19pm
Can you reproduce this in one of the sample projects?
Back to Top
Gutauckis View Drop Down
Newbie
Newbie


Joined: 06 December 2004
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gutauckis Quote  Post ReplyReply Direct Link To This Post Posted: 25 December 2004 at 9:09pm
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.


Back to Top
Gutauckis View Drop Down
Newbie
Newbie


Joined: 06 December 2004
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gutauckis Quote  Post ReplyReply Direct Link To This Post Posted: 06 January 2005 at 6:01pm
Has anybody confirmed this to be a bug? Is there a workaround?
Back to Top
Gutauckis View Drop Down
Newbie
Newbie


Joined: 06 December 2004
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gutauckis Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2005 at 12:05pm
New version and this has not been fixed....
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.172 seconds.