Bob Sneidar | 1 Feb 2012 01:26

Detect data scroll in a datagrid

> Hi all. 
> 
> I know I can detect dgScrollBarDragV, but that gets sent whether or not the actual data scrolls. It is
possible to move the elevator box a slight bit and not have it effect the data in the datagrid. I only want to
know what the visible data has changed. Any ideas? I already looked through the DG library and anything I
might have used there seems to be private commands and functions. 
> 
> Bob

Ok so far I have a fairly workable solution, but it is behaving oddly. The script I put into the datagrid is this:

on dgScrollbarDragV theScrollValue
    put the lastVisLines of me into theLasVisLines -- custom prop
    put the dgVisibleLines of me into theVisibleLines

    if theLasVisLines is not theVisibleLines then
        -- do whatever
    end if

    set the lastVisLines of me to theVisibleLines
    pass dgScrollbarDragV
end dgScrollbarDragV

If I drag the elevator box fairly fast it works, but if I drag it slowly it will not. It's workable, but ti would
be better if I knew there was a message that got sent when the datagrid repopulated. Oh well.

Bob
_______________________________________________
use-livecode mailing list
use-livecode@...
(Continue reading)

Monte Goulding | 1 Feb 2012 03:26
Gravatar

Re: An iPhone app as a remote control for an iPad app. Is it possible?

Hmm... I can't seem to convince NSNotificationCenter to send the
UIApplicationDidFinishLaunchingNotification notification. I suspect somehow externals are loaded
after that's sent. I'm not sure. So we are back to apps launching without knowing they are launching in
response to a notification.

Anyway, I can (have) created local notifications. 

It appears the notification badge number is implemented in an odd way. You would assume it would increment
but you have to set a specific number. So let's say you setup 10 notifications and assign badge numbers
1-10. If you launch your app after 5 you want to reset the badge number number back to 0 and you want the rest of
your notifications to have badge numbers 1-5. So what I'm thinking might be simplest is to maintain a
notification list in the app. when you launch your app you clear all the notifications and set the badge
number to 0. You show the user any unread notifications in your app and present any new ones from your list if
the app is still running when they are due. Then when your app closes you loop over what remains of you list
and setup the notifications again.

Cheers

Monte

On 01/02/2012, at 8:03 AM, Thomas McGrath III wrote:

> Monte,
> 
> Actually that might still be useful because I can poll for the reason for the scheduled notif and react
accordingly. I just don't know how useful…..

_______________________________________________
use-livecode mailing list
use-livecode@...
(Continue reading)

Mark Smith | 1 Feb 2012 04:34
Picon
Picon

Re: database write error


Peter Haworth-2 wrote
> 
> so I just have to:
> 
> put buildValuesClause(globaldate,tmaternalname,tmaternalphin,<etc>) after
> tSQL
> 
> I put that together before I knew  revexecuteSQL substitution deals with
> all that and more but it kinda works for me.
> 

Smart. Sounds like the direction I will be heading in once I have a better
handle on this. I hate dealing with all of that syntax. Yuck. At present I
control the content of most of the fields pretty rigorously through a custom
parameter cAllowedCharacters (and a bunch more, I put the code in a behavior
and will post it on the forums at some point as a validation/entry routine
for db fields) but there were a few fields where things could creep in. One
is the "note" field... I just urlencoded that one (thanks Mike!). The other
was an options field that had as an option HSC Women's (the name of a
facility) where the apostrophe occurred. I could have just removed it but it
was not the first time I had encountered that problem so I thought... hmmm,
time to figure out what is going on here. The escape trick worked great for
that situation. But at some time in the future a custom handler to deal with
all of this is definitely the way to go. 

-- Mark

--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/database-write-error-tp4343759p4346808.html
(Continue reading)

Andrew Kluthe | 1 Feb 2012 05:31
Favicon

Re: Automated Testing Tool

This is very neat.

--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Automated-Testing-Tool-tp4345249p4346888.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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

Bernard Devlin | 1 Feb 2012 11:33
Picon

Re: database write error

Perhaps I am misunderstanding the problem here.  I am a great fan of
the concept of merge.  And it is certainly possible to use merge() to
produce the list of fields with each field value enclosed by either
single or double quotes.  It just requires a litte indirection.

(I've put some arbitrary values into the first 2 variables in your list).

on mouseUp
   put "globaldate tmaternalname tmaternalphin tmaternalphin
tmaternalmhsc tmaternaldob" & \
         "tmaternalage tmaternalpc tmaternaled tmaternalocc
tmaternalage tsite tmaternalchart" & \
         "tcareprovider1 tcareprovider2 tcareprovider3 tnote" into tColumnWords

   put "women's" into globaldate
   put "and she said" && quote & "Hi!" & quote into tmaternalname

   repeat for each word tCol in tColumnWords
      --put  "[[quote &" & tCol & " & quote]]," after tColItems
      put  "[[' &" & tCol & " & ']]," after tColItems
   end repeat
   delete char -1 of tColItems
   put "Values(" & tColItems & ")" into tStatement
   put merge(tStatement)
end mouseUp

I hope that helps.

Bernard

(Continue reading)

Richmond | 1 Feb 2012 15:09
Picon

Squeezed Grapes

For those of you who care about this sort of thing:

Attempting to install Livecode/RunRev 4.0 for Windows under WINE 1.4 
rc-1 gets nowhere.

Attempting to install Livecode/RunRev 4/5 - dp 4 under WINE 1.4 re-1 works,

but, then Livecode/RunRev does not run.

Just in case anybody, other than myself, had a sudden urge to be awkward 
. . .  :)

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

Mark Schonewille | 1 Feb 2012 15:17
Gravatar

Re: Squeezed Grapes

Richmond, why do you keep trying? We know that it doesn't work. Even if you do get it to work, images won't
render. Why don't you just forget about it?

--
Best regards,

Mark Schonewille

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

Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 1 feb 2012, at 15:09, Richmond wrote:

> For those of you who care about this sort of thing:
> 
> Attempting to install Livecode/RunRev 4.0 for Windows under WINE 1.4 rc-1 gets nowhere.
> 
> Attempting to install Livecode/RunRev 4/5 - dp 4 under WINE 1.4 re-1 works,
> 
> but, then Livecode/RunRev does not run.
> 
> Just in case anybody, other than myself, had a sudden urge to be awkward . . .  :)

_______________________________________________
use-livecode mailing list
use-livecode@...
(Continue reading)

Richmond | 1 Feb 2012 15:18
Picon

[OT] Is this an extended joke?

I went here: http://revweb.runrev.com/

and read this:  "/The Linux edition of the revWeb Plugin is coming soon."

and then this: "/Copyright RunRev Ltd 2009 All rights reserved."

Oddly enough, rather like a persistent dog, I have been visiting that 
web-page on
a monthly basis for ages and ages.

Have I missed something, or is my sense of humour faulty, as I fail to see
the joke, and would rather like to deploy some stuff online so that it can
be leveraged on various platforms, including Linux.

So; a word of advice to the good folks in Edinburgh:

Either, get on with things and release a Linux edition of the revWeb Plugin,
or, update your website so it doesn't give chaps like me false, albeit 
dwindling,
hope.

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

Richmond | 1 Feb 2012 15:25
Picon

Re: [OT] Is this an extended joke?

Further to the previous message, on visiting here: 
http://revweb.runrev.com/downloads.php
I was able to download something called  "LiveCodePlayer-R9" in various 
flavours

which does suggest that they are something rather different from various 
things called "revWebInstaller"
I was able to download a couple of years ago.

Are the things termed "LiveCodePlayer-R9" in fact web-plugins, or are 
the just players for
end users to run Livecode stacks with?

Certainly if they are the latter it is extremely disingenuous allowing 
them to be downloaded on
a link from the RevWeb Installer page.

Grunt, grunt, grunt . . . stomps off in a huff.

Richmond.

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

Richmond | 1 Feb 2012 15:26
Picon

Re: Squeezed Grapes

On 02/01/2012 04:17 PM, Mark Schonewille wrote:
> Richmond, why do you keep trying? We know that it doesn't work. Even if you do get it to work, images won't
render. Why don't you just forget about it?

I'm perfectly prepared to forget about it if RunRev would; however their 
website is positively misleading.

>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za
>
> On 1 feb 2012, at 15:09, Richmond wrote:
>
>> For those of you who care about this sort of thing:
>>
>> Attempting to install Livecode/RunRev 4.0 for Windows under WINE 1.4 rc-1 gets nowhere.
>>
>> Attempting to install Livecode/RunRev 4/5 - dp 4 under WINE 1.4 re-1 works,
>>
>> but, then Livecode/RunRev does not run.
>>
(Continue reading)


Gmane