PropertyGrid custom editor

  • Thread starter Thread starter margoulin
  • Start date Start date
M

margoulin

hello,

i'm currently using a PropertyGrid to monitor the properties of some
numerical objects, mainly composed of ints and floats that must stay in a
specific range. The logical choice for editing that is a TrackBar in a
DropDown control.

I managed to write the code for that and it works. However, I would like the
numerical value displayed in the propertygrid to be updated as I slide the
track bar (for now the value changes when the DropDown is closed). How can I
achieve that ?

Thanks.

-Marc Fascia
 
Hi Marc,

You could display and update "current" value in the same drop-down dialog
where the trackbar is shown, and update the "real" value in the property
grid after the user has finished editing. This is a workaround of course,
but you might still find it helpful.
 
Back
Top