test 3

2011-11-04 Thread Heather Nagey
Is this the email you are looking for? I really hope so, the force is  
weak...


Trust the Force...

Heather

Heather Nagey
Customer Services Manager
http://www.runrev.com/
LiveCode - Unleash Your Killer App


___
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-livecode Digest, Vol 98, Issue 4

2011-11-04 Thread Michael Kristensen
Hi Mark

Very nice to see your additions.

One comment on the DPI

If you want a ruler that match your printer you should use 72.
Also if you fx want to calculate a perimeter or area of a square you should use 
72.

At least on a Mac

To have the ruler appear lifelike I use 72/2.54 * 1.52 on an iMac 27

I have experimentet in a drawing app and found 152% to be lifelike on the screen
So in my case at 152% I see exactly what comes out of the printer.

Michael


Den 03/11/2011 kl. 18.00 skrev use-livecode-requ...@lists.runrev.com:

 
 Hi Michael,
 
 I added to your very cool script a slight bit to make the cm ruler true on 
 any monitor.  Users will have to adjust the three variables at the top to 
 represent their monitors accurately.
 
 on mouseUp
  put 1920 into tMonitorWidth
  put 1200 into tMonitorHeight
  put 24 into tMonitorDiag
 
  put sqrt((tMonitorWidth * tMonitorWidth) + (tMonitorHeight * 
 tMonitorHeight)) into tDiagRes
  put round(tDiagRes/tMonitorDiag,3) into tDPI
  put tDPI /2.54 into Q


___
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


Leonardo Bezier. How to bring your own Bezier in

2011-11-04 Thread Michael Kristensen
How to bring your own Bezier drawing in!

As far as I know the drawing app Canvas is the only program that lets you 
export the Bezier Control Points of a Bezier as a textlist.

Mac Trail: http://www.macupdate.com/app/mac/1924/canvas
Not working on OSX 10.7

PC Trail: http://www.acdsee.com/en/products/canvas-12

Open the Canvas Trail ( I have nothing to do with that company)

Use the pentool to draw your Bezier.

Make sure you are using pixel as your Unit

When you have finished your drawing go to:

MENU: Object / Object Path Editor / PopupMenu / Copy

Now you have all the Bezier Control Points in memory


Use this script to parse the data in memory in Livecode

on ClipToBezier
   put the clipBoardData[text] into xxx
   
   replace , with . in xxx
   
   set the itemDel to tab
   
   repeat with i = 1 to number of lines of xxx
  put trunc(item 1 of line i of xxx) into item 1 of line i of xxx
  put trunc(item 2 of line i of xxx) into item 2 of line i of xxx
   end repeat

   replace tab with , in xxx
   
   put xxx
end ClipToBezier


Now you have a pointList that LiveCode can work with.

You can then replace the points in Custom Prop LeoPoints with your own.

Michael
___
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


test: mail-not-getting-through

2011-11-04 Thread ddas



___
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] LiveCode.tv event #42

2011-11-04 Thread Björnke von Gierke
(resent, didn't arrive yesterday night)

This Saturday, Mark will present his Installer Maker, because he just released 
a fresh beta version. Join the event and get a big discount on this invaluable 
tool.

More info about Installer Maker:
http://www3.economy-x-talk.com/file.php?node=installer-maker

Have your own tool? Present it during the event:
http://livecode.tv/participate/

Join ChatRev to watch live at 20:00 CET on Saturday, 5th November. Download a 
standalone from
http://bjoernke.com/chatrev/ 
or enter in the message box:
go stack URL “http://bjoernke.com/chatrev/chatrev1.3b3.rev”

BerlinSat 20:00
New YorkSat 15:00
Los AngelesSat 12:00
SydneySun 06:00
Hong KongSun 03:00


See you then :)
Björnke


-- 
Watch live presentations every Saturday:
http://livecode.tv

Use an alternative Dictionary viewer:
http://bjoernke.com/bvgdocu/

Chat with other RunRev developers:
http://bjoernke.com/chatrev/

___
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


Access contacts on iOS?

2011-11-04 Thread Ben Rubinstein
I can't see any reference to this in the documentation - but that includes a 
reference to the fact that it isn't implemented.


(There is a keyboard type named contact, identified as the phone contact 
pad keyboard - I couldn't see anything special about it.)


Does anyone know if there's any way to access the Contacts on iOS?

Many thanks,

Ben

___
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: text size and HTMLtext

2011-11-04 Thread Devin Asay
Hi 吉野 孝,

You will have to set the text size of the text chunks inside the field, rather 
than the field itself. It can be a little tricky.

You can try: set the textSize of line 1 of fld ja to nn

Or you can try modifying the htmlText of the field:

replace size=  quote  nn in fld ja with size=  quote  xx

You have to experiment a little bit, but you can make it work. I did it a 
couple of years ago with a project that required Chinese text.

Hope this helps.

Devin


On Nov 3, 2011, at 1:51 AM, 吉野 孝 wrote:

 Hi,
 
 I have a question about text size and HTMLtext. 
 
 I want to use Japanese text in my LiveCode stacks.
 I can input Japanese text to a field by only using HTMLtext.
 
 But, I don't  change text size of Japanese font size.
 English font can change.
 
 Here is my sample script.
 
 on mouseUp
  repeat with i=10 to 48
 set the textsize of fld ja to i
 set the textsize of fld en to i
 wait 10 ticks
 put i into msg
  end repeat
 end mouseUp
 
 I need your help.
 
 _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ 
 Takashi Yoshino 
 http://www.wakayama-u.ac.jp/~yoshino/lab/
 Tel: +81-73-457-8441
 
 
 ___
 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University



___
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

[OT] Excessive Wireless Traffic from iPhone running iOS5

2011-11-04 Thread Pete
A couple of weeks ago, I noticed an occasional  huge slowdown in internet
access from home.  Whenever this occurred, it was obvious from the lights
on my wireless router that a huge amount of wireless traffic was happening.

In true old-fashioned trouble shooting mode, I tried to figure out what
might have changed in any computer setups in my home.  The only thing that
I could come up with was that my wife upgraded her iPhone to ios5 round
about the time this started happening.

From the circumstances, I believe this is happening when the iPhone is
syncing wirelessly with iTunes on my wife's Mac laptop.  That only happens
over WiFi and when the phone is charging, both of which are the case when
this wireless traffic problem occurs.  I verified this by switching off
WiFi on the iuPhone last time this happened and sure enough, the wireless
traffic stopped.

Have any of you iPhone users experienced anything similar to this?
 Obviously there has to be WiFi traffic for the iPhone to sync, but there
isn't that much data on my wife's iPhone so I'm not understanding the
extreme wireless activity.

Meantime my Android phone has been wireless syncing perfectly for
months.

Pete
Molly's Revenge http://www.mollysrevenge.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: Automatic object resizing on card changes

2011-11-04 Thread Björnke von Gierke
on opencard
   revUpdateGeometry
end opencard


Note: it is generally saver to write your own resize handlers. The geometry 
manger will sooner or later mess up, and strew your objects into random 
locations (negative or huge numbers, offscreen, huge mess!). I suggest to 
instead write your own resize code. That is a bit more upfront, but at least 
you know what goes wrong when it doesn't look as it should. For example:

--in the card script
on openCard
  resizeStack the width of this card, the height of this card
end openCard

--resizeStack is a built in handler
--it also happens when the user uses the OS-given resize capabilities of a 
window
on resizeStack theWidth theHeight
  set the rect of field example to 0,64,theWidth,theHeight --fills whole 
card, leaves space for controls at top
  set the right of button example to (theWidth - 16) -- right align a button
end resizeStack

On 3 Nov 2011, at 18:46, John Brozycki wrote:

 Hello,
 
 Given a resizable stack with, say, two cards that both have objects that have 
 their geometry set to scale on resize (like a text field) what is the best 
 way to get objects on card 2 to automatically resize when card one is resized 
 and then a button is selected to go to card 2?  It doesn't do this 
 automatically- you have to resize the second card.  Make the second card much 
 larger than the first was, and when you go back the objects on the first card 
 are all off.  With each card, you have to manually resize for the objects to 
 adjust properly.  Shouldn't this happen automatically when you configure the 
 geometry settings?  I've tried using revWChangeWindowSize on my button to the 
 next card, but it doesn't appear to do anything for object sizing.  Sorry if 
 this is a basic question, but I can't find how to do this.
 
 Much thanks,
 John
 
 
 ___
 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


-- 
Watch live presentations every Saturday:
http://livecode.tv

Use an alternative Dictionary viewer:
http://bjoernke.com/bvgdocu/

Chat with other RunRev developers:
http://bjoernke.com/chatrev/


___
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: Automatic object resizing on card changes

2011-11-04 Thread Mark Schonewille
Hi John,

This really depends on the situation. Here's a very simple example:

on resizeStack
  put the rect if this cd into myRect
  add 16 to item 1 of myRect
  add 16 to item 2 of myRect
  subtract 16 from item 3 of myRect
  subtract 16 from item 4 of myRect
  set the rect of fld 1 to myRect
end resizeStack

By setting object sizes and positions relative to the card rect, you avoid many 
problems. If e.g. you calculate the new points based on the current points 
relative to the card rect, your objects will slowly change location:

// wrong
on resizeStack theOldW,theOldH,theNewW,theNewH
  put the loc of fld 1 into myLoc
  put item 1 of fld myLoc / theOldW into myRatio
  put myRatio * theNewW  comma  item 2 of myLoc into myNewLoc
  set the loc of fld 1 to myNewLoc
end resizeStack

The script above will eventually round off the loc of the object and the 
location may be off by one pixel. Instead, try to find a way to set the 
location directly:

// correct
on resizeStack
  set the loc of fld 1 to item 1 of the loc of this cd  comma  item 2 of the 
loc of fld 1
end resizeStack

The second (quite obvious) approach will never cause rounding problems. Btw, 
the second and third script change the location of a field horizontally, 
relative to the right side of a card, keeping the field horizontally centered.

--
Best regards,

Mark Schonewille

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

Become our partner in sales http://qery.us/16r Start selling Color Converter 
today. 20% commission!

On 3 nov 2011, at 18:46, John Brozycki wrote:

 Hello,
 
 Given a resizable stack with, say, two cards that both have objects that have 
 their geometry set to scale on resize (like a text field) what is the best 
 way to get objects on card 2 to automatically resize when card one is resized 
 and then a button is selected to go to card 2?  It doesn't do this 
 automatically- you have to resize the second card.  Make the second card much 
 larger than the first was, and when you go back the objects on the first card 
 are all off.  With each card, you have to manually resize for the objects to 
 adjust properly.  Shouldn't this happen automatically when you configure the 
 geometry settings?  I've tried using revWChangeWindowSize on my button to the 
 next card, but it doesn't appear to do anything for object sizing.  Sorry if 
 this is a basic question, but I can't find how to do this.
 
 Much thanks,
 John
 


___
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: available space iOS

2011-11-04 Thread ddas
Thanks Gerry. I'd put this down as request for Livecode iOS.

Thanks,
Debdoot

On Nov 3, 2011, at 2:00 AM, Gerry Orkin wrote:

 I don't think we can...
 
 g
 
 
 On 03/11/2011, at 2:25 PM, ddas wrote:
 
 How do I check for available space on iOS?
 
 Regards,
 Debdoot
 
 
 ___
 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


is the list down?

2011-11-04 Thread Matthias Rebbe
Just a test to see if the list is working. So please exuce, but no new e-mails 
from the list for about 10 hrs?

Matthias



___
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: Nice Leonardo da Vinci Bezier, just a click away

2011-11-04 Thread stephen barncard
Answering my own dumb question:

on deleteAllGrcs

  put the number of grcs in cd 1 of stack leo into ngcs

  repeat with n = ngcs down to 1

delete grc n of cd 1 of stack leo

  end repeat

end deleteAllGrcs


the down to form is used in the loop is as I am using the number of to
determine the existing grcs in a container (is there any other way?) and
 the number of order would change every time the first item is deleted..





On 3 November 2011 12:00, stephen barncard
stephenrevoluti...@barncard.comwrote:

 I mean besides keeping track of all the grc's ids and deleting them one by
 one - i guess not.


 On 3 November 2011 11:19, stephen barncard 
 stephenrevoluti...@barncard.com wrote:

 this is a cool demonstration of points in Livecode.

 One question - how does one *clear* the window of the bezier drawing?


 On 3 November 2011 04:16, René Micout rene.mic...@numericable.comwrote:

 YES !!!
 A 1200 x 1200 window is necessary
 Bon souvenir de Paris
 René

 Le 3 nov. 2011 à 11:25, Michael Kristensen a écrit :

  Hi there
 
  Here is a nice Leonardo da Vinci Bezier, just a click away

 ___
 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




 --



 Stephen Barncard
 San Francisco Ca. USA

 more about sqb  http://www.google.com/profiles/sbarncar




 --



 Stephen Barncard
 San Francisco Ca. USA

 more about sqb  http://www.google.com/profiles/sbarncar




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
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: Nice Leonardo da Vinci Bezier, just a click away

2011-11-04 Thread Peter M. Brigham, MD
On Nov 3, 2011, at 4:26 PM, stephen barncard wrote:

 Answering my own dumb question:
 
 on deleteAllGrcs
 
  put the number of grcs in cd 1 of stack leo into ngcs
 
  repeat with n = ngcs down to 1
 
delete grc n of cd 1 of stack leo
 
  end repeat
 
 end deleteAllGrcs
 
 
 the down to form is used in the loop is as I am using the number of to
 determine the existing grcs in a container (is there any other way?) and
 the number of order would change every time the first item is deleted..

...or just:

on deleteAllGrcs
   put the number of grcs in cd 1 of stack leo into nbrGrcs
   repeat nbrGrcs times
  delete grc 1 of cd 1 of stack leo
   end repeat
end deleteAllGrcs

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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: [OT] Excessive Wireless Traffic from iPhone running iOS5

2011-11-04 Thread Ian Wood
Synving wirelessly to her Mac or syncing wirelessly to iCloud? iOS5 devices 
only sync to iCloud when on WIFI so turning of WIFI would give exactly the 
effect you saw.

Ian

On 3 Nov 2011, at 17:20, Pete wrote:

 A couple of weeks ago, I noticed an occasional  huge slowdown in internet
 access from home.  Whenever this occurred, it was obvious from the lights
 on my wireless router that a huge amount of wireless traffic was happening.
 
 In true old-fashioned trouble shooting mode, I tried to figure out what
 might have changed in any computer setups in my home.  The only thing that
 I could come up with was that my wife upgraded her iPhone to ios5 round
 about the time this started happening.
 
 From the circumstances, I believe this is happening when the iPhone is
 syncing wirelessly with iTunes on my wife's Mac laptop.  That only happens
 over WiFi and when the phone is charging, both of which are the case when
 this wireless traffic problem occurs.  I verified this by switching off
 WiFi on the iuPhone last time this happened and sure enough, the wireless
 traffic stopped.
 
 Have any of you iPhone users experienced anything similar to this?
 Obviously there has to be WiFi traffic for the iPhone to sync, but there
 isn't that much data on my wife's iPhone so I'm not understanding the
 extreme wireless activity.
 
 Meantime my Android phone has been wireless syncing perfectly for
 months.
 
 Pete
 Molly's Revenge http://www.mollysrevenge.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: Nice Leonardo da Vinci Bezier, just a click away

2011-11-04 Thread stephen barncard
this is a cool demonstration of points in Livecode.

One question - how does one *clear* the window of the bezier drawing?

On 3 November 2011 04:16, René Micout rene.mic...@numericable.com wrote:

 YES !!!
 A 1200 x 1200 window is necessary
 Bon souvenir de Paris
 René

 Le 3 nov. 2011 à 11:25, Michael Kristensen a écrit :

  Hi there
 
  Here is a nice Leonardo da Vinci Bezier, just a click away

 ___
 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




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
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

looking for a co-presenter...

2011-11-04 Thread Colin Holgate
On November 12th I'm going to present at the weekly Live LiveCode Code meeting, 
showing off Director. When I showed Unity and Flash I had a co-presenter who 
showed LiveCode doing some of the features those other tools are known for. 
Those meetings went well.

For a partner to show LiveCode doing Director's string points, I was hoping to 
find someone who can show LiveCode handling some of the media types that 
Director can handle. Some are easy enough, others are not. Here are the media 
types Director can play, that LiveCode isn't known for handling:

Custom color palettes.
Byte Arrays
Flash movies
3D
RealMedia
Windows Media
MP4
FLV
F4V
Fonts
DVD-Video
Animated GIFs

There are several other things it handles, but that LiveCode can also use.

So, would anyone be interested in trying to show LiveCode using any of those 
kinds of media?

Thanks.




___
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


needs saving

2011-11-04 Thread Peter M. Brigham, MD
Anyone know what the IDE uses to decide whether to ask about saving a stack 
when it closes? I'm trying to implement a markDirty routine for the Mac. I 
have a frontscript that catches (then passes) closefield and sets the 
modifiedMark of the stack, but that won't catch field contents modified by 
script, or changed customprops, etc, unless I comb through over 30,000 lines of 
code to find all the places where I change the contents of the stack, and 
insert a markDirty command. If I could intercept whatever message the IDE 
uses for this it would simplify things immensely.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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: is the list down?

2011-11-04 Thread Peter M. Brigham, MD
On Nov 3, 2011, at 4:39 PM, Matthias Rebbe wrote:

 Just a test to see if the list is working. So please exuce, but no new 
 e-mails from the list for about 10 hrs?

I'm evidently missing messages that were supposedly sent out -- got Stephen 
Barncard's reply to his own message but never got his original question about 
clearing graphics out. The listserver seems to be stuttering

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig



___
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: looking for a co-presenter...

2011-11-04 Thread Mark Schonewille
Hi Colin,

I think playing those media types in LiveCode is a big PITA. MP4 can be played 
with QT. Some others in the browser plugin, if some requirements are met. If 
your main goal is to display different media types, rather than user 
interaction, text manipulation, database querying etc, then Director probably 
has a big advantage over LiveCode. Maybe that's why it is difficult to find a 
co-presenter?

--
Best regards,

Mark Schonewille

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

Become our partner in sales http://qery.us/16r Start selling Color Converter 
today. 20% commission!

On 4 nov 2011, at 02:00, Colin Holgate wrote:

 On November 12th I'm going to present at the weekly Live LiveCode Code 
 meeting, showing off Director. When I showed Unity and Flash I had a 
 co-presenter who showed LiveCode doing some of the features those other tools 
 are known for. Those meetings went well.
 
 For a partner to show LiveCode doing Director's string points, I was hoping 
 to find someone who can show LiveCode handling some of the media types that 
 Director can handle. Some are easy enough, others are not. Here are the media 
 types Director can play, that LiveCode isn't known for handling:
 
 Custom color palettes.
 Byte Arrays
 Flash movies
 3D
 RealMedia
 Windows Media
 MP4
 FLV
 F4V
 Fonts
 DVD-Video
 Animated GIFs
 
 There are several other things it handles, but that LiveCode can also use.
 
 So, would anyone be interested in trying to show LiveCode using any of those 
 kinds of media?
 
 Thanks.


___
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: needs saving

2011-11-04 Thread Mark Schonewille
Hi Peter,

As soon as a field gets focused, revolution puts edited into 
gRevStackStatus[short name of this stack]. That's a very bad trick and means 
that your stack is almost always edited.

A much better way is to calculate the hash of relevant data and compare this 
with a new hash value. If the two hash values are different, then you need to 
set the dirty flag.

--
Best regards,

Mark Schonewille

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

Become our partner in sales http://qery.us/16r Start selling Color Converter 
today. 20% commission!

On 4 nov 2011, at 15:04, Peter M. Brigham, MD wrote:

 Anyone know what the IDE uses to decide whether to ask about saving a stack 
 when it closes? I'm trying to implement a markDirty routine for the Mac. I 
 have a frontscript that catches (then passes) closefield and sets the 
 modifiedMark of the stack, but that won't catch field contents modified by 
 script, or changed customprops, etc, unless I comb through over 30,000 lines 
 of code to find all the places where I change the contents of the stack, and 
 insert a markDirty command. If I could intercept whatever message the IDE 
 uses for this it would simplify things immensely.
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig


___
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: needs saving

2011-11-04 Thread dunbarx
Peter.


Does the saveStackRequest help


Craig Newman



-Original Message-
From: Peter M. Brigham, MD pmb...@gmail.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Fri, Nov 4, 2011 6:07 am
Subject: needs saving


Anyone know what the IDE uses to decide whether to ask about saving a stack 
when 
it closes? I'm trying to implement a markDirty routine for the Mac. I have a 
frontscript that catches (then passes) closefield and sets the modifiedMark of 
the stack, but that won't catch field contents modified by script, or changed 
customprops, etc, unless I comb through over 30,000 lines of code to find all 
the places where I change the contents of the stack, and insert a markDirty 
command. If I could intercept whatever message the IDE uses for this it would 
simplify things immensely.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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: Nice Leonardo da Vinci Bezier, just a click away

2011-11-04 Thread Alejandro Tejada
Hi Michael,

Really nice script! :-D

You will find interesting too these experiments
with vector graphics:

http://www.jamesphurley.com/jhurleyFolder/BezierLine.rev
http://andregarzia.on-rev.com/alejandro/stacks/newPentoolScript_v02.zip

Keep Up your great work!

Al

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Nice-Leonardo-da-Vinci-Bezier-just-a-click-away-tp3984964p3990239.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


Still server problems with forum?

2011-11-04 Thread Klaus on-rev
Hi friends,

I am getting this for the last hour in the LiveCode forum:

##
Not Found

The requested URL /phpBB2/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an 
ErrorDocument to handle the request.

Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 
mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at 
forums.runrev.com Port 80
###

Best

Klaus
--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: needs saving

2011-11-04 Thread Peter M. Brigham, MD
Right. Then I have to figure out what to hash, which is do-able. But it doesn't 
answer the most important question: I need to trap a general message to trigger 
this so as to set the dirty flag on the window. I suppose the backup plan would 
be a send-in-time handler to check the hash periodically -- this means the 
hashing test would have to be very fast so as not to interrupt user input 
perceptibly. To be really complete, I'd probably want to get the hash of the 
whole stack, but I can't find a way to do that. The sha1digest() and 
md5digest() functions both expect a string input. I'd hate to have to script a 
concatenation of all fields and customprops, and I'd have to comb through a 
bunch of scripts to make sure that that would capture all the possible changes 
a user could make anyway. Even if I solve those problems, I'm still looking for 
a message to trigger the thing, though.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Nov 4, 2011, at 10:16 AM, Mark Schonewille wrote:

 Hi Peter,
 
 As soon as a field gets focused, revolution puts edited into 
 gRevStackStatus[short name of this stack]. That's a very bad trick and means 
 that your stack is almost always edited.
 
 A much better way is to calculate the hash of relevant data and compare this 
 with a new hash value. If the two hash values are different, then you need to 
 set the dirty flag.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Become our partner in sales http://qery.us/16r Start selling Color Converter 
 today. 20% commission!
 
 On 4 nov 2011, at 15:04, Peter M. Brigham, MD wrote:
 
 Anyone know what the IDE uses to decide whether to ask about saving a stack 
 when it closes? I'm trying to implement a markDirty routine for the Mac. I 
 have a frontscript that catches (then passes) closefield and sets the 
 modifiedMark of the stack, but that won't catch field contents modified by 
 script, or changed customprops, etc, unless I comb through over 30,000 lines 
 of code to find all the places where I change the contents of the stack, and 
 insert a markDirty command. If I could intercept whatever message the IDE 
 uses for this it would simplify things immensely.
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 
 ___
 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: Automatic object resizing on card changes

2011-11-04 Thread John Brozycki
A big thanks to BvG and Mark for your replies.

Not only did BvG provide the quick and dirty answer:

on opencard
 revUpdateGeometry
end opencard

...but both BvG and Mark provided sample code code for handling resizing on 
your own.

Thanks!  I really appreciate it, guys!

-John


On Nov 4, 2011, at 7:44 AM, Mark Schonewille wrote:

 Hi John,
 
 This really depends on the situation. Here's a very simple example:
 
 on resizeStack
 put the rect if this cd into myRect
 add 16 to item 1 of myRect
 add 16 to item 2 of myRect
 subtract 16 from item 3 of myRect
 subtract 16 from item 4 of myRect
 set the rect of fld 1 to myRect
 end resizeStack
 
 By setting object sizes and positions relative to the card rect, you avoid 
 many problems. If e.g. you calculate the new points based on the current 
 points relative to the card rect, your objects will slowly change location:
 
 // wrong
 on resizeStack theOldW,theOldH,theNewW,theNewH
 put the loc of fld 1 into myLoc
 put item 1 of fld myLoc / theOldW into myRatio
 put myRatio * theNewW  comma  item 2 of myLoc into myNewLoc
 set the loc of fld 1 to myNewLoc
 end resizeStack
 
 The script above will eventually round off the loc of the object and the 
 location may be off by one pixel. Instead, try to find a way to set the 
 location directly:
 
 // correct
 on resizeStack
 set the loc of fld 1 to item 1 of the loc of this cd  comma  item 2 of the 
 loc of fld 1
 end resizeStack
 
 The second (quite obvious) approach will never cause rounding problems. Btw, 
 the second and third script change the location of a field horizontally, 
 relative to the right side of a card, keeping the field horizontally centered.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Become our partner in sales http://qery.us/16r Start selling Color Converter 
 today. 20% commission!
 
 On 3 nov 2011, at 18:46, John Brozycki wrote:
 
 Hello,
 
 Given a resizable stack with, say, two cards that both have objects that 
 have their geometry set to scale on resize (like a text field) what is the 
 best way to get objects on card 2 to automatically resize when card one is 
 resized and then a button is selected to go to card 2?  It doesn't do this 
 automatically- you have to resize the second card.  Make the second card 
 much larger than the first was, and when you go back the objects on the 
 first card are all off.  With each card, you have to manually resize for the 
 objects to adjust properly.  Shouldn't this happen automatically when you 
 configure the geometry settings?  I've tried using revWChangeWindowSize on 
 my button to the next card, but it doesn't appear to do anything for object 
 sizing.  Sorry if this is a basic question, but I can't find how to do this.
 
 Much thanks,
 John
 
 
 
 ___
 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: needs saving

2011-11-04 Thread Peter M. Brigham, MD
Not so much, as it only gets triggered when closing the stack, and I want to 
set the dirty flag immediately when the user changes some content. Or as 
immediately as possible.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


On Nov 4, 2011, at 10:20 AM, dunb...@aol.com wrote:

 Peter.
 
 Does the saveStackRequest help
 
 -Original Message-
 
 Anyone know what the IDE uses to decide whether to ask about saving a stack 
 when 
 it closes? I'm trying to implement a markDirty routine for the Mac. I have 
 a 
 frontscript that catches (then passes) closefield and sets the modifiedMark 
 of 
 the stack, but that won't catch field contents modified by script, or changed 
 customprops, etc, unless I comb through over 30,000 lines of code to find all 
 the places where I change the contents of the stack, and insert a markDirty 
 command. If I could intercept whatever message the IDE uses for this it would 
 simplify things immensely.
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig

___
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: Nice Leonardo da Vinci Bezier, just a click away

2011-11-04 Thread AcidJazz
Hi.  Can you tell me (briefly) how to get those points into a customproperty?  
The lessons.runrev.com site is down.  I've got the property window open, and
it was easy to create a new property called LeoPoints, but I'm not sure how
to get the actual points into that new property.  I expected a button in the
property window called edit and I'd just paste them in, but apparently
not...

Thanks,
  Mark

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Nice-Leonardo-da-Vinci-Bezier-just-a-click-away-tp3984964p3986625.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: Nice Leonardo da Vinci Bezier, just a click away

2011-11-04 Thread Devin Asay
Mark,

Just select the new custom property, click in the field at the bottom, and 
paste. That's it.

Alternatively, paste the points into a field, then use the message box:

  set the leoPoints of btn leoButton to field thefieldwiththepoints

Devin



On Nov 3, 2011, at 10:29 AM, AcidJazz wrote:

 Hi.  Can you tell me (briefly) how to get those points into a customproperty? 
  
 The lessons.runrev.com site is down.  I've got the property window open, and
 it was easy to create a new property called LeoPoints, but I'm not sure how
 to get the actual points into that new property.  I expected a button in the
 property window called edit and I'd just paste them in, but apparently
 not...
 
 Thanks,
  Mark
 
 --
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/Nice-Leonardo-da-Vinci-Bezier-just-a-click-away-tp3984964p3986625.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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




___
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: text size and HTMLtext

2011-11-04 Thread Kenji Kojima
Hi Yoshino san,

on mouseUp
   put the unicodeText of fld 1 into jText
repeat with i=10 to 48
  set the textsize of fld ja to i
  set the unicodeText of fld ja to  jText
  set the textsize of fld en to i
  wait 10 ticks
  put i into msg
end repeat
end mouseUp

--
Kenji Kojima / 小島健治
http://www.kenjikojima.com/ 





On Nov 3, 2011, at 3:51 AM, 吉野 孝 wrote:

 Hi,
 
 I have a question about text size and HTMLtext. 
 
 I want to use Japanese text in my LiveCode stacks.
 I can input Japanese text to a field by only using HTMLtext.
 
 But, I don't  change text size of Japanese font size.
 English font can change.
 
 Here is my sample script.
 
 on mouseUp
  repeat with i=10 to 48
 set the textsize of fld ja to i
 set the textsize of fld en to i
 wait 10 ticks
 put i into msg
  end repeat
 end mouseUp
 
 I need your help.
 
 _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ 
 Takashi Yoshino 
 http://www.wakayama-u.ac.jp/~yoshino/lab/
 Tel: +81-73-457-8441
 
 
 ___
 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: text size and HTMLtext

2011-11-04 Thread Devin Asay
Hi 吉野 孝,

Rule 1 when doing Japanese unicode in LiveCode--always listen to Kenji!

Here's my own take:

You will have to set the text size of the text chunks inside the field, rather 
than the field itself. It can be a little tricky.

You can try: set the textSize of line 1 of fld ja to nn

Or you can try modifying the htmlText of the field:

replace size=  quote  nn in fld ja with size=  quote  xx

You have to experiment a little bit, but you can make it work. I did it a 
couple of years ago with a project that required Chinese text.

Hope this helps.

Devin

On Nov 3, 2011, at 1:51 AM, 吉野 孝 wrote:

 Hi,
 
 I have a question about text size and HTMLtext. 
 
 I want to use Japanese text in my LiveCode stacks.
 I can input Japanese text to a field by only using HTMLtext.
 
 But, I don't  change text size of Japanese font size.
 English font can change.
 
 Here is my sample script.
 
 on mouseUp
  repeat with i=10 to 48
 set the textsize of fld ja to i
 set the textsize of fld en to i
 wait 10 ticks
 put i into msg
  end repeat
 end mouseUp
 
 I need your help.
 
 _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ 
 Takashi Yoshino 
 http://www.wakayama-u.ac.jp/~yoshino/lab/
 Tel: +81-73-457-8441
 
 
 ___
 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University



___
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: Nice Leonardo da Vinci Bezier, just a click away

2011-11-04 Thread Michael Kristensen
on mouseUp
   lock screen
   repeat with i = 4 down to 1
  delete grc i
   end repeat
end mouseUp

Michael


Den 04/11/2011 kl. 16.55 skrev use-livecode-requ...@lists.runrev.com:
 
 
 this is a cool demonstration of points in Livecode.
 
 One question - how does one *clear* the window of the bezier drawing?

___
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: available space iOS

2011-11-04 Thread ddas
Thanks Gerry. I'd put this down as request for Livecode iOS.

Thanks,
Debdoot

On Nov 3, 2011, at 2:00 AM, Gerry Orkin wrote:

 I don't think we can...
 
 g
 
 
 On 03/11/2011, at 2:25 PM, ddas wrote:
 
 How do I check for available space on iOS?
 
 Regards,
 Debdoot
 
 
 ___
 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: Still server problems with forum?

2011-11-04 Thread Heather Nagey

Looks ok here - can you try clearing your cache and try again?

Regards,

Heather

On 3 Nov 2011, at 12:06, Klaus on-rev wrote:


Hi friends,

I am getting this for the last hour in the LiveCode forum:

##
Not Found

The requested URL /phpBB2/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to  
use an ErrorDocument to handle the request.


Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5  
mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635  
Server at forums.runrev.com Port 80

###

Best

Klaus
--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


Heather Nagey
Customer Services Manager
http://www.runrev.com/
LiveCode - Unleash Your Killer App


___
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: Still server problems with forum?

2011-11-04 Thread Klaus on-rev
Hi Heather,

Am 04.11.2011 um 17:58 schrieb Heather Nagey:

 Looks ok here - can you try clearing your cache and try again?

well, hmmm, I sent this mail yesterday at noon:
 On 3 Nov 2011, at 12:06, Klaus on-rev wrote:
 ...

;-)

 Regards,
 
 Heather

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: looking for a co-presenter...

