Re: save data in custom properties in a stack- or a text file?

2007-08-01 Thread J. Landman Gay

Josh Mellicker wrote:
I know stacks are a nice way to save a lot of data because it can be 
organized by custom property and custom property set.


But what about a simple list of data consisting of name, URL, and a 
couple other fields, that needs to be downloaded from a server- would 
you save the data in:


A. a stack in custom properties?

B. Or a text file?


I like them both for different purposes. One of my apps needs a lot of 
little files on the server, and the client has to maintain them. They 
aren't critical files; it's stuff like a current table of contents, 
article summaries, that sort of thing. For this, text files are great. 
They are easy for him to edit and very fast for the app to read over the 
net. So I'd say if someone else has to maintain the files, go for text 
if you can. If you store that kind of info in a stack, you have to write 
tools for the person who maintains it.


For data my app maintains, either stacks or text files work fine. But 
stacks can provide an extra layer of protection if you need some 
security. You can put info in custom properties and password-protect the 
stack, which makes the properties unreadable and encrypted. Sometimes I 
also .gz the stack on the server (leaving off the extension) to make it 
a little harder to recognize it as a stack. It's not so secure that I'd 
store credit card info there, but it obscures things pretty well.


So both ways work, depending on what you need to do.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
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: BvG Docu with WebNotes updated (Was Re: [ANN] BvG Docu gets an add-on AAG WebNotes)

2007-08-01 Thread Sarah Reichelt
On 8/2/07, Andre Garzia <[EMAIL PROTECTED]> wrote:
> Thanks for the kind words Sarah, I've made a little update, Mark Smith
> identified a problem with commands that have a space in it such as answer
> file... I've fixed to make spaces into underscores. I moved your comment to
> answer file.
> I'll add editing and comment removal in the next days. I'll also add auto
> update so people know they are running the latest version.
>
> Any other feature request? I am issuing updates every four or so hours.

Just one, an option to turn off auto-downloading of the web notes with
a button to check of there are any for a particular entry. This would
ease the load on your server as well as being good for people with
slow connections or connections that are not always on.

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: Find Command

2007-08-01 Thread Richard Gaskin

RG Teeter wrote:

I am recreating some hypercard stacks.

I am having a problem with "find"

The handler below:

on mouseUp
1 select the clickline
2 put the selectedtext into wordToFind
3 find string wordToFind in field "TestFld2"
4 put wordToFind & the result
5 find string "Cafe (das)" in field "TestFld2"
   end mouseUp

line 5 works as expected.
line 3 returns "Not Found"


Try adding a diagnostic line to check the value of the selection:

  on mouseUp
 select the clickline
 put the selectedtext into wordToFind
 find string wordToFind in field "TestFld2"
 put wordToFind & the result
 find string "Cafe (das)" in field "TestFld2"
 put wordToFind && (wordToFind = "Cafe (das)") --<
  end mouseUp

--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.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


Find Command

2007-08-01 Thread RG Teeter

Friends, I have recently upgraded from HyperCard to Revolution Media.

I am recreating some hypercard stacks.

I am having a problem with "find"

The handler below:

   on mouseUp
1 select the clickline
2 put the selectedtext into wordToFind
3 find string wordToFind in field "TestFld2"
4 put wordToFind & the result
5 find string "Cafe (das)" in field "TestFld2"
  end mouseUp

line 5 works as expected.
line 3 returns "Not Found"

Why?
___
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: BvG Docu with WebNotes updated (Was Re: [ANN] BvG Docu gets an add-on AAG WebNotes)

2007-08-01 Thread Andre Garzia
Thanks for the kind words Sarah, I've made a little update, Mark Smith
identified a problem with commands that have a space in it such as answer
file... I've fixed to make spaces into underscores. I moved your comment to
answer file.
I'll add editing and comment removal in the next days. I'll also add auto
update so people know they are running the latest version.

Any other feature request? I am issuing updates every four or so hours.

Andre

On 8/1/07, Sarah Reichelt <[EMAIL PROTECTED]> wrote:
>
> On 8/2/07, Andre Garzia <[EMAIL PROTECTED]> wrote:
> > Friends,
> > I've updated the stack so the sliders work, when I first created it, I
> > didn't knew they were sliders :-/ my mistake.
> >
> > get it from http://www.andregarzia.com/rev/docuwebnotes.rev
> >
>
> Hi Andre,
>
> This is fantastic. I hope Rev takes it onboard so that we can have the
> same sort of active documentation as MySQL does.
>
> I just added my first note (to "answer file" if you want to check it).
> It just occurred to me that if I found an error in my note then I
> might want to edit it. Are you planning any way to allow editing of
> notes, or would I just add a new note correcting my error? BTW, I
> haven't found an error yet as far as I know, I just thought of it as a
> possibility.
>
> 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
>
___
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: Voyager Multimedia

2007-08-01 Thread Timothy Miller
Already the Stravinsky Voyager CD is quite hard to find and selling  
at $60 or so from used book and CD dealers.


But it seems more desirable for these to remain available to the  
public, and useable on a non-legacy computer.


"If Monks Had Macs" was originally a Voyager HyperCard stack, if I'm  
not mistaken. It's been converted to Rev and is commercially  
available at modest cost.


Seems like the same thing could happen with the Voyager music  
tutorial CDs. Maybe one of the copyright holders will hear about this  
thread and get in touch with Rev.



Tim


On Jul 31, 2007, at 9:05 PM, Jim Lambert wrote:


Colin Holgate frequents the Apple QuickTime Talk list.


And Colin is also an active participant of the Lingo-L (Director)  
list.


I had the pleasure to program Voyager's 'Salt of the Earth' CD-ROM.  
It was one of the first disks to contain an entire feature film  
(albeit in a small size!)
Voyager had a nice collection of custom HyperCard xcmds that made  
short work of some tricky maneuvers. The company was staffed with  
immensely talented, creative and quirky folk. Fun and trailblazing  
work.


In time I imagine that original copies of Voyager's CD-ROMs could  
become quite collectable.


Jim Lambert

___
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: BvG Docu with WebNotes updated (Was Re: [ANN] BvG Docu gets an add-on AAG WebNotes)

2007-08-01 Thread Sarah Reichelt
On 8/2/07, Andre Garzia <[EMAIL PROTECTED]> wrote:
> Friends,
> I've updated the stack so the sliders work, when I first created it, I
> didn't knew they were sliders :-/ my mistake.
>
> get it from http://www.andregarzia.com/rev/docuwebnotes.rev
>

Hi Andre,

This is fantastic. I hope Rev takes it onboard so that we can have the
same sort of active documentation as MySQL does.

I just added my first note (to "answer file" if you want to check it).
It just occurred to me that if I found an error in my note then I
might want to edit it. Are you planning any way to allow editing of
notes, or would I just add a new note correcting my error? BTW, I
haven't found an error yet as far as I know, I just thought of it as a
possibility.

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: save data in custom properties in a stack- or a text file?

2007-08-01 Thread Stephen Barncard
there are so many ways and so many different solutions... all good. 
No method is inherently 'easier'. You have to focus on what's best 
for your user.  Will this be used by many or just one person? Does it 
need to travel with the app or does there need to be prefs for 
multiple users?


Text Files

If you're on a Mac, there are even more solutions.  On a recent 
'quick app' binge for a friend, I came up with a  solution for 
configuration storage that still had to be editable by the user.  And 
stays with the app (for now).


So although it was created as a double clickable application, 
option-clicking will reveal inside are more folders inside and those 
folders are areas (where the rev binary and external stacks live) 
where some data can be successfully written to by the app.  In order 
to not 'step on' the data I use the IDE and edit "inside" the 
package, with the added benefit that I don't have to recompile the 
standalone over and over and can test it immediately - and all the 
paths are already in place.


