Re: Feedback: comparing content of two fields

2011-04-29 Thread J. Landman Gay

On 4/28/11 10:04 PM, Ronald Zellner wrote:


Had to remove the color change as you can't set that attribute- as Michael 
predicted.


Actually you can. Another thing that slows down a script is using a 
counter variable in a repeat loop. Sometimes you have to, but if 
possible use the "repeat for each" structure, which is much faster.


I didn't actually test this so you may need to adjust it, but this 
handler only hits the field to twice and avoids a counter. Using 
htmlText allows you to color the lines without accessing the field 
repeatedly. It should be fast enough that you don't need to have any 
visual progress indicators; using "repeat for each" can typically 
process thousands of lines in a few milliseconds.


on mouseUp
   put fld "All" into allEntries
   put fld "Rural" into ruralEntries
   set the itemDelimiter to tab
   repeat for each line tLine in allEntries
  put tLine into tCurLine
  if cr & (item 1 of tCurLine) & tab is in cr & ruralEntries then
 put "Rural" into item 4 of tCurLine
 put "" &  tCurLine & "" 
after tNewList

  else
 put "-" into item 4 of tCurLine
 put "" & tCurLine & "" after tNewList
  end if
   end repeat
   set the htmlText of fld "All" to tNewList
end mouseUp
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


select after the selectedText

2011-04-29 Thread Richmond
So, here I am with a large textField, and as I merrily type into it new 
characters keep getting

added to the end of the string (as one would expect):

Now, this is a textField being filled up with unicode (double-byte) 
chars, and to make sure the

next chars gets placed in the correct place my insertion routine ends with

select after the selectedText

HOWEVER, when my line of text gets near to the edge of my textField I 
tend to hit the RETURN

or ENTER button on my keyboard and start a new line . . .

after which things go "funny", and the  select after the selectedText 
keeps pushing my

text insertion point back to the end of line one of my text.

Obviously "this just won't do" . . . .

Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: RunRev Live video archives

2011-04-29 Thread Pierre Sahores
Sarah,

If you use a mac, just use Quicktime X to "screencast" the simcasts along you 
are asleep :-)

Kind Regards,

Pierre

Le 29 avr. 2011 à 01:12, Sarah Reichelt a écrit :

> Hi All,
> 
> I have a subscription to the RunRev Live simulcast, but as the
> presentations mostly take place when I am asleep, I was hoping to
> watch the archived videos.
> I did watch Kevin's keynote and I see the other day 0 sessions are
> available, but are the later sessions going to be archived too.
> 
> The RunRev people are probably too busy to answer this right now, but
> hopefully they will see that at least one person is eagerly awaiting
> the archives.
> 
> Cheers,
> Sarah
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 

--
Pierre Sahores
mobile : (33) 6 03 95 77 70

www.wrds.com
www.sahores-conseil.com





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: RunRev Live video archives

2011-04-29 Thread BNig
Hi Sarah,

there are quite a number of the recorded sessions in the "recorded" tab.

Kind regards

Bernd

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/RunRev-Live-video-archives-tp3482514p3483421.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


use of colors of an image?

2011-04-29 Thread Tiemo Hollmann TB
Hi,

I wonder what you can use the colors and patterns of an image for? I havn't
used them before and when I try to set one of the eight colors, either of an
empty image or an actual image, nothing is seen. I was hoping I can use them
as a kind of hilite color, or as a kind of a blend level of the image, but
so far I must miss something to use them.

 

What I would like to have is a "hilite blend level" as a kind of "hilite
icon" or "hilite color", with which I could show another state of the image,
when clicked. The only other way I see so far is to work with two different
images, which show the different state and scripting both images to switch,
or using a third "overlay graphic" with ink=noop (thanks Klaus!) to control
the switch of the images, when clicked. But perhaps there is a way to work
with only one image?

 

Thanks for any hint and have a nice WE

Tiemo

 

 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: select after the selectedText

2011-04-29 Thread dunbarx
Richmond.


Would changing to "select after the text" make this better?


Craig





-Original Message-
From: Richmond 
To: How to use LiveCode 
Sent: Fri, Apr 29, 2011 4:51 am
Subject: select after the selectedText


So, here I am with a large textField, and as I merrily type into it new 
characters keep getting 
added to the end of the string (as one would expect): 
 
Now, this is a textField being filled up with unicode (double-byte) chars, and 
to make sure the 
next chars gets placed in the correct place my insertion routine ends with 
 
select after the selectedText 
 
HOWEVER, when my line of text gets near to the edge of my textField I tend to 
hit the RETURN 
or ENTER button on my keyboard and start a new line . . . 
 
after which things go "funny", and the  select after the selectedText keeps 
pushing my 
text insertion point back to the end of line one of my text. 
 
Obviously "this just won't do" . . . . 
 
Richmond. 
___ 
use-livecode mailing list 
use-livecode@lists.runrev.com 
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences: 
http://lists.runrev.com/mailman/listinfo/use-livecode 

 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Live LiveCode Event #21

2011-04-29 Thread Nonsanity
If you still don't have anyone else offer, I think I can now do the talk.
The Saturday plans are later in the evening (5pm EDT) so the usual start
time for the LLCCE (2pm EDT) should be fine.

 ~ Chris Innanen
 ~ Nonsanity


On Thu, Apr 28, 2011 at 4:05 PM, Mark Schonewille <
m.schonewi...@economy-x-talk.com> wrote:

> Hi everybody,
>
> We still have no presenters for this Saturday. If you are a regular
> participant of the LLCCE, please consider doing a presentation yourself this
> time and contact me by e-mail or through this web form http://qery.us/du .
> More information can be found at http://livecode.tv .
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> New: Download the Installer Maker Plugin 1.6 for LiveCode here
> http://qery.us/ce
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Feedback: comparing content of two fields

2011-04-29 Thread Michael Kann
One more gem from Jacqueline.

--- On Fri, 4/29/11, J. Landman Gay  wrote:

From: J. Landman Gay 
Subject: Re: Feedback: comparing content of two fields
To: "How to use LiveCode" 
Date: Friday, April 29, 2011, 2:45 AM

On 4/28/11 10:04 PM, Ronald Zellner wrote:

> Had to remove the color change as you can't set that attribute- as Michael 
> predicted.

Actually you can. Another thing that slows down a script is using a counter 
variable in a repeat loop. Sometimes you have to, but if possible use the 
"repeat for each" structure, which is much faster.

I didn't actually test this so you may need to adjust it, but this handler only 
hits the field to twice and avoids a counter. Using htmlText allows you to 
color the lines without accessing the field repeatedly. It should be fast 
enough that you don't need to have any visual progress indicators; using 
"repeat for each" can typically process thousands of lines in a few 
milliseconds.

on mouseUp
   put fld "All" into allEntries
   put fld "Rural" into ruralEntries
   set the itemDelimiter to tab
   repeat for each line tLine in allEntries
      put tLine into tCurLine
      if cr & (item 1 of tCurLine) & tab is in cr & ruralEntries then
         put "Rural" into item 4 of tCurLine
         put "" &  tCurLine & "" after 
tNewList
      else
         put "-" into item 4 of tCurLine
         put "" & tCurLine & "" after tNewList
      end if
   end repeat
   set the htmlText of fld "All" to tNewList
end mouseUp
-- Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Live LiveCode Event #21

2011-04-29 Thread Mark Schonewille
Thanks, Chris! I'll reply off-list.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 29 apr 2011, at 16:28, Nonsanity wrote:

> If you still don't have anyone else offer, I think I can now do the talk.
> The Saturday plans are later in the evening (5pm EDT) so the usual start
> time for the LLCCE (2pm EDT) should be fine.
> 
> ~ Chris Innanen
> ~ Nonsanity


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: select after the selectedText