2011-11-04 Thread Alejandro Tejada
Reading the description, this person
is Ken Ray. :-D

Al

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/looking-for-a-co-presenter-tp3990166p3991210.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: [OT] Excessive Wireless Traffic from iPhone running iOS5

2011-11-04 Thread jacques CLAVEL
BigBrother is watching you! Your IPhone is sending to Apple the
localisation data recorded by your phone the previous days. This happens
only when you have WIFI access.

Jacques Clavel

2011/11/3 Pete p...@mollysrevenge.com

 A couple of weeks ago, I noticed an occasional  huge slowdown in internet
 access from home.  Whenever this occurred, it was obvious from the lights
 on my wireless router that a huge amount of wireless traffic was happening.

 In true old-fashioned trouble shooting mode, I tried to figure out what
 might have changed in any computer setups in my home.  The only thing that
 I could come up with was that my wife upgraded her iPhone to ios5 round
 about the time this started happening.

 From the circumstances, I believe this is happening when the iPhone is
 syncing wirelessly with iTunes on my wife's Mac laptop.  That only happens
 over WiFi and when the phone is charging, both of which are the case when
 this wireless traffic problem occurs.  I verified this by switching off
 WiFi on the iuPhone last time this happened and sure enough, the wireless
 traffic stopped.

 Have any of you iPhone users experienced anything similar to this?
  Obviously there has to be WiFi traffic for the iPhone to sync, but there
 isn't that much data on my wife's iPhone so I'm not understanding the
 extreme wireless activity.

 Meantime my Android phone has been wireless syncing perfectly for
 months.

 Pete
 Molly's Revenge http://www.mollysrevenge.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: text size and HTMLtext

2011-11-04 Thread 吉野 孝
Thank you, Kenji and Devin !

 You can try: set the textSize of line 1 of fld ja to nn
 
 Or you can try modifying the htmlText of the field:

It works well !

 on mouseUp
   put the unicodeText of fld 1 into jText
repeat with i=10 to 48
  set the textsize of fld ja to i
  set the unicodeText of fld ja to  jText
  set the textsize of fld en to i
  wait 10 ticks
  put i into msg
end repeat
 end mouseUp

It works well !

I solved my problem perfectly.

Thank for your help indeed.


On 2011/11/05, at 1:33, Devin Asay wrote:

 Hi 吉野 孝,
 
 Rule 1 when doing Japanese unicode in LiveCode--always listen to Kenji!
 
 Here's my own take:
 
 You will have to set the text size of the text chunks inside the field, 
 rather than the field itself. It can be a little tricky.
 
 You can try: set the textSize of line 1 of fld ja to nn
 
 Or you can try modifying the htmlText of the field:
 
 replace size=  quote  nn in fld ja with size=  quote  xx
 
 You have to experiment a little bit, but you can make it work. I did it a 
 couple of years ago with a project that required Chinese text.
 
 Hope this helps.
 
 Devin
 
 On Nov 3, 2011, at 1:51 AM, 吉野 孝 wrote:
 
 Hi,
 
 I have a question about text size and HTMLtext. 
 
 I want to use Japanese text in my LiveCode stacks.
 I can input Japanese text to a field by only using HTMLtext.
 
 But, I don't  change text size of Japanese font size.
 English font can change.
 
 Here is my sample script.
 
 on mouseUp
 repeat with i=10 to 48
