I'm trying to build a chemical periodic table widget. I can do this up to the point of having it look like a periodic table (nice arrangement, symbols in correct places). My plan depends on being able to store and retrieve a rectangle for each element. I CAN compute an appropriate rectangle for each chemical element that places it properly in a periodic table. My plan depends on being able to store and retrieve a rectangle for each element.
I want to create an array that has the 'usual' chemical information. I want to include in that array the computed rectangle for each element such that it can redraw the widget when a user reshapes the widget and can detect a clickloc in the rectangle of the element to retrieve data I've tried to store the rectangle in the array --and retrieve it -- without success. I think the issue is that when it goes into the array it does so as a string. I've tried to store 4 Numbers in the array for each chemical element -- corresponding to the x,y of the top-left and bottom right of the rectangle and then recreate the rectangle from those numbers. No success. I've tried to store those as Integers and recreate them with commas into a variable typed as an array. No success. Any help and or suggestions will be appreciated. Thanks in advance. Best, Dave B. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode