[OT] MicroSheep follow a "bad" Apple

2010-04-30 Thread Richmond Mathewson

 Adobe must be sweating:

http://www.macrumors.com/2010/04/30/microsoft-looks-to-a-future-of-h-264-based-html5-for-web-video-content/

Well; happy RunRev developers; it is proabbaly better in the long run if 
Flash becomes less all-pervasive,

especially if the revWeb plugin for Linux can get sorted out.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Apples actual response to the Flash issue

2010-04-30 Thread Richmond Mathewson

 On 01/05/2010 04:34, Kay C Lan wrote:

On Sat, May 1, 2010 at 2:36 AM, Peter Alcibiades<
palcibiades-fi...@yahoo.co.uk>  wrote:


Some very wise comments on this issue:


Yes, many of the reader 'comments' made about this article are very wise.
Unfortunately the article itself seems to be written by someone who believes
they live in an idealistic world where people are forced to buy Apple
products.


Well; nobody is forced to buy Apple products, but there is a tremendous
amount of peer pressure among the 20-40 year olds (who make up the
majority of the tech consumers) which almost amounts to compulsion.

Steve Jobs, like it or not, does have dictatorial tendencies, and, like it
or not, he does have tremendous power.

It is entirely possible, of course, to pop round the corner, buy a cheapo
PC and run whatever form of Linux grabs your fancy for next to nothing -
I know because that is very much "my bag"; but I'm a 48 year-old
non-conformist who has had people being rude to and about him for so
long that he has ceased to care; having a sufficiently self-confident ego
that it hasn't been crushed over the years.

Unfortunately (at least from my point of view) the world that buys new
computers (i.e. North America, Europe, Australia and the Pacific Rim) 
does not consist

of lots of goats; it consists of sheep mainly.

Last year, in Edinburgh the most informative thing for me (even more than
the conference) were the looks my wife's 7 year old G4 iBook was getting
in the Student halls of residence from Japanese students; several of them
came over and asked me why I didn't have a whizz-bang, spiffy-bananas
macBook - I don't think any of them could understand my reply:

"When it breaks down completely I will buy a new laptop, if I still need
one."

I have a similar problem with 3 spoilt rich kids I teach English to who
cannot understand why I have a G3 iMac at the front of the class
rather than some newer machine attached to a monster flat-screen
VDU. I have told them that when I put my fees up from £4 for 90
minutes to £40 I will get a flat-screen for myself upstairs; but that the
G3 is "just the ticket" for the school.
-
Yes, there are many wise remarks; but they are probably
tempered by a realisation that most of the "spending public"
are fairly foolish and prone to the winds of fashion.

The woman who helps my younger son with his Bulgarian literature
came round to borrow some money the other day because she had
seen a whopper flat-screen TV at half price in some trade mag a week
earlier and spent the month's food-and-bills money on it so she
could be just like the people next door (who enjoy a much larger income):
I forwent the temptation to give her a suitably pompous lecture . . .  :)

Quod erat  demonstrandum (kept the pomposity for here).

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


User Extensions/Externals

2010-04-30 Thread Graham & Heather Harrison
In the first rev lesson on externals at 
http://lessons.runrev.com/spaces/lessons/buckets/784/lessons/7116-How-to-safely-attach-an-external-to-your-stack,
 after saving the stack this statement is issued:

send "revert" to me in 5 ticks -- the equivalent of quit then restart.

When I use this under rev 4.0.0 on  Mac OS X 10.6.3, it causes the card to go 
into strobe mode. Any 
explanations?___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: logistic example of Runrev Revolution?

2010-04-30 Thread Shani
HI, thanks for your reply.

I am talking about trucks, fields, plants. 
Simulation. Trucks bids to the field or plant and go for loading, etc. 



-Original Message-
From: use-revolution-boun...@lists.runrev.com
[mailto:use-revolution-boun...@lists.runrev.com] On Behalf Of Alejandro
Tejada
Sent: Saturday, May 01, 2010 2:46 AM
To: use-revolution@lists.runrev.com
Subject: RE: logistic example of Runrev Revolution?

on Fri, 30 Apr 2010 20:42:40 +0200
"Shani" wrote:

> Is there is any Agriculture logistic example of Runrev Revolution?

Hi Shani,

I have made many works for the main agricultural university
in the place where i live.

If you explain me what is an Agricultural logistic example,
i could ask them next monday, if they have done this.

Thanks in advance!

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

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


Re: Apples actual response to the Flash issue

2010-04-30 Thread Kay C Lan
On Sat, May 1, 2010 at 2:36 AM, Peter Alcibiades <
palcibiades-fi...@yahoo.co.uk> wrote:

>
> Some very wise comments on this issue:
>
>
Yes, many of the reader 'comments' made about this article are very wise.
Unfortunately the article itself seems to be written by someone who believes
they live in an idealistic world where people are forced to buy Apple
products.

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


Re: [Data Grid] Duplicate large amount of rows

2010-04-30 Thread Trevor DeVore

On Apr 30, 2010, at 2:04 PM, zryip theSlug wrote:


However the Data Grid command "AddData" does more than a simple
creation of a new index in an array. This is where I'm suspicious with
my code.


AddData has to update any caches that are created when setting the  
dgData. If you are updating the array and assigning the dgData then  
you are good to go (assuming the array is created properly).


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: logistic example of Runrev Revolution?

2010-04-30 Thread Alejandro Tejada
on Fri, 30 Apr 2010 20:42:40 +0200
"Shani" wrote:

> Is there is any Agriculture logistic example of Runrev Revolution?

Hi Shani,

I have made many works for the main agricultural university
in the place where i live.

If you explain me what is an Agricultural logistic example,
i could ask them next monday, if they have done this.

Thanks in advance!

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


Re: Card cut off at bottom because of menu

2010-04-30 Thread charles61

Jacqueline,

Thanks for that clarification and answering my question!

Charles Szasz
csz...@mac.com




On Apr 30, 2010, at 8:28 PM, J. Landman Gay [via Runtime Revolution] wrote:

> charles61 wrote: 
> > Jacqueline, 
> > 
> > Thanks! I have one question: Can you use the Preview in Menu Bar feature in 
> > the Menu Builder when you use your script when use the IDE in the Mac 
> > version of Revolution? 
> 
> That option sets the stack menubar. You can use it during development, 
> but turn it off before building the standalone. 
> 
> -- 
> Jacqueline Landman Gay | [hidden email] 
> HyperActive Software   | http://www.hyperactivesw.com
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Card-cut-off-at-bottom-because-of-menu-tp2075550p2077655.html
>  
> To unsubscribe from Re: Card cut off at bottom because of menu, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Card-cut-off-at-bottom-because-of-menu-tp2075550p2077656.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Card cut off at bottom because of menu

2010-04-30 Thread J. Landman Gay

charles61 wrote:

Jacqueline,

Thanks! I have one question: Can you use the Preview in Menu Bar feature in
the Menu Builder when you use your script when use the IDE in the Mac
version of Revolution?


That option sets the stack menubar. You can use it during development, 
but turn it off before building the standalone.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Card cut off at bottom because of menu

2010-04-30 Thread charles61

Jacqueline,

Thanks! I have one question: Can you use the Preview in Menu Bar feature in
the Menu Builder when you use your script when use the IDE in the Mac
version of Revolution?
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Card-cut-off-at-bottom-because-of-menu-tp2075550p2077640.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: FormattedText

2010-04-30 Thread J. Landman Gay

dunb...@aol.com wrote:
I guess I sort of see. The wrap (and formattedText) works with words, 
slicing the text off at the nearest whole word boundary. If a line has only one 
word, it just doesn't apply.


Right.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Math Help?

2010-04-30 Thread dfepstein


I haven't worked this out, but FWIW: 



Draw a vertical line from point X,Y and determine the value of y at the points, 
if any, that your line crosses each of the triangle's 3 line segments.  It 
looks as if X,Y is within the triangle if 

-- at least one intersecting point exists, and 

-- Y is not greater than the greatest y value among those existing points, nor 
less than the least y value among those existing points. 



Try sketching a few cases to see this.  If this is right, you'd need to make 3 
calls to something like 



function yOnASegment x1,y1,x2,y2,x0 

if (x0 >= x1 and x0 <= x2) or (x0<=x1 and x0>=x2) then -- the line segment 
includes x0, and we want to find y0: 

  put (y2-y1)/(x2-x1) into s -- slope; but need to provide separately for the 
case where x2=x1 

  return y1+s*(x0-x1) -- not sure I've considered all possible orderings of the 
points here, but you get the idea 

end if 

return empty -- x0 isn't on the segment 

end yOnASegment 



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


RE: Doing an action when focussing out of a field

2010-04-30 Thread Steve King
Thanks Zyrip

Exactly what I was looking for - worked first time

Cheers
Steve

>2010/4/30 Steve King :
>> Hi All
>>
>> I know this is going to be really really basic, but I haven't used Rev
for a
>> couple of years and cannot get this simple thing to work
>>
>> Enter characters into a field
>> When losing focus from that field, take the content of that filed, add
>> contents of field B and put into field C. A bit spreadsheet like
>>
>> I have tried OnFocusOut ... Put.. but the target fld "C" is not updated!
I
>> have also tried with MouseUp and OnReturn still target Fld C does not
update
>>
>> Cheers
>> Steve

>Hi Steve,

>Have you try exitField or closeField messages?

>ExitField performs when you leave a field which its content have not
changed
>CloseField performs when you leave a field after update it.


>HTH


>Regards,
>-- 
>-Zryip TheSlug- wish you the best! 8)
>http://www.aslugontheroad.co.cc

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


Re: Math Help?

2010-04-30 Thread Scott Rossi
Many thanks Malte and Jeff.  I now have a couple of good options to work
with.  I knew there must be some way to test this.

(I could not rely on Rev's built-in within()/intersection functions in this
case because I need to translate this behavior to another environment.)

Thanks & Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




Recently, Malte Pfaff-Brill wrote:

> function withinTriangle x1,y1,x2,y2,x3,y3,px,py
>-- x1 / y1 to x3 / y3 define the triangle, pX and pY are the point to check
>local area1,area2
>put area(x1,y1,x2,y2,px,py) + area(x2,y2,x3,y3,px,py) +
> area(x3,y3,x1,y1,px,py) into area1
>put area(x1,y1,x2,y2,x3,y3) into area2
>return abs(area1-area2)<0.0001
> end withinTriangle
> 
> function area x1,y1,x2,y2,x3,y3
>return abs(x1*y2+x2*y3+x3*y1-x1*y3-x3*y2-x2*y1)/2
> end area


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


Re: Math Help?

2010-04-30 Thread Malte Pfaff-Brill
Hi Scott,

this has been described as the most cost efficient (clock cycle wise) algo in 
game programming gems (if I recall correctly). I translated this to rev a while 
back:

Theory is, if the point is inside the triangle, then the sum of all partial 
areas equals the area of the whole triangle. 
To avoid rounding errors it does not check for equality, but a instead looks if 
the value is smaller than possible rounding error (I still hope for sub pixel 
position in the future, thus I left it in).

Hope that helps,

Malte

function withinTriangle x1,y1,x2,y2,x3,y3,px,py
   -- x1 / y1 to x3 / y3 define the triangle, pX and pY are the point to check
   local area1,area2
   put area(x1,y1,x2,y2,px,py) + area(x2,y2,x3,y3,px,py) + 
area(x3,y3,x1,y1,px,py) into area1
   put area(x1,y1,x2,y2,x3,y3) into area2
   return abs(area1-area2)<0.0001
end withinTriangle

function area x1,y1,x2,y2,x3,y3
   return abs(x1*y2+x2*y3+x3*y1-x1*y3-x3*y2-x2*y1)/2
end area___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Math Help?

2010-04-30 Thread Jeff Massung
On Fri, Apr 30, 2010 at 3:43 PM, Scott Rossi  wrote:

>
> Dot products... normalized vectors... head starting to spin... vision
> getting blurry...
>

Hehe. ;-)


>
> OK, Jeff, so does (B-A).x mean the x coordinate of point B minus the x
> coordinate of point A?
>
>
Yes. This might help:

freespace.virgin.net/hugo.elias/routines/r_dot.htm

2D dot product:

dot(p1,p2) = (p1.x * p2.x) + (p1.y * p2.y)

In this case, since you are dealing with line segments, the segment AB would
mean that:

p1.x = B.x - A.x
p1.y = B.y - A.y

Expanding this out...

dot(AB, AD) = [(B.x-A.x) * (D.x-A.x)] + [(B.y-A.y) * (D.y-A.y)]

Hope that helps!

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


Re: Math Help?

2010-04-30 Thread Scott Rossi
Recently, Jeff Massung wrote:

> Given a line segment AB, and a point C, take the dot product of AC * AB:
> 
> dot = [(B-A).x * (C-A).x] + [(B-A).y * (C-A).y]
> 
> The dot product (of two, normalized vectors) will give you the cosine of the
> angle between them. You actually don't care about the cosine, but the cosine
> of [0,90] will be >= 0 and the cosine of (90,180] will be < 0. That's all
> you care about.
> 
> So, if you have a triangle made up of points A,B,C and a random point D, you
> can do:
> 
> dot[0] = AD * AB
> dot[1] = BD * BC
> dot[2] = CD * CA
> 
> If any of those dot products are negative, then the point is outside the
> triangle. If all of them are positive, then the point is inside the
> triangle.

Dot products... normalized vectors... head starting to spin... vision
getting blurry... 

OK, Jeff, so does (B-A).x mean the x coordinate of point B minus the x
coordinate of point A?

Thanks & Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


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


Re: Math Help?

2010-04-30 Thread Jeff Massung
On Fri, Apr 30, 2010 at 2:38 PM, Jeff Massung  wrote:

> On Fri, Apr 30, 2010 at 2:15 PM, Devin Asay  wrote:
>
>> Hi Scott,
>>
>> On Apr 30, 2010, at 1:05 PM, Scott Rossi wrote:
>>
>> > Hello List:
>> >
>> > Was wondering if those with more comprehensive math skills than I know
>> how
>> > to determine if one point X,Y falls within a triangular region defined
>> by 3
>> > points X1,Y1, X2,Y2, X3,Y3.  Thanks for any suggestions.
>>
>>
>
> One solution to this problem is to "draw" a line from your point in any
> random direction. Then count the number of line/line intersections occur
> between the polygon and your imaginary line. If the number of intersections
> is odd, then the point is inside. If the number of intersections is even,
> then it is outside. I'll leave the line/line test as an exercise for the
> reader (or someone else here), but using pseudo code:
>


And just because I do this kind of work professionally and fun (yes, I'm
weird), another option open to you is to treat each line in the triangle as
a plane and test to see which side of the line your point happens to fall
on. You do this with each line segment in the triangle and if the sign of
the result is ever negative then the point is outside the triangle,
otherwise it's inside. This requires doing some dot product math (trivial),
though...

Given a line segment AB, and a point C, take the dot product of AC * AB:

dot = [(B-A).x * (C-A).x] + [(B-A).y * (C-A).y]

The dot product (of two, normalized vectors) will give you the cosine of the
angle between them. You actually don't care about the cosine, but the cosine
of [0,90] will be >= 0 and the cosine of (90,180] will be < 0. That's all
you care about.

So, if you have a triangle made up of points A,B,C and a random point D, you
can do:

dot[0] = AD * AB
dot[1] = BD * BC
dot[2] = CD * CA

If any of those dot products are negative, then the point is outside the
triangle. If all of them are positive, then the point is inside the
triangle.

This is all from memory really fast, though, it's possible that I got the
signs flipped (negative = inside and positive = outside), but that's easy
enough to test and fix.

Cheers,

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


Re: Math Help?

2010-04-30 Thread DunbarX
Scott.

Of course it does. So your comment of "good thought" was overly generous?

Craig

In a message dated 4/30/10 3:48:11 PM, sc...@tactilemedia.com writes:


> 
> Good thought, but if I understand what you're proposing, no, using the
> extents of the triangle defines a rectangular region, so this will not 
> work.
> 
> Best Regards,
> 
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Math Help?

2010-04-30 Thread Scott Rossi
Recently, dunb...@aol.com wrote:

> If you have your three points, like "a,b", "c,d" and "e,f", just order the
> x values (a,c and e) and the y values (b,d and f).
> 
> If the x value of the point is greater than the lowest x value of the
> triple and less than the highest (and like wise for the y, then the point lies
> within the triangle.
> 
> I think.

Good thought, but if I understand what you're proposing, no, using the
extents of the triangle defines a rectangular region, so this will not work.

Best Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


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


Re: Math Help?

2010-04-30 Thread Richmond Mathewson

 On 30/04/2010 22:05, Scott Rossi wrote:

Hello List:

Was wondering if those with more comprehensive math skills than I know how
to determine if one point X,Y falls within a triangular region defined by 3
points X1,Y1, X2,Y2, X3,Y3.  Thanks for any suggestions.

Regards,



Well . . . my attempt is a bit babyish, but it may be something to work 
from:


I set up a polygon graphic "TWIG" and set its points to X1, Y1,  X2,Y2,  
X3, XY


I then made a button "Q" which is 1 pixel by 1 pixel and moved it to
points X4, Y4 and did this:

if the loc of btn "Q" is within the rect of graphic "TRIG" then
  put "INSIDE" into fld "OUTPUT"
   else
  put "OUTSIDE" into fld "OUTPUT"
  end if

Not rocket science, but it is here:

http://andregarzia.on-rev.com/richmond/STUFF/TRIGGER.rev.zip

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


Re: Math Help?

2010-04-30 Thread DunbarX
Scott.

If you have your three points, like "a,b", "c,d" and "e,f", just order the 
x values (a,c and e) and the y values (b,d and f).

If the x value of the point is greater than the lowest x value of the 
triple and less than the highest (and like wise for the y, then the point lies 
within the triangle.

I think.

Craig Newman
In a message dated 4/30/10 3:05:42 PM, sc...@tactilemedia.com writes:


> Hello List:
> 
> Was wondering if those with more comprehensive math skills than I know how
> to determine if one point X,Y falls within a triangular region defined by 
> 3
> points X1,Y1, X2,Y2, X3,Y3.  Thanks for any suggestions.
> 
> Regards,
> 
> 
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Math Help?

2010-04-30 Thread Jeff Massung
On Fri, Apr 30, 2010 at 2:15 PM, Devin Asay  wrote:

> Hi Scott,
>
> On Apr 30, 2010, at 1:05 PM, Scott Rossi wrote:
>
> > Hello List:
> >
> > Was wondering if those with more comprehensive math skills than I know
> how
> > to determine if one point X,Y falls within a triangular region defined by
> 3
> > points X1,Y1, X2,Y2, X3,Y3.  Thanks for any suggestions.
>
>

One solution to this problem is to "draw" a line from your point in any
random direction. Then count the number of line/line intersections occur
between the polygon and your imaginary line. If the number of intersections
is odd, then the point is inside. If the number of intersections is even,
then it is outside. I'll leave the line/line test as an exercise for the
reader (or someone else here), but using pseudo code:

function isPointInTriangle(pPt, pTri)
  local tLineSeg
  local tCount

  -- create a line from the point to 0,0
  put pPt & cr into tLineSeg
  put 0, 0 after tLineSeg

  -- test the intersection between our imaginary line and the triangle
  if lineIntersect(tLineSeg, line 1 to 2 of pTri) is true then add 1 to
tCount
  if lineIntersect(tLineSeg, line 2 to 3 of pTri) is true then add 1 to
tCount
  if lineIntersect(tLineSeg, line 3 of pTri & cr & line 1 of pTri) is true
then add 1 to tCount

  -- point is inside if tCount is odd
  return tCount is 1 or tCount is 3
end isPointInTriangle

function lineIntersect(pLine1, pLine2)
  -- TODO:
end lineIntersect

Note: this works for any N-sided (convex) polygon. There is the possible
edge case of the random line segment you created passing through a vertex of
the polygon. But this is solved by just picking another random line and
testing again.

Hope this helps.

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


Re: Math Help?

2010-04-30 Thread Scott Rossi
Recently, Devin Asay wrote:

>> Was wondering if those with more comprehensive math skills than I know how
>> to determine if one point X,Y falls within a triangular region defined by 3
>> points X1,Y1, X2,Y2, X3,Y3.  Thanks for any suggestions.
> 
> I don't know from math, but I do know you can use the within() function, as
> opposed to the 'is within' operator, to test for "within-ness" of
> non-rectangular objects. For instance, if you have an opaque, 3-sided polygon
> graphic, within() will only be true if the point you're testing is inside the
> filled part of the triangle.
> 
> I'm sure some real math expert would have a "real math" solution.

Thanks Devin, that latter is correct:  I need the math solution. :-)

Best Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


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


Re: Webinar Client (like Dim-Dim) | ITunes Alternative (like Song Bird)

2010-04-30 Thread Scott Rossi
Recently, Rafiki Cai wrote:

> In specific, my curiosity centers around two types
> of application:
> ...
> b) I-Tunes alternative like Song Bird, that would provide
> a multi-media library/collection management client for communities
> and enterprises.