set the textsize of fld ja to i
set the textsize of fld en to i
wait 10 ticks
put i into msg
 end repeat
 end mouseUp
 
 I need your help.
 
 _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ 
 Takashi Yoshino 
 http://www.wakayama-u.ac.jp/~yoshino/lab/
 Tel: +81-73-457-8441
 
 
 ___
 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
 
 Devin Asay
 Humanities Technology and Research Support Center
 Brigham Young University
 
 
 
 ___
 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

_.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ 
Takashi Yoshino 
http://www.wakayama-u.ac.jp/~yoshino/lab/
Tel: +81-73-457-8441


___
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


iOS and Go Stack URL?

2011-11-04 Thread John Patten
Hello All!

Is it possible to open a remote stack in iOS via Go Stack URL …? I'm thinking 
no…but I thought I'd ask :-)

Thank you!

John Patten
SUSD
___
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: iOS and Go Stack URL?

2011-11-04 Thread Mark Schonewille
Yes, it is possible. Use the go command, but without in the window of.
--
Best regards,

Mark Schonewille

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

Become our partner in sales http://qery.us/16r Start selling Color Converter 
today. 20% commission!

On 5 nov 2011, at 00:15, John Patten wrote:

 Hello All!
 
 Is it possible to open a remote stack in iOS via Go Stack URL …? I'm thinking 
 no…but I thought I'd ask :-)
 
 Thank you!
 
 John Patten
 SUSD



