Page 1 of 1

strategy for matrix of interactive images

Posted: Thu Jul 07, 2016 12:16 am
by melristau
Trying to update and move old Hypercard stack to LC. (The stack allows one to describe a system process.)
In HC i used a matrix of buttons, drawing from and extensive library of icon resources to visualize user interactions.
Just beginning with LC and using a matrix of 238 jpegs. Is this similar approach best strategy for LC??
plan.gif
Old HC Plan
plan.gif (4.21 KiB) Viewed 3738 times
Gridder.jpg
New LC layout

Re: strategy for matrix of interactive images

Posted: Thu Jul 07, 2016 10:28 am
by [-hh]
Not enough information.
Can't you simply convert your icon resources to images and use the old/running code?

p.s. For editing such a lot of objects better use (at first) LC 6 or LC 7.

Re: strategy for matrix of interactive images

Posted: Thu Jul 07, 2016 2:57 pm
by MaxV
I don't think you need 238 buttons. You need just to master these commands:
  • mouseMove
  • mouseDown
  • mouseUp
Look these real time moving path editing: https://youtu.be/IFKb3CzWznI
You may force the loc property of objects to the near position of your grid during MouseMove used to move object. Grid would be just an image. It would simplify your code.
Moreover you can divide you objectes in actives (start/stop, signal transformers, etc.) and inactive ones (wires), so your control everything loop will check only active elements.
In the end no matrix, but only few active elements.

Re: strategy for matrix of interactive images

Posted: Thu Jul 07, 2016 6:05 pm
by melristau
Thanks for guidance MaxV and -hh

Is 6.7.11 a best choice for HC conversion?

Off to the benevolent Hyperactive Software...

Re: strategy for matrix of interactive images

Posted: Fri Jul 08, 2016 7:45 am
by MaxV