Re: iOS - picking from a scrolling list

2012-08-10 Thread Howard Bornstein
Hi Tom,

Sorry I didn't see your response until now. That, in fact, is what I did to
deal with the situation. Thanks.

On Mon, Jul 30, 2012 at 6:32 AM, Thomas McGrath III wrote:

> Howard,
>
> I am running out right now so I won't be able to look deeper into this
> just yet. But remember that with that code there are two scrolls going on.
> One for use in the IDE and the other for use on the device. The IDE code
> is:set the vScroll of group "InputScrollerGroup" to pOffsetY  and the
> mobile code is:   iphoneControlSet sScrollerId, "vscroll", 0
>
> If it is not going back to the top when coming back from another card then
> try adding both of them in an open card handler like this:
>
> on openCard
>   iphoneControlSet sScrollerId, "vscroll", 0
>set the vScroll of group "InputScrollerGroup" to 0
> end openCard
>
> to tested but should work if the controls exist at that point.
>
> I'll look at it later.
>
> HTHs
>
> -- Tom McGrath III
> http://lazyriver.on-rev.com
> 3mcgr...@comcast.net
>
> On Jul 29, 2012, at 5:34 PM, Howard Bornstein wrote:
>
> > Hi Tom,
> >
> > Thank you for this code. It has been very helpful in getting me going on
> > using an IOS scroller. It works fine except for the following situation,
> > which is baffling me at this point.
> >
> > If I implement a scroller with your code, everything works they way I
> would
> > expect it to. However, if I scroll the list (say half-way down) and then
> > leave the card, when I return back, the top of the scrollable field is
> not
> > at the top of the scroller group (which I would expect because of this
> line
> > of code:  set the top of field "Counter" to the top of group
> > "InputScrollerGroup") but is, in fact, half-way down the scroller group.
> > Then, if I try to scroll the field up, it never gets to the bottom of the
> > field, but instead "bounces" somewhere near the middle of the content. In
> > other words, it looks like the entire field is offset down by some amount
> > (probably a function of how much I had it scrolled before I left the
> card).
> >
> > I can't figure out why this would happen since the CloseCard handler
> > deletes the IOS scroll group and OpenCard should create it fresh each
> time
> > I go to the card. Somehow, the field position is getting stuck after I
> > scroll it and then leave the card.
> >
> > Do you understand why this is happening?
> >
> > --
> > Regards,
> >
> > Howard Bornstein
> > ---
> > www.designeq.com
> >
> > On Thu, Apr 5, 2012 at 6:44 AM, Thomas McGrath III 
> wrote:
> >
> >> Graham,
> >>
> >> I don't use mobgui but instead I use tmControl for layout of iOS
> elements.
> >> There are two types of scrolling lists possible in LC. The first is
> using
> >> mobilePick by itself or use an option button (that uses the iOS
> >> mobilePicker). The second is using either an LC field object or other
> >> objects like the list field in tmControl but either of these needs to
> be in
> >> a group and the group can now have an iOS scroller applied to it.
> >>
> >> If you create a field that is very long and group it then select the
> group
> >> and make it shorter than that field it will scroll. I can't remember if
> the
> >> group needs locked or not. There are a couple of glitches to watch out
> for.
> >>
> >> Here is parts of a script that controls a grouped field and an iOS
> >> scroller. A mouseUp in the field can return the desired line etc.
> >>
> >> local sScrollerId
> >> on scrollerDidScroll pOffsetX, pOffsetY
> >>lock screen
> >>set the hScroll of group "InputScrollerGroup" to pOffsetX
> >>set the vScroll of group "InputScrollerGroup" to pOffsetY
> >>unlock screen
> >> end scrollerDidScroll
> >>
> >> on openCard
> >>set the layerMode of group "InputScrollerGroup" of this card to
> >> "scrolling"
> >>
> >>set the unboundedHScroll of group "InputScrollerGroup" to true
> >>set the unboundedVScroll of group "InputScrollerGroup" to true
> >>
> >> -- add items to a field "Counter" and have it grow to fit the
> contents
> >>set the height of field "Counter" of this card to the formattedHeight
> >> of field "Counter"
> >>set the top of field "Counter" to the top of group
> "InputScrollerGroup"
> >>
> >>set the threeDHilite of field "Lap Counter" to false
> >>iphoneControlCreate "scroller", "InputScroller"
> >>put the result into sScrollerId
> >>put the rect of group "InputScrollerGroup" into tRect
> >>iphoneControlSet sScrollerId, "rect", tRect
> >>put the formattedHeight of field "Counter" into tHeight
> >>iphoneControlSet sScrollerId, "contentRect", (0, 0, 0, tHeight)
> >>iphoneControlSet sScrollerId, "indicatorInsets", (0,0,6,0)
> >>iphoneControlSet sScrollerId, "visible", "true"
> >>iphoneControlSet sScrollerId, "canBounce", true
> >>
> >>iphoneControlSet sScrollerId, "declerationRate", fast
> >>iphoneControlSet sScrollerId, "scrollingEnabled", true
> >>iphoneControlSet sScrollerId, "can

Re: Need beta testers for new database library

2012-08-10 Thread Alejandro Tejada

Richard Gaskin wrote
> 
> I'd love to see that section as well.  I have a few articles of my own 
> in the works for various things, and it would be great if either or both 
> of you would like to contribute articles for LiveCode Journal.
> 
> I've always envisioned LCJ as a community-based effort, and would 
> happily format and post anything you'd like to contribute.
> 
> In fact, this is an open invitation for everyone here:  LiveCode Journal 
> is as useful as we make it.  Anyone and everyone is welcome to submit 
> articles, stacks, or other content that's helpful for the LiveCode 
> community.
> 
> Feel free to drop me a note any time at: ambassador@
> 

My English is not good enough... :-(
but thanks for the invitation.

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Need-beta-testers-for-new-database-library-tp4653339p4653632.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: Serial Port Access

2012-08-10 Thread stephen barncard
Sarah's serial stack

go URL "http://www.troz.net/rev/stacks/SerialTest.rev";

On Fri, Aug 10, 2012 at 4:36 PM, Bob Sneidar  wrote:

> Hi all.
>
> Has anyone written a serial port library? I would be happy to pay for it.
> What I want to do is replace our call accounting software with something I
> write. We don't need much, just departmentalized reports for charge backs,
> so I can do that pretty simply in LC, but I am not very hip on serial
> communications.
>
> I guess what I am looking for is something I can "turn on" and get the
> serial data coming in from a 9 pin coming from our phone system. I can
> parse the data as I get it. I just need a serial library that handles the
> connection and reads the data.
>
> 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
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
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


Serial Port Access

2012-08-10 Thread Bob Sneidar
Hi all. 

Has anyone written a serial port library? I would be happy to pay for it. What 
I want to do is replace our call accounting software with something I write. We 
don't need much, just departmentalized reports for charge backs, so I can do 
that pretty simply in LC, but I am not very hip on serial communications. 

I guess what I am looking for is something I can "turn on" and get the serial 
data coming in from a 9 pin coming from our phone system. I can parse the data 
as I get it. I just need a serial library that handles the connection and reads 
the data. 

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


Re: What was that thing with Photoshop images?

2012-08-10 Thread Mark Wieder
Jacque-

Friday, August 10, 2012, 1:01:28 PM, you wrote:

> There may or may not be multiples, but I was responding to why we'd want
> same-named controls in the stack.

Ah... "in the stack". That's a different matter entirely.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
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: What was that thing with Photoshop images?

2012-08-10 Thread J. Landman Gay

On 8/10/12 1:37 PM, Mark Wieder wrote:

Jacque-

Friday, August 10, 2012, 9:30:46 AM, you wrote:


if there is a control "whatever" then...



It lets me flag a card to take some action without polling every object
or needing to keep track in a custom property, or do something else that
requires upkeep. As long as that control exists, the handler runs. I
don't have to remember to do anything else.


OK. Now *that's* pretty clever. As long as there's a "whatever"
control on a card the action will be taken. But I still don't get why
you would want multiple "whatever" controls on the same card...



There may or may not be multiples, but I was responding to why we'd want 
same-named controls in the stack. If we were able to assign icons by 
image name, we could only have one image of that name to be sure of an 
accurate ID.


I used to use same-named buttons on a card actually, but that was a 
HyperCard holdover. I use labels or properties now.


--
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: Problem with textshift

2012-08-10 Thread J. Landman Gay

On 8/10/12 11:43 AM, Peter Haworth wrote:

I'm using the textshift property to align icons inserted by setting the
imagesource of a character in a line of text.  All the development work was
done using 5.5 and all worked fine.  Recently, I ran the application on 5.0
and setting the textshift had no effect.


It's always worked okay for me, but the fixedlineheight of the field has 
to be true. Could it have changed?


--
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: What was that thing with Photoshop images?

2012-08-10 Thread Mark Wieder
Jacque-

Friday, August 10, 2012, 9:30:46 AM, you wrote:

>if there is a control "whatever" then...

> It lets me flag a card to take some action without polling every object
> or needing to keep track in a custom property, or do something else that
> requires upkeep. As long as that control exists, the handler runs. I
> don't have to remember to do anything else.

OK. Now *that's* pretty clever. As long as there's a "whatever"
control on a card the action will be taken. But I still don't get why
you would want multiple "whatever" controls on the same card...

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
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: Need beta testers for new database library

2012-08-10 Thread Andre Garzia
Richard,

Check out the video at:

https://vimeo.com/46918350

If you're interested, I would like to contribute an article soon.

=D

Cheers
andre
___
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: Teaser video for my new database library

2012-08-10 Thread Andre Garzia
On Fri, Aug 10, 2012 at 2:58 PM, Tim Selander wrote:

> Andre,
>
> That was a very helpful video... and made me very interested in becoming a
> beta-tester, if you still have open slots! Does the library work with
> RevMedia 4.0? With Unicode?
>
>
Hi Tim,

I am about to release it. I haven't tested it with RevMedia but I think it
should work. It is targeted at SQLite. Unicode UTF-16 is the internal TEXT
format for unicode so I expect that it should work. I don't do any
translation. What you pass into the array, is what ends up in the database.

Cheers
andre



> Tim Selander
>
>
> On 8/10/12 10:39 AM, Andre Garzia wrote:
>
>> Hey Folks,
>>
>> Since we've been talking lately about my new database library, I
>> decided to share a video about it.
>>
>> https://vimeo.com/46918350
>>
>> Feedback is welcome!
>>
>> Cheers
>> andre
>>
>>
>
> __**_
> 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
>



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
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: Teaser video for my new database library

2012-08-10 Thread Tim Selander

Andre,

That was a very helpful video... and made me very interested in 
becoming a beta-tester, if you still have open slots! Does the 
library work with RevMedia 4.0? With Unicode?


Tim Selander

On 8/10/12 10:39 AM, Andre Garzia wrote:

Hey Folks,

Since we've been talking lately about my new database library, I
decided to share a video about it.

https://vimeo.com/46918350

Feedback is welcome!

Cheers
andre




___
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: Problem with textshift

2012-08-10 Thread John Dixon

'textShift' has been around since version 1.0

> Is textshift supported in 5.0? I suspect it is a property that was introduced 
> after 5.0. 
> 
> 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


Re: Need beta testers for new database library

2012-08-10 Thread Richard Gaskin

Alejandro Tejada wrote:

I want to see in LiveCode Journal, a special section
devoted to the Mystic ,Magical and Wonderful world
of Databases. [Notice: This is my personal point of
view about this particular topic of computing] :-D

Maybe Richard want to name this new section like:
Love your Data[base]

:-D


Peter Haworth wrote:

Alejandro,
I would love to contribute the WOrld of Databases!


You're both hired!  :)

I'd love to see that section as well.  I have a few articles of my own 
in the works for various things, and it would be great if either or both 
of you would like to contribute articles for LiveCode Journal.


I've always envisioned LCJ as a community-based effort, and would 
happily format and post anything you'd like to contribute.


In fact, this is an open invitation for everyone here:  LiveCode Journal 
is as useful as we make it.  Anyone and everyone is welcome to submit 
articles, stacks, or other content that's helpful for the LiveCode 
community.


Feel free to drop me a note any time at: ambassa...@fourthworld.com

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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: Problem with textshift

2012-08-10 Thread Bob Sneidar
Is textshift supported in 5.0? I suspect it is a property that was introduced 
after 5.0. 

Bob


On Aug 10, 2012, at 9:43 AM, Peter Haworth wrote:

> I'm using the textshift property to align icons inserted by setting the
> imagesource of a character in a line of text.  All the development work was
> done using 5.5 and all worked fine.  Recently, I ran the application on 5.0
> and setting the textshift had no effect.
> 
> This is probably not a very commonnly used property but wondering if anyone
> else has seen this?  Not sure if it's worth submitting a bug since it now
> works as of 5.5.
> 
> The line of code in question is:
> 
> **
> 
> *set the imagesource of char x+1 of line pline of field "Objects" totImageID
> *
> 
> *set* the textshift of char x+1 of line pline of field "Objects" to 4
> 
> 
> stepping through the code, the image appears after the first line is
> executed but does not move when the second line is executed.
> 
> 
> 
> 
> Pete
> lcSQL Software 
> ___
> 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


Problem with textshift

2012-08-10 Thread Peter Haworth
I'm using the textshift property to align icons inserted by setting the
imagesource of a character in a line of text.  All the development work was
done using 5.5 and all worked fine.  Recently, I ran the application on 5.0
and setting the textshift had no effect.

This is probably not a very commonnly used property but wondering if anyone
else has seen this?  Not sure if it's worth submitting a bug since it now
works as of 5.5.

The line of code in question is:

**

*set the imagesource of char x+1 of line pline of field "Objects" totImageID
*

*set* the textshift of char x+1 of line pline of field "Objects" to 4


stepping through the code, the image appears after the first line is
executed but does not move when the second line is executed.




Pete
lcSQL Software 
___
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: What was that thing with Photoshop images?

2012-08-10 Thread J. Landman Gay

On 8/10/12 12:15 AM, Mark Wieder wrote:

Jacque-

Thursday, August 9, 2012, 10:09:12 PM, you wrote:


That's my feeling about objects with the same name.



There are some convenient uses for same-named objects. I use them on
purpose sometimes.


? OK - I'll bite. Name one.



  if there is a control "whatever" then...

It lets me flag a card to take some action without polling every object 
or needing to keep track in a custom property, or do something else that 
requires upkeep. As long as that control exists, the handler runs. I 
don't have to remember to do anything else.


--
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: ANN: GLX2 3.0.10

2012-08-10 Thread Mike Kerner
whoops - it looks like I do have a login #failMe
___
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: What was that thing with Photoshop images?

2012-08-10 Thread Peter Haworth
I guess there are cases where I too use controls with the same name.  The
most obvious one is labels.  99% of the time, I never need to address
labels in a script in any way so I let the default name of "Label" stand.

I'm also OK with duplicate names for different types of controls (field,
button, etc) or if the two controls are the same type but in different
groups.  In either case, the control can be identified uniquely by name.

Pete
lcSQL Software 



On Thu, Aug 9, 2012 at 10:09 PM, J. Landman Gay wrote:

> In general:
>>
>> Patient to Doctor: "Doctor -  it hurts when I do this"
>> Doctor to Patient: "Well don't do that then."
>>
>> That's my feeling about objects with the same name.
>>
>
> There are some convenient uses for same-named objects. I use them on
> purpose sometimes.
___
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: ANN: GLX2 3.0.10

2012-08-10 Thread Mike Kerner
I was too lazy to create a profile, which is why I did it anonymously.
-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: LiveCode Mobile Development by Colin Holgate

2012-08-10 Thread tbodine
Just got the ebook. Looks great! Thanks Colin.
-- Tom Bodine



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/LiveCode-Mobile-Development-by-Colin-Holgate-tp4653552p4653614.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: Externals and COM objects

2012-08-10 Thread Mark Schonewille
Thanks Dar. We'll try that.

--
Best regards,

Mark Schonewille

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

Economy-x-Talk is looking for an amateur painter/cartoonist/poet etc. Contact 
me http://qery.us/du

The Economy-x-Talk office is closed from 30 August until 4 September 2012.

On 10 aug 2012, at 17:50, Dar Scott wrote:

> It has been years.  
> 
> This might be due to the wrong mode for the thread you are on.  Look at how 
> you use SetApartmentState() and CoInitializeEx().  Yikes!  I misspelled the 
> first function and the spellchecker found it!  
> 
> Thread problems can be fickle, so just because something seems to work once 
> does not mean it is reliable.  
> 
> There is probably a pun including these words:  External, Apartment, Thread, 
> ...
> 
> Dar


