How to make invisible objects visible - in Edit mode
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
How to make invisible objects visible - in Edit mode
When I am in Edit mode, objects that are invisible are not shown.
Other tools I have used show all visible and invisible objects when in design mode (Edit mode).
The invisible objects only disappear when in Run mode.
Is there a way to replicate this behavior in LiveCode?
Other tools I have used show all visible and invisible objects when in design mode (Edit mode).
The invisible objects only disappear when in Run mode.
Is there a way to replicate this behavior in LiveCode?
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: How to make invisible objects visible - in Edit mode
When an object is invisible it's invisible. Remember, unlike other IDEs which provide a layout mode completely disconnected from runtime, this is truly live code, so the IDE does a more thorough job of presenting things as you wish them to be seen, since there's very little difference between layout and runtime modes.
That said, the Project Browser lists all objects, and has an eye-shaped icon to toggle visibility.
That said, the Project Browser lists all objects, and has an eye-shaped icon to toggle visibility.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: How to make invisible objects visible - in Edit mode
Toggle them all on and off to view with the "View" menu. At the bottom of the list is "Show Invisible Objects"
Re: How to make invisible objects visible - in Edit mode
Yes, there is.golive wrote:Is there a way to replicate this behavior in LiveCode?
Just add to your control this code:
Code: Select all
on OpenCard
if the environment is "browser" than
set the visible of me to false
end if
end openCard
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: How to make invisible objects visible - in Edit mode
If what you want is to see invisible objects when you use the edit tool and hide them when you use the run tool then thats what you need:
-- in your stack script
-- in your stack script
Code: Select all
local tControls
on openStack
insert the script of this stack into front
end openStack
on newTool theTool
if theTool is "pointer" then
repeat with x = 1 to the number of controls in stack "test"
if the visible of control x of stack "test" is false then
set the visible of control x of stack "test" to true
put x&return after tControls
end if
end repeat
else
if tControls <> empty then
repeat for each line tControl in tControls
if there is a control tControl then
set the visible of control tControl of stack "test" to false
end if
end repeat
put empty into tControls
end if
end if
pass newTool
end newTool
Knowledge is meant to be shared.
Re: How to make invisible objects visible - in Edit mode
Thanks for all the suggestions.SparkOut wrote:Toggle them all on and off to view with the "View" menu. At the bottom of the list is "Show Invisible Objects"
SparkOut's suggestion of "Show Invisible Objects" works nicely.