Re: the visible of a stack

2008-09-26 Thread Chipp Walters
I agree. If it's not useful, then let's not include it. On Fri, Sep 26, 2008 at 1:33 PM, Eric Chatonet <[EMAIL PROTECTED]> wrote: > Bonsoir à tous, > > I would not like to be considered as the ugly duckling but ;-) > Chipp, Richard and all: > Would you use (e.g. have a need for) such a function in

Re: the visible of a stack

2008-09-26 Thread Richard Gaskin
Eric Chatonet wrote: I would not like to be considered as the ugly duckling but ;-) Chipp, Richard and all: Would you use (e.g. have a need for) such a function in your 'real' projects? As for me my answer is no even if I understand well the challenge it meant ;-) That's a helpful point. T

Re: the visible of a stack

2008-09-26 Thread Eric Chatonet
Bonsoir à tous, I would not like to be considered as the ugly duckling but ;-) Chipp, Richard and all: Would you use (e.g. have a need for) such a function in your 'real' projects? As for me my answer is no even if I understand well the challenge it meant ;-) Le 26 sept. 08 à 20:16, Chipp W

Re: the visible of a stack

2008-09-26 Thread Chipp Walters
Certainly! On Fri, Sep 26, 2008 at 9:59 AM, Richard Gaskin <[EMAIL PROTECTED]>wrote: > > > Chipp, mind if we add it? With credit, of course. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: the visible of a stack

2008-09-26 Thread Richard Gaskin
Mikey wrote: Umm, what standard library? It's one of the initiatives of the Rev Interoperability Project (RIP). Back at the second-ever RevCon, held at a nice B&B in Monterrey, the attendees were discussing common handlers and found many of us had worked out the same solutions for ourselves

Re: the visible of a stack

2008-09-26 Thread Mikey
Umm, what standard library? Teh n00b ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution

Re: the visible of a stack

2008-09-26 Thread Richard Gaskin
Robert Brenstein wrote: On 25/09/08 at 13:15 -0700 Dick Kriesel apparently wrote: Hi, Chipp. Here's a version that's effectively the same but that has a couple minor advantages. First, it has a single exit point, possibly improving maintainability. Second, it executes the corner functions on

the visible of a stack

2008-09-26 Thread Richmond Mathewson
Script in a button in a visible substack: on mouseUp put item 3 of the screenRect into WID put item 4 of the screenRect into HIT if the loc of stack "Visibubble" is within 0,0,WID,HIT then put "I can see you!" into fld "f1" if the vis of stack "Visibubble" is false then put "I ca

Re: the visible of a stack

2008-09-26 Thread Chipp Walters
Hi Dick, I assume you benchmarked your function to see if it's faster. I'm not a big fan of huge nested if then loops, as I find them more difficult to debug-- and I generally think they are slower. I suppose yours is offset by the single exit point. But, my gut would tell me my function would run

Re: the visible of a stack

2008-09-26 Thread Robert Brenstein
On 25/09/08 at 13:15 -0700 Dick Kriesel apparently wrote: Hi, Chipp. Here's a version that's effectively the same but that has a couple minor advantages. First, it has a single exit point, possibly improving maintainability. Second, it executes the corner functions only once no matter how many

Re: the visible of a stack

2008-09-25 Thread Dick Kriesel
Hi, Chipp. Here's a version that's effectively the same but that has a couple minor advantages. First, it has a single exit point, possibly improving maintainability. Second, it executes the corner functions only once no matter how many screens there are, possibly improving performance. -- Dick

Re: the visible of a stack

2008-09-25 Thread Chipp Walters
Devin, Yes, you are correct. Here's the latest: function isStackCurrentlyVisibleOnAnyMonitor pStack --> pStack IS THE SHORT NAME OF STACK if pStack is among the lines of windows() then if not the vis of stack pStack then return false if the blendlevel of stack pStack = 100 then return fal

Re: the visible of a stack

2008-09-25 Thread Mikey
A big "Thank You" to everyone who jumped into this thread. This has been an excellent discussion, with excellent information and tips. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and man

Re: the visible of a stack

2008-09-25 Thread Devin Asay
On Sep 25, 2008, at 12:01 AM, Chipp Walters wrote: Dick, Nice find. For some reason I didn't get your email, but I do see it in Andre's response... HMMM. function isStackCurrentlyVisibleOnAnyMonitor pStack --> pStack IS THE SHORT NAME OF STACK set wholematches to true if pStack is among the li

Re: the visible of a stack

2008-09-24 Thread Chipp Walters
Dick, Nice find. For some reason I didn't get your email, but I do see it in Andre's response... HMMM. function isStackCurrentlyVisibleOnAnyMonitor pStack --> pStack IS THE SHORT NAME OF STACK set wholematches to true if pStack is among the lines of windows() then if the blendlevel of stack

Re: the visible of a stack

2008-09-24 Thread Chipp Walters
Andre, Intersect only works with objects, and AFAIK there's no 'screen' object. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.

Re: the visible of a stack

2008-09-24 Thread Andre Garzia
the trick is using intersect() :D On Thu, Sep 25, 2008 at 12:12 AM, Dick Kriesel <[EMAIL PROTECTED]> wrote: > Hi, Chipp. Either of the other two corners of the stack could be the only > corner within a screenrect too. > > -- Dick > > > On 9/24/08 6:01 PM, "Chipp Walters" <[EMAIL PROTECTED]> wrot

Re: the visible of a stack

2008-09-24 Thread Dick Kriesel
Hi, Chipp. Either of the other two corners of the stack could be the only corner within a screenrect too. -- Dick On 9/24/08 6:01 PM, "Chipp Walters" <[EMAIL PROTECTED]> wrote: > Dangit, didn't get the L again..Sorry for the multiple posts . > > function isStackCurrentlyVisibleOnAnyMonitor pS

Re: the visible of a stack

2008-09-24 Thread Chipp Walters
Dangit, didn't get the L again..Sorry for the multiple posts . function isStackCurrentlyVisibleOnAnyMonitor pStack --> pStack IS THE SHORT NAME OF STACK set wholematches to true if pStack is among the lines of windows() then if not the vis of stack pStack then return false if the bl

Re: the visible of a stack

2008-09-24 Thread Chipp Walters
Hmmm. You wrote: All stacks are included regardless of their visibility. Is that true? If so, then my function needs to include the line: if not the vis of stack pStack then return false I've included it below. function isStackCurrentlyVisibleOnAnyMonitor pStack --> pStack IS THE SHORT NAME OF

Re: the visible of a stack

2008-09-24 Thread Richard Gaskin
Chipp Walters wrote: > > Richard Gaskin wrote: >> >> if "MyStack" is among the lines of windows() then ... > OOPS, I do get something, but it's not documented in HELP. Thanks for > this little jewel :-) Your welcome, and thanks for noting the strange omission from the docs. I thought it was th

Re: the visible of a stack

2008-09-24 Thread Chipp Walters
Typo.. blendlevel is spelled with an 'L' at the end. function isStackCurrentlyVisibleOnAnyMonitor pStack --> pStack IS THE SHORT NAME OF STACK set wholematches to true if pStack is among the lines of windows() then if the blendlevel of stack pStack = 100 then return false repeat fo

Re: the visible of a stack

2008-09-24 Thread Chipp Walters
This one's better as it checks all the monitor screens (and has the blendlevel fix) function isStackCurrentlyVisibleOnAnyMonitor pStack --> pStack IS THE SHORT NAME OF STACK set wholematches to true if pStack is among the lines of windows() then if the blendlever of stack pStack = 1

Re: the visible of a stack

2008-09-24 Thread Chipp Walters
Mikey, Here's a function which might do what you want..course then it might not either ;-) function isStackCurrentlyVisibleOnMainMonitor pStack --> pStack IS THE SHORT NAME OF STACK set wholematches to true if pStack is among the lines of windows() then if the topLeft of stack pSta

Re: the visible of a stack

2008-09-24 Thread Richard Gaskin
Mikey wrote: > VERY funny. Did you poke a hole in your cheek with your tongue? Yep, and damn, now every time I take a drink the water spills out of the side of my face like a dribble glass. That'll teach me... :) > I have a substack - "Preferences" that has settings for various > things,

Re: the visible of a stack

2008-09-24 Thread Chipp Walters
OOPS, I do get something, but it's not documented in HELP. Thanks for this little jewel :-) On Wed, Sep 24, 2008 at 6:43 PM, Chipp Walters <[EMAIL PROTECTED]> wrote: > On Wed, Sep 24, 2008 at 3:54 PM, Richard Gaskin > <[EMAIL PROTECTED]> wrote: > >> if "MyStack" is among the lines of windows() th

Re: the visible of a stack

2008-09-24 Thread Chipp Walters
On Wed, Sep 24, 2008 at 3:54 PM, Richard Gaskin <[EMAIL PROTECTED]> wrote: > if "MyStack" is among the lines of windows() then Huh? I get nothing with that function. Is it one of your custom functions? ___ use-revolution mailing list use-revolution@lis

Re: the visible of a stack

2008-09-24 Thread J. Landman Gay
Mikey wrote: Eric, Just in case this matters, the stack is a substack. I open RR, and open the mainstack. RR is the only application running. The stack isn't off-screen. The loc is the first thing I checked for, because I've had situations where stacks migrate to maxint,maxint that I haven't

Re: the visible of a stack

2008-09-24 Thread Mikey
Richard, VERY funny. Did you poke a hole in your cheek with your tongue? I have a substack - "Preferences" that has settings for various things, along with numerous cards of HTML templates and CSS, so I can update the look and feel of my output without having to screw around with the code. So

Re: the visible of a stack

2008-09-24 Thread Mikey
The openStacks list might be a helpful workaround here, which gets me the elegance I was looking for and the behavior of not altering the visible. Thanks. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe,

Re: the visible of a stack

2008-09-24 Thread Eric Chatonet
Mickey, Le 24 sept. 08 à 22:41, Mikey a écrit : Eric, Fiddling around with this some more in 3.0: 1) Created a new stack "t1" 2) Created a new suubstack "t2" 3) put the visible of stack "t2" true Correct and you see it :-) 4) put the rect of stack "t2" 735,550 Loc I assume but I underst

Re: the visible of a stack

2008-09-24 Thread Scott Rossi
Recently, Mikey wrote: > Along those lines, in the sequence that I described earlier, trying to > show the substack doesn't do anything, either. > > I suppose that it would make sense that this series that I describe > occurs on a closed stack. > > Now to figure out if a stack is closed or not.

Re: the visible of a stack

2008-09-24 Thread Richard Gaskin
Mikey wrote: This was an attempt to not address the objects directly since I was trying to evaluate a way to make some code more elegant (IMHO) by going to the stack directly and navigating through it. Obviously this isn't working the way I had hoped. Let's take a look at that if you can spare

Re: the visible of a stack

2008-09-24 Thread Richard Gaskin
Richmond Mathewson wrote: > 4. put the vis of stack "POO" > > which yielded 'true' [obviously] > > although I could not see the stack. > > So I concluded, with my philosophical hat jammed well down over > my eyes, that VIS has nothing to do with whether I can see the > stack or not, but has so

Re: the visible of a stack

2008-09-24 Thread Scott Rossi
Recently, Richmond Mathewson wrote: > Unfortunately, while the VIS property exists in Runtime Revolution a > CLOSED property does not, as far as I am aware. No, but an openStacks property does, which lists all open stacks, regardless of visibility. Regards, Scott Rossi Creative Director Tactile

Re: the visible of a stack

2008-09-24 Thread Mikey
Along those lines, in the sequence that I described earlier, trying to show the substack doesn't do anything, either. I suppose that it would make sense that this series that I describe occurs on a closed stack. Now to figure out if a stack is closed or not. Looks like it's time to generate a cu

the visible of a stack

2008-09-24 Thread Richmond Mathewson
Check out "Visibility of substacks" at revOnline under "Richmond". it does, indded, seem very odd that even when a substack is CLOSED one can set its VIS to TRUE or FALSE: i.e. exactly what (I think) Mikey describes; a closed substack (which the human in front of the monitor cannot see) registe

Re: the visible of a stack

2008-09-24 Thread Mikey
Eric, Fiddling around with this some more in 3.0: 1) Created a new stack "t1" 2) Created a new suubstack "t2" 3) put the visible of stack "t2" true 4) put the rect of stack "t2" 735,550 4) show stack "t2" nothing happens 5) set the visible of stack "t2" to false 6) set the visible of stack "t

Re: the visible of a stack

2008-09-24 Thread Eric Chatonet
Mickey, Yes, the visible property of a closed substack is true: I understand that might be confusing :-) Actually, the visible property of any stack does not depend on the fact it is open or not. It's a status that will be respected when the stack will be opened. Of course, all this depends on

Re: the visible of a stack

2008-09-24 Thread Andre Garzia
Mikey, I got late to this thread so forgive me if I say something terribly obvious, but you can check the visible of a stack and the result from intersect() between it's rect and the screen rect to find if it is visible and in-screen, then unless the blendlevel or the windowshape is some

Re: the visible of a stack

2008-09-24 Thread Mikey
Richard, As I mentioned to Eric, the loc of the (sub)stack is onscreen. I've verified that due to being bitten recently by some stacks (most often the msg box, although sometimes the script editor) moving to maxint,maxint (65535,65535), so whenever I have a window issue, I first assume that the l

Re: the visible of a stack

2008-09-24 Thread Mikey
Hi, Eric. Yes, one would expect that. However, the visible for the (unopened) substack seems to be true in this case. I didn't want to get off on this tangent, but showing hidden substacks seems to a little odd as well, which might be a product of the visible property not being what I expect, bu

Re: the visible of a stack

2008-09-24 Thread Mikey
Scptt. I see that I forgot to mention in the first post that I was dealing with a substack. I mentioned it in another thread that I started on indirect addressing, but none of you would know that the posts are related. I noticed that you made a comment that the visible of a substack might not be

the visible of a stack

2008-09-24 Thread Richmond Mathewson
May be I'm being a bit goofy, but I just made a stack called "POO" and put the following commands/messages into the message box: 1. put the vis of stack "POO" which yielded 'true' 2. set the vis of stack "POO" to false 3. put the vis of stack "POO" which yielded 'false' 4. set the

Re: the visible of a stack

2008-09-24 Thread Eric Chatonet
Mickey, Le 24 sept. 08 à 22:06, Mikey a écrit : Just in case this matters, the stack is a substack. I open RR, and open the mainstack. Opening a mainstack don't open its substacks. You have to open a substack to see it. Best regards from Paris, Eric Chatonet. ---

Re: the visible of a stack

2008-09-24 Thread Mikey
Richard, This was an attempt to not address the objects directly since I was trying to evaluate a way to make some code more elegant (IMHO) by going to the stack directly and navigating through it. Obviously this isn't working the way I had hoped. ___ u

Re: the visible of a stack

2008-09-24 Thread Mikey
Tom, Thanks for the suggestion. I was going to try to derive something like that, but I was hoping that I just didn't understand the visible property and that the solution would be simpler. It may be that there is still something else going on, but I haven't figured it out yet. _

Re: the visible of a stack

2008-09-24 Thread Richard Gaskin
Mikey wrote: I originally wanted to get the visible of the stack, navigate to the stack to do something That may not be necessary. Unlike HyperCard, you can modify any property of any object in any stack at any time without having to "go" to it, or even open it per se. Not sure if that hel

Re: the visible of a stack

2008-09-24 Thread Mikey
Eric, Just in case this matters, the stack is a substack. I open RR, and open the mainstack. RR is the only application running. The stack isn't off-screen. The loc is the first thing I checked for, because I've had situations where stacks migrate to maxint,maxint that I haven't figured out. T

Re: the visible of a stack

2008-09-24 Thread Scott Rossi
Recently, Mikey wrote: > If a stack "x" is not visible on the screen, and I type > put the visible of stack "x" I get true, even though the stack is > obviously not visible. I don't know if your stack is "obviously" not visible. A substack can be visible and not apparent on the screen because it

Re: the visible of a stack

2008-09-24 Thread Thomas McGrath III
Mikey, In order for a stack to be other than visible you would have to set this, so why not set a flag that tells you before the stack is opened what it's state is? then call that state and reset based on that before you close the stack. -- in an open statement put the visible of stack "

Re: the visible of a stack

2008-09-24 Thread Eric Chatonet
Mickey, Fortunately and as Scott pointed it out, the visible status of a stack is completely reliable as soon as you have understood what Scott and me tried to tell you :-) I take the opportunity, and this is not the first time :-) to tell how it's important to dig in before maintaining tha

Re: the visible of a stack

2008-09-24 Thread Mikey
Scott, If a stack "x" is not visible on the screen, and I type put the visible of stack "x" I get true, even though the stack is obviously not visible. I originally wanted to get the visible of the stack, navigate to the stack to do something, then set the visible of the stack when I was done to

Re: the visible of a stack

2008-09-24 Thread Mikey
It's not that I want to make a stack visible or invisible. I'd like to prevent that property from changing when I'm done with a stack. So if I visit a stack, but that stack isn't visible when I get there, then I'd like it to remain invisible. Conversely, if it was visible, I'd like to have it re

Re: the visible of a stack

2008-09-24 Thread Scott Rossi
Recently, Mikey wrote: > I have a stack that isn't visible - at least not in a visual sense. > > However if I put the visible of the stack, I get true. > > If I toplevel the stack and set the visible to false, nothing seems to happen. > > So, aside from my obvious dementia, does this behavior m

Re: the visible of a stack

2008-09-24 Thread Eric Chatonet
Bonsoir Mickey, As far as I can tell, there is a way to make any object invisible when it's visible property is true: Letting apart that it can be off-screen (in this case, it is obvious) you just need to set its rect appropriately. For instance: set the rect of to 200,200,100,100 So you m

the visible of a stack

2008-09-24 Thread Mikey
Hmm. I have a stack that isn't visible - at least not in a visual sense. However if I put the visible of the stack, I get true. If I toplevel the stack and set the visible to false, nothing seems to happen. So, aside from my obvious dementia, does this behavior make any sense? Is there some wa