___
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: ANN: GLX2 3.0.10

2012-08-10 Thread Mark Wieder
Mike-

Thursday, August 9, 2012, 1:09:39 PM, you wrote:

> Are we taking suggestions in this thread?  If so:
> 1) The parser should, when colorizing and capitalizing control structures,
> include the IF keyword (THEN, ELSE and END are included)
> 2) Code collapse/hiding with disclosure triangles, and construct lines
> would be great.

Thanks for logging the issues on bitbucket. If you log in rather than
doing it anonymously you can get notified when there are changes. In
that case you would notice that 2) is already there and that 1) is
working for me. We could take that offline and wouldn't have to use up
space on this list.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
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: Externals and COM objects

2012-08-10 Thread Dar Scott
It has been years.  

This might be due to the wrong mode for the thread you are on.  Look at how you 
use SetApartmentState() and CoInitializeEx().  Yikes!  I misspelled the first 
function and the spellchecker found it!  

Thread problems can be fickle, so just because something seems to work once 
does not mean it is reliable.  

There is probably a pun including these words:  External, Apartment, Thread, ...

Dar


On Aug 10, 2012, at 5:08 AM, Mark Schonewille wrote:

> Hi,
> 
> We have made an external that uses COM objects. Now we get the following 
> error when running the external:
> 
> Failed to initialize COM library. Error code = 0x80010106
> 
> Does this look familiar to anyone? Is anyone aware of problems with COM 
> components and LiveCode? Any solutions?
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> Economy-x-Talk is looking for an amateur painter/cartoonist/poet etc. Contact 
> me http://qery.us/du
> 
> The Economy-x-Talk office is closed from 30 August until 4 September 2012.
> 
> 
> ___
> 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: What was that thing with Photoshop images?

2012-08-10 Thread Mark Wieder
Chipp-

Friday, August 10, 2012, 12:51:01 AM, you wrote:

> on clearTempImgs
>repeat with x = the number of images down to 1
>   if the short name of img x is "temp" then delete img x
>end repeat
> end clearTempImgs

less confusing alternative:

if the short name of img x begins with "temp" then...

better yet, start with the images in a group. Then you just

delete group "imageGroup"

One line of code and no confusion about multiple controls with the
same name.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
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: Externals and COM objects

2012-08-10 Thread Mark Schonewille
Thanks, Mike. Safely ignoring the error might be a solution. We are looking 
into that now.

--
Best regards,

Mark Schonewille

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

Economy-x-Talk is looking for an amateur painter/cartoonist/poet etc. Contact 
me http://qery.us/du

The Economy-x-Talk office is closed from 30 August until 4 September 2012.

On 10 aug 2012, at 16:31, Mike Bonner wrote:

> Don't know much about this stuff but found some things that might apply.
> 
> 
> http://stackoverflow.com/questions/2979113/qcroreapplication-qapplication-with-wmi--
> says that the error is due to the com already being initialized and
> provides more info.
> 
> 
> http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/e1bc9fe4-d985-473a-88f7-ef2ed47f77b3/Says
> the same basic thing but has some code to "safely ignore the error"
> 
> The documents also say it refers to the fact that a thread mode can't be
> changed after its set.



___
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: Versioning ( was ANN: GLX2 3.0.10)

2012-08-10 Thread Bob Sneidar
Hey that is a great tip! I used to use an old OS 9 utility to do something 
similar between old and new code bases. 

Bob


On Aug 9, 2012, at 8:50 PM, J. Landman Gay wrote:

> On 8/9/12 10:42 PM, Kay C Lan wrote:
> 
>> Then there is the process of retrieving lost data. You can't just open up
>> any of these backups because they have exactly the same stack name as the
>> stack you are working on.
> 
> It's not what you're looking for (which would be great, I agree) but on 
> desperate occasions I have opened two stacks as text files in BBEdit and run 
> "find differences" on them.
> 
> -- 
> 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: Externals and COM objects

2012-08-10 Thread Mike Bonner
 Don't know much about this stuff but found some things that might apply.


http://stackoverflow.com/questions/2979113/qcroreapplication-qapplication-with-wmi--
 says that the error is due to the com already being initialized and
 provides more info.


http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/e1bc9fe4-d985-473a-88f7-ef2ed47f77b3/Says
 the same basic thing but has some code to "safely ignore the error"

 The documents also say it refers to the fact that a thread mode can't be
 changed after its set.
___
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: What was that thing with Photoshop images?

2012-08-10 Thread Peter M. Brigham
On Aug 10, 2012, at 12:39 AM, Peter Haworth wrote:

> …Jacque - I know about the button you mentioned but ti still results in an
> image ID.  Here's the situation that caused me to ask the question.  I had
> around 30 images I was using as button icons, some for the enabled state,
> some for the disabled state.  I found a much better looking set of images
> to use, imported them with new IDs.  Now I had to go through all my buttons
> and change their IDs to the new ones.  Not a huge deal but if I had been
> able to set the button icons to image names, I would have had to do nothing.
> 
> Plus Revolution makes a big deal about how English like and understandable
> the language is, and rightly so.  Image IDs like 1004 tell you nothing
> about where the image is in the stack while 'img "OpenStack" of Stack
> "myImages" tells you exactly where to find it.
> 
> I don;t expect anything to change of course, just saying IMHO at least an
> option to use image names would be more understandable and maintainable.