2011-04-29 Thread Nonsanity
select after char -1 of fld 1

Also works.

 ~ Chris Innanen
 ~ Nonsanity


On Fri, Apr 29, 2011 at 8:37 AM,  wrote:

> Richmond.
>
>
> Would changing to "select after the text" make this better?
>
>
> Craig
>
>
>
>
>
> -Original Message-
> From: Richmond 
> To: How to use LiveCode 
> Sent: Fri, Apr 29, 2011 4:51 am
> Subject: select after the selectedText
>
>
> So, here I am with a large textField, and as I merrily type into it new
> characters keep getting
> added to the end of the string (as one would expect):
>
> Now, this is a textField being filled up with unicode (double-byte) chars,
> and to make sure the
> next chars gets placed in the correct place my insertion routine ends with
>
> select after the selectedText
>
> HOWEVER, when my line of text gets near to the edge of my textField I tend
> to hit the RETURN
> or ENTER button on my keyboard and start a new line . . .
>
> after which things go "funny", and the  select after the selectedText keeps
> pushing my
> text insertion point back to the end of line one of my text.
>
> Obviously "this just won't do" . . . .
>
> Richmond.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Live LiveCode Event #21

2011-04-29 Thread Colin Holgate
I know I talked last Saturday, but if you don't get anyone else I could go over 
the code I did for the jigsaw puzzle app. I won't hand this stack around too 
much, but I'm happy to show how every aspect of how it works!




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Live LiveCode Event #21

2011-04-29 Thread Mark Schonewille
Thanks Colin. I'll write off-list.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 29 apr 2011, at 17:04, Colin Holgate wrote:

> I know I talked last Saturday, but if you don't get anyone else I could go 
> over the code I did for the jigsaw puzzle app. I won't hand this stack around 
> too much, but I'm happy to show how every aspect of how it works!


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to sync multiple functions / routines in parallel

2011-04-29 Thread Nonsanity
So you have data in memory that is constantly being updated, and need to
save the data to several databases periodically. But when you save to each
database in sequence, the data could be updated in between them, causing the
databases to be out-of-sync.

So what you could do is snapshot the data in memory by making a copy of it,
then use the static copy to write to each database in turn. This keeps them
safe from the continuous updates.


 ~ Chris Innanen
 ~ Nonsanity


On Sat, Apr 23, 2011 at 11:12 AM, Glen Bojsza  wrote:

> Hello,
>
> I have a database which I have created several queries for doing archival
> reports.
>
> Now I would like to have all the queries update the reports automatically
> every 10 seconds.
>
> From what I determined I will need to keep the database connections open
> while the application is running but I cannot do sequential queuing of the
> queries because by the time the last query runs it will be out of sync with
> the earliest query.
>
> So, what is the best method to have all queries update every 10 seconds in
> parallel? Each query will have it's own database connection that is open.
>
> For anyone not doing databases this could be a similar problem in nature
> where one needs to have multiple events for gaming occur in parallel... I
> have not tried programming any games or anything else surrounding this type
> of parallism.
>
> thanks,
>
> Glen
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: How to sync multiple functions / routines in parallel

2011-04-29 Thread Bob Sneidar
Lock all the databases first, then update them. I'm pretty sure all SQL 
databases have the ability to lock tables. In mySQL the sequel is:

LOCK TABLES
tbl_name [[AS] alias] lock_type
[, 
tbl_name [[AS] alias] lock_type
] ...

lock_type:
READ [LOCAL]
  | [LOW_PRIORITY] WRITE


UNLOCK TABLES

Now if anything goes wrong in between that causes an execution failure then 
that is obviously very bad. So you want to put your code  that updates the 
databases in a try/catch control structure, and in the catch, before any 
interaction with the user, unlock tables. I'm pretty sure if it's a disconnect 
problem, the SQL database will terminate the connection and drop all the locks 
you set automatically. 

