RE: Bkgnd process that returns immediately

2007-03-18 Thread xavier . bury
1 - use "start /b" to hide the window. See "start /?" for more options
2 - you'd have to kill the process - or check "start /?" for more 
options...
3 - yes as many as you want.

cheers
Xavier

[EMAIL PROTECTED] wrote on 18/03/2007 14:56:20:

> Xavier: 
> 
> Thanks for the additional info on the redirect technique.  I have
> adapted it to the following
> 
>  put "start /MAX C:\foo.html > C:\foo.txt" into MyCom 
>  set the hideConsoleWindows to true 
>  get  "start cmd /c"  && quote & MyCom & quote 
>  get shell(it) 
> 
> and have further questions...
> 
> -1-
> This does seem to open foo.html without blocking.  However, the console
> window flashes despite setting hideConsoleWindows to true. Do you have
> that same behavior?  Is this due to the redirect, or is there something
> else I can include to keep the console window invisible.
> 
> -2-
> Suppose I wanted to close the window foo.html via shell.  What would the
> text be on the first line before >?
> 
> -3-
> Can I put multiple lines into mycommand so that shell will run commands
> in sequence?
> 
> Thanks very much.
> 
> Mark
> 
> ___
> 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




Clearstream Services S.A.
42 Avenue JF Kennedy, L-1855 Luxembourg
Société anonyme is organised with limited liability
in the Grand Duchy of Luxembourg RC Luxembourg B 60911.


-
Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents
of this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you
are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. Any views expressed in
this e-mail are those of the individual sender, except where the
sender specifically states them to be the views of Clearstream
International or of any of its affiliates or subsidiaries.

Legally required information for business correspondence/
Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
http://deutsche-boerse.com/letterhead

END OF DISCLAIMER

___
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


Installing Ubuntu or other Linuxes

2007-03-18 Thread Bob Warren
I have written a short article of simple, practical (layman's) advice 
for those considering the possibility of trying Linux (or my favourite, 
Ubuntu) and Rev/Linux 2.6.1 for the first time.


Although it is short, it was a bit big to display directly on the 
UR-List, so I have uploaded it to my site at:


http://www.howsoft.com/runrev/downloads/installing_ubuntu_or_other_linuxes.txt

It is a text file, so I suggest opening it in your text editing program.

As I said in the article itself, if anyone would like to add or subtract 
from what I said, please feel free.


Bob

 


___
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: Mouse messages while down

2007-03-18 Thread Derek Bump
I just wanted to throw in my two cents on this thread.  When I was 
working on Pixelution (which is still available on RevOnline) I ran into 
the problem of figuring out what button the mouse was hovering over when 
the mouse was down.


My troubles lead me to post BugZilla # 3668 
(http://quality.runrev.com/qacenter/show_bug.cgi?id=3668) but also lead 
to a solution that worked well considering that the script would handle 
polling 1,024 buttons within a group quite efficiently (but nowhere as 
efficiently as the fulfillment of bug #3668.


To solve the problem, I used a combination of a variable containing all 
of the ID's of the buttons within the group, and a mouseMove handler 
that would check to see if the mouse was within each button ID when the 
handler was issued.  Also, since the mouse could only be within 1 button 
in my grid, I had the repeat handler stop polling as soon as it found a 
button that the mouse was within.


Like I said though, it works, but is very limited by the speed of the 
computer.



Derek Bump
Dreamscape Software
http://www.dreamscapesoftware.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: Revolution and Unicode

2007-03-18 Thread kee nethery
that appears to have worked. Excellent. I'm guessing that "it" is  
special in some way.

I am pretty sure I had tied

put URL "dodah" into thedata
set the unicodeText of fld "blah" to uniencode(thedata,"UTF8")

and that did not work. But perhaps this is a combo I did not try.  
thanks!

Kee


On Mar 18, 2007, at 9:09 AM, Mark Smith wrote:


I meant to write
set the unicodeText of fld "blah" to uniencode(it,"UTF8")

although I wonder if the page content also needs to be urlDecoded?

Best,

Mark

On 18 Mar 2007, at 13:53, kee nethery wrote:



On Mar 18, 2007, at 5:09 AM, Mark Smith wrote:


Does

get URL "http://";
put uniencode(it,"UTF8") into fld blah

not work?


It does not work. It was not a combination I had tried previously  
so thanks for suggesting it. The unicode characters on screen and  
in view source from the browser do not display correctly in the  
field.

Kee Nethery

___
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


___
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: Mouse messages while down

2007-03-18 Thread Sarah Reichelt

400 individual buttons is bad design. Draw a grid and use a mouseDown
handler if you want to store the clicked location. Use the
mouseRelease handler to get the new location. Calculate in which
rectangle the new mouseLoc is, without a repeat loop. I am sure you
can do this.


It's not something I would normally do, but in this particular case,
it works very well and allows great flexibility in selection and
display. However the buttons are all non-overlapping and in a
rectangular grid - not completely regular but nearly so. While
checking each rect against the mouse loc works fine on my computer, to
allow for slower ones I should put the effort into an algorithm to
calculate the correct button instead.

Since I originally asked my question, I have progressed to needing to
track the button underneath the mouse at all times while the mouse is
down, so Jacque's technique is working really well for that. Unlike
Jerry's Galaxy scripts, I only need to do this checking while the
mouse is down, so it doesn't have to be able to operate while other
things are happening.

Cheers,
Sarah
___
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: Can REV create Excel files?

2007-03-18 Thread Ken Ray
On Sat, 17 Mar 2007 10:17:31 +0900, Martin Blackman wrote:

> Just continuing down the path which Ken helped put me on, I thought
> I'd share my little routine which uses vbscript to get the Names in an
> Excel workbook and the ranges to which they refer:
> 
> function getXLNames
>   put "Dim ObjXL,tRetVal,tName" & cr & \
> "Set ObjXL = GetObject(," & q("Excel.Application") & ")" into 
> tScript
>   put cr& "For Each tName In ObjXL.ActiveWorkbook.Names" & cr & \
> "tRetVal = tRetVal & tName.Name  & tName.RefersTo & vbCrLf" &
> cr & "Next" after tScript
>   put cr & "tRetVal = Left(tRetVal,Len(tRetVal) - 2)" & cr & \
> "WScript.Echo tRetVal" after tScript
>   put tmpfolder&"/VBSTemp.vbs" into tFile  --tmpfolder is a global
> var holding a path
>   put tScript into url("file:" & tFile)
>   set the hideconsolewindows to true
>   get shell("cscript.exe //nologo" && tFile)
>   send "delete file" && q(tFile) to me in 1 second
>   if char -1 of it is cr then delete char -1 of it
>   return it
> end getXLNames

Very nice, Martin! Looks good to me...

:-)


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: Mouse messages while down

2007-03-18 Thread Ken Ray
On Sat, 17 Mar 2007 19:50:40 -0700, Jim Ault wrote:

>> The problem is that no other messages seem to be sent while the mouse
>> is down (mouseEnter, mouseLeave, mouseStillDown etc). I can detect
>> mouseRelease but "the target" is my original button so it doesn't tell
>> me where the mouse is now. Checking "the mouseControl" in the
>> mouseRelease handler also gives the original target.
>> 
>> It's looking as if I may have to do some continuous polling, but I
>> know that is generally frowned upon, so I would be grateful for any
>> other suggestions.

Here's what worked for me (put this in the card script):

global gDragging

on mouseDown
  if word 1 of the name of the target is "button" then
put true into gDragging
  else
pass mouseDown 
  end if
end mouseDown

on mouseMove
  if gDragging and the mouse is up then
send "GetTarget" to me in 20 milliseconds
put false into gDragging
  end if
  pass mouseMove
end mouseMove

on GetTarget
  try
put the short name of the mouseControl  -- or anything else you 
want to do with it
  catch tError
-- it would get here if you released over the card itself
  end try
end GetTarget

Hope this works for you...

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: MatchText, MatchChunk and the needle in the haystack

2007-03-18 Thread Jim Ault
A simplistic approach would be to find the "-mth-" string and work from
there

on untested
  put "-Jan- -Feb- -Mar-" into mthStrings
  repeat for each word MTH in mthStrings
put 1 into pos
repeat until pos = 0
  put offset(mth, textBlock, pos+2) into pos
  put cr into char pos - 2 of textBlock
end repeat

  end repeat
  --now textBlock should have cr's in the right spots
end untested

Jim Ault
Las Vegas


On 3/18/07 4:12 PM, "Bryan McCormick" <[EMAIL PROTECTED]> wrote:

> Folks,
> 
> I have been given a batch of text files that have had their delimiters
> stripped off (by accident) leaving a single string of text to parse back
> into record delimited form. And yes, of course, there is no back-up so
> it is the strings or nothing.
> 
> I really know very little about using RegEx, but I presume this could at
> least in part solve the problem.
> 
> Basically the only good news is that each record was originally
> delimited in the form of "24-Jan-02" so that as long as each date could
> be plucked out of the string it ought to be possible to grab the offset
> and then introduce a return before the next date occurrence. As in the
> text is 06-Mar-92therewasamangledbitoftexttodealwith02-Apr-92therest...
> 
> I cannot seem to get the MatchText to work properly to identify these,
> but I guess really the problem is I still need to find an offset for
> each. Is MatchText even the right thing to use? Can I use it in
> conjunction with 
> offset(MatchText(myVar,[0-9]-(Jan|Feb|Mar...|Dec)-[0-9],someVar)) to
> find each one?
> 
> Or is this a case where the string has to be brute forced?
> 
> Any ideas on how to proceed? Any ideas, snippets would be greatly
> appreciated.
> ___
> 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: Mouse messages while down

2007-03-18 Thread Jerry Daniels

Stephen,

The flicker we used to see was related, i believe, to a mouseWithin  
message gone bad.


Best,

Jerry Daniels

Makers of Galaxy 1.5
http://www.daniels-mara.com/new_in_galaxy_1_5.htm



On Mar 18, 2007, at 1:13 PM, Stephen Barncard wrote:

Jerry, would this explain the 'flickering' that I've seen in your  
tooltips field in earlier versions of Galaxy? This would only  
happen when Galaxy was kept running for hours and days...  
Restarting Rev always fixed it.



The "cursory" inspection that Galaxy 1.5 has done to detect what  
object you're "over" came from Galaxy's "pinging"  or sending out  
periodic messages constantly. Why not just use mouseMove? We  
pinged so that Galaxy could also detect when you were above the  
title bar of a stack and then report the stack name and path in  
the status fields of Galaxy Bar. The mouseMove tracking would not  
report when the pointer was in the title bar of a stack.



Jerry Daniels

Makers of Galaxy 1.5
http://www.daniels-mara.com/new_in_galaxy_1_5.htm



On Mar 17, 2007, at 11:03 PM, Stephen Barncard wrote:

Jerry figured it out a while ago -- Galaxy always shows the  
object name and path of the object it is hovering above. I think  
mousemove may be part of it.


from the docs: "Sent periodically while the mouse button is being  
held down."


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
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: Mouse messages while down

2007-03-18 Thread Jerry Daniels

Dick,

I indicated in my posting that I had distilled portions for  
simplicity. Look at the glxScriptEdit handler in the inspection  
folder in the frontScript. I't s quite large and has barnacles on it.  
You'll see how I determine the long id of the object below the  
pointer--including stacks.


Best,

Jerry Daniels




Tool makers for the 21st century
http://www.daniels-mara.com

Voice: 512.879.6286
Skype: jerry.daniels





On Mar 18, 2007, at 4:31 PM, Dick Kriesel wrote:


On 3/18/07 7:56 AM, "Jerry Daniels" <[EMAIL PROTECTED]> wrote:



on glxInspectObject
 -- get long id of object, even if pointer is in title bar:
 put glxGetObjectBeneathPointer() into theObjectID
 edit the script of theObjectID
end glxInspectObject



Hi, Jerry.  How does glxGetObjectBeneathPointer() work?  I searched  
the

Galaxy scripts and didn't find it.

-- Dick


___
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: AltFont for Mac Intel

2007-03-18 Thread Mark Schonewille

Thanks, Bill. I will vote for this bug.

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 18-mrt-2007, om 18:43 heeft Bill Marriott het volgende geschreven:


Bug #4550

http://quality.runrev.com/qacenter/show_bug.cgi?id=4550


___
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


MatchText, MatchChunk and the needle in the haystack

2007-03-18 Thread Bryan McCormick

Folks,

I have been given a batch of text files that have had their delimiters 
stripped off (by accident) leaving a single string of text to parse back 
into record delimited form. And yes, of course, there is no back-up so 
it is the strings or nothing.


I really know very little about using RegEx, but I presume this could at 
least in part solve the problem.


Basically the only good news is that each record was originally 
delimited in the form of "24-Jan-02" so that as long as each date could 
be plucked out of the string it ought to be possible to grab the offset 
and then introduce a return before the next date occurrence. As in the 
text is 06-Mar-92therewasamangledbitoftexttodealwith02-Apr-92therest...


I cannot seem to get the MatchText to work properly to identify these, 
but I guess really the problem is I still need to find an offset for 
each. Is MatchText even the right thing to use? Can I use it in 
conjunction with 
offset(MatchText(myVar,[0-9]-(Jan|Feb|Mar...|Dec)-[0-9],someVar)) to 
find each one?


Or is this a case where the string has to be brute forced?

Any ideas on how to proceed? Any ideas, snippets would be greatly 
appreciated.

___
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: Mouse messages while down

2007-03-18 Thread Dick Kriesel
On 3/18/07 7:56 AM, "Jerry Daniels" <[EMAIL PROTECTED]> wrote:


> on glxInspectObject
>  -- get long id of object, even if pointer is in title bar:
>  put glxGetObjectBeneathPointer() into theObjectID
>  edit the script of theObjectID
> end glxInspectObject


Hi, Jerry.  How does glxGetObjectBeneathPointer() work?  I searched the
Galaxy scripts and didn't find it.

-- Dick


___
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-2: label filed properties

2007-03-18 Thread runrev260805
Mark,

thanks to you, also.

Regards,

Matthias


 Original Message 
Subject: Re: label filed properties (18-Mrz-2007 20:46)
From:Mark Smith <[EMAIL PROTECTED]>
To:  use-revolution@lists.runrev.com

> Matthias, if you haven't named the label fields, then this should work:
> 
> repeat with n = 1 to the number of fields in this card
>if "label" is not in the name of fld n of this card then put empty  
> into fld n of this card
> end repeat
> 
> 
> best,
> 
> Mark
> 
> 


___
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: label filed properties

2007-03-18 Thread Mark Smith

Matthias, if you haven't named the label fields, then this should work:

repeat with n = 1 to the number of fields in this card
  if "label" is not in the name of fld n of this card then put empty  
into fld n of this card

end repeat


best,

Mark


On 18 Mar 2007, at 16:51, [EMAIL PROTECTED] wrote:


Hi,

until now i used Revolution just for manipulationg files (reading  
and writing lines and so on).


Now i want to create a special app with serveral forms in it. I am  
using only text and label fields. I want to place a reset-button on  
to the card, which resets all text fields. If i use the following  
script


on mouseUp
  put "" into field "number"
  put "" into field "name"
  put "" into field "description"
end mouseUp

it works fine. But i have to include a line for each field.

If i use

on mouseUp
put "" into any field
end mouseUp

I have to click serveral times, until all fields are resetted. But  
not only the text fields, also the label fields are resetted.


How can i reset all textfields with one click, without having the  
label fields modified? Maybe a simple question, but i dont know the  
answer.


Regards,

Matthias




___
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-2: label filed properties

2007-03-18 Thread runrev260805
Thanks, that will help.

Matthias




 Original Message 
Subject: Re: label filed properties (18-Mrz-2007 18:45)
From:Jim Ault <[EMAIL PROTECTED]>
To:  use-revolution@lists.runrev.com

> There are several ways that you could approach this.
> Assuming each field has a different name
> 
> repeat with x = 1 to the number of fields
>if the short name of fld x is among the words of  \
>   "number name description" then
>put empty into fld x
>end if
> end repeat
> 
> Hope this helps.
> 
> Jim Ault
> Las Vegas
>


___
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: Mouse messages while down

2007-03-18 Thread Stephen Barncard
Jerry, would this explain the 'flickering' that I've seen in your 
tooltips field in earlier versions of Galaxy? This would only happen 
when Galaxy was kept running for hours and days... Restarting Rev 
always fixed it.



The "cursory" inspection that Galaxy 1.5 has done to detect what 
object you're "over" came from Galaxy's "pinging"  or sending out 
periodic messages constantly. Why not just use mouseMove? We pinged 
so that Galaxy could also detect when you were above the title bar 
of a stack and then report the stack name and path in the status 
fields of Galaxy Bar. The mouseMove tracking would not report when 
the pointer was in the title bar of a stack.



Jerry Daniels

Makers of Galaxy 1.5
http://www.daniels-mara.com/new_in_galaxy_1_5.htm



On Mar 17, 2007, at 11:03 PM, Stephen Barncard wrote:

Jerry figured it out a while ago -- Galaxy always shows the object 
name and path of the object it is hovering above. I think mousemove 
may be part of it.


from the docs: "Sent periodically while the mouse button is being held down."


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
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: AltFont for Mac Intel

2007-03-18 Thread Bill Marriott
Bug #4550

http://quality.runrev.com/qacenter/show_bug.cgi?id=4550 



___
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: AltFont for Mac Intel

2007-03-18 Thread Bill Marriott
Mark,

> Could someone please confirm that Revolution's AltFont now works fine  on 
> Mac Intel?

Actually, I have not been able to get it to work. I should have filed a 
report on this a long time ago. Doing so right now.

- Bill 



___
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: label filed properties

2007-03-18 Thread Jim Ault
There are several ways that you could approach this.
Assuming each field has a different name

repeat with x = 1 to the number of fields
   if the short name of fld x is among the words of  \
  "number name description" then
   put empty into fld x
   end if
end repeat

Hope this helps.

Jim Ault
Las Vegas


On 3/18/07 9:51 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> until now i used Revolution just for manipulationg files (reading and writing
> lines and so on).
> 
> Now i want to create a special app with serveral forms in it. I am using only
> text and label fields. I want to place a reset-button on to the card, which
> resets all text fields. If i use the following script
> 
> on mouseUp
>   put "" into field "number"
>   put "" into field "name"
>   put "" into field "description"
> end mouseUp
> 
> it works fine. But i have to include a line for each field.
> 
> If i use
> 
> on mouseUp
> put "" into any field
> end mouseUp
> 
> I have to click serveral times, until all fields are resetted. But not only
> the text fields, also the label fields are resetted.
> 
> How can i reset all textfields with one click, without having the label fields
> modified? Maybe a simple question, but i dont know the answer.
> 
> Regards,
> 
> Matthias
> 
> 
> 
> 
> ___
> 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: buttons move from group rect to the twilight zone

2007-03-18 Thread Bill Marriott
Hi Erik,

We'll need to look into this to determine whether it's an error in the move 
command or an error in the documentation for the boundingRect of groups, and 
what is the most desireable resolution.

According to the docs, "If a group's boundingRect is empty and its 
lockLocation is false, when you drag an object toward the boundary of the 
group, the group automatically expands, resizing itself to fit. If the 
lockLocation is true, the object is clipped to the group's rectangle."

This happens as described when setting the location of a control; but not 
when an object's position is adjusted with the move command.

You can work around this behavior by setting the rect of the group either 
prior to or just after the move, depending on the effect desired.

I've filed a report in the Quality Control Center on your behalf:

http://quality.runrev.com/qacenter/show_bug.cgi?id=4549

Please feel free to add comments on it. 



___
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: Flash and Rev question....

2007-03-18 Thread Klaus Major

Hi David,

My understanding is that QuickTime as used in Rev applications can  
handle
Flash tracks - but only Flash 5 tracks? Also there was a problem  
with the
fact that as of last September Flash track support was turned of by  
default
and needed to be manually reset by the user (ot sure if this is  
still the

case)

My question is directed at swf movies such as those commonly found  
on the
internet that cannot be played currently by QuickTime is it  
possible to
create a player in Flash 5 format? I guess not, but if so cannot  
that player
be used as a Falsh QuickTime track so that we can play these movies  
in Rev?


Hint:
Use the altBrowser external with your stack and display them ALL***  
inside of Rev! ;-)


***As long your user does have all necessary internet plugins installed,
which is true in most of the cases!


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
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


label filed properties

2007-03-18 Thread runrev260805
Hi,

until now i used Revolution just for manipulationg files (reading and writing 
lines and so on).

Now i want to create a special app with serveral forms in it. I am using only 
text and label fields. I want to place a reset-button on to the card, which 
resets all text fields. If i use the following script

on mouseUp
  put "" into field "number"
  put "" into field "name"
  put "" into field "description"
end mouseUp

it works fine. But i have to include a line for each field.

If i use

on mouseUp
put "" into any field 
end mouseUp

I have to click serveral times, until all fields are resetted. But not only the 
text fields, also the label fields are resetted.

How can i reset all textfields with one click, without having the label fields 
modified? Maybe a simple question, but i dont know the answer.

Regards,

Matthias




___
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


Flash and Rev question....

2007-03-18 Thread David Bovill

My understanding is that QuickTime as used in Rev applications can handle
Flash tracks - but only Flash 5 tracks? Also there was a problem with the
fact that as of last September Flash track support was turned of by default
and needed to be manually reset by the user (ot sure if this is still the
case)

My question is directed at swf movies such as those commonly found on the
internet that cannot be played currently by QuickTime is it possible to
create a player in Flash 5 format? I guess not, but if so cannot that player
be used as a Falsh QuickTime track so that we can play these movies in Rev?
___
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: Revolution and Unicode

2007-03-18 Thread Mark Smith

I meant to write
set the unicodeText of fld "blah" to uniencode(it,"UTF8")

although I wonder if the page content also needs to be urlDecoded?

Best,

Mark

On 18 Mar 2007, at 13:53, kee nethery wrote:



On Mar 18, 2007, at 5:09 AM, Mark Smith wrote:


Does

get URL "http://";
put uniencode(it,"UTF8") into fld blah

not work?


It does not work. It was not a combination I had tried previously  
so thanks for suggesting it. The unicode characters on screen and  
in view source from the browser do not display correctly in the field.

Kee Nethery

___
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: Duration of non supported applications

2007-03-18 Thread David Bovill

On 18/03/07, Bill Marriott <[EMAIL PROTECTED]> wrote:


I'd wager that a first-year comp sci undergraduate with no prior knowledge
of xTalk could be sat down in front of the typical Revolution stack and
make
any updates required in the time it took for the other three routes to get
past the research/requirements phase. That's the great strength of our
beloved platform.



True. In my experience truth has little to do with this though :( The
problem is that human beings and institutional structures get in the way of
that. The real world logic goes to often like this:

 1) A university department without a dedicated in house coder defers to
the IT Department for advice and support.
 2) The IT department unless it has a Rev convert will recommend a
commercial solution if it does not have available software engineers (most
common), or if it does either industry standard (Java / Micorsoft) or open
source solutions.
 3) The University department is reliant on the rubber stamp from the IT
Department to gain the required project funding

The relative merits of the technology have little to do with the decision -
again the human factors are more important. Remove a student or department
from this catch-22 and they would often choose Rev - otherwise they go for
an industry standard or open source solution for "career" or "ideological"
reasons.
___
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: Mouse messages while down

2007-03-18 Thread Jerry Daniels
 > Galaxy always shows the object name and path of the object it is  
hovering above. I think mousemove may be part of it.


This is an interesting topic to me. One that doesn't necessarily deal  
with Sarah's original question, but for the sake of accuracy--and  
possible interest--I want to report how Galaxy has has in the past  
and is presently figuring out "what object is beneath the pointer?"


The "cursory" inspection that Galaxy 1.5 has done to detect what  
object you're "over" came from Galaxy's "pinging"  or sending out  
periodic messages constantly. Why not just use mouseMove? We pinged  
so that Galaxy could also detect when you were above the title bar of  
a stack and then report the stack name and path in the status fields  
of Galaxy Bar. The mouseMove tracking would not report when the  
pointer was in the title bar of a stack.


We also used the "ping method" so users could hold down command +  
option to then edit of the script of an object. This is only needed  
because Rev running on the Mac cannot detect the depression of the  
modifier keys (command, option, shift, control) without also  
depressing a "typeable" key. But even on Windows, it is sometimes  
difficult to get Revolution to report a keydown if there isn't an  
editable field around in an open stack.


You'll notice I am using the past tense in describing the ping method  
of object inspection. We switched over to a new approach to solving  
this problem because "pinging" was very inefficient, especially on  
older, slower machines.


The more recent versions of Galaxy 1.5 use the "pepper ping"  
approach. With this method, cursory and in-depth inspection occurs  
only when the mouse is moving AND up to 5 seconds after the mouse  
stops moving. When the mouse stops moving, Galaxy "peppers" the  
object beneath the pointer with a series of pings (send  
"glxInspectObject" in 250 millisecs) over a period of 5 seconds to  
see if you're going to hold down some modifier keys and also in case  
you moved the pointer to the title bar of a stack.


How does one detect if the mouse has stopped moving? By canceling  
messages! (See script below.)


The "pepper" method (invented after drinking a Dr. Pepper soft  
drink?) results is far less system activity, near instant reporting  
of the object name and path in Galaxy Bar, and very snappy in-depth  
inspection that leads to editing the object. The only time a veteran  
user of Galaxy might notice our change in methods is when using no- 
click inspection to edit the script of an object, and mouse has been  
stationary for longer than 5 seconds--something that doesn't seem to  
happen as often as one would think.


Here is the crucial code from our front script (distilled for our  
purposes here) that does does the pepper ping thing:


on mouseMove theH,theV
put the cGlxInspect of stack "revGalaxy inspector" into doInspect
if doInspect is true then
glxSendStaggeredInspectMsg
end IF
pass mouseMove
end mouseMove

on glxSendStaggeredInspectMsg
-- get rid of lingering messages for efficiency...
-- and to detect if mouse has stopped moving:
glxCancelPendingInspectMsgs
-- respond right away:
send "glxInspectObject" to me in 10 millisecs
-- begin the "peppering":
put 0 into theNoMillisecs
put 250 into theInterval
repeat for 19
add theInterval to theNoMillisecs
send "glxInspectObject" to me in theNoMillisecs millisecs
end repeat
end glxSendStaggeredInspectMsg

on glxCancelPendingInspectMsgs
-- luckily, Rev does all this very fast, indeed:
put the pendingmessages into thePendingMessages
filter thePendingMessages with "*,glxScriptEdit,*"
repeat for each line thePendingMessage in thePendingMessages
-- use token and don't worry about itemDel:
put token 1 of thePendingMessage into theMsgID
cancel theMsgID
end repeat
end glxCancelPendingInspectMsgs

on glxInspectObject
-- get long id of object, even if pointer is in title bar:
put glxGetObjectBeneathPointer() into theObjectID
edit the script of theObjectID
end glxInspectObject

Best,

Jerry Daniels

Makers of Galaxy 1.5
http://www.daniels-mara.com/new_in_galaxy_1_5.htm



On Mar 17, 2007, at 11:03 PM, Stephen Barncard wrote:

Jerry figured it out a while ago -- Galaxy always shows the object  
name and path of the object it is hovering above. I think mousemove  
may be part of it.


from the docs: "Sent periodically while the mouse button is being  
held down."




this gets close to what you want I think.

ON mouseMove
 put the target
END mouseMove



It still seems odd that I can't get the data I need without having  
to do this.


Cheers,
Sarah



--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscripti

AltFont for Mac Intel

2007-03-18 Thread Mark Schonewille

Hello,

Could someone please confirm that Revolution's AltFont now works fine  
on Mac Intel?


Thanks,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


___
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: Bkgnd process that returns immediately

2007-03-18 Thread Mark Powell
Xavier:  

Thanks for the additional info on the redirect technique.  I have
adapted it to the following

 put "start /MAX C:\foo.html > C:\foo.txt" into MyCom   
 set the hideConsoleWindows to true 
 get  "start cmd /c"  && quote & MyCom & quote  
 get shell(it)  

and have further questions...

-1-
This does seem to open foo.html without blocking.  However, the console
window flashes despite setting hideConsoleWindows to true. Do you have
that same behavior?  Is this due to the redirect, or is there something
else I can include to keep the console window invisible.

-2-
Suppose I wanted to close the window foo.html via shell.  What would the
text be on the first line before >?

-3-
Can I put multiple lines into mycommand so that shell will run commands
in sequence?

Thanks very much.

Mark

___
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: Revolution and Unicode

2007-03-18 Thread kee nethery


On Mar 18, 2007, at 5:09 AM, Mark Smith wrote:


Does

get URL "http://";
put uniencode(it,"UTF8") into fld blah

not work?


It does not work. It was not a combination I had tried previously so  
thanks for suggesting it. The unicode characters on screen and in  
view source from the browser do not display correctly in the field.

Kee Nethery

___
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: Mouse messages while down

2007-03-18 Thread Jerry Daniels

I prefer the method Bill Marriott suggested:

set a global (or a script local) on a mouseDown event and then track  
the coordinates via mouseMove.


You can theoretically track the location of the mouse (pointer)  
during mouseMove without using a local or global in a mouseDown  
handler, but then you have to use "the mouse is down" to test within  
the mouseMove handler, and that can be problematic as it tends to  
"eat" the mouseUp message and is generally inefficient, in my  
experience.


Best,

Jerry Daniels

Makers of Galaxy 1.5
http://www.daniels-mara.com/new_in_galaxy_1_5.htm



On Mar 17, 2007, at 11:03 PM, Stephen Barncard wrote:

Jerry figured it out a while ago -- Galaxy always shows the object  
name and path of the object it is hovering above. I think mousemove  
may be part of it.


from the docs: "Sent periodically while the mouse button is being  
held down."




this gets close to what you want I think.

ON mouseMove
 put the target
END mouseMove



It still seems odd that I can't get the data I need without having  
to do this.


Cheers,
Sarah



--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


___
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: Mouse messages while down

2007-03-18 Thread Mark Powell
Hi Sarah:

Depending on the arrangement and characteristics of your 400 controls,
you could take the approach of putting mouse detection in an image above
your buttons instead of in a card script below:  Create a one-bit
mask...with areas in the image that register with buttons being made
opaque, other areas being transparent.  In Rev set the blendlevel of the
image to 100.  The entire image will be visually transparent, but mouse
clicks will respect *original* opacity/transparency.  Therefore in the
script of the image you could have something like this:

on mouseDown
  --detectable in opaque areas only 
  put BtnBelowAtMouseDown() into gBtnDown   
  set the hilite of btn gBtnDown to true
end mouseDown   

on mouseRelease 
  set the hilite of btn gBtnDown to false   
end mouseRelease

on mouseUp  
  set the hilite of btn gBtnDown to false   
  send mouseUp to btn gBtnDown  -- if needed
end mouseUp 

on mouseMove
  put BtnBelowAtHover() into tBtnHovered
  ...   
end mouseMove   


The BtnBelowAtMouseDown and BtnBelowAtHover algorithms depend a lot on
card design.  I have done something similar, but with 4 underlying
controls instead of 400 so I am not sure about performance and the
efficiency of those two algorithms in your particular case.  A
compelling feature of this approach is that the creation of the mask
itself could be scriptable...using snapshot, button rects, alphadata,
etc...though I have never done it.

Mark
___
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: Mouse messages while down

2007-03-18 Thread Mark Schonewille

Sarah,

400 individual buttons is bad design. Draw a grid and use a mouseDown  
handler if you want to store the clicked location. Use the  
mouseRelease handler to get the new location. Calculate in which  
rectangle the new mouseLoc is, without a repeat loop. I am sure you  
can do this.


Best regards,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 18-mrt-2007, om 8:12 heeft Sarah Reichelt het volgende geschreven:


The top of your head worked fine thanks Jacque :-)

I'm now doing the politically correct mouseMove instead of using
repeat while mouse is down. But it still leaves me having to check the
location all the time to see whether it is inside one of my 400
buttons. It seems that the mouseControl should be able to report where
the mouse is without me having to check it manually. But mouseControl
gets stuck when you click down and never changes until the mouse comes
up again.

Thanks to everyone for their thoughts and suggestions.

Cheers,
Sarah



___
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: Revolution and Unicode

2007-03-18 Thread Mark Smith

Does

get URL "http://";
put uniencode(it,"UTF8") into fld blah

not work?

Best,

Mark

On 18 Mar 2007, at 04:19, kee nethery wrote:



If this is hopeless using
get URL "http:// ..."
to grab utf8 and convert it to unicode it would be great to know  
that now.


Thanks in advance,
Kee Nethery
___
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: Implications of limited wash to flash drives

2007-03-18 Thread Luis

You wash your darks at 40?!

On 17 Mar 2007, at 21:19, John Craig wrote:

My current flash drive got washed at 40 degrees when I accidentally  
left it in my jeans pocket - still seems to work perfectly, but be  
warned;
Like all flash memory devices, flash drives can sustain only a  
limited number of wash and rinse cycles before failure.



___
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: Mouse messages while down

2007-03-18 Thread Bill Marriott
There's another fly in the ointment. Using "within" works reliably only if 
no buttons are overlapping (it doesn't respect layering like messages 
would), and the coordinate approach only works if the buttons are in a grid. 
If you have a more involved setup like using irregular graphics for the 
regions, invisible or disabled objects, etc it can get complicated.

The DragDrop family of messages would seem ideal; but those only work with 
text. :/ 



___
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: Mouse messages while down

2007-03-18 Thread Scott Rossi
Recently, Sarah Reichelt wrote:

> It seems that the mouseControl should be able to report where
> the mouse is without me having to check it manually. But mouseControl
> gets stuck when you click down and never changes until the mouse comes
> up again.

You may not be able to check the mouseControl while the mouse is pressed,
but you *can* check the mouse position on mouseMove while the mouse is down.

The main reason to avoid polling is because you have 400 objects to check --
it could be demanding and possibly prevent stuff from executing.  But you
could establish a coordinate grid defined by the rects of the buttons, and
monitor the X,Y in a mouseMove handler.

Assume a grid of btns on a card:

a1 b1 c1 d1
a2 b2 c2 d2
a3 b3 c3 d3


Put the following in the card script (actual mouseMove code would be more
efficient):

local W,H,L,T,gridRect,checkPos
on mouseDown
  put width of btn 1 into W
  put height of btn 1 into H
  put left of btn 1 into L
  put top of btn 1 into T
  put L,T,(L+4*W),(T+3*H) into gridRect
  put true into checkPos
end mouseDown

on mouseMove X,Y
  if not checkPos then pass mouseMove
  if not (X,Y is within gridRect) then
put ""
pass mouseMove
  end if
  if X < (L+4*W) then put "d" into btnX
  if X < (L+3*W) then put "c" into btnX
  if X < (L+2*W) then put "b" into btnX
  if X < (L + W) then put "a" into btnX
  #
  if Y < (T+3*H) then put 3 into btnY
  if Y < (T+2*H) then put 2 into btnY
  if Y < (T + H) then put 1 into btnY
  put "Mouse is within button" && btnX & btnY
end MouseMove

on mouseUp
  endCheck
end mouseUp

on mouseRelease
  endCheck
end mouseRelease

on endCheck
  put false into checkPos
  put ""
end endCheck

This should monitor the mouse position relative to each button.
Hope this helps.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.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: scrollbars on disabled fields

2007-03-18 Thread Peter Alcibiades
On Sunday 18 March 2007 08:05, Peter Alcibiades wrote:
> How do you make a scrollbar work on a disabled field? 

Sorry, very silly question.  You do it by lock text property and enabling the 
field of course  

Peter
___
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: Mouse messages while down

2007-03-18 Thread Dick Kriesel
On 3/18/07 12:12 AM, "Sarah Reichelt" <[EMAIL PROTECTED]> wrote:


> But it still leaves me having to check the
> location all the time to see whether it is inside one of my 400
> buttons.


Hi, Sarah.  You could build an array using points as keys, so that when you
look up any x,y pair you get the control id.  If that would use too much
memory, you could build two arrays, one for x and one for y.  If the x array
identifies for each value of x the controls that share that value of x, any
the y array is analogous, then intersecting of the values for the current x
with the values for the current y would yield the current control id. For
buttons in a simple arrangement, you could probably use even less memory.
Whichever design you choose, you could store the arrays as custom property
sets of the card, so your user could never perceive the delay even for a
huge number of buttons.  Of course you'd need to rebuild the arrays if you
move a button.  Do you feel the need the speed enough to write the code?

-- Dick


___
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


scrollbars on disabled fields

2007-03-18 Thread Peter Alcibiades
How do you make a scrollbar work on a disabled field?  The user should be able 
to scroll up and down to review the contents, which are periodically updated 
from another part of the wood, but not be able to select or edit them.  But 
it seems that picking disabled from properties prevents this.

Peter
___
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