DefaultValue PropertyGridItemColor |
Post Reply |
Author | |
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Posted: 11 May 2009 at 8:25am |
Hi,
I'm trying to set Item.DefaultValue of PropertyGridItemColor to same value as Item.Value
But it's not working so well...
This is what I do:
Load settings of PropertyGrid items from XML file. After loading the settings I would like to set the .DefaultValue the same as .Value because it looks like properties has been changed (I have HighLightChangedItems = True).
This doesn't work: Item.DefaultValue = Item.Value
How can I get this to work?
Thanks a lot in advance
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Dim ColorItem As PropertyGridItemColor
Set ColorItem = Category.AddChildItem(PropertyItemColor, "ColorItem", RGB(10, 20, 30)) 'change color to something else ColorItem.Value = RGB(255, 204, 0) ColorItem.EditorStyle = ItemColorPopup Dim lRed As Long Dim lGreen As Long Dim lBlue As Long lRed = ColorItem.Value And 255 lGreen = (ColorItem.Value \ 256) And 255 lBlue = (ColorItem.Value \ 65536) And 255 ColorItem.DefaultValue = lRed & "; " & lGreen & "; " & lBlue |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
This will do for now. Would be nice if (in near future) something would change with DefaultValue <> Value types. I'm having some problems with this but I will open ticket for this and maybe it will be solved somehow
Thank you
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
I'll notify Oleg when the issue comes in.
|
|
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 |