Bob


On Apr 29, 2011, at 9:24 AM, Nonsanity wrote:

> So you have data in memory that is constantly being updated, and need to
> save the data to several databases periodically. But when you save to each
> database in sequence, the data could be updated in between them, causing the
> databases to be out-of-sync.
> 
> So what you could do is snapshot the data in memory by making a copy of it,
> then use the static copy to write to each database in turn. This keeps them
> safe from the continuous updates.
> 
> 
> ~ Chris Innanen
> ~ Nonsanity
> 
> 
> On Sat, Apr 23, 2011 at 11:12 AM, Glen Bojsza  wrote:
> 
>> Hello,
>> 
>> I have a database which I have created several queries for doing archival
>> reports.
>> 
>> Now I would like to have all the queries update the reports automatically
>> every 10 seconds.
>> 
>> From what I determined I will need to keep the database connections open
>> while the application is running but I cannot do sequential queuing of the
>> queries because by the time the last query runs it will be out of sync with
>> the earliest query.
>> 
>> So, what is the best method to have all queries update every 10 seconds in
>> parallel? Each query will have it's own database connection that is open.
>> 
>> For anyone not doing databases this could be a similar problem in nature
>> where one needs to have multiple events for gaming occur in parallel... I
>> have not tried programming any games or anything else surrounding this type
>> of parallism.
>> 
>> thanks,
>> 
>> Glen
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Hullooo David Johnson?

2011-04-29 Thread Bob Sneidar
I am looking for a way to contact Dave Johnson about revShare, but I cannot 
find him in revOnline anywhere. Anyone have an email address for him?

Bob
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


ANN: Live LiveCode Code Event #21

2011-04-29 Thread Mark Schonewille
Dear folks,

