revBrowser's htmltext property for Unicode text

2011-06-02 Thread Slava Paperno
When my revBrowser instance displays a UTF-8 Web page, and I look at the value returned by revBrowserGet(instanceID "htmltext"), I think all double-byte characters are replaced with question marks. I think the same is true of the revBrowser "selected" property. Could someone please confirm? I don'

resumeStack and revBrowser

2011-06-02 Thread Slava Paperno
As far as I can tell, when you have a revBrowser window on the screen, and you click in the revBrowser window, then click anywhere outside revBrowser, the stack receives the resumeStack message. Can someone confirm? I was using an "on resumeStack" handler to initialize things as I switch from Brow

Re: Linux Externals...

2011-06-02 Thread Mark Wieder
Andre- Wednesday, June 1, 2011, 12:28:31 PM, you wrote: > does anyone knows if the ExternalEnvironmentV3 modified for Linux available > at > http://www.runrev.com/developers/lessons-and-tutorials/tutorials/advanced-linux-externals/ > is > still working? I can't build an empty external or one of m

Re: How to to ell if a stack is loaded as a plugin

2011-06-02 Thread Todd Geist
thanks guys! On Thu, Jun 2, 2011 at 1:52 PM, Andre Garzia wrote: > On Thu, Jun 2, 2011 at 5:29 PM, Ken Ray wrote: > > > > > >> In fact I think any test based on the directory wouldn't be so good. > > There > > >> would always be the chance that you opened through the file browser. > > > > > >

Re: Drag a window without a title bar

2011-06-02 Thread Bill Vlahos
Mark, As Richard Gaskin would say, "It works a treat." Thank you, Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jun 2, 2011, at 1:22 PM, Mark Schonewille wrote: > Bill, > > here's mine

Re: How to to ell if a stack is loaded as a plugin

2011-06-02 Thread Andre Garzia
On Thu, Jun 2, 2011 at 5:29 PM, Ken Ray wrote: > > >> In fact I think any test based on the directory wouldn't be so good. > There > >> would always be the chance that you opened through the file browser. > > > > A plugin is just a stack that can be conveniently opened by placing it > > in the P

Re: How to to ell if a stack is loaded as a plugin

2011-06-02 Thread Ken Ray
>> In fact I think any test based on the directory wouldn't be so good. There >> would always be the chance that you opened through the file browser. > > A plugin is just a stack that can be conveniently opened by placing it > in the Plugins folder. > > If you take it out of the folder, that di

Re: Drag a window without a title bar

2011-06-02 Thread Mark Schonewille
Hi Marty, The problem with your solution is that there is a lag between the window location and the mouseLoc. -- 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:

Re: Drag a window without a title bar

2011-06-02 Thread Mark Schonewille
Bill, here's mine... on mouseDown if "button" is not in the name of the target then grabWindow else pass mouseDown end mouseDown on grabWindow if the platform is "MacOS" and (the decorations of the \ defaultStack contains "title" or the decorations of the \

Re: Drag a window without a title bar

2011-06-02 Thread Marty Knapp
Hey Bill, I use the following - probably gleaned from Scott Rossi. Put it in the stack or card script: local allowDrag on mouseEnter put "" into allowDrag end mouseEnter on mouseDown if word 1 of the target = "card" then put mouseLoc() into allowDrag end mouseDown on mouseMove X,Y

Re: Drag a window without a title bar

2011-06-02 Thread John Dixon
Hi.. Would this help you... on mouseDown -- place the window into the MacOS X dock if the optionKey is "down" then set the iconic of this stack to true exit mouseDown end if -- find the position of the window and the mouse put (item 1 of the loc of this stack) - (item 1 of gl

Re: How to to ell if a stack is loaded as a plugin

2011-06-02 Thread Richard Gaskin
Todd Geist wrote: I am looking for a good way to determine an open stack is a plugin. Right now I am just checking to see if the folder the Stack is in is called plugin. This sort of works, but If a stack happens to be in a folder that is named plugins, but I opened normally (ie not through the

Drag a window without a title bar

2011-06-02 Thread Bill Vlahos
I have a stack that uses the windowshape property so it no longer has the title bar. What is the handler I should use to allow the user to drag the stack around? I have a background image that the user could click and drag for moving the window. Thanks, Bill Vlahos

Re: CloseCard Handler

2011-06-02 Thread Richard Gaskin
Warren Kuhl wrote: When the user closes the application, I have a check in place within the on closecard handler to see if they saved the document. If they didn't save the document, I give the user to option to save, don't save or cancel. On the cancel, I just want the application to stay open

How to to ell if a stack is loaded as a plugin

2011-06-02 Thread Todd Geist
Hello, I am looking for a good way to determine an open stack is a plugin. Right now I am just checking to see if the folder the Stack is in is called plugin. This sort of works, but If a stack happens to be in a folder that is named plugins, but I opened normally (ie not through the plugin menu

Re: CloseCard Handler

2011-06-02 Thread Warren Kuhl
Richard, Thanks...I will check it out. I never saw that one...but it makes sense. Appreciate your help! Warren On Thu, Jun 2, 2011 at 1:32 PM, Richard Gaskin wrote: > Warren Kuhl wrote: > >> When the user closes the application, I have a check in place within >> the on closecard handler to see

Re: [ANN] sunnYmidi: Script your sounds

2011-06-02 Thread Judy Perry
Thanks for the heads-up, Jacque. Somehow I missed this! Judy On Wed, 1 Jun 2011, J. Landman Gay wrote: On 6/1/11 3:15 AM, Thierry Douez wrote: Hi all, I am pleased to announce SunnYmidi. SunnYmidi is a simple and powerful tool to help LiveCode Users add sounds to their stack. I've seen t

CloseCard Handler

2011-06-02 Thread Warren Kuhl
When the user closes the application, I have a check in place within the on closecard handler to see if they saved the document. If they didn't save the document, I give the user to option to save, don't save or cancel. On the cancel, I just want the application to stay open. Within the on close

Re: How to obtain browser version in revWeb app?

2011-06-02 Thread Kee Nethery
way cool! Thanks, kee On Jun 1, 2011, at 6:24 PM, Mike Bonner wrote: > You can do this. > > do "result = navigator.appName" in browser > > at which point the result will contain "Microsoft Internet Explorer" if > thats the browser in use. > > result = navigator.userAgent returns.. > ; Trident

Re: Datagrids & arrays

2011-06-02 Thread Bob Sneidar
I agree that dgText is a good way to start, but sometimes parsing the data in a single variable can be more coding than working with arrays. If you have either of the two excellent debuggers (GLX2 and Remo come to mind) try getting the dgData, set a breakpoint, and then examine the structure of

Re: How to obtain browser version in revWeb app?

2011-06-02 Thread Andre Garzia
what he said! On Wed, Jun 1, 2011 at 10:24 PM, Mike Bonner wrote: > You can do this. > > do "result = navigator.appName" in browser > > at which point the result will contain "Microsoft Internet Explorer" if > thats the browser in use. > > result = navigator.userAgent returns.. > ; Trident/5.0;

Re: How to obtain browser version in web app?

2011-06-02 Thread Andre Garzia
you can use javascript and do in browser command to get the browser version. On Thu, Jun 2, 2011 at 5:17 AM, Martin Baxter < mblivec...@harbourhosting.co.uk> wrote: > On second thoughts I should have had my coffee before replying as you > are talking about a stack not an irev script and my reply

Re: Datagrids & arrays

2011-06-02 Thread dunbarx
Use the dgText property. You can operate on this data in a script, and then reset. Craig Newman -Original Message- From: Van Brollini To: use-livecode@lists.runrev.com Sent: Thu, Jun 2, 2011 5:26 am Subject: Datagrids & arrays I have a datagrid with 1250 rows and 28 columns. The

RE: eBooks and LiveCode

2011-06-02 Thread FlexibleLearning
Absolutely agree with you, Steve. I wrote 'HyperManuscript' back in 1986 in conjunction with Roehampton Institute here in the UK. Far too much before its time, though. The problem now is one of critical mass... As you and Andre both point out, there are now a couple of entrenched standards so the

Datagrids & arrays

2011-06-02 Thread Van Brollini
I have a datagrid with 1250 rows and 28 columns. The first 13 columns are data to be operated on. The last 15 columns are where the calculations are to be placed. I have gone through the datagrid manual and it is still fuzzy on how to get data OUT of the datagrid to do the calculations and then

Re: [ANN] iPhone Control Kit 0.1.0

2011-06-02 Thread Ludovic Thébault
Le 1 juin 2011 à 17:41, Andreas Rozek a écrit : > > Hello! > > I would like to introduce my current project: > > The "iPhone Control Kit for LiveCode" contains numerous LiveCode objects > which emulate the Look-and-Feel of native iPhone controls and, thus, > simplifies the development of nat

Re: How to obtain browser version in web app?

2011-06-02 Thread Martin Baxter
On second thoughts I should have had my coffee before replying as you are talking about a stack not an irev script and my reply is irrelevant. In the revlet case I can't recall if there is a simple way off the top of my head. It is possible, but awkward to get the user agent from javascript and pa

Re: How to obtain browser version in web app?

2011-06-02 Thread Martin Baxter
Hi Kee, You have to parse out the HTTP_USER_AGENT string yourself I think This old test script might get you started: user agent: " & tua & "" put "offset of MSIE: " & tie & "" put "offset of Safari: " & tmac & "" put "offset of Opera: " & topera & "" put "offset of Gecko: " & tgecko & "" ?> Sa