MATLAB Answers

Linking UIList or UItree object to multiple edit fields

4 views (last 30 days)
Michael Giordano
Michael Giordano on 27 Jul 2020
My situation is that I have one listbox or uitree (depending on situations) with a list of possible names. I then have several edit fields. The idea is that the user can click on an edit field, then double click an item on the listbox, which would populate the selected edit field with that name. My issue is that I can't figure out how to get the "last clicked edit field". My thought initially was to create a custom property for the figure so that when I click an edit field, it would store that edit field handle which I could then grab with my list box and populate. However, there doesn't appear to be an "onclick" type callback for edit fields.
So there's my do I know which is the last edit field clicked/entered to, so that my listbox knows which edit field to populate?
Thanks in advance!



Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!