Thing is, I will have info, that will be stored upon unknown dimensions.
Means that for example "info" can some times reside in List[1][2].info, while sometimes it might reside in List[1][2][3][4][5].info (or any other number of dimensions)
Since each of these datas info are contained in a layer (to be more precise, each data is a notebubble, which will hold text inside them), I have so far been thinking of using SetObjectData and GetObjectData to gain access to these info.
Idea would be, that if i have for example List[1][2][3].info, And user can click on that layer, I am thinking it would be simplest from programming point of view, that this List[1][2][3] layer, would have SetObjectData, which would be telling about its placing in that list. In this case "[1][2][3]". However, I havent quite figured out how to save that info.
Here is bit of example code to get the idea perhaps better:
Code: Select all
InsertItem(List[1][2][3], item (Puts item to multidimensional place in list)
temp = InsertLayer(NIL, #BRUSH, 1, x, y) (makes layer which is meant to present the list placing)
SetObjectData(#LAYER, temp, position, ?) (Puts position inside that layers info to gain access at later point)Code: Select all
temp = thelayerthatuserclicked (gets the id of the layer that user clicked)
position = GetObjectData(#LAYER, temp, position) (uses that id to gain access to "position" info)
list[position].info = newinfo (uses that position info to gain access to that place in that listAny ideas how to do this? Or even completely different way?