I've built many music and video players over the years with RunRev.  The one
major limitation you will find is that media support will be limited to
those media that are supported by Apple's QuickTime (and QT must be
installed on the user's system).  In terms of interface, I think something
like Songbird should be quite possible.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


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


Re: Math Help?

2010-04-30 Thread Devin Asay
Hi Scott,

On Apr 30, 2010, at 1:05 PM, Scott Rossi wrote:

> Hello List:
> 
> Was wondering if those with more comprehensive math skills than I know how
> to determine if one point X,Y falls within a triangular region defined by 3
> points X1,Y1, X2,Y2, X3,Y3.  Thanks for any suggestions.

I don't know from math, but I do know you can use the within() function, as 
opposed to the 'is within' operator, to test for "within-ness" of 
non-rectangular objects. For instance, if you have an opaque, 3-sided polygon 
graphic, within() will only be true if the point you're testing is inside the 
filled part of the triangle.

I'm sure some real math expert would have a "real math" solution.

HTH,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Math Help?

2010-04-30 Thread Scott Rossi
Hello List:

Was wondering if those with more comprehensive math skills than I know how
to determine if one point X,Y falls within a triangular region defined by 3
points X1,Y1, X2,Y2, X3,Y3.  Thanks for any suggestions.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


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


Webinar Client (like Dim-Dim) | ITunes Alternative (like Song Bird)

2010-04-30 Thread Rafiki Cai
Bendiciones y Paz (Blessings and Peace):

Because of a high recommendation by Robert
Cailliau, co-developer of the World Wide Web,
I'm taking a first-look at RunRev.

I'm wondering whether what the RunRev leaders
of the pack are turning out these days.

In specific, my curiosity centers around two types
of application:

a) in browser, server driven, webinar client such as
Dim-Dim or WebEx like. (I must say I am NOT really
impressed with the RevWebInstaller.  The first two
pages that called for it, on the RunRev site, it wouldn't
even load. Chrome/Vista Ultimate/4G RAM).

b) I-Tunes alternative like Song Bird, that would provide
a multi-media library/collection management client for communities
and enterprises.

-

Thanks, in advance, to all response to this communique.

En Servicio de LA UNIDAD (In Service of THE ONENESS),
Rafiki "The Digital Doctor" Cai
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Apples actual response to the Flash issue

2010-04-30 Thread Richmond Mathewson

 On 30/04/2010 21:36, Peter Alcibiades wrote:

Some very wise comments on this issue:

http://arstechnica.com/apple/news/2010/04/pot-meet-kettle-a-response-to-steve-jobs-letter-on-flash.ars


Lest you forget: "freedom is slavery" . . .  :(
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Doing an action when focussing out of a field

2010-04-30 Thread zryip theSlug
2010/4/30 Steve King :
> Hi All
>
> I know this is going to be really really basic, but I haven't used Rev for a
> couple of years and cannot get this simple thing to work
>
> Enter characters into a field
> When losing focus from that field, take the content of that filed, add
> contents of field B and put into field C. A bit spreadsheet like
>
> I have tried OnFocusOut ... Put.. but the target fld "C" is not updated! I
> have also tried with MouseUp and OnReturn still target Fld C does not update
>
> Cheers
> Steve

Hi Steve,

Have you try exitField or closeField messages?

ExitField performs when you leave a field which its content have not changed
CloseField performs when you leave a field after update it.


HTH


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HyperNext

2010-04-30 Thread Richmond Mathewson

 On 30/04/2010 21:16, stephen barncard wrote:

Does it use an Xtalk?

sqb

Here's a sample code I lifted from one of the demo stacks (bounding 
lines are mine):

--
Global errnum
Local sdata

If errnum=0 Then
PI_SetGraphSpec(1,'1,Supply,10,0')
PI_SetNeuralSpec(1,'12,1,7,0')
PI_SetCommands(1,'0.9,0.15,1,1')

PI_SetState(1,'0')

Put field 6 into sdata

@Put 2 into sdata
@Put 'OR' after sdata
@Put '0,0,0' after sdata
@Put '0,1,1' after sdata
@Put '1,0,1' after sdata
@Put '1,1,1' after sdata
@Put 'XOR' after sdata
@Put '0,0,0' after sdata
@Put '0,1,1' after sdata
@Put '1,0,1' after sdata
@Put '1,1,0' after sdata

PI_SetData(1,sdata)

Call BP1_PI.PI_Run

