IP Address |
Post Reply |
Author | |
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
Posted: 22 March 2008 at 10:31pm |
Hi,
I'm trying to implement an IP address item for the PropertyGrid. Right now, I'm using a string item with the SetMask property set to "000.000.000.000". This is working okay, except for the fact that the user must type the complete IP address (which is mildly annoying.) For example, instead of being able to type 127.0.01, they must type 127.000.000.001. I was hoping that the KeyDown event would fire while editing so I could trap KeyAscii 46/110 and push the entry along with code, but alas it does not fire (as the documentation mentions). So: 1) Could we get EditKeyDown/EditKeyUp, EditSelStart/EditSelLength AND EditText properties so we can implement this kind of functionality ourselves? AND/OR 2) Could Codejock add an IPv4 item type to the PropertyGrid, since this will likely be a fairly common entry type for a property grid. The item type should behave such that typing a decimal pushes the caret to the next octet? Unless of course there is another way to implement this behaviour with the current build? Thanks a lot! |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I downloaded the propertygrid ownerdraw sample from the codejock site and it looks that this behaviour is solved. There are features in the propertygrid I didn't know they existed. It's just an application and not the source code, but anyway check it out yourself.
|
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Thanks Aaron, the IP address item in the sample does behave as I would like...I'll mess around with the control to see if I can duplicate it, but it would be nice if that source code could be released :)
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Maybe the sample is build with the new release? And if it's not then we would really want the source code of that sample. Oleg ???
|
|
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 |