___
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: iOS and Go Stack URL?

2011-11-04 Thread Gerry
Check this out on the forums:

http://forums.runrev.com/viewtopic.php?f=49t=8934


--  photos: http://gerryorkin.com


On Saturday, 5 November 2011 at 10:15 AM, John Patten wrote:

 Hello All!
  
 Is it possible to open a remote stack in iOS via Go Stack URL …? I'm thinking 
 no…but I thought I'd ask :-)  

___
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: iOS and Go Stack URL?

2011-11-04 Thread Colin Holgate
It's a long thread, with much guessing, and trying things in the simulator. 
But, the trick doesn't work on an actual iPhone.


On Nov 4, 2011, at 7:28 PM, Gerry wrote:

 Check this out on the forums:
 
 http://forums.runrev.com/viewtopic.php?f=49t=8934

___
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: iOS and Go Stack URL?

2011-11-04 Thread Colin Holgate
Correction to myself. If you try the stack in LiveCode, then make an app, it 
doesn't work. If you make an app without trying the stack, then the app does 
download and open the stack.

There is code in the stack, but it's trying to put MobGUI into use, which I 
don't have. So whether the code is trying to work and then failing, or failing 
to work altogether, I'm not sure. I'll change it to point to a different stack.

Ok, it does definitely work in a local test. Not sure whether the App Store 
process would spot that you are loading a code document from the web.
___
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: iOS and Go Stack URL?

