TParamListBox - how to dynamically change a param's class

Hello

In my TParamListBox, I wish to change the class of a parameter based on input previously selected on that line:

e.g. 'Property' could be a property that requires a boolean or a text field for the 'value' param.

How would I change this based on previous param selections on the same line?

Many thanks

You would need to update the HTML for the item for which you want to change the editor type for another item's OnParamEditDone event. Something like:

if (value = condition) then
  ParamListBox1.Items[x] =: '<A href="edit" class="EDIT">10</A>'
else
  ParamListBox1.Items[x] = '<A href="tog" class="TOGGLE" PROPS="Yes|No">Yes</A>';

Thanks. In the case above, there may be multiple previous selections. Is there a way to just change one href class, or is it likely I would need to grab all the previous selections on the line and factor those into the new HTML in order to change an href later in the line?

At this moment, there is not a programmatic interface to just change the href class.
You'd need to update the entire HTML of the item. I suggest to get the item HTML and do a smart find & replace on it.