Re: Brush Tool in iOS

2011-10-06 Thread Scott Rossi
I think because the LFs allow you place single points (dots) on the card
that simulate the appearance of paint.  Spaces in the point list of a
polygon allow you to create discontinuous segments/lines.  Without the LFs,
you would wind up with a messy close polygon.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design



Recently, tbodine wrote:

> Hope you don't mind a LC newbie coder question. In the code below, why does
> the graphic need a linefeed (LF constant)? Or does LF have some other
> meaning?
> Thanks,
> Tom Bodine
> 
> 
> John Craig-4 wrote:
>> 
>> Here's a simple example using a graphic.  Just create a new
>> stack, add a line graphic called 'draw', set it's lineSize to 10 then
>> put the following script into the card script.  Double click clears the
>> drawing, and each mouseDown starts a new line.
>> 
>> 
>> local sDrawing
>> 
>> 
>> on mouseDoubleUp
>> set the points of grc "draw" to empty
>> end mouseDoubleUp
>> 
>> 
>> on mouseDown
>> put true into sDrawing
>> end mouseDown
>> 
>> 
>> on mouseMove
>> if sDrawing then
>>set the points of grc "draw" to the points of grc "draw" & LF &
>> the mouseLoc
>> end if
>> end mouseMove
>> 
>> 
>> on mouseUp
>> put false into sDrawing
>> set the points of grc "draw" to the points of grc "draw" & LF & LF
>> end mouseUp
>> 
>> 
> 
> 
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/Brush-Tool-in-iOS-tp3804474p388
> 0386.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



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


Re: Brush Tool in iOS

2011-10-06 Thread tbodine
Hope you don't mind a LC newbie coder question. In the code below, why does
the graphic need a linefeed (LF constant)? Or does LF have some other
meaning?
Thanks,
Tom Bodine


John Craig-4 wrote:
> 
> Here's a simple example using a graphic.  Just create a new 
> stack, add a line graphic called 'draw', set it's lineSize to 10 then 
> put the following script into the card script.  Double click clears the 
> drawing, and each mouseDown starts a new line.
> 
> 
> local sDrawing
> 
> 
> on mouseDoubleUp
> set the points of grc "draw" to empty
> end mouseDoubleUp
> 
> 
> on mouseDown
> put true into sDrawing
> end mouseDown
> 
> 
> on mouseMove
> if sDrawing then
>set the points of grc "draw" to the points of grc "draw" & LF & 
> the mouseLoc
> end if
> end mouseMove
> 
> 
> on mouseUp
> put false into sDrawing
> set the points of grc "draw" to the points of grc "draw" & LF & LF
> end mouseUp
> 
> 


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Brush-Tool-in-iOS-tp3804474p3880386.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: Brush Tool in iOS

2011-09-12 Thread Gerry Orkin
Randy wrote:

> Well, that is very cool.

So elegant :) Thanks John!

Gerry
___
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: Brush Tool in iOS

2011-09-11 Thread Randy Hengst
Hi John,

Well, that is very cool. Thanks for sharing it.

be well,
randy
-
On Sep 11, 2011, at 9:02 AM, John Craig wrote:

> Hi, Randy.  Here's a simple example using a graphic.  Just create a new 
> stack, add a line graphic called 'draw', set it's lineSize to 10 then put the 
> following script into the card script.  Double click clears the drawing, and 
> each mouseDown starts a new line.
> 
> :)
> 
> 
> 
> local sDrawing
> 
> 
> on mouseDoubleUp
>   set the points of grc "draw" to empty
> end mouseDoubleUp
> 
> 
> on mouseDown
>   put true into sDrawing
> end mouseDown
> 
> 
> on mouseMove
>   if sDrawing then
>  set the points of grc "draw" to the points of grc "draw" & LF & the 
> mouseLoc
>   end if
> end mouseMove
> 
> 
> on mouseUp
>   put false into sDrawing
>   set the points of grc "draw" to the points of grc "draw" & LF & LF
> end mouseUp
> 
> 
> 
> 
> On 10/09/2011 23:56, Randy Hengst wrote:
>> Hi All,
>> 
>> I've begun playing with the brush tool in iOS… I'd like the users to be able 
>> to draw on the screen. I don't need to save any of the drawings, but I need 
>> them to be able to draw and erase….
>> 
>> I hit a problem right off the bat…. set the brush to 8 throws an error in 
>> the simulator and on the device…. the message reads "An error occurred on 
>> line: (line number of set brush).
>> 
>> Has anyone successfully used the brush tool in iOS?
>> 
>> be well,
>> randy hengst
>> ___
>> 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: Brush Tool in iOS

2011-09-11 Thread John Craig
Hi, Randy.  Here's a simple example using a graphic.  Just create a new 
stack, add a line graphic called 'draw', set it's lineSize to 10 then 
put the following script into the card script.  Double click clears the 
drawing, and each mouseDown starts a new line.


:)



local sDrawing


on mouseDoubleUp
   set the points of grc "draw" to empty
end mouseDoubleUp


on mouseDown
   put true into sDrawing
end mouseDown


on mouseMove
   if sDrawing then
  set the points of grc "draw" to the points of grc "draw" & LF & 
the mouseLoc

   end if
end mouseMove


on mouseUp
   put false into sDrawing
   set the points of grc "draw" to the points of grc "draw" & LF & LF
end mouseUp




On 10/09/2011 23:56, Randy Hengst wrote:

Hi All,

I've begun playing with the brush tool in iOS… I'd like the users to be able to 
draw on the screen. I don't need to save any of the drawings, but I need them 
to be able to draw and erase….

I hit a problem right off the bat…. set the brush to 8 throws an error in the 
simulator and on the device…. the message reads "An error occurred on line: 
(line number of set brush).

Has anyone successfully used the brush tool in iOS?

be well,
randy hengst
___
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: Brush Tool in iOS

2011-09-11 Thread Joe Lewis Wilkins
Randy, Scott,

Any idea as to whether this is an Apple limitation or a LC problem? I imagine 
it is more likely something that Apple hasn't figured out yet, but I've been 
wrong before! (smile) Guess my project won't be going forward any time soon.

BTW, while we're speculating, have anyone heard of multiple iPads being used? I 
know that sounds really awkward, but multiple monitors did at one time as well. 
Just another way of expanding the real estate.

Thanks,

Joe Wilkins

On Sep 11, 2011, at 6:01 AM, Randy Hengst wrote:

> Joe,
> 
> It doesn't work either.
> 
> be well,
> randy
> -
> On Sep 10, 2011, at 6:27 PM, Joe Lewis Wilkins wrote:
> 
>> Randy,
>> 
>> How about the paint bucket? I have an app I'm thinking about converting from 
>> OSX to iOS that uses both.
>> 
>> TIA, 
>> Joe Lewis Wilkins
>> Architect
>> 
>> On Sep 10, 2011, at 3:56 PM, Randy Hengst wrote:
>> 
>>> Hi All,
>>> 
>>> I've begun playing with the brush tool in iOS… I'd like the users to be 
>>> able to draw on the screen. I don't need to save any of the drawings, but I 
>>> need them to be able to draw and erase….
>>> 
>>> I hit a problem right off the bat…. set the brush to 8 throws an error in 
>>> the simulator and on the device…. the message reads "An error occurred on 
>>> line: (line number of set brush).
>>> 
>>> Has anyone successfully used the brush tool in iOS?
>>> 
>>> be well,
>>> randy hengst


___
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: Brush Tool in iOS

2011-09-11 Thread Randy Hengst
Joe,

It doesn't work either.

be well,
randy
-
On Sep 10, 2011, at 6:27 PM, Joe Lewis Wilkins wrote:

> Randy,
> 
> How about the paint bucket? I have an app I'm thinking about converting from 
> OSX to iOS that uses both.
> 
> TIA, 
> Joe Lewis Wilkins
> Architect
> 
> On Sep 10, 2011, at 3:56 PM, Randy Hengst wrote:
> 
>> Hi All,
>> 
>> I've begun playing with the brush tool in iOS… I'd like the users to be able 
>> to draw on the screen. I don't need to save any of the drawings, but I need 
>> them to be able to draw and erase….
>> 
>> I hit a problem right off the bat…. set the brush to 8 throws an error in 
>> the simulator and on the device…. the message reads "An error occurred on 
>> line: (line number of set brush).
>> 
>> Has anyone successfully used the brush tool in iOS?
>> 
>> be well,
>> randy hengst
> 
> ___
> 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: Brush Tool in iOS

2011-09-11 Thread Randy Hengst
Now that you mention it, that does ring a bell….

be well,
randy
-
On Sep 10, 2011, at 6:21 PM, Scott Rossi wrote:

> Recently, Randy Hengst wrote:
> 
>> Has anyone successfully used the brush tool in iOS?
> 
> Last I heard, painting wasn't working on iOS.  Don't recall hearing anything
> about it being fixed yet.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: Brush Tool in iOS

2011-09-10 Thread Joe Lewis Wilkins
Randy,

How about the paint bucket? I have an app I'm thinking about converting from 
OSX to iOS that uses both.

TIA, 
Joe Lewis Wilkins
Architect

On Sep 10, 2011, at 3:56 PM, Randy Hengst wrote:

> Hi All,
> 
> I've begun playing with the brush tool in iOS… I'd like the users to be able 
> to draw on the screen. I don't need to save any of the drawings, but I need 
> them to be able to draw and erase….
> 
> I hit a problem right off the bat…. set the brush to 8 throws an error in the 
> simulator and on the device…. the message reads "An error occurred on line: 
> (line number of set brush).
> 
> Has anyone successfully used the brush tool in iOS?
> 
> be well,
> randy hengst

___
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: Brush Tool in iOS

2011-09-10 Thread Scott Rossi
Recently, I wrote:

>> Has anyone successfully used the brush tool in iOS?
> 
> Last I heard, painting wasn't working on iOS.  Don't recall hearing anything
> about it being fixed yet.

Also, just remembered Colin Holgate may have found a workaround???

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design



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


Re: Brush Tool in iOS

2011-09-10 Thread Scott Rossi
Recently, Randy Hengst wrote:

> Has anyone successfully used the brush tool in iOS?

Last I heard, painting wasn't working on iOS.  Don't recall hearing anything
about it being fixed yet.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design



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