2011-11-04 Thread Mark Schonewille
Colin,

Which stack are you talking about?

AFAIK it should just work on both the simulator and the iPhone. I tried it and 
it worked (in LC 4.6.1).

--
Best regards,

Mark Schonewille

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

Become our partner in sales http://qery.us/16r Start selling Color Converter 
today. 20% commission!

On 5 nov 2011, at 01:38, Colin Holgate wrote:

 Correction to myself. If you try the stack in LiveCode, then make an app, it 
 doesn't work. If you make an app without trying the stack, then the app does 
 download and open the stack.
 
 There is code in the stack, but it's trying to put MobGUI into use, which I 
 don't have. So whether the code is trying to work and then failing, or 
 failing to work altogether, I'm not sure. I'll change it to point to a 
 different stack.
 
 Ok, it does definitely work in a local test. Not sure whether the App Store 
 process would spot that you are loading a code document from the web.


___
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: Passing Ampersand and Dot to PostGreSQL - MySQL

2011-11-04 Thread Web Admin Himalayan Academy
Andre showed the way: use LiveCode's native databinding methods instead 
of my old fashioned replacement strings and the values are automatically 
escaped.


On 11/2/11 11:44 AM, Pete wrote:

Interesting.  I don't have Postgres but I tried an insert into an SQLite
table with text containing an ampersand and it worked just fine.  Same with
mySQL.  This was on my desktop machine though, not over the web.

