Re: Lock/Unlock Screen of another stack

2021-04-04 Thread Roger Guay via use-livecode
Hi Klaus, > On Apr 4, 2021, at 4:50 PM, Klaus major-k via use-livecode > wrote: > > Hi Roger, > >> Am 05.04.2021 um 00:56 schrieb Roger Guay via use-livecode >> : >> >> Hi all, >> >> I have a button on one stack that hides and shows controls of another stack. >> Is it possible to add Lock

Re: Lock/Unlock Screen of another stack

2021-04-04 Thread Klaus major-k via use-livecode
Hi Roger, > Am 05.04.2021 um 00:56 schrieb Roger Guay via use-livecode > : > > Hi all, > > I have a button on one stack that hides and shows controls of another stack. > Is it possible to add Lock screen for effect and Unlock screen with effect in > that button? Can’t seem to make it work….

Lock/Unlock Screen of another stack

2021-04-04 Thread Roger Guay via use-livecode
Hi all, I have a button on one stack that hides and shows controls of another stack. Is it possible to add Lock screen for effect and Unlock screen with effect in that button? Can’t seem to make it work…. Thx, Roger ___ use-livecode mailing list use

Re: Timing Hide/Show - Lock/Unlock Screen - w Visual Effects.

2016-02-05 Thread Sannyasin Brahmanathaswami
Nandri! (Thank you) Yes, this works now, I may let the second action be user/triggered… but it works. put the uNarrationText[1] of this card into fld "narrationPanel" show fld "narrationPanel" with visual effect dissolve very fast wait 1 second lock screen for visual effect put empty i

Re: Timing Hide/Show - Lock/Unlock Screen - w Visual Effects.

2016-02-05 Thread Scott Rossi
I believe you're missing: lock screen for visual effect Regards, Scott Rossi Creative Director Tactile Media UX/UI Design > On Feb 5, 2016, at 10:00 AM, Sannyasin Brahmanathaswami > wrote: > > This animation business is all new and I’m missing some key knowledge base > here. > > Can any c

Re: Timing Hide/Show - Lock/Unlock Screen - w Visual Effects.

2016-02-05 Thread dunbarx
the above commands, and reset the text at just the right moments... Craig Newman -Original Message- From: Sannyasin Brahmanathaswami To: How LiveCode Sent: Fri, Feb 5, 2016 1:01 pm Subject: Timing Hide/Show - Lock/Unlock Screen - w Visual Effects. This animation business is al

Timing Hide/Show - Lock/Unlock Screen - w Visual Effects.

2016-02-05 Thread Sannyasin Brahmanathaswami
This animation business is all new and I’m missing some key knowledge base here. Can any clarify LC’ underlying algorithm for running something like this? Goal: to have “narration” text show in a field, smoothly disappear, then a second narration text appear in the field without abruptly just

Re: lock/unlock screen

2012-09-24 Thread Dr. Hawkins
On Mon, Sep 24, 2012 at 9:38 AM, wrote: > This has been echoed by others, correctly. You cannot guarantee that your > screen will >be unlocked with that one-liner. Unless you get back to idle, multiple locks >are queued, >and the screen will remain locked until they are all purged. You two are

Re: lock/unlock screen

2012-09-24 Thread dunbarx
raig -Original Message- From: Bob Sneidar To: How to use LiveCode Sent: Mon, Sep 24, 2012 12:24 pm Subject: Re: lock/unlock screen Good idea. I myself have not encountered a situation where I need multiple handlers that lock the screen. Everything I do is database oriented anyway, so

Re: lock/unlock screen

2012-09-24 Thread Bob Sneidar
Good idea. I myself have not encountered a situation where I need multiple handlers that lock the screen. Everything I do is database oriented anyway, so there is inevitably lots of idle times. If I ever do need this your idea seems the most reasonable way to go. Bob On Sep 21, 2012, at 8:42

Re: lock/unlock screen

2012-09-23 Thread Richmond
On 09/23/2012 07:31 PM, Peter Haworth wrote: I moved my code to preOpenStack - I still see the change in location on the screen. It appears I will have to resort to some subterfuge like the one suggested by Scott, or opening the stack invisible initially to make this work. Try my suggestion

Re: lock/unlock screen

2012-09-23 Thread Peter Haworth
I moved my code to preOpenStack - I still see the change in location on the screen. It appears I will have to resort to some subterfuge like the one suggested by Scott, or opening the stack invisible initially to make this work. >From the dictionary: "The *preOpenCard* message is sent before the

Re: lock/unlock screen

