PDA

View Full Version : Custom Vector Type in PropertyGrid



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/

jason.a
18 Oct 2012, 3:46 PM
It turns out there is a problem with this sample, that I'm having trouble fixing.

When you click in the empty part of the window container... the editors doesn't close down, but is moved behind the window... Things are just not right from there.