Available by menu, the app calls an Applescript call "Reveal Folder" 
and the client could take it from there and edit the little files 
that my app needs for part of the input (already stamped with their 
'creator' and 'type' tags by double clicking.I just saved having to 
re-invent the wheel for a little used but needed feature in my quick 
app.  The files then get edited in TextEdit. And the little files 
travel in the app with the client in her USB dongle.


specialfolderpath is good for multiple users at a workstation:

you can always call each platform's 
specialfolderpath("preferences") and put a folder in there with your 
app name and then put all sorts of files in there.


or if the user needs to get to the files sometimes  specialfolderpath("docs")

or if it's part of a urgent workflow  specialfolderpath("desktop")

Custom Props

Allow saving in a structured way, a hierarchy.

stack > card -->property set->property> properties 
lists inside of properties


It allows the clustering and associations one might get with files 
and folders, but in a better way.
But all the statements I made about WHERE to save still applies to 
stacks with custom properties as well as text files.


Text files, unless you use XML or some other method, are only one 
dimensional, and one ends up using different kinds of delimiters to 
keep the varied fields of data together in on file. Often faster to 
develop.


sqb


I know stacks are a nice way to save a lot of data because it can be 
organized by custom property and custom property set.


But what about a simple list of data consisting of name, URL, and a 
couple other fields, that needs to be downloaded from a server- 
would you save the data in:


A. a stack in custom properties?

B. Or a text file?


The information in this case will never get more complicated, though 
is remotely possible a data field or two might be added in the 
future. But the data will never evolve to be complex, it will always 
merely be a list of files.



Here is my comparison:

writing to/reading from: code must be written for both, text file a 
little easier


entering/reading data manually: text file way easier

encrypting: a tie

adding data "fields": a tie, easy in either (you must think ahead)

possible data corruption: a tie



___
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
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: save data in custom properties in a stack- or a text file?

2007-08-01 Thread Mark Smith
One other consideration is how the data is to be used. Even though  
the data maybe simple, if you were going to load it into an array in  
your app, then saving it as a customPopertySet in a stack file might  
be easier.


from a text file to an array goes from
put URL "file:someFile.txt"  into tArray
split tArray by cr and "="
to
put the customProperties["data"] of stack whatever into tArray

Otherwise, and obviously if human-readability is an issue, I'd use a  
text file.



Best,

Mark

On 2 Aug 2007, at 00:09, Josh Mellicker wrote:

I know stacks are a nice way to save a lot of data because it can  
be organized by custom property and custom property set.


But what about a simple list of data consisting of name, URL, and a  
couple other fields, that needs to be downloaded from a server-  
would you save the data in:


A. a stack in custom properties?

B. Or a text file?


The information in this case will never get more complicated,  
though is remotely possible a data field or two might be added in  
the future. But the data will never evolve to be complex, it will  
always merely be a list of files.



Here is my comparison:

writing to/reading from: code must be written for both, text file a  
little easier


entering/reading data manually: text file way easier

encrypting: a tie

adding data "fields": a tie, easy in either (you must think ahead)

possible data corruption: a tie



___
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: save data in custom properties in a stack- or a text file?

2007-08-01 Thread Richard Gaskin

Josh Mellicker wrote:

I know stacks are a nice way to save a lot of data because it can be  
organized by custom property and custom property set.


But what about a simple list of data consisting of name, URL, and a  
couple other fields, that needs to be downloaded from a server- would  
you save the data in:


A. a stack in custom properties?
B. Or a text file?

The information in this case will never get more complicated, though  
is remotely possible a data field or two might be added in the  
future. But the data will never evolve to be complex, it will always  
merely be a list of files.



Here is my comparison:

writing to/reading from: code must be written for both, text file a  
little easier


Depends on what you're writing.  If you're just writing a single 
sequential list than dumping it to a file would be simple enough.  But 
if you need to access specific elements of that data, it's hard to beat 
the convenient flexibility and performance of array syntax to get custom 
prop elements.



entering/reading data manually: text file way easier


What is "manually" in this context?  What other processes in the 
workflow require "manual" editing?



encrypting: a tie

adding data "fields": a tie, easy in either (you must think ahead)


Maybe, maybe not.  Again, it depends on the specifics of the 
implementation.  Adding a column to a list is easy enough, and using 
linked-listed to attach even large elements to property arrays can be 
easy enough, more efficient with large data, and possibly more flexible.



possible data corruption: a tie


Maybe, but consider this:

If you parse your own file yourself, you're responsible for defining the 
format and the accessors which will use that format, and must test your 
invention thoroughly.


But the custom property mechanism is already in the engine, already 
field-tested for more than a decade, and in all that time I've only even 
heard about three cases of true file corruption, and only seen one of 
those firsthand myself. Ten years is a long time.


Also, with stack files you get an automatic temporary backup whenever 
the save command is issued:  the last saved copy of the stack file is 
written to a temp file preceeded with a tilde (e.g., "mystack.rev" 
becomes "~mystack.rev"), then the new stack file is written fresh from 
RAM contents, and only when the integrity of the completely fresh file 
has been checked is that temp file deleted.


So among other things this means that if your using has a power outage 
during a save, or any other unexpected interruption, the engine's 
handling of stack files automatically gives you a safety that's been 
proven in real-world work for many years.  You'd have to write that 
yourself if you wanted to provide similar protection.


Another plus for stack files:

With stack files you can add other lists, tables, metadata, even 
hierarchical data at any time without changing the accessors for your 
original data set. This inherent zero-cost extensibility is one of many 
reasons I've been migrating most of the apps I manage from custom 
formats to stack file formats.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.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: mercy...Control-A and text selection revisited

2007-08-01 Thread Sarah Reichelt
On 8/2/07, Mark E. Powell <[EMAIL PROTECTED]> wrote:
> Sorry, the archives are not solving this for me and I need to throw myself on 
> the mercy of the list.
>
> After a user enters cursor in a fld (its traversalOn property is true), I 
> want control-A to select the text of that fld.  How do I do it?
>
> The focusedObject is the fld, but the controlkeydown message is never 
> received by the field.  Clicking outside the field makes the focusedObject 
> the card, but when pressing control-A then the controlKeyDown message is not 
> received by the card either.  A test button that says
>
>   on mouseUp
> select text of fld "dump"
>   end mouseUp
>
> does select the text of the field successfully.  All the foregoing in both 
> IDE and standalone.  Rev 2.8 Build 360.

Are you using a custom menu bar or the default Rev menu bar? If you
have the Rev menu bar it should just work. If you have a custom menu
bar, then add "Select All" to the Edit menu, give it the shortcut you
want, and then add this section to the Edit menu buttons script:

  case "Select All"
put the focusedObject into tID
if tID contains "field" then
  select text in tID
end if
break

This assumes you have a standard menu handler using a switch.

HTH,
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


save data in custom properties in a stack- or a text file?

2007-08-01 Thread Josh Mellicker
I know stacks are a nice way to save a lot of data because it can be  
organized by custom property and custom property set.


But what about a simple list of data consisting of name, URL, and a  
couple other fields, that needs to be downloaded from a server- would  
you save the data in:


A. a stack in custom properties?

B. Or a text file?


The information in this case will never get more complicated, though  
is remotely possible a data field or two might be added in the  
future. But the data will never evolve to be complex, it will always  
merely be a list of files.



Here is my comparison:

writing to/reading from: code must be written for both, text file a  
little easier


entering/reading data manually: text file way easier

encrypting: a tie

adding data "fields": a tie, easy in either (you must think ahead)

possible data corruption: a tie



___
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


RevZip Behavior in Vista

2007-08-01 Thread Derek Bump
I'm noticing some weird behavior within Revolution that I really would
like to resolve.


1. I've got a project that compresses a bunch of files to a zip file
using the RevZip external.  It works wonderfully, but Vista seems to
think my project is "Not Responding" even when it's working just fine.

The archive is usually about 18mb's.  I've got the callback message for
RevZip working fine so I am getting and displaying feedback on my stack.
 The only problem is that as soon as I try to move the stack's window or
click inside the window (like any Windows user WILL do), Vista instantly
gray's out the window and puts the "(Not Responding" item after the title.

Then it doesn't show anything on the screen until the operation
involving RevZip is complete.


2. Opening and closing a zip file works fine the first time, but if I
try to re-open the file, I get a zip error.  Is this normal?  Can revZip
only open and close a specific zip file once per session?



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


BvG Docu with WebNotes updated (Was Re: [ANN] BvG Docu gets an add-on AAG WebNotes)

2007-08-01 Thread Andre Garzia
Friends,
I've updated the stack so the sliders work, when I first created it, I
didn't knew they were sliders :-/ my mistake.

get it from http://www.andregarzia.com/rev/docuwebnotes.rev

still there will be more updates on the following days.

andre
___
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@lists.runrev.com

2007-08-01 Thread Judy Perry
Well... I dunno. I don't think I've ever set the numberFormat (haven't
had a reason to).

But it seems to be working now...  after numerous times of it not
working.  Honestly... my computer is infected :-/

Thanks, Mark.

Judy

On 8/1/07, Mark Schonewille <[EMAIL PROTECTED]> wrote:
> Hi Judy,
>
> What is really in n? Is it possible that n contains 1.0, 2.0 etc
> instead of 1, 2 etc? I had a similar problem after setting the
> numberformat.
>
> Best regards,
>
> Mark Schonewille
>
> --
>
> Economy-x-Talk Consulting and Software Engineering
> http://economy-x-talk.com
> http;//www.salery.com
>
> Quickly extract data from your HyperCard stacks with DIFfersifier.
> http://differsifier.economy-x-talk.com
>
>
> Op 1-aug-2007, om 18:29 heeft Judy Perry het volgende geschreven:
>
> > Hi,
> >
> > Maybe it's the Florida vacation humidity affecting my already feeble
> > brain, but I'm having problems with the following:
> >
> > repeat with n = 1 to 15
> > put "penny" & n into myPenny
> > hide image myPenny
> > end repeat
> >
> > I get:
> >
> > Message execution error:
> > Error description: Chunk: no such object
> >
> > when I run the handler from the message box.
> >
> > HOWEVER, if I do this, manually, from the message box:
> >
> > put "penny" & "1" into myPenny
> > hide image myPenny
> >
> > it work.
> >
> > Why?  Why isn't it working in the handler?  Any ideas?
> >
> > Thank you,
> >
> > Judy
>
> ___
> 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@lists.runrev.com

2007-08-01 Thread Mark Schonewille

Hi Judy,

What is really in n? Is it possible that n contains 1.0, 2.0 etc  
instead of 1, 2 etc? I had a similar problem after setting the  
numberformat.


Best regards,

Mark Schonewille

--

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

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 1-aug-2007, om 18:29 heeft Judy Perry het volgende geschreven:


Hi,

Maybe it's the Florida vacation humidity affecting my already feeble
brain, but I'm having problems with the following:

repeat with n = 1 to 15
put "penny" & n into myPenny
hide image myPenny
end repeat

I get:

Message execution error:
Error description: Chunk: no such object

when I run the handler from the message box.

HOWEVER, if I do this, manually, from the message box:

put "penny" & "1" into myPenny
hide image myPenny

it work.

Why?  Why isn't it working in the handler?  Any ideas?

Thank you,

Judy


___
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@lists.runrev.com

2007-08-01 Thread Judy Perry
Hi,

Maybe it's the Florida vacation humidity affecting my already feeble
brain, but I'm having problems with the following:

repeat with n = 1 to 15
put "penny" & n into myPenny
hide image myPenny
end repeat

I get:

Message execution error:
Error description: Chunk: no such object

when I run the handler from the message box.

HOWEVER, if I do this, manually, from the message box:

put "penny" & "1" into myPenny
hide image myPenny

it work.

Why?  Why isn't it working in the handler?  Any ideas?

Thank you,

Judy
___
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: backcolor for cascading menus anyone?

2007-08-01 Thread FlexibleLearning
> Reading my post I think I was not clear enough what I need. I want the  
> white area you can see in the snapshot to be gray also.
>
>  
>
> Any pointers highly  appreciated.

Hi Malte,

You can't. Cascaded menus seem live in a  world of their own and do not seem 
to inherit very much from the parent. I've  had the same problem.

The good news is that,  officially, 'hierarchical menus are bad, so this 
issue will not affect you  because you won't have them".

;-)

/H
 



   
___
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


mercy...Control-A and text selection revisited

2007-08-01 Thread Mark E. Powell
Sorry, the archives are not solving this for me and I need to throw myself on 
the mercy of the list.

After a user enters cursor in a fld (its traversalOn property is true), I want 
control-A to select the text of that fld.  How do I do it?

The focusedObject is the fld, but the controlkeydown message is never received 
by the field.  Clicking outside the field makes the focusedObject the card, but 
when pressing control-A then the controlKeyDown message is not received by the 
card either.  A test button that says

  on mouseUp
select text of fld "dump"
  end mouseUp

does select the text of the field successfully.  All the foregoing in both IDE 
and standalone.  Rev 2.8 Build 360.

What am I doing wrong?

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: [slightly [OT]] A little Help removing Galaxy

2007-08-01 Thread Stephen Barncard
"cmd shift - " will undo comments. It's slightly broken in the new 
beta and requires a few extry keystrokes to reverse direction, but 
it's neither nonstandard or 'fancy'.



I also know there is a galaxy support forum.


so why not go there? Jerry usually answers within a day or so.


 But what galaxy really really
really needs is a simple PDF with maybe three pages of instructions that you
can print out. I searched all the galaxy help files both the internet and
the program and found no mention of how to comment and un-comment a script
(it has a very fancy thing where you can automatically comment at a
break-point).
I tried every single command key combination I could think of and found out
that "command - " will comment a script but "command +" or command anything
else will not un-comment the script.

PLEASE  Galaxy people give us a three page simple documentation for the
simple user who doesn't know all this stuff and doesn't have two hours to
search for it.

I am now going to use the back space key and the mouse to laboriously
un-comment the script.


--


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: [slightly [OT]] A little Help removing Galaxy

2007-08-01 Thread william humphrey
I remember using galaxy once and found a secret key combination that made
even nicer commenting than the default runrev ones but I can't discover it
again.
___
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: Shy Images

2007-08-01 Thread Ken Ray
On Wed, 01 Aug 2007 07:12:09 -0500, Len Morgan wrote:

> Any ideas?  Could I somehow duplicate the image I start with, make it 
> a top level image, and switch what Rev thinks it's dragging to that?

That's exactly what I was about to suggest... you'll need to make a 
copy, but not just inside the same group or you'll not be able to exit 
the group the original image was in. So you don't want to use "clone" 
(which would do just that), but instead do:

  copy the target to this card

which will make a copy and put it *outside* the group. After that, I'd 
enter your 'mouseMove' routine to do the dragging on the new image (the 
long id of which will be in "it"). Something like this (card script):

llocal sTarget

on mouseDown
  if word 1 of the name of the target is "image" then  -- or some other 
filter
copy the target to this card
put it into sTarget
  else
pass mouseDown
  end if
end mouseDown

on mouseMove
  if sTarget is not empty then
set the loc of sTarget to the mouseLoc
  end if
  pass mouseMove
end mouseMove

on mouseRelease
  delete sTarget  -- removes the copy you created
  put empty into sTarget
end mouseRelease

This is really simplistic, but you get the idea...



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: unidecode broken on Intel Macs?

2007-08-01 Thread Mark Smith
Part of the trouble is that Revs Unicode handling doesn't include any  
ability to use Byte-Order Marks (BOM). These are pairs of bytes at  
the start of a unicode string that expresses the byte order of the  
string that follows. Rev simply assumes that the byte-order is that  
of whatever processor it's running on, regardless of where the string  
may have come from.


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: unidecode broken on Intel Macs?

2007-08-01 Thread Klaus Major

Hi Mark,


Hi Klaus,

You are right, but only with regard to languages that can be  
expressed in single-byte characters. If you are working with double- 
byte languages, you can't simple unidecode into single-byte  
characters. Apparently, Rev 1.0 couldn't handle Chinese and Arabic  
(but I never tried that with version 1.0).


Ah, I see, thanks for the explanation.

Was more like "wishful reading" on my side ;-)

I am not sure that the addition of the capability to handle double- 
byte characters automatically implies that unidecode no longer cuts  
off the second byte of each pair regardless of platform. I did have  
a Mac file recently, which I had to convert to little endian before  
unidecoding it on Windows.


Best regards,

Mark Schonewille

--

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


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


Re: unidecode broken on Intel Macs?

2007-08-01 Thread Klaus Major

Hi Malte,


Hi Klaus,

assuming your Text is UTF-8 try this

put uniDecode(uniEncode(uniEncodedVar,"UTF8"),"english") into  
decodedVar


thanks, but does not work for me.
I test with VCF card from OS X AddressBook in 3.0 format.

But Mark Smith's little function does the job nicely :-)
Thanks again Mark!


Hope that helps.

Malte


Best

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


Re: unidecode broken on Intel Macs?

2007-08-01 Thread Mark Schonewille

Hi Klaus,

You are right, but only with regard to languages that can be  
expressed in single-byte characters. If you are working with double- 
byte languages, you can't simple unidecode into single-byte  
characters. Apparently, Rev 1.0 couldn't handle Chinese and Arabic  
(but I never tried that with version 1.0).


I am not sure that the addition of the capability to handle double- 
byte characters automatically implies that unidecode no longer cuts  
off the second byte of each pair regardless of platform. I did have a  
Mac file recently, which I had to convert to little endian before  
unidecoding it on Windows.


Best regards,

Mark Schonewille

--

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

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 1-aug-2007, om 16:20 heeft Klaus Major het volgende geschreven:


Hi Mark,


A big-endian (motorola) unicode character will be in the form :  
msb lsb, so if the character falls within the ascii range, say  
"A", then it will be .


If it's in little-endian (intel) format, the same char will be  
.


Unidecode simply removes the most significant byte of each unicode  
char/pair, so on Intel, thats the second byte, and on motorola  
that's the first byte.


Yep, that's what I read in the docs.

But the docs also read:
"The ability to handle double-byte characters on "little-endian"  
processors was added in version 2.0. In previous versions, the  
uniDecode function always removed the second byte of each pair of  
bytes, regardless of platform."


This gives me the impression that the function itself will take  
care of the differences between the processors -> "...regardless of  
platform"!

Maybe I am wrong?

So the upshot is that if your data is big-endian (motorola), then  
to work with unidecode on intel, you'll need to swap each pair of  
bytes.


function swapBytes pString
  repeat with n = 1 to length(pString) - 1 step 2
put char n+1 of pString & char n of pString after swappedString
  end repeat
  return swappedString
end swapBytes


Thanks a lot, will try this (well maybe... ;-)

I'm hoping that we'll get a complete revamp of Revs unicode  
handling, one of these days, but we're stuck with this sort of  
thing for now. :(


___
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: unidecode broken on Intel Macs?

2007-08-01 Thread Malte Brill

Hi Klaus,

assuming your Text is UTF-8 try this

put uniDecode(uniEncode(uniEncodedVar,"UTF8"),"english") into decodedVar


Hope that helps.

Malte
___
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: unidecode broken on Intel Macs?

2007-08-01 Thread Klaus Major

Hi Mark,


A big-endian (motorola) unicode character will be in the form : msb  
lsb, so if the character falls within the ascii range, say "A",  
then it will be .


If it's in little-endian (intel) format, the same char will be  
.


Unidecode simply removes the most significant byte of each unicode  
char/pair, so on Intel, thats the second byte, and on motorola  
that's the first byte.


Yep, that's what I read in the docs.

But the docs also read:
"The ability to handle double-byte characters on "little-endian"  
processors was added in version 2.0. In previous versions, the  
uniDecode function always removed the second byte of each pair of  
bytes, regardless of platform."


This gives me the impression that the function itself will take care  
of the differences between the processors -> "...regardless of  
platform"!

Maybe I am wrong?

So the upshot is that if your data is big-endian (motorola), then  
to work with unidecode on intel, you'll need to swap each pair of  
bytes.


function swapBytes pString
  repeat with n = 1 to length(pString) - 1 step 2
put char n+1 of pString & char n of pString after swappedString
  end repeat
  return swappedString
end swapBytes


Thanks a lot, will try this (well maybe... ;-)

I'm hoping that we'll get a complete revamp of Revs unicode  
handling, one of these days, but we're stuck with this sort of  
thing for now. :(


Best,

Mark


Regards from germany

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


Re: [slightly [OT]] A little Help removing Galaxy

2007-08-01 Thread william humphrey
I also know there is a galaxy support forum. But what galaxy really really
really needs is a simple PDF with maybe three pages of instructions that you
can print out. I searched all the galaxy help files both the internet and
the program and found no mention of how to comment and un-comment a script
(it has a very fancy thing where you can automatically comment at a
break-point).
I tried every single command key combination I could think of and found out
that "command - " will comment a script but "command +" or command anything
else will not un-comment the script.

PLEASE  Galaxy people give us a three page simple documentation for the
simple user who doesn't know all this stuff and doesn't have two hours to
search for it.

I am now going to use the back space key and the mouse to laboriously
un-comment the script.
___
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: unidecode broken on Intel Macs?

2007-08-01 Thread Mark Smith
A big-endian (motorola) unicode character will be in the form : msb  
lsb, so if the character falls within the ascii range, say "A", then  
it will be .


If it's in little-endian (intel) format, the same char will be  
.


Unidecode simply removes the most significant byte of each unicode  
char/pair, so on Intel, thats the second byte, and on motorola that's  
the first byte.


So the upshot is that if your data is big-endian (motorola), then to  
work with unidecode on intel, you'll need to swap each pair of bytes.


function swapBytes pString
  repeat with n = 1 to length(pString) - 1 step 2
put char n+1 of pString & char n of pString after swappedString
  end repeat
  return swappedString
end swapBytes

I'm hoping that we'll get a complete revamp of Revs unicode handling,  
one of these days, but we're stuck with this sort of thing for now. :(


Best,

Mark

On 1 Aug 2007, at 13:54, Klaus Major wrote:



Ah, I see...
??? :-)

Maybe you could get a TINY BIT more specific?


Best regards,

Mark Schonewille

--

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


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


___
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: unidecode broken on Intel Macs?

2007-08-01 Thread Mark Schonewille

Klaus,

The bytes in a word in a Unicode document created on a big-endian  
processor, such as the Macintosh, are arranged in an order opposite  
to that of the bytes in a word in a document created on an Intel  
processor. This means that you may have to revert all bytes in your  
unicode stream. For example 0xe0a1 becomes 0xa1e0. You need to  
experiment a little with this, because there is a bug that may cause  
a need for conversion to 0x1a0e.


Best regards,

Mark Schonewille

--

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

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 1-aug-2007, om 14:54 heeft Klaus Major het volgende geschreven:


Dag Mark,


Hi Klaus,

Unicode is not broken on Intel Macs (at least not more than usual).


:-)