2012-09-22 Thread Peter Haworth
Thanks to all for the explanations and suggestions. The common thread seems to be to use preOpenStack rather than preOpenCard so I'll move my code there and see what happens. Pete lcSQL Software On Sat, Sep 22, 2012 at 11:51 AM, Scott Rossi wrote: > FWIW, in most cases a

Re: lock/unlock screen

2012-09-22 Thread Scott Rossi
FWIW, in most cases a preOpenStack or preOpenCard handler in the card script of the first card should be enough to position/orient a stack. If you try to set stack properties like windowShape or shadow, those actions can cause the stack to become visible before positioning takes place because they

Re: lock/unlock screen

2012-09-22 Thread J. Landman Gay
On 9/22/12 12:36 PM, Peter Haworth wrote: My understanding of preOpenCard is that it happens before the stack is displayed so this behavior puzzles me. PreOpenCard happens after the stack window is drawn and before the card is drawn. PreOpenStack happens before the stack is displayed. "Loc

Re: lock/unlock screen

2012-09-22 Thread Richmond
On 09/22/2012 08:56 PM, Peter M. Brigham wrote: One of the advantages of using a splashstack, ie, a stub mainstack that opens the actual user interface, is that you can implement the positioning and appearance of your user interface stack before you open it. E.g.: in your mainstack, you set th

Re: lock/unlock screen

2012-09-22 Thread Peter M. Brigham
One of the advantages of using a splashstack, ie, a stub mainstack that opens the actual user interface, is that you can implement the positioning and appearance of your user interface stack before you open it. E.g.: in your mainstack, you set the rect of the interface stack, the visible control

Re: lock/unlock screen

2012-09-22 Thread Peter Haworth
Thanks Richmond, I'll give that a try. I'm also unsure as to whether lock screen has any effect in the preOpenxxx handlers since the screen isn't even displayed at that point. But I guess it can't do any harm. Pete lcSQL Software On Sat, Sep 22, 2012 at 10:41 AM, Richmon

Re: lock/unlock screen

2012-09-22 Thread Richmond
On 09/22/2012 08:36 PM, Peter Haworth wrote: Here's another nuance on lock screen, throwing in preOpenCard processing just for good measure! My preOpenCard code includes lock and unlock screen commands. While the screen is locked, I alter the stack's topLeft property, expecting that the user wou

Re: lock/unlock screen

2012-09-22 Thread Peter Haworth
Here's another nuance on lock screen, throwing in preOpenCard processing just for good measure! My preOpenCard code includes lock and unlock screen commands. While the screen is locked, I alter the stack's topLeft property, expecting that the user would see the stack in the location I set it to.

Re: lock/unlock screen

2012-09-22 Thread Richmond
21, 2012 11:43 pm Subject: Re: lock/unlock screen On Fri, Sep 21, 2012 at 5:47 AM, Bob Sneidar wrote: Face it Richmond. It's you and me against the world. ;-) If you can't sleep at night I haven't been sleeping very well recently, but, largely owing to my cat's tendenc

Re: lock/unlock screen

2012-09-22 Thread dunbarx
until the mouseClick put random(99) end repeat if the lockscreen = "true" then unlock screen answer the lockscreen end mouseup You get "true" Craig -Original Message- From: Kay C Lan To: How to use LiveCode Sent: Fri, Sep 21, 2012 11:43 pm Subject: Re: lock/unlock scre

Re: lock/unlock screen

2012-09-21 Thread Kay C Lan
On Fri, Sep 21, 2012 at 5:47 AM, Bob Sneidar wrote: > Face it Richmond. It's you and me against the world. ;-) If you can't sleep at night because you're worried about multiple lock screen, or keeping track of pairs, why not: if the lockScreen is false then lock screen If you only ever use th

Re: lock/unlock screen

2012-09-21 Thread Peter M. Brigham
You could always use a workaround, when you absolutely positively have to unlock the screen: on reallyUnlockScreen repeat until the lockscreen = false unlock screen end repeat end reallyUnlockScreen -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Sep

Re: lock/unlock screen

2012-09-20 Thread Richmond
>snip< 3. If you do feel that you simply must make sure the screen is unlocked, the method is three lines of code: repeat until the lockscreen is false unlock screen end repeat But I can't remember ever needing to do that. Have you ever run up against a problem with it? NEVER! I was actua

Re: lock/unlock screen

2012-09-20 Thread Mark Wieder
Bob Sneidar writes: > > Face it Richmond. It's you and me against the world. Uh oh. Look out, world. -- Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubsc

Re: lock/unlock screen

