Visibility Problem - Correction

David Bovill david at openpartnership.net
Sun Jan 14 13:54:46 EST 2007


OK - that was long :)

Can't really spot anything... the only thing I can suggest is to debug it
properly in stages: and cut out each possible cause one at a time.

 1) It seems unlikely that it is an IDE issue as you are using ids - but
exclude this by taking Chipps suggestion and write a little routine to check
each graph... something like: "put the visibility of someGraph & CR & the
rect of someGraph & the points of smeGraph"

  2) Have you run through it in the debugger - sometimes an error with the
points could cause the script to exit before the end and therefore not
"show" the graph?

  3) Finally if all else fails break the script up into separate functions
and commands - one for each graph and seperate working out the points from
actually drawing and show/hiding things - then you can test each seperately
excluding one possible cause after the other - long scripts are harder to
debug - break it up? that is check the show / hide logic with dummy points,
check the functions for creating the points in seperate to the drawing stuff
etc?

Best I can suggest really?



More information about the use-livecode mailing list