From Minimize to Maximize the Lasagna with LC (='.'=) [SOLVED]

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Klaus
Posts: 11313
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: From Minimize to Maximize the Lasagna with LC (='.'=) [SOLVED]

Post by Klaus » Fri May 04, 2018 6:35 pm

We are all members of the "silly party":
https://www.youtube.com/watch?v=k4khxeru5hs :D

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 3810
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: From Minimize to Maximize the Lasagna with LC (='.'=) [SOLVED]

Post by richmond62 » Fri May 04, 2018 6:58 pm

just about enough time to boil an egg
Well If I used my handler that quickly I'm sure my eggs would get boiled: and, of course the
handler's blocking: I don't know anyone who can multi-task while they are "boiling their eggs".

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 3810
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: From Minimize to Maximize the Lasagna with LC (='.'=) [SOLVED]

Post by richmond62 » Fri May 04, 2018 7:28 pm

We return you now to your normal discussion
That's odd, I didn't notice anything normal round here.

And, re blocking handlers: I don't know what anyone expected from
a quick-n-dirty stack dreamt up in about 10 minutes.

Try this:

Code: Select all

wait SEX secs without waiting
and wait for it to come . . . err . . . back.

Certainly does NOT work.
_______________________

Or, as the first programmer said to the second programmer at a certain point in the evening:

"Let's get object-based."


_______________________

At the risk of sounding sensible (!): how can one prevent a wait statement from being a blocker?

Klaus
Posts: 11313
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: From Minimize to Maximize the Lasagna with LC (='.'=) [SOLVED]

Post by Klaus » Fri May 04, 2018 7:41 pm

richmond62 wrote:
Fri May 04, 2018 7:28 pm
At the risk of sounding sensible (!): how can one prevent a wait statement from being a blocker?
Just avoid it! :-D

Code: Select all

on mouseUp
   ask "Time in minutes?"
   put it into MINZ
   put (MINZ * 60) into SEX
   set the width of stack "COOKING" to 2
   set the height of stack "COOKING" to 2
   set the loc of stack "COOKING" to -10,-10
   send "the_eggs" to me in SEX secs
end mouseUp

command the_eggs
   set the width of stack "COOKING" to 1024
   set the height of stack "COOKING" to 780
   set the loc of stack "COOKING" to the screenLoc
end the_eggs

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 3810
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: From Minimize to Maximize the Lasagna with LC (='.'=) [SOLVED]

Post by richmond62 » Fri May 04, 2018 8:07 pm

Just avoid it!
Thanks, Klaus. :D

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5154
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: From Minimize to Maximize the Lasagna with LC (='.'=) [SOLVED]

Post by jacque » Fri May 04, 2018 8:45 pm

At the risk of sounding sensible (!):
What, and ruin your record? :D
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

bogs
Posts: 3995
Joined: Sat Feb 25, 2017 10:45 pm

Re: From Minimize to Maximize the Lasagna with LC (='.'=) [SOLVED]

Post by bogs » Fri May 04, 2018 9:34 pm

Mariasole wrote:
Fri May 04, 2018 3:20 pm
It will certainly be some nasty concept! :wink:
In fact, Richmond has also included "SEX" in its code. :lol:
It does indeed sound like it is a recipe for a 'spicy meatball'....erm, egg...yah, thats it, egg... :wink:
jacque wrote:
Fri May 04, 2018 6:07 pm
Sorry to interrupt the egg discussion, but I wouldn't use Richmond's handler. The "wait" command is blocking and will prevent any other use of LC during that time. And in some cases it will also block all background OS activity too.
That is an eggcellent point Jacque :mrgreen:
richmond62 wrote:
Fri May 04, 2018 6:58 pm
I don't know anyone who can multi-task while they are "boiling their eggs".
In other words, better to 'boil your eggs' than to 'boil over' eh? And what ever you do, don't get a boil on your eggs :P

I really enjoyed the sensibility in this thread, invigorating!
Image

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”