Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - IP Address
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

IP Address

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: IP Address
    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!
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 23 March 2008 at 1:36pm
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.
 
 
 
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 23 March 2008 at 2:20pm
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 :)

Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 23 March 2008 at 4:30pm
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 ???
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.156 seconds.