Recent

Author Topic: Mediators  (Read 1183 times)

Weitentaaal

  • Hero Member
  • *****
  • Posts: 554
Mediators
« on: October 24, 2023, 04:08:57 pm »
Hello,

i was currently trying to implement a simple application follwoing this tutorial: https://www.freepascal.org/~michael/articles/cdcover/cdcover.pdf
i do understand most of it but i have difficulties to implement a Mediator for a Tcollection.i rewrote a TCollection to handle strings and added a Index as Property, for the currently selected item.

Could someone help me understand how i should handle IndexComboboxes with a Mediator. I will rewrite my Collection or exchange it for something else, i just can't get it done.

I Am using the lclMediators unit that was provided in the source code here https://www.freepascal.org/~michael/articles/#cdcover1

any brief example of usage would be great !

Edit: just wanted to clarify that i did not find any Lazarus example of using Comboboxes with mediators, except for that one provided in sourcecode, which is using objects. I Have simple strings and an index.

thanks
« Last Edit: October 24, 2023, 04:10:47 pm by Weitentaaal »

 

TinyPortal © 2005-2018