Page 1 of 1

#.hide() command

Posted: Fri Sep 15, 2017 9:50 pm
by rbytes
I hope there will soon be a #.hide() command to complement the #.show() command. In my WinMeasure program
just posted, I would like each ruler (inch and cm) to be its own image object, rather than reloading the images into the same
object when the INCH and CENT buttons are pressed.

Re: #.hide() command

Posted: Fri Sep 15, 2017 10:19 pm
by Mr. Kibernetik
Thank you for your suggestion!

Re: #.hide() command

Posted: Fri Sep 15, 2017 10:56 pm
by Mr. Kibernetik
If you can do without undo functionality in code editor (currently I am remaking it) then I can upload version with #.hide function right now - it is already implemented.

Re: #.hide() command

Posted: Sun Sep 17, 2017 1:52 am
by rbytes
Thanks. I just noticed this post. I will wait for the complete version 17.

For fun, I tried a workaround hide experiment in iMeasure. On startup I created an image object for the inches ruler and then another one for the metric ruler. The metric ruler covered the inches ruler completely. To show the inches ruler, I "hid" the metric ruler by loading a transparent png image into its image object.

The technique worked, but there was a flicker each time, so I went back to using just one image object to show either of the two ruler images.

I will substitute the new hide command when update 17 is posted.

Re: #.hide() command

Posted: Sun Sep 17, 2017 1:56 am
by Mr. Kibernetik
Some workarounds to hide an object: you can set its height to zero, or move it off-screen.
Yes, version 0.0.17 is already out.