Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

PropertyEditor: override onDrawItem (Decide with which items populate it)

Hi NI Engineers,

 

I suppose PropertyEditor is a kind of combobox, right? I would like to know if it inherits from ComboBox windows forms component because if so, I suppose the combobox is populated with the correct items (only image, image among the text, only text, depending on DisplayMode setting) according to the object and property name settings. So, I would like to intercept when the combobox is being populated with those items, and decide which Items I am interested in. If I am not interested in a concret item (depends on the situation), I do not want to add this item to the combobox. So combobox in this case would be populated only with the items that I want at that moment. How can I do this? If it possible?

 

Cheers.

0 Kudos
Message 1 of 1
(4,850 Views)