2012-09-20 Thread Bob Sneidar
Face it Richmond. It's you and me against the world. ;-) Bob On Sep 20, 2012, at 2:07 PM, J. Landman Gay wrote: > On 9/20/12 2:31 PM, Richmond wrote: >> >> Would things not be easier to understand if each subsequent lockscreen >> was signalled in some >> sort of way so one can keep track of al

Re: lock/unlock screen

2012-09-20 Thread J. Landman Gay
On 9/20/12 2:31 PM, Richmond wrote: Would things not be easier to understand if each subsequent lockscreen was signalled in some sort of way so one can keep track of all the nested lockscreens I think that would increase complexity and decrease functionality. As Thierry pointed out, scripts w

Re: lock/unlock screen

2012-09-20 Thread Richmond
SO . . . there is a 'political divide' over those who think that multiple lockscreens followed by multiple unlockings is a good thing, and those who think it is a bad thing. What to do ? Well, here's a thought . . . Would things not be easier to understand if each subsequent lockscreen was

Re: lock/unlock screen

2012-09-20 Thread Thierry Douez
2012/9/20 J. Landman Gay : > On 9/20/12 10:30 AM, Bob Sneidar wrote: >> >> I agree with Richmond. I cannot think of a case where I would want to >> lock a screen multiple times and then incrementally unlock the >> screen, knowing that the screen is still locked! I can think of >> examples where I w

Re: lock/unlock screen

2012-09-20 Thread J. Landman Gay
On 9/20/12 10:30 AM, Bob Sneidar wrote: I agree with Richmond. I cannot think of a case where I would want to lock a screen multiple times and then incrementally unlock the screen, knowing that the screen is still locked! I can think of examples where I would want to lock then unlock the screen w

Re: lock/unlock screen

2012-09-20 Thread Peter Haworth
The nested handler situation mentioned by Bob and Dr Hawkins are where the layered lock/unlock is useful. Pete lcSQL Software On Thu, Sep 20, 2012 at 8:30 AM, Bob Sneidar wrote: > I agree with Richmond. I cannot think of a case where I would want to lock > a screen multi

Re: lock/unlock screen

2012-09-20 Thread Dr. Hawkins
On Thu, Sep 20, 2012 at 8:30 AM, Bob Sneidar wrote: > I agree with Richmond. I cannot think of a case where I would want to lock a > screen multiple >times and then incrementally unlock the screen, knowing that the screen is >still locked! I have several; it's quite common in what I'm writing.

Re: lock/unlock screen

2012-09-20 Thread Bob Sneidar
I agree with Richmond. I cannot think of a case where I would want to lock a screen multiple times and then incrementally unlock the screen, knowing that the screen is still locked! I can think of examples where I would want to lock then unlock the screen while the script was still executing, bu

Re: lock/unlock screen

2012-09-20 Thread Mark Wieder
Richmond- Thursday, September 20, 2012, 1:29:32 AM, you wrote: > That 'multiple lockscreen' thing does seem illogical and/or daft, and it > might not be a bad thing if it were changed so that 'locked' meant > 'locked once' and was not ambiguous. It's actually quite useful as is. It means I can

Re: lock/unlock screen

2012-09-20 Thread Richmond
On 09/19/2012 09:16 PM, Bob Sneidar wrote: Okay I modified Richmond's experiment to include a send mouseup to button "Single Undo" at the end of the first buttons script, and the field does indeed remain hidden, so yes a series of screen locks do stack. Pardon me for the false info. I was wro

Re: lock/unlock screen

2012-09-19 Thread Peter Haworth
Hi Alex, I wish I could! The problem is that I'm setting the textshift and imagesource of a specific character in each line. I tried putting everything into a variable first but the textshift and imagesource properties aren't available in variables. I'm currently experimenting with putting html

Re: lock/unlock screen

2012-09-19 Thread Richmond
On 09/19/2012 09:16 PM, Bob Sneidar wrote: Okay I modified Richmond's experiment to include a send mouseup to button "Single Undo" at the end of the first buttons script, and the field does indeed remain hidden, so yes a series of screen locks do stack. Pardon me for the false info. Right, I

Re: lock/unlock screen

2012-09-19 Thread Alex Tweedly
No chance you can 'batch' the updates ? put fld "someField" into temp repeat with i = 1 to (many thousands) put someUpdate(i) after temp end repeat put temp into fld "someField" will be *so* much faster ... -- Alex. On 19/09/2012 19:57, Peter Haworth wrote: OK, I think this all hangs tog

Re: lock/unlock screen