It would be easy to write a handler that dose what you want. Something like 
this (untested):

on assignBtnImage tName, tBtnLongID
   put the long id of the target into stackName
   set the itemdelimiter to "/"
   delete item 1 to -2 of stackName
   delete word 1 of stackName
   replace quote with empty in stackName
   repeat with n = 1 to the number of images of stack stackName
  if the short name of image n of stack stackName = tName then
 set the icon of tBtnLongID to the short id of image n of stack 
stackName
  end if
   end repeat
end assignBtnImage

Assuming images are all in the current stack -- and no duplicate image names, 
of course.

I may have an error or two in this, but you see the basic idea….

-- 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] Image Editing App Updated (and on sale?)

2012-08-10 Thread Roger Eller
*Gimp Sources for **OS X (Tiger, Leopard, SnowLeo, Lion, Mtn. Lion):*
http://gimp.lisanet.de/Website/Download.html

*SumoPaint Alternative (if there is an internet connection):*
http://www.sumopaint.com/

~Roger


On Fri, Aug 10, 2012 at 12:43 AM, Peter Haworth  wrote:

> Being a cheapskate (plus not doing much in the way of image manipulation),
> I've started using Gimp on OS X (it's free).  It's kinda weird looking but
> so far I've managed to do the simple things I need to do with it.
> Pete
> lcSQL Software 
>
___
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


Externals and COM objects

2012-08-10 Thread Mark Schonewille
Hi,

We have made an external that uses COM objects. Now we get the following error 
when running the external:

Failed to initialize COM library. Error code = 0x80010106

Does this look familiar to anyone? Is anyone aware of problems with COM 
components and LiveCode? Any solutions?

--
Best regards,

Mark Schonewille

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

Economy-x-Talk is looking for an amateur painter/cartoonist/poet etc. Contact 
me http://qery.us/du

The Economy-x-Talk office is closed from 30 August until 4 September 2012.


___
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] Game Design Competition

2012-08-10 Thread Rod McCall
We are running a game design competition as part of an EC research
project, if you are interested please check out the info and link
below. Also there is a chance LiveCode will be used for the mobile
apps, if you'd like that to be the case then why not come up with some
cool design?:)

The LiveCity project announces an open competition for the design of a
mixed reality gaming experience that will connect the cities of Athens
and Luxembourg! The aim is to bring the people in both cities closer
together through the concept of serious gaming. The competition is
open to anyone aged over 18 residing in any country and you can submit
either individually or as a team. Groups of museum curators, students,
game designers or just those with an interest are welcome to enter.
The winner of the competition will be announced publicly and this is
an ideal opportunity to raise your profile in the mixed reality,
gaming and research communities.
Competition Information:

http://www.livecity-psp.eu/index.php?option=com_content&view=article&id=75&Itemid=76

Deadline: 1st September 2012

-- 
Dr Rod McCall
Researcher in in-car, mixed reality technology and gaming
Interdisciplinary Centre for Security, Reliability and Trust
University of Luxembourg
Blog: www.rodmc.com twitter:rodlux
Publications and Information available on my blog

___
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: Simple script doesn't work

2012-08-10 Thread Chipp Walters
There could be several reasons. The IDE might be eating the messages on
startup-- or getting in the way somehow. The engine might have a timing
issue. There may be an error thrown and not trapped. There could be other
code executing in your stack doing something else and getting in the way.
There could be frontscripts, backscripts, libraries, revLibs, etc..

There IS a reason, it just could take the better part of a day to track it
down sometimes. It might work in standalone mode and not the IDE. Really
frustrating is trying to debug this sort of behavior on mobile devices!

Most of us know the 'send in 0 seconds' trick Mark kindly shared. I guess
we quit asking questions years ago ;-)

On Mon, Aug 6, 2012 at 1:56 AM, Marek Niesiobedzki  wrote:

> But why it doesn't work without send? Could you explain it?
>
>
___
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: What was that thing with Photoshop images?

2012-08-10 Thread Chipp Walters
on clearTempImgs
   repeat with x = the number of images down to 1
  if the short name of img x is "temp" then delete img x
   end repeat
end clearTempImgs

On Fri, Aug 10, 2012 at 12:15 AM, Mark Wieder wrote:

>
>
> > There are some convenient uses for same-named objects. I use them on
> > purpose sometimes.
>
> ? OK - I'll bite. Name one.
>
>
___
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