[Gambas-user] TableView Tag Property
Benoît Minisini
g4mba5 at gmail.com
Wed Jan 13 22:42:29 CET 2021
Le 13/01/2021 à 22:31, Tobias Boege a écrit :
>
> It worked insofar as a Tag property/variable was added to the global
> _GridView_Cell class -- otherwise you would have gotten a runtime error
> when accessing it.
>
> The problem is found in the gb.gui.base source code for GridView:
> _GridView_Cell is not a permanent object that lives inside the GridView
> and stores the data associated to a cell. It is only a temporary object
> that is created on-the-fly as a proxy to make modifications to the
> real internal data structures of the GridView. Whatever data you store
> in a _GridView_Cell object is wasted. The class we want to change is
> called _GridView_Data. That's the permanent data storage for a cell.
>
> The attached project now works. But it uses some more implementation
> details of the GridView, which may change in a future Gambas and break
> your code relying on them without warning. Use at your risk!
>
> Best,
> Tobias
>
I think we can add a Tag property to the GridView cell.
But then, if we want to be coherent, we should add a Tag property to
TreeView, ListView, ColumnView and IconView items.
Regards,
--
Benoît Minisini
More information about the User
mailing list