jason.a
18 Oct 2012, 5:39 AM
Yesterday I posted a question asking about how to make a custom type in the property grid, composed of multiple numbers ... like a number array representing a 3D vector.
I'd reply to that post, but it hasn't been approved yet. At any rate, a solution was found, and I thought I'd post it for anyone interested. It actually still has a couple of small problems. Like when you hit <enter> it doesn't commit the change to the grid. Then some weirdness when you drag the window around while editing (in fairness the built in properties have weirdness too when you do this).
http://jsfiddle.net/EznUc/40/
I'd reply to that post, but it hasn't been approved yet. At any rate, a solution was found, and I thought I'd post it for anyone interested. It actually still has a couple of small problems. Like when you hit <enter> it doesn't commit the change to the grid. Then some weirdness when you drag the window around while editing (in fairness the built in properties have weirdness too when you do this).
http://jsfiddle.net/EznUc/40/