Ok this is interesting Question.
If you have noticed every component have property "TAG" and its integer. Not many components have property pointer. For exsample every TTreeNode has propery "Data" wich is poiner its value is nil and i can use this pointer for my extensions, like adding some class or so.
So what is my idea.
pointer value is integer only in hex decimal. So for better view i will show my idea
I creare TList.
I asign T pointer value to a pointer P
For my component i have "TAG" propery I want to add pointer valu to "TAG" converting pointer in integer value
it should look like so
i:=pointertoint(p);//i know pointertoint function doesn't exist :) but that is the idea i wan't to get pointer value to integer and beck from integer value to pointer :).
So why i'm so interested is this kind of taging :) if component doesn't have pointer poperty i can use "tag" property like pointer to some object.
But i need these to function:
I think this idea is nice i will continue to solve this interesting idea my self but fieel free to try to solve it first.