The docs for SQLite,mySQL, and Postgres only mention the need to escape the
single-quote character within a string, not any other special characters.

What's the error you get back?

Pete
Molly's Revengehttp://www.mollysrevenge.com




On Wed, Nov 2, 2011 at 1:25 PM, Sivakatirswamika...@hindu.org  wrote:


I'm having some difficulty with passing data from a web form to a
PostGreSQL database. I'm using iRev on the server and gFormData has all the
data in the array. After handling all the data, running the CC charges,
sending notifications, everything works, but my final functions to insert
the data into the database fail in certain cases.

i use this method to build the query:


put INSERT INTO donations (first_name, last_name, anonymous,
email_address,into  tSQLQuery
put addr1, addr2, city, state, postal_code, country, phone_no,
created_on,  after tSQLQuery
put  entry_point, comment, amount, monetra_user, monetra_msg, cc_no) 
after tSQLQuery
put VALUES ('#FIRST_NAME', '#LAST_NAME', '#ANONYMOUS', '#EMAIL_ADDRESS',
  after  tSQLQuery
Put '#ADDR1', '#ADDR2', '#CITY', '#STATE', '#POSTAL_CODE', '#COUNTRY',
'#PHONE_NO', '#CREATED_ON',  after tSQLQuery
Put '#ENTRY_POINT', '#COMMENT', '#AMOUNT', '#MONETRA_USER',
'#MONETRA_MSG', '#CC_NO'); after tSQLQuery

the poke it like this:

replace #FIRST_NAME with gFormData[first_name]  in tSQLQuery
replace #COMMENT with gFormData[comment]  in tSQLQuery
replace #EMAIL_ADDRESS with gFormData[email_address]  in tSQLQuery

when the data in the array values contain certain characters, the
insertion query fails.

I have been able to definitively diagnose at least two cases (there are
probably more)

if the data contains an ampersand or a dot, the query fails  e.g these
will all cause the insertion to fail:

 First Name:  Ravi  Sheela # ampersand

 Comment: All the books  audio [etc.]  # ampersand

 email address: gail.w...@verizon.com  # dot in the email address.

so, I'm not sure what to do.

  I need to escape all the special chars (I don't even have a list of what
they are) in the gFormData array values that will break the SQL query. And
we also have to block SQL injection attempts at the same time

My baby xTalk  method would be tortuous: for each key/value in the
gFormData array

put gFormData[first_name]  in tFirstName

put fixBadChars(tFirstName) into tFirstName

replace #FIRST_NAME with tFirstName  in tSQLQuery

function fixBadChars pString

replace  with and in pString
  # and more of these which I don't even know what they would be
  # and replacing the dot in the email will mean the email is wrong
after insertion
return pString

end fixBadChars

I'm sure this has been dealt with already... Does anyone have a escape
input data for SQL insertion   library they can share?

Thanks!
Sivakatirswami












___
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: print to the default printer on windows

2011-11-04 Thread J. Landman Gay

On 11/4/11 4:31 PM, Matthias Rebbe wrote:

Hi,

is there a way to print to the default printer under windows from
livecode script without selecting the printer by the user first?


Yes. See printerName in the dictionary. You also might need to set the 
printerOutput. You can also get and set many specific printer 
functions with the printerFeatures property.


--
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


Re: iOS and Go Stack URL?

2011-11-04 Thread Gerry
Whoops. I wrote that stack and didn't notice that I'd left MobGUI in as a 
substack. It doesn't need it :) Plus I didn't do an environment test in the 
script to make sure it ran only in iOS - it was a quick hack to demonstrate a 
point.

g 



--  photos: http://gerryorkin.com


On Saturday, 5 November 2011 at 12:47 PM, Colin Holgate wrote:

 That thread has a link to a zip file, that downloads a stack called Download 
 Stack. If you try it in LiveCode, to see it in action before trying it in 
 the simulator or on a phone, it fails to work, and then if you try on a phone 
 it still doesn't work. If you download the zip file again, and don't test it, 
 but instead make an app right away, then it works.
 
 
 On Nov 4, 2011, at 8:42 PM, Mark Schonewille wrote:
 
  Which stack are you talking about?
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com (mailto: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


Resizing on Lion

2011-11-04 Thread Sivakatirswami
Can anyone confirm that standalone stacks built  with 4.6.1, which have 
resizing on, fail to resize under Lion?


I have an in - house version control app that manages all InDesign files 
for our editorial team. Those who upgrade to Lion say the resizing does 
not work


I myself am avoiding upgrading to Lion for as long as I possibly can.

Sivakatirswami


___
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: Resizing on Lion

2011-11-04 Thread Bill Vlahos
Stacks built with 4.6.4 work fine in Lion.

Bill Vlahos
_
InfoWallet (http://www.infowallet.com) is about keeping your important life 
information with you, accessible, and secure.

On Nov 4, 2011, at 9:50 PM, Sivakatirswami wrote:

 Can anyone confirm that standalone stacks built  with 4.6.1, which have 
 resizing on, fail to resize under Lion?
 
 I have an in - house version control app that manages all InDesign files for 
 our editorial team. Those who upgrade to Lion say the resizing does not work
 
 I myself am avoiding upgrading to Lion for as long as I possibly can.
 
 Sivakatirswami
 
 
 ___
 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