The class MyReceiver uses the interface listSelectionNotificationReceiver and adds the methods SelectionChanged and SelectionChanging. In SelectionChanging I added a MessageBox(“Changing”) and in SelectionChanged a MessageBox(“Changed”). No compilation errors but nothing happens (no messages) when I select another row in Listbox1.
If you’ve got this example project showing it not working, post the project here for further review or make an issues ticket about the framework malfunction.
@Tim_Parnell Thank you. I also tried a lot of things in the last few days but nothing happened. Before, I always used ListBox events but it looks great to use ListSelectionNotificationReceiver if you want to notify several classes that a new ListBox selection took place. I will file an issues ticket.
@Beatrix_Willius I agree:I invested a lot of time to find out everything starting from the limited documentation: I started from DesktopListbox with the following ‘challenging’ description:
@Carlos_De_Backer
If you create an issue it would be interesting to see what replies from Engineering it gets.
I faintly remember using these interfaces back in the REALbasic days when we could create our own bindings but that is gone now and I wonder if the interfaces need updating and also the documentation.
The ActionNotificationReceiver seems to work for DeskTopButton ActionNotificationReciever
And that is how we used to use binding to a listbox with ListSelectionNotificationReceiver
@brian_franco Brian, I filed an issues ticket (#78491). The available documentation is really very limited. It would be easy when you can start from an example. But an example was not available. I spent many hours to search for the flow needed. This was really very frustrating.
I keep you informed what the answer will be from the engineers.
it was a question from one of my students how this method could be used. In this case he will have to be patient for a while. But for once the teacher is not wrong…