Sorry, I did mean the my was the object and I have updated the code in the first post accordingly (hopefully).
The idea is that that "my" is a type that includes a label, text box and slider with methods to update the text based on the slider position and update the slider position based on the text input. The GUI will be a collection of these (around 30). The case statement looking at each text box and slider is huge and I thought there must be a better way to do this.
If the eventsource() is MyObj.Test (i.e. the slider) can I find MyObj so that I can call the MYObj method to update the associated text box?
RJJ
The idea is that that "my" is a type that includes a label, text box and slider with methods to update the text based on the slider position and update the slider position based on the text input. The GUI will be a collection of these (around 30). The case statement looking at each text box and slider is huge and I thought there must be a better way to do this.
If the eventsource() is MyObj.Test (i.e. the slider) can I find MyObj so that I can call the MYObj method to update the associated text box?
RJJ