It is a big pleasure to announce the 21st edition of the Live LiveCode Code 
Event with two interesting presentations. This weekend's event is scheduled for 
30 April 2011 at 19:00h GMT (Sat. 22:00 in Moscow, Sat. 20:00 in Paris, Sat. 
14:00 in New York, Sat. 11:00 in Los Angeles, Sun. 04:00 in Sydney, Sun. 03:00 
in Tokyo, Sun. 2:00 in Beijing; check your local time here http://qery.us/oy).

Thierry will demonstrate one of his latest LiveCode externals called SunnYmidi. 
SunnYmidi is a fast and easy-to-use music midi player with absolutely no 
latency.

Chris is currently working on a project for iOS and will show how you can use 
scripts that help you make your projects, doing tasks that aren't built into 
the LiveCode IDE by default.

eHUG, http://www.ehug.info , will be raffling off the e-book "Take Control of 
Running Windows on a Mac" courtesy of TidBITS, http://www.tidbits.com/ .

During the event, Economy-x-Talk offers a 25% discount on their Installer 
Maker, which can be downloaded at http://installermaker.economy-x-talk.com . A 
discounted license can be obtained at http://livetalk.us/im .

Make sure to use ChatRev during the happening, otherwise you won't know where 
to watch the streams, which will be announced in ChatRev. Download ChatRev here:
http://bjoernke.com?target=chatrev
or enter in the message box:
go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev";

See also the following page for the same information (soon):
http://livecode.tv

Kind regards,

Mark
--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: use of colors of an image?

2011-04-29 Thread Thunder


Maybe colorOverlay will do what you want...

More info :
http://runtime-revolution.278305.n4.nabble.com/A-Quick-Flash-td346550.html
http://runtime-revolution.278305.n4.nabble.com/A-Quick-Flash-td346550.html 


http://runrev.com/newsletter/september/issue78/newsletter2.php
http://runrev.com/newsletter/september/issue78/newsletter2.php 


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/use-of-colors-of-an-image-tp3483532p3484252.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Hullooo David Johnson?

2011-04-29 Thread Thunder
Hi

Maybe Chipp Walters can help you..

Have a look at this link...
http://runtime-revolution.278305.n4.nabble.com/Whiteboard-help-td292047.html#a292049
http://runtime-revolution.278305.n4.nabble.com/Whiteboard-help-td292047.html#a292049
 



"David Johnson and I have been working on a library called 'RevShare'
which should do whiteboard as well as chat and different types of
asynchronous sharing. I was supposed to have the beta out this year, but
due to illness, it will probably be delayed until mid January. Fire me
an email offlist if you're interested.

best,

Chipp" 







--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Hullooo-David-Johnson-tp3484138p3484282.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Hullooo David Johnson?

2011-04-29 Thread Bob Sneidar
Yes, it was because I got an email from Chipp telling my that He and David 
Johnson had worked on this together, but he offered no contact information for 
David, hence this post. 

Bob


On Apr 29, 2011, at 11:18 AM, Thunder wrote:

> Hi
> 
> Maybe Chipp Walters can help you..
> 
> Have a look at this link...
> http://runtime-revolution.278305.n4.nabble.com/Whiteboard-help-td292047.html#a292049
> http://runtime-revolution.278305.n4.nabble.com/Whiteboard-help-td292047.html#a292049
>  
> 
> 
> 
> "David Johnson and I have been working on a library called 'RevShare'
> which should do whiteboard as well as chat and different types of
> asynchronous sharing. I was supposed to have the beta out this year, but
> due to illness, it will probably be delayed until mid January. Fire me
> an email offlist if you're interested.
> 
> best,
> 
> Chipp" 
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Hullooo-David-Johnson-tp3484138p3484282.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Launch and the working directory

2011-04-29 Thread Jeff Massung
I'd like to somehow set the working directory that I launch an application
from. Anyone know how I can do that?

Thanks!

Jeff M.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Launch and the working directory

2011-04-29 Thread Scott Rossi
Recently, Jeff Massung wrote:

> I'd like to somehow set the working directory that I launch an application
> from. Anyone know how I can do that?

If I understand what you're asking:

  set the directory to "/Volumes/myapps/mystuff"

You can also use "defaultFolder" instead of "directory".

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Alternatives to "answer"

2011-04-29 Thread tbodine
Hi LiveCoders.

I'm working on my first real LC project and now I've dug myself into my
first LC hole. Hoping for some advice...

I want to present user with a dialog box that is more attractive than the
standard "answer" command. (Bigger type, transparent, icon buttons). I tried
making a separate card in a separate stack that I could open over my
mainStack card, but that is creating lots of errors now with "can't find
card" messages when I use:

call processingHandler of card "Main" of stack "Top". 

Basically, I want a semitransparent dialog box with two buttons to open over
a mainStack card. The user's button choice needs to be returned to the
mainStack script and the dlog Card closed.

Any suggestions on how to do this?

Thanks!
Tom Bodine


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Alternatives-to-answer-tp3484779p3484779.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Alternatives to "answer"

2011-04-29 Thread Bob Sneidar
Use the dialogData. You can set it to whatever you want in the "dialog" stack, 
and then retrieve it in your main stack. The dialogData is a global property 
you can set and get throughout the IDE or runtime environment. 

Also make your stack modal, meaning it must be dismissed before the user can 
click anywhere else. 

Don't call a procedure in an unopened stack (unless it's script has been 
inserted into the frontScript or backScript, and that still doesn't open the 
stack to display the card. You still have to GO to the stack to do that.) 

That no workie nohow. Just go to the stack and have the openStack handler of 
your "dialog" stack call whatever procedure you have, or just have the 
openStack handler BE the procedure. 

Bob


On Apr 29, 2011, at 3:37 PM, tbodine wrote:

> Hi LiveCoders.
> 
> I'm working on my first real LC project and now I've dug myself into my
> first LC hole. Hoping for some advice...
> 
> I want to present user with a dialog box that is more attractive than the
> standard "answer" command. (Bigger type, transparent, icon buttons). I tried
> making a separate card in a separate stack that I could open over my
> mainStack card, but that is creating lots of errors now with "can't find
> card" messages when I use:
> 
> call processingHandler of card "Main" of stack "Top". 
> 
> Basically, I want a semitransparent dialog box with two buttons to open over
> a mainStack card. The user's button choice needs to be returned to the
> mainStack script and the dlog Card closed.
> 
> Any suggestions on how to do this?
> 
> Thanks!
> Tom Bodine
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Alternatives-to-answer-tp3484779p3484779.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Alternatives to "answer"

2011-04-29 Thread Pete
What Bob said.

In addition to using the dialogData to return the user's choice to you, you
can also use it to pass stuff into the dialog box, like maybe the text you
want to display to the user, the title, labels for the buttons, etc.  Use
the preOpenCard handler of the dialog stack to configure the dialog window
from the information you pass in via the dialogData

Pete
Molly's Revenge 




On Fri, Apr 29, 2011 at 3:51 PM, Bob Sneidar  wrote:

> Use the dialogData. You can set it to whatever you want in the "dialog"
> stack, and then retrieve it in your main stack. The dialogData is a global
> property you can set and get throughout the IDE or runtime environment.
>
> Also make your stack modal, meaning it must be dismissed before the user
> can click anywhere else.
>
> Don't call a procedure in an unopened stack (unless it's script has been
> inserted into the frontScript or backScript, and that still doesn't open the
> stack to display the card. You still have to GO to the stack to do that.)
>
> That no workie nohow. Just go to the stack and have the openStack handler
> of your "dialog" stack call whatever procedure you have, or just have the
> openStack handler BE the procedure.
>
> Bob
>
>
> On Apr 29, 2011, at 3:37 PM, tbodine wrote:
>
> > Hi LiveCoders.
> >
> > I'm working on my first real LC project and now I've dug myself into my
> > first LC hole. Hoping for some advice...
> >
> > I want to present user with a dialog box that is more attractive than the
> > standard "answer" command. (Bigger type, transparent, icon buttons). I
> tried
> > making a separate card in a separate stack that I could open over my
> > mainStack card, but that is creating lots of errors now with "can't find
> > card" messages when I use:
> >
> > call processingHandler of card "Main" of stack "Top".
> >
> > Basically, I want a semitransparent dialog box with two buttons to open
> over
> > a mainStack card. The user's button choice needs to be returned to the
> > mainStack script and the dlog Card closed.
> >
> > Any suggestions on how to do this?
> >
> > Thanks!
> > Tom Bodine
> >
> >
> > --
> > View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/Alternatives-to-answer-tp3484779p3484779.html
> > Sent from the Revolution - User mailing list archive at Nabble.com.
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Alternatives to "answer"

2011-04-29 Thread Richmond

On 04/30/11 01:37, tbodine wrote:

Hi LiveCoders.

I'm working on my first real LC project and now I've dug myself into my
first LC hole. Hoping for some advice...

I want to present user with a dialog box that is more attractive than the
standard "answer" command. (Bigger type, transparent, icon buttons). I tried
making a separate card in a separate stack that I could open over my
mainStack card, but that is creating lots of errors now with "can't find
card" messages when I use:

call processingHandler of card "Main" of stack "Top".

Basically, I want a semitransparent dialog box with two buttons to open over
a mainStack card. The user's button choice needs to be returned to the
mainStack script and the dlog Card closed.

Any suggestions on how to do this?

I tend to use  a semi-transparent image, either made in Livecode and 
exported as a snapshot as a PNG and then reimported, or with GIMP; then 
another couple of faux buttons (i.e. images) for "Yes" and "No";
just make sure that your 'answer' images are in the top layers of the 
card so they don't appear peeping out from behind whatever controls you 
have for functionality and/oe aesthetics on the card.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode