Difference between visible and hide

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Difference between visible and hide

Post by bjb007 » Sun Oct 12, 2008 9:35 pm

Are the "set visible of" and "hide/show" functions
identical or are there situations where one is preferable
to the other?
Life is just a bowl of cherries.

SparkOut
Posts: 2852
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Sun Oct 12, 2008 9:56 pm

I think the main difference is that "hide" and "show" can take a "with visual effect" parameter. The hide and show commands will actually change the "visible" property of the relevant controls, so I believe they're pretty close to synonyms. The only other subtle difference I note from the docs is that if you hide a group, then all the controls of the group will be hidden (ie their visible property set to false) but setting the visible of a group does not affect the visible of the individual controls within the group. It's probably too subtle to make much difference in most cases.
That's how I read the docs, there may be more to it than that, but it seems to me that's the sum of the differences.

bjb007
Posts: 313
Joined: Fri Dec 28, 2007 4:56 am

Difference between visible and hide

Post by bjb007 » Mon Oct 13, 2008 3:58 am

So a very subtle difference!

Thanks SparkOut.
Life is just a bowl of cherries.

SparkOut
Posts: 2852
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Mon Oct 13, 2008 8:36 am

That's OK - I just hope the info is completely accurate. I'd like to hear from some of the power brains on here too.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9837
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Post by FourthWorld » Mon Oct 13, 2008 4:49 pm

I just tested a few different scenarios of "hide" and "set the visible of" for both groups and controls. As far as I can determine they are synonymous. If you can find a recipe that shows otherwise please post it.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”