Put CodeOutputFN into field 7
Else
Beep
Message 'RBscript Compile Error'
EndIf


@If errnum=0 Then
@Call BP1_PI.GraphSetup(1,'Supply',6000,10,'0')

@Call BP1_PI.PI_Run
@Put CodeOutputFN into field 7
@Else
@Message 'Compile Error'
@EndIf

it doesn't seem very 'Exy' to me. Quite the reverse; I can feel my toes
curling up.

Somebody who knows more computer languages than me (i.e. most of you)
might be able to cast light on its ancestry; unless it is completely sui 
generis 


It does not strike me as accessible as xTalk.

The chap (he's called Malcolm) appears to have been working on it for at 
least 6 years.


There are quite a few fairly sophisticated demo stacks to download, and, 
as the thing is FREE
there really is no excuse to not spare 30 minutes mucking around with 
it; even if only to know

why, at present, you are sticking to RunRev/Metacard.

I had a reply from the developer who said this:

"HyperNext V4 is not ready for release yet - I'm hoping for late June 
for Window and Mac simultaneously.
Sadly Linux is still delayed as there is so much to do for it - but it 
will come as Linux is the natural OS for HyperNext."


what he means by "Linux is the natural OS for HyperNext." he doesn't say 
(which is a pity) - if the only
reason is that Hypernext and most Linux distros are free that is pretty 
feeble. I shall get back to him on

that one.

"I'm really sorry the Linux isn't ready- so many people asking about it 
- but only so many things a one man band can do and get right - also 
HyperNext is a part-time project among several for me."


Which (go on, download the thing and "give it a whirl") shows marvellous 
it is; I wonder how many
people on the Use-List have the know-how to create a RAD from scratch 
(and if you have, why aren't you

getting on and doing it?).
--
Everything is there for the taking; Dev environment(s) and Run 
environment, standalone builder and

language guide (which is woefully inadequate).

I will not be investing any more time in it until a Linux version 
becomes available.


The chap claims that Unicode stuff is doable; although I don't 
(especially after having a
look at the language) fancy porting my Devawriter to Linux that way. 
However, should
RunRev not sort out the Font and Printing problems associated with the 
Linux version
of Revolution I fear that is the direction I will be moving in. It does 
look easier and

more 'my thing' than Python.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Doing an action when focussing out of a field

2010-04-30 Thread Steve King
Hi All

I know this is going to be really really basic, but I haven't used Rev for a
couple of years and cannot get this simple thing to work

Enter characters into a field
When losing focus from that field, take the content of that filed, add
contents of field B and put into field C. A bit spreadsheet like

I have tried OnFocusOut ... Put.. but the target fld "C" is not updated! I
have also tried with MouseUp and OnReturn still target Fld C does not update

Cheers
Steve


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


how to zip a bundle, keeping all "locked attributes", was: need ditto zipping help

2010-04-30 Thread Tiemo Hollmann TB
Hello,

I think I posted the wrong question to understand the problem.
Is it a normal behavior on Mac, when zipping and unzipping a bundle that a
containing file loses its "locked attribute"?
Or does it depend on the zip tool or its parameters? Other way around, if it
is a standard behavior for ditto and there is no other parameter to keep the
status, is there a recommended zip tool, where all files keep their
locked/unlocked attribute?
Thanks for any advice
Tiemo

> -Ursprüngliche Nachricht-
> Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-
> boun...@lists.runrev.com] Im Auftrag von Tiemo Hollmann TB
> Gesendet: Freitag, 30. April 2010 14:23
> An: 'How to use Revolution'
> Betreff: need ditto zipping help
> 
> Hello,
> 
> 
> 
> still not very familiar with the Mac and its specialities I need some
> help
> with zipping with ditto.
> 
> I have a locked file in my App bundle. After zipping and unzipping the
> whole
> bundle (in an update process) the locked file isn't locked anymore.
> 
> The ditto parameters I am using for zipping are:
> 
> Ditto -c -k --sequesterRsrc
> 
> Can anybody shed some light on this, how I can preserve the locked file
> being locked?
> 
> Thanks for any hints
> 
> Tiemo
> 
> 
> 
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


RE: logistic example of Runrev Revolution?

2010-04-30 Thread Shani
 

 

From: Shani [mailto:shani.run...@gmail.com] 
Sent: Thursday, April 29, 2010 6:15 AM
To: 'How to use Revolution'
Subject: logistic example of Runrev Revolution?

 

HI, 

 

Is there is any Agriculture logistic example of Runrev Revolution?

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


FW: Rev Chat Server Java Chat Client

2010-04-30 Thread Shani
 

 

From: Shani [mailto:shani.run...@gmail.com] 
Sent: Friday, April 30, 2010 2:51 AM
To: 'How to use Revolution'
Subject: Rev Chat Server Java Chat Client

 

Hi all, 

>From where i find these stack.

 

 

Rev Chat Server

Java Chat Client

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


FW: string Recieve

2010-04-30 Thread Shani
 

 

From: Shani [mailto:shani.run...@gmail.com] 
Sent: Friday, April 30, 2010 4:16 AM
To: 'How to use Revolution'
Subject: string Recieve 

 

I recive the string 

The Green ball reached

Displayed on message box in rev.

 

How can I use this to do next process on that result.

if tSocket is "The Green ball reached" then

  click at the loc of btn "start
me"

  end if

Regards,

SHNAI

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


Re: FormattedText

2010-04-30 Thread DunbarX
I guess I sort of see. The wrap (and formattedText) works with words, 
slicing the text off at the nearest whole word boundary. If a line has only one 
word, it just doesn't apply.

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


Re: Apples actual response to the Flash issue

2010-04-30 Thread Peter Alcibiades

Some very wise comments on this issue:

http://arstechnica.com/apple/news/2010/04/pot-meet-kettle-a-response-to-steve-jobs-letter-on-flash.ars
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Apples-actual-response-to-the-Flash-issue-tp2075668p2077346.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: FormattedText

2010-04-30 Thread DunbarX
Jacques.

So you are saying that since Rev does not have correct wrap behavior, the 
formattedText cannot work. Odd that it does that, though. What makes spaces 
so special, that having one does give Rev the correct behavior?

Craig

In a message dated 4/30/10 2:18:00 PM, jac...@hyperactivesw.com writes:


> Formattedtext relies on correct wrap behavior. If there aren't any
> spaces in the line, it won't wrap (as you noticed) so there isn't
> anything for formattedtext to work with. Formattedtext just puts hard
> carriage returns where the wrap would normally occur.
> 
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: FormattedText

2010-04-30 Thread J. Landman Gay

dunb...@aol.com wrote:
There is a thread in the forums about the fact that if one types into a 
fld, but never types a space, the text will not wrap, irrespective of the 
dontWrap property.


So even if dontWrap is false, at least one   space is required IN EACH LINE 
that one types in order for Rev to wrap the screen lines. This anomaly 
seems to have been understood for a while. It is not an issue in HC.


My question is this: the formattedText property is touted as being a way to 
"fix" this. But I cannot make it work.


Formattedtext relies on correct wrap behavior. If there aren't any 
spaces in the line, it won't wrap (as you noticed) so there isn't 
anything for formattedtext to work with. Formattedtext just puts hard 
carriage returns where the wrap would normally occur.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: HyperNext

2010-04-30 Thread stephen barncard
Does it use an Xtalk?

sqb

On 30 April 2010 02:01, viktoras d.  wrote:

> Hi Richmond,
>
> you might also get interested in LabView: http://www.ni.com/labview/ :-),
> although their prices bite :-(
>
> Viktoras
>
>
> Richmond Mathewson wrote:
>
>>  Yes; it's that time of year again when Richmond starts burbling
>> on about potential pretenders to the RunRev crown . . .  :)
>>
>> I have been following HyperNext for quite some time; and for
>> most of that time it has been crap. But there are the beginnings
>> of something stirring over there in County Durham:
>>
>> -
Stephen Barncard
Back home in SF
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] Control tRev's Browser default action via Magic Menus

2010-04-30 Thread stephen barncard

If any Rev user hasn't tried Jerry's fantastic product, he/she should. This
isn't just a one-time purchase - it's a ticket to really convenient and
intuitive scripting aids that transforms your workflow - lets you think,
then code and compile with incredible speed. Jerry's decades of editor
design, his incredibly creative interface hooks, frequent auto-installed
updates and his crafty little agents take the editing experience to a new
level.   I don't know of ANY other application that is so actively updated
 - I would call it a "Dynamic Application" and I always look forward to
those feature Fridays where I have no idea what Jerry's come up with next.

And finally, I appreciate a product where the author 'eats his own dog food'
- i.e.  tRev is used to edit tRev and Jerry *uses it every day*.  He
responds quickly to bug fixes and offers this product at a price I would pay
more for...

did I say I liked tRev?

sqb


On 30 April 2010 09:46, Jerry Daniels  wrote:

> Check out the new tRev preference that lets you alter the Browser's default
> action:
>
>http://reveditor.com/control-browsers-default-action-via-magic-men-0
>
> Change the Object Browser's default button:
> - New preference allows the last Magic Menu choice to become the Browser
> default action.
> - Name of the default button then changes to the last Magic Menu choice.
> - This lets you do the same action repeatedly without using the Magic Menu.
>
> New Double-click and return key functionality in browser:
> - Double-click and return key in Browser lists carry out the current
> default action.
> - Double-click and return key in Snaps or Zoomed snaps do likewise.
>
> Magic Menus in Snaps
> - Right click any control or non-control area in a Snap or Zoomed Snap for
> a Magic Menu.
> - Magic Menus work just as they do in the controls or cards lists.
>
> Fixes:
> - Magic Menus no longer occassionally disappear when clicking an item in
> the stacks list.
> - Clips now play when one is selected and return key is pressed.
>
> Best,
>
> Jerry Daniels
>
> Use tRev's buy link during your 7 day free trial to get 20% off:
> http://reveditor.com/tag/shouldiswitch
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
-
Stephen Barncard
Back home in SF
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Card cut off at bottom because of menu

2010-04-30 Thread Devin Asay

On Apr 30, 2010, at 11:50 AM, J. Landman Gay wrote:

> There is one other approach that Chipp suggested a long time ago. I've 
> never used it. Instead of the above, just determine the platform on 
> preOpenStack and hide/show the menu group depending on platform. If it's 
> Mac, you can assign the menubar property to the hidden group so that on 
> Macs it is placed in the system menu position. I don't like this 
> approach as well, because it leaves a blank area at the top of the stack 
> where the menus would be on Windows, but it's another option.

This is what I do, but the blank area at the top of the card doesn't bother me. 
At least not as much as the stack size changing when I set the menubar prop.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: [Data Grid] Duplicate large amount of rows

2010-04-30 Thread zryip theSlug
2010/4/30 Bob Sneidar :
> I would be careful with using arrays this way. I seem to recall in the 
> command reference that combining an array will delete duplicate keys. As long 
> as your keys are all unique you should be safe, but I would check the command 
> reference for the join function you are using.
>
> I quote:
>> Comments:
>> The union command combines the array and testArray. Each key of the array is 
>> checked to see whether there is already an element with that key in the 
>> testArray. If there is, that element of the array is unchanged. If not, the 
>> corresponding element of the testArray is placed in the array.
>
> So you see, this does not exactly add all the records of one array to 
> another. It depends on the keys in both arrays being globally unique.
>
> Bob
>

Thanks Bob for pointing this out. I confess I have not seen this specificity.
By chance, I have anticipated this. I have do things to be able to
select the new duplicated rows after the duplication.

In this goal, my code is structured like this:

1) Read the last index in the dgData
2) Create the first duplicated line with the last index of the dgData + 1
3) Repeat with the lines to duplicated. Set it the last index in the
duplicated rows + 1
4) Merge the two arrays
5) Change the dgData of the Data Grid

All my rows seems to be correctly created.

However the Data Grid command "AddData" does more than a simple
creation of a new index in an array. This is where I'm suspicious with
my code.


Regards,

-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Card cut off at bottom because of menu

2010-04-30 Thread J. Landman Gay

charles61 wrote:

Jacqueline,

Could you share a script that you use in a preOpenStack handler for menus?


It's pretty simple:

on preOpenStack
 if the platform = "MacOS" then
   set the menubar of this stack to "menugroupname"
   set the defaultmenubar to "menugroupname"
 end if
end preOpenStack

If you use this approach, do not set any menu properties at all on the 
stack. Leave the defaultmenubar and the menubar of the stack unassigned 
so it looks like a Windows build.


To address some other comments (i.e., "I don't use menu bars any more"): 
I do. I need to, and I use them all the time in virtually every app I 
write. I do not always see the shrinking problem, but when I do I either 
turn off destroystack, or use the above script. That works, but it *is* 
a bug that requires a workaround, and it should be fixed. But since 
there is a fairly easy workaround, I'm not that bothered by it any more, 
just mildly annoyed.


