Hidden objects
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Hidden objects
Hi everyone,
Thanks for all the valuable help that you guys are providing me with, I'm getting my head around all this pretty well but once again, I need a nudge in the right direction.
I want to hide a couple of objects from my stack, call them with a menu item, make adjustments with the objects on this 'control stack/card' and then hide the objects again. For example, I have an audio player, I want to call a volume control slider with a menu option, change the volume and then hide the slider.
I have absolutely no idea how to approach this but if you guys have any tips...
Thanks all,
D
Thanks for all the valuable help that you guys are providing me with, I'm getting my head around all this pretty well but once again, I need a nudge in the right direction.
I want to hide a couple of objects from my stack, call them with a menu item, make adjustments with the objects on this 'control stack/card' and then hide the objects again. For example, I have an audio player, I want to call a volume control slider with a menu option, change the volume and then hide the slider.
I have absolutely no idea how to approach this but if you guys have any tips...
Thanks all,
D
So, it's a big Salami... Just take it one slice at a time.
Hi D,
the magic word (property) is "visible"!
You could with the menu
...
set the visible of sb XYZ to true"
...
and in the script of the scrollbar:
Since the "scrolling" of a scrollbar will take place when the mouse is
down, this might work, or at least give you a clue where to start
Best
Klaus
the magic word (property) is "visible"!
You could with the menu
...
set the visible of sb XYZ to true"
...
and in the script of the scrollbar:
Code: Select all
on mouseup
set the visible of me to false
end mouseup
down, this might work, or at least give you a clue where to start

Best
Klaus
Hi Damlimey, for hiding and showing any object you need... hide and show!
and
Or you could use:
and
You can show hidden objects at any time by checking Show Invisible Objects in the Rev main menu bar.

Edit: Klaus beat me to it!!
Code: Select all
show player "XYZ"
Code: Select all
hide player "XYZ"
Code: Select all
set the visible of player "XYZ" to true
Code: Select all
set the visible of player "XYZ" to false

Edit: Klaus beat me to it!!
That's great!
Thanks for that, but say I wanted to put a couple of objects like a volume slider, a tick box for loop on/off and some other switches on a separate hidden thing. Would that thing be a stack, a card or a group, and how would I call that?
Thanks in advance...
D
Thanks in advance...
D
So, it's a big Salami... Just take it one slice at a time.
Re: That's great!
Hi D,
If you have a "free" corner in your stack then a group might be useful.
If not, I would use a palette window.
Best
Klaus
depends on how much "room" is left in the stack that you want to control.Damlimey wrote:Thanks for that, but say I wanted to put a couple of objects like a volume slider, a tick box for loop on/off and some other switches on a separate hidden thing. Would that thing be a stack, a card or a group...
If you have a "free" corner in your stack then a group might be useful.
If not, I would use a palette window.
Harold?Damlimey wrote:...and how would I call that?



Best
Klaus
Okay, so I made Harold a sub-stack
When I call 'Harold' with a menu command, up it pops and on it I place my slider to control the gain of the player on the main stack. Thing is, now the slider on Harold doesn't see the player on the main-stack. I also gave Harold a button to close it
so I can call Harold from the main-stack menu and I can close Harold with a local button but I can't get the objects on Harold to control objects on the main-stack.
(Plus, my dictionary seems to have disappeared and that's driving me close to madness!)
Whad'ya think?
Thanks, D
Code: Select all
set the visible of stack "Audio stack" to false
so I can call Harold from the main-stack menu and I can close Harold with a local button but I can't get the objects on Harold to control objects on the main-stack.
(Plus, my dictionary seems to have disappeared and that's driving me close to madness!)
Whad'ya think?
Thanks, D
So, it's a big Salami... Just take it one slice at a time.
Hi D
Groups are explained very well (as well as lots of other stuff) in the Revolution User Guide pdf, for your info.
:
Hope that's useful for you.

Groups are explained very well (as well as lots of other stuff) in the Revolution User Guide pdf, for your info.
An example might be (called from your substack you've called Haroldso I can call Harold from the main-stack menu and I can close Harold with a local button but I can't get the objects on Harold to control objects on the main-stack.

Code: Select all
put field "ABC" into field "XYZ" on card 1 of stack "NameofStack"

I hope you realise...
Every time you send me a hint and a line of code like that, you give me the boost I need to carry on and the possibilities open up for me and my project!
Thank you for that, hopefully, this will keep me quiet for a while!
All the best,
D
Thank you for that, hopefully, this will keep me quiet for a while!
All the best,
D
So, it's a big Salami... Just take it one slice at a time.
Now Gyroscope beat me to it
Anyway, I would NOT recommend to hide your control palette!
Just close it!
Imagine this:
1. you hide "Harold"
2. you save your stack (including its substack "Harold" without showing it again before saving!)
3. you open that stack the next day
4. you call "Harold"
5. nothing happens, at least nothing is visible since the "visible" prop of "Harold" also got saved!
6. you lose your mind
7. you don't like that
Best
Klaus

Anyway, I would NOT recommend to hide your control palette!
Just close it!
Imagine this:
1. you hide "Harold"
2. you save your stack (including its substack "Harold" without showing it again before saving!)
3. you open that stack the next day
4. you call "Harold"
5. nothing happens, at least nothing is visible since the "visible" prop of "Harold" also got saved!
6. you lose your mind
7. you don't like that

Best
Klaus
-
- Posts: 344
- Joined: Tue Feb 24, 2009 6:14 pm
- Contact: