#.hide() command

Post Reply
User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

#.hide() command

Post 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.
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: #.hide() command

Post by Mr. Kibernetik »

Thank you for your suggestion!

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: #.hide() command

Post 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.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: #.hide() command

Post 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.
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: #.hide() command

Post 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.

Post Reply