There is one other approach that Chipp suggested a long time ago. I've 
never used it. Instead of the above, just determine the platform on 
preOpenStack and hide/show the menu group depending on platform. If it's 
Mac, you can assign the menubar property to the hidden group so that on 
Macs it is placed in the system menu position. I don't like this 
approach as well, because it leaves a blank area at the top of the stack 
where the menus would be on Windows, but it's another option.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Card cut off at bottom because of menu

2010-04-30 Thread charles61

Jacqueline,

Could you share a script that you use in a preOpenStack handler for menus?

Charles Szasz
csz...@mac.com




On Apr 29, 2010, at 11:21 AM, J. Landman Gay [via Runtime Revolution] wrote:

> charles61 wrote: 
> 
> > After making the standalone, I tried Mac version of my app. I found that 
> > the 
> > card had shifted down cutting off some of my buttons at the bottom. Worse 
> > yet the upper 1/4 inch of my card had a green color band that came from the 
> > introductory card that was all green. 
> 
> It's the "destroystack" property that's apparently the problem. Set it 
> to false. May as well set destroywindow to false too, it isn't really 
> needed these days. 
> 
> If that doesn't fix it, you can put a script in the preopenstack handler 
> of your mainstack that sets the menubar and defaultmenubar. It will only 
> run in your standalone. 
> 
> -- 
> Jacqueline Landman Gay | [hidden email] 
> HyperActive Software   | http://www.hyperactivesw.com
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Card-cut-off-at-bottom-because-of-menu-tp2075550p2075667.html
>  
> To unsubscribe from Card cut off at bottom because of menu, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Card-cut-off-at-bottom-because-of-menu-tp2075550p2077216.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


FormattedText

2010-04-30 Thread DunbarX
There is a thread in the forums about the fact that if one types into a 
fld, but never types a space, the text will not wrap, irrespective of the 
dontWrap property.

So even if dontWrap is false, at least one   space is required IN EACH LINE 
that one types in order for Rev to wrap the screen lines. This anomaly 
seems to have been understood for a while. It is not an issue in HC.

My question is this: the formattedText property is touted as being a way to 
"fix" this. But I cannot make it work.

I make a field ("fld22") and type some text into it that goes beyond the 
width. (no spaces, remember)

In a button I have:

on mouseUp
   get the formattedText of fld "fld22"
   put it into fld "fld22"
end mouseup

No change, though there is a slight movement of the field text to the 
right, which is odd. The dictionary addresses this directly. What am I missing?

I originally was playing around with a general workaround to the problem 
using a keydown message in the field. No luck, of course. HC had an XFCN 
called "wordWrap" that does what the dictionary says the formattedText shoudl 
do.

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


[ANN] Control tRev's Browser default action via Magic Menus

2010-04-30 Thread Jerry Daniels
Check out the new tRev preference that lets you alter the Browser's  
default action:


http://reveditor.com/control-browsers-default-action-via-magic- 
men-0


Change the Object Browser's default button:
- New preference allows the last Magic Menu choice to become the  
Browser default action.

- Name of the default button then changes to the last Magic Menu choice.
- This lets you do the same action repeatedly without using the Magic  
Menu.


New Double-click and return key functionality in browser:
- Double-click and return key in Browser lists carry out the current  
default action.

- Double-click and return key in Snaps or Zoomed snaps do likewise.

Magic Menus in Snaps
- Right click any control or non-control area in a Snap or Zoomed Snap  
for a Magic Menu.

- Magic Menus work just as they do in the controls or cards lists.

Fixes:
- Magic Menus no longer occassionally disappear when clicking an item  
in the stacks list.

- Clips now play when one is selected and return key is pressed.

Best,

Jerry Daniels

Use tRev's buy link during your 7 day free trial to get 20% off:
http://reveditor.com/tag/shouldiswitch

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


Re: [Data Grid] Duplicate large amount of rows

2010-04-30 Thread Bob Sneidar
I would be careful with using arrays this way. I seem to recall in the command 
reference that combining an array will delete duplicate keys. As long as your 
keys are all unique you should be safe, but I would check the command reference 
for the join function you are using. 

I quote:
> Comments:
> The union command combines the array and testArray. Each key of the array is 
> checked to see whether there is already an element with that key in the 
> testArray. If there is, that element of the array is unchanged. If not, the 
> corresponding element of the testArray is placed in the array.

So you see, this does not exactly add all the records of one array to another. 
It depends on the keys in both arrays being globally unique. 

Bob


On Apr 29, 2010, at 3:46 PM, zryip theSlug wrote:

> Hi all,
> 
> First to duplicate rows in a DG, I used the AddData command in a loop.
> But over 1000 lines to duplicate, the performances are dramatics.
> 
> Then, I changed my mind.
> 1) I build an array with all the duplicated
> 2) I merge the dgData of my DG with this array by using the union command.
> 3) At last, I set the dgData to the merged array.
> 
> It seems working as fast as ever with 4000 records. Maybe too fast...
> 
> Can I encounter problems in doing this union?
> Should I refresh the dgIndexes?
> 
> TIA
> 
> 
> Regards,
> -- 
> -Zryip TheSlug- wish you the best! 8)
> http://www.aslugontheroad.co.cc
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


AW: need ditto zipping help

2010-04-30 Thread Tiemo Hollmann TB
Hi Mark,

thank you for your advice.
If I find a way how to preserve the locked attribute in my zip file I would
not have to change my program (which is at my customers), but it is good to
know to have a plan B
Thanks
Tiemo

> -Ursprüngliche Nachricht-
> Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-
> boun...@lists.runrev.com] Im Auftrag von Mark Schonewille
> Gesendet: Freitag, 30. April 2010 14:53
> An: How to use Revolution
> Betreff: Re: need ditto zipping help
> 
> Hi Tiemo,
> 
> Here's an AppleScript snippet that shows how to lock and unlock files.
> 
> set myFile to choose file
> tell application "Finder"
>   set the locked of myFile to not the locked of myFile
>   return the locked of myFile
> end tell
> 
> It is easy to adjust the script to always set the lock of a particular
> file to true or to check whether it is currently locked etc.
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> 
> We have updated TwistAWord. Download TwistAWord 1.1 at
> http://www.twistaword.net
> 
> Op 30 apr 2010, om 14:23 heeft Tiemo Hollmann TB het volgende
> geschreven:
> 
> > Hello,
> >
> >
> >
> > still not very familiar with the Mac and its specialities I need
> > some help
> > with zipping with ditto.
> >
> > I have a locked file in my App bundle. After zipping and unzipping
> > the whole
> > bundle (in an update process) the locked file isn't locked anymore.
> >
> > The ditto parameters I am using for zipping are:
> >
> > Ditto -c -k --sequesterRsrc
> >
> > Can anybody shed some light on this, how I can preserve the locked
> > file
> > being locked?
> >
> > Thanks for any hints
> >
> > Tiemo
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: need ditto zipping help