It just works the same way as on Intel PC's. Mind the endian.


Ah, I see...
??? :-)

Maybe you could get a TINY BIT more specific?


Best regards,

Mark Schonewille

--

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


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


Re: unidecode broken on Intel Macs?

2007-08-01 Thread Klaus Major

Dag Mark,


Hi Klaus,

Unicode is not broken on Intel Macs (at least not more than usual).


:-)


It just works the same way as on Intel PC's. Mind the endian.


Ah, I see...
??? :-)

Maybe you could get a TINY BIT more specific?


Best regards,

Mark Schonewille

--

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


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


Re: unidecode broken on Intel Macs?

2007-08-01 Thread Mark Schonewille

Hi Klaus,

Unicode is not broken on Intel Macs (at least not more than usual).  
It just works the same way as on Intel PC's. Mind the endian.


Best regards,

Mark Schonewille

--

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

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 1-aug-2007, om 14:45 heeft Klaus Major het volgende geschreven:


Hi friends,

maybe I missed this, but looks like unidecode broken is on Intel Macs?
OS X 10.4.10Rev 2.8.1 gm3 (or whatever was the last build)

I developed a routine on an G5 to import VCF cards in 2.x AND 3.x  
format.

Format 3.x comes (from addressbook) in uniencod-ed.

Then I simply:
put unidecode(var_in_uniencoded_format) into var_in_2_format
and could work with the data in "var_in_2_format".

Now on my Intel Mac mini "var_in_2_format" is EMPTY afterwards?
What gives? Is this alreday "Quality Center"ed?
Could not find a hint there...


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


unidecode broken on Intel Macs?

2007-08-01 Thread Klaus Major

Hi friends,

maybe I missed this, but looks like unidecode broken is on Intel Macs?
OS X 10.4.10Rev 2.8.1 gm3 (or whatever was the last build)

I developed a routine on an G5 to import VCF cards in 2.x AND 3.x  
format.

Format 3.x comes (from addressbook) in uniencod-ed.

Then I simply:
put unidecode(var_in_uniencoded_format) into var_in_2_format
and could work with the data in "var_in_2_format".

Now on my Intel Mac mini "var_in_2_format" is EMPTY afterwards?
What gives? Is this alreday "Quality Center"ed?
Could not find a hint there...


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


Shy Images

2007-08-01 Thread Len Morgan
I've got a problem with trying to drag an image from one group to 
another.  The image seems to be behind every other object on the page.


What I have is a 4 x 3 grid of groups.  Each group has an image, a 
couple of text fields, and another small group of circles that look like 
a traffic light.


What I'm trying to do is move the image from one group to another (this 
represents moving inmates in a jail from room to room by the way).  I 
don't really even want to move the image.  I just need to know the 
starting group and the ending group.  The rest I can do in script. 

What's happening though is when I click and drag on the "source" image, 
it starts moving just fine until it reaches the border of any other 
group or even another field in it's own group then it disappears behind 
it.  I've tried setting it's layer to the number of controls (thanks 
Markus!) but it didn't change anything.  As I said above, I don't really 
want to move the image (in the programming sense of the word), I just 
want it to look like the user is dragging the image, capture the name of 
the group that it was dropped on, then I'll move the picture myself.


Any ideas?  Could I somehow duplicate the image I start with, make it a 
top level image, and switch what Rev thinks it's dragging to that?


len
___
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: backcolor for cascading menus anyone?

2007-08-01 Thread Malte Brill
Reading my post I think I was not clear enough what I need. I want the 
white area you can see in the snapshot to be gray also.




Any pointers highly appreciated.

Malte


___
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