2012-09-19 Thread Peter Haworth
OK, I think this all hangs together now. I guess the only thing to watch out for might be an unlock screen with no associated lock screen since it sounds like that would have the potential to unlock the screen too early. Not likely to happen though. I was hoping this discussion might solve a pro

Re: lock/unlock screen

2012-09-19 Thread Peter Haworth
Interesting Richmond, and different than what I'm seeing. Maybe the difference is that your locks are all in the same handler and mine are scattered across different ones? Pete lcSQL Software On Wed, Sep 19, 2012 at 10:52 AM, Richmond wrote: > Richmond had a genius momen

Re: lock/unlock screen

2012-09-19 Thread Bob Sneidar
Okay I modified Richmond's experiment to include a send mouseup to button "Single Undo" at the end of the first buttons script, and the field does indeed remain hidden, so yes a series of screen locks do stack. Pardon me for the false info. Bob On Sep 19, 2012, at 10:52 AM, Richmond wrote: >

Re: lock/unlock screen

2012-09-19 Thread Bob Sneidar
That won't work Richmond, unless the first button sends a mouseup to the second button. Remember, an idle message will unlock the screen in any event, so as soon as the first button's script finishes, the screen will unlock. Bob On Sep 19, 2012, at 10:52 AM, Richmond wrote: > Richmond had a

Re: lock/unlock screen

2012-09-19 Thread J. Landman Gay
On 9/19/12 12:58 PM, Peter Haworth wrote: I also notice that if you are in debug mode, the lock screen has no effect, that is the screen is updated each time a change to it is made even when it's locked. I think the docs mention that. Otherwise you couldn't see what's happening. -- Jacqueline

Re: lock/unlock screen

2012-09-19 Thread Bob Sneidar
Right, because you are actually executing each command as a single script when in debug mode, hence idle gets sent right after. Idle unlocks the screen. Also, it seems you and Richmond are getting different results. Not sure what is going on there. Bob On Sep 19, 2012, at 10:58 AM, Peter Hawo

Re: lock/unlock screen

2012-09-19 Thread J. Landman Gay
On 9/19/12 12:52 PM, Richmond wrote: Richmond had a genius moment :) I made a wee stack called "LOCKER" with two buttons; "Triple-Play" and "Single Undo" and a fld "fff" containing the text "UNLOCKED!" the script of btn "Triple-Play" goes like this: on mouseUp set the vis of fld "fff" to f

Re: lock/unlock screen

2012-09-19 Thread Peter Haworth
at > > > > > > > > > > Craig Newman > > > > > > > > > > -Original Message- > > From: Peter Haworth > > To: How to use LiveCode > > Sent: Wed, Sep 19, 2012 1:00 pm > > Subject: lock/unlock screen > > >

Re: lock/unlock screen

2012-09-19 Thread Richmond
Richmond had a genius moment :) I made a wee stack called "LOCKER" with two buttons; "Triple-Play" and "Single Undo" and a fld "fff" containing the text "UNLOCKED!" the script of btn "Triple-Play" goes like this: on mouseUp set the vis of fld "fff" to false set the lockscreen to true

Re: lock/unlock screen

2012-09-19 Thread Peter Haworth
; > > repeat until the lockScreen is "false" > > > > > > unlock screen > > end repeat > > > > > > > > > > Craig Newman > > > > > > > > > > -Original Message- > > From: Peter Haworth &g

Re: lock/unlock screen

2012-09-19 Thread Peter Haworth
> > > > You can always throw in: > > repeat until the lockScreen is "false" > > > unlock screen > end repeat > > > > > Craig Newman > > > > > -Original Message- > From: Peter Haworth > To: How to use LiveCode > Se

Re: lock/unlock screen

2012-09-19 Thread Bob Sneidar
en is "false" > > > unlock screen > end repeat > > > > > Craig Newman > > > > > -Original Message- > From: Peter Haworth > To: How to use LiveCode > Sent: Wed, Sep 19, 2012 1:00 pm > Subject: lock/unlock scree

Re: lock/unlock screen

2012-09-19 Thread dunbarx
Original Message- From: Peter Haworth To: How to use LiveCode Sent: Wed, Sep 19, 2012 1:00 pm Subject: lock/unlock screen Let's say I have a couple of function F1 and F2 that include lock and unlock screen commands. These handlers are called one after another from another function F3

lock/unlock screen

2012-09-19 Thread Peter Haworth
Let's say I have a couple of function F1 and F2 that include lock and unlock screen commands. These handlers are called one after another from another function F3 which does not have lock/unlock screen messages. I'm assuming that the screen would be unlocked at the end of F1 and F2, m