2010-04-30 Thread Mark Schonewille

Hi Tiemo,

Here's an AppleScript snippet that shows how to lock and unlock files.

set myFile to choose file
tell application "Finder"
set the locked of myFile to not the locked of myFile
return the locked of myFile
end tell

It is easy to adjust the script to always set the lock of a particular  
file to true or to check whether it is currently locked etc.


--
Best regards,

Mark Schonewille

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

We have updated TwistAWord. Download TwistAWord 1.1 at http://www.twistaword.net

Op 30 apr 2010, om 14:23 heeft Tiemo Hollmann TB het volgende  
geschreven:



Hello,



still not very familiar with the Mac and its specialities I need  
some help

with zipping with ditto.

I have a locked file in my App bundle. After zipping and unzipping  
the whole

bundle (in an update process) the locked file isn't locked anymore.

The ditto parameters I am using for zipping are:

Ditto -c -k --sequesterRsrc

Can anybody shed some light on this, how I can preserve the locked  
file

being locked?

Thanks for any hints

Tiemo


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


need ditto zipping help

2010-04-30 Thread Tiemo Hollmann TB
Hello,

 

still not very familiar with the Mac and its specialities I need some help
with zipping with ditto.

I have a locked file in my App bundle. After zipping and unzipping the whole
bundle (in an update process) the locked file isn't locked anymore.

The ditto parameters I am using for zipping are:

Ditto -c -k --sequesterRsrc

Can anybody shed some light on this, how I can preserve the locked file
being locked?

Thanks for any hints

Tiemo

 

 

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


Re: HyperNext

2010-04-30 Thread viktoras d.

Hi Richmond,

you might also get interested in LabView: http://www.ni.com/labview/ 
:-), although their prices bite :-(


Viktoras

Richmond Mathewson wrote:

 Yes; it's that time of year again when Richmond starts burbling
on about potential pretenders to the RunRev crown . . .  :)

I have been following HyperNext for quite some time; and for
most of that time it has been crap. But there are the beginnings
of something stirring over there in County Durham:

http://www.tigabyte.com/index.html

The specific 'bits' that grabbed my attention were these:

"HyperNext V4 coming soon! "

and

"Coming soon - with many enhancements and versions for

Mac OS X - Intel native builds.
Windows 7.
Linux beta."

Now as this is, as far as I can tell, a one-man, kitchen-sink operation
(Um; how did RunRev start?) and Hypernext is, at present, FREE, the
developer is under no real need to keep punters happy, so, also
"coming soon" could be extremely subjective.  I have written to
the info address asking about time-frames.

The thing that interests me most is that there is a Linux version in 
the pipeline.


Now at a time when 'some' IDE development companies seem to be slacking
off on Linux development here's a person doing quite the opposite (of 
course

as s/he in non-commercial we cannot assume her/his motives are the same
as commericla operations); presumably this is not just for the fun of 
the thing;
after all porting all that stuff over from Mac and Win to Linux may 
not be all that easy.


This company needs watching as they may yet produce a viable competitor.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



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


HyperNext

2010-04-30 Thread Richmond Mathewson

 Yes; it's that time of year again when Richmond starts burbling
on about potential pretenders to the RunRev crown . . .  :)

I have been following HyperNext for quite some time; and for
most of that time it has been crap. But there are the beginnings
of something stirring over there in County Durham:

http://www.tigabyte.com/index.html

The specific 'bits' that grabbed my attention were these:

"HyperNext V4 coming soon! "

and

"Coming soon - with many enhancements and versions for

Mac OS X - Intel native builds.
Windows 7.
Linux beta."

Now as this is, as far as I can tell, a one-man, kitchen-sink operation
(Um; how did RunRev start?) and Hypernext is, at present, FREE, the
developer is under no real need to keep punters happy, so, also
"coming soon" could be extremely subjective.  I have written to
the info address asking about time-frames.

The thing that interests me most is that there is a Linux version in the 
pipeline.


Now at a time when 'some' IDE development companies seem to be slacking
off on Linux development here's a person doing quite the opposite (of course
as s/he in non-commercial we cannot assume her/his motives are the same
as commericla operations); presumably this is not just for the fun of 
the thing;
after all porting all that stuff over from Mac and Win to Linux may not 
be all that easy.


This company needs watching as they may yet produce a viable competitor.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


ANN: CC File Converter

2010-04-30 Thread Mark Schonewille

Hello,

Economy-x-Talk has released a new shareware utility: CC File Converter  
is a utility for Mac OS X 10.4 and later to change the colour profile  
and format of image files. For example, convert a PNG file in RGB mode  
into a TIFF file in CMYK mode. CC File Converter uses the same color  
profiles that Mac OS X uses for colour management on various devices  
such as monitors and printers and finds these profiles on your hard  
disk automatically. CC File Converter was made with Revolution. More  
information and downloads are available at http://www.color-converter.com


--
Best regards,

Mark Schonewille

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

We have updated TwistAWord. Download TwistAWord 1.1 at http://www.twistaword.net

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


Re: How do I script a telnet session

2010-04-30 Thread Mark Schonewille

Hi Bill,

You can divert the telnet connection using ssh, in other words by  
tunnelling telnet. A little bit more info about it can be found at http://qurl.tk/9z 
 (this isn't specifically about ssh but it works pretty much the  
same). It should be possible to create a tunnel by means of a Rev  
script, using either the shell function or AppleScript.


--
Best regards,

Mark Schonewille

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

We have updated TwistAWord. Download TwistAWord 1.1 at http://www.twistaword.net

Op 30 apr 2010, om 02:11 heeft Bill Vlahos het volgende geschreven:


Mark,

Thanks. Your script gave me enough information to get it to work via  
telnet.


I would like to have it work over ssh but I'm not sure how to do  
that from Rev. I tried the simple solution of just sending it over  
port 22 but the firewall complained about the protocol.


Is it possible to implement this directly from Rev or will I have to  
send the parameters to curl?


I neglected to mention that this will run on a Mac.

Bill Vlahos


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