Printing OS X Buttons ?

2003-09-11 Thread Rolf Kocherhans
Why is it, that when I print a card containing Buttons (under OSX) 
these buttons
are not printed, only the text on the buttons ?

I would like to have a card printed the way it looks on screen, is it 
possible ?

Cheers
Rolf
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Stack script problem

2003-09-11 Thread Rolf Kocherhans
I made a stack script which would delete the contents of a field in a 
substack
which I open as sheet.

The script goes like this and is in the main stack:

on openStack
put empty into field fldLog of stack Log
end openStack
Now, my field gets emptied every time I open the Stack  Log  as sheet,
but I would expect that it is emptied only at startup, when the main 
stack gets loaded.

Any clues ?

Cheers
Rolf
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Printing OS X Buttons ?

2003-09-11 Thread Jan Schenkel
--- Rolf Kocherhans [EMAIL PROTECTED] wrote:
 Why is it, that when I print a card containing
 Buttons (under OSX) 
 these buttons
 are not printed, only the text on the buttons ?
 
 I would like to have a card printed the way it looks
 on screen, is it 
 possible ?
 
 Cheers
 Rolf
 

Hi Rolf,

Just a quick copy+paste from the Limitations and
Known Issues section in the What's new.txt file in
the Revolution folder:
--
Issue:  On Mac OS and OS X systems, certain controls
(scrollbars, standard buttons, radio buttons,
checkboxes, option menus) may not print properly if
the lookAndFeel property is set to Appearance
Manager.
Workaround:  During printing, replace each affected
control with an image of the control. (You can create
the image automatically in a handler using the import
snapshot command.) When printing is complete, delete
the images. If the exact appearance of these controls
is not critical, you can instead change the
lookAndFeel to Macintosh during printing, then
change it back.
--

Hope this helped,

Jan Schenkel.

=
As we grow older, we grow both wiser and more foolish at the same time.  (La 
Rochefoucauld)

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Stack script problem

2003-09-11 Thread Jan Schenkel
--- Rolf Kocherhans [EMAIL PROTECTED] wrote:
 I made a stack script which would delete the
 contents of a field in a 
 substack
 which I open as sheet.
 
 The script goes like this and is in the main stack:
 
 on openStack
 put empty into field fldLog of stack Log
 end openStack
 
 Now, my field gets emptied every time I open the
 Stack  Log  as sheet,
 but I would expect that it is emptied only at
 startup, when the main 
 stack gets loaded.
 
 Any clues ?
 
 Cheers
 Rolf
 

Hi Rolf,

When a stack is opened as a sheet, the engine sends an
'openStack' message ; if you don't handle it at card
or stack levcel in your syubstack, this message will
travel up the message path, comes by the mainStack and
executes the 'openStack' handler in its script.
So one way of solving this problem would be to simply
trap the 'openStack' message in the stack script of
your substack, and not 'pass' it.

Hope this helped,

Jan Schenkel.

=
As we grow older, we grow both wiser and more foolish at the same time.  (La 
Rochefoucauld)

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ANN: Punctuation Invaders Beta

2003-09-11 Thread curry
Scott Rossi wrote:

Speaking as nitpicky someone who has an itchy trigger finger from years of
arcade games, I would say the firing system feels a bit sluggish.  Perhaps
this is intentional (and perhaps I'm just old) but the delay between shots
caused a minor bit of frustration when trying to hit the correct location,
or correct my mistakes.
That is intentional--to require careful shooting and prevent 
strafing. Good point, maybe I should consider feedback on the delay 
or at least noting it in the directions.

Also, it wasn't obvious (but perhaps it was in the instructions) that the
left and right firing buttons had different effects on the words -- maybe it
would be useful to colorize the laser differently for each type of shot so
folks like me who ignore directions could learn by doing.
It's in the directions (and training hints) but also a very good 
point, I'll consider doing something to make the direction indicator 
more obvious. (Currently a blue triangle beside the beam, and only 
shown when pressing one fire button has a different effect than the 
other.)

Thanks for trying it and for the good observations!

Best wishes,

Curry
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


How to change cards without go...

2003-09-11 Thread Jim Lyons
The user is working in one window with a list of cards and controls.
Another window, showing off to the side, is the one with the cards
listed. I would like clicking on a card in the list to select that card
in the other window without bringing that window to the front. I can
think of some brute force ways to accomplish this, but I haven't found
any smooth way of doing it. Is there (yet another) cool Rev command I
am missing that does this? Thanks.

Jim Lyons
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Help with analog clock with text images as hour and minute arms.

2003-09-11 Thread yoy
My new project is an analog clock but instead of using circle arcs, I want
to use text as the hour and minute arms.

The problem I'm running into is the text rotates around it's midpoint. Is
there a way to rotate the text's x,y point that represent the left,mid-Y
of the textheight around the clock's centerpoint or around the tangent
points on a circle???

I tried creating a line (polygon) and grouping the text image to that but
that didn't work.

Would it be best to create each step of each arm in Photoshop and show
each in succession as time goes by???

Any thoughts?

Thanks,

Andy Burns

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Help with analog clock with text images as hour and minute arms.

2003-09-11 Thread Dale Pond
yoy wrote:

My new project is an analog clock but instead of using circle arcs, I want
to use text as the hour and minute arms.
The problem I'm running into is the text rotates around it's midpoint. Is
there a way to rotate the text's x,y point that represent the left,mid-Y
of the textheight around the clock's centerpoint or around the tangent
points on a circle???
 

Type as many [Option]SPACE(s) before the text as there are letters in 
the text?

--
Life, Light, Love and Laughter,
Dale Pond
Sympathetic Vibratory Physics
Sacred Science - Sacred Life
http://www.svpvril.com
SVP Discussion Forum:
http://groups.yahoo.com/group/svpvril/


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: New Stacks: careful with if/else statements

2003-09-11 Thread Revinfo1155
Richard

I like your system info stack

is it possible to add hard drive space and amount of memory and processor speed etc?

jack


RE: multiple-word phrases, links

2003-09-11 Thread Chris Sheffield
Toma,

Here's a bit of code I use to do just that.

repeat for each line tPhrase in thePhrases]
if matchChunk(fld MyText, (  tPhrase  ), tStartChar, tEndChar)
then
  set the textStyle of char tStartChar to tEndChar of fld MyText to
link
end if
end repeat

Of course, you only have to use the repeat if you have multiple phrases.
The matchChunk function returns a Boolean true or false if the text is
found.  The parentheses are necessary to match a patter of multiple words.
The beginning and ending characters are stored in whatever variables you
specify, in this case tStartChar and tEndChar.  So then you just use those
in a chunk expression to set your link.

Hope that helps.

Chris Sheffield
Software Development
Read Naturally
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Toma Tasovac
Sent: Thursday, September 11, 2003 3:21 AM
To: [EMAIL PROTECTED]
Subject: multiple-word phrases, links

Hi there.

I have a list containing various multiple-word phrases and I want 
Revolution to find those phrases in a text field and turn them into 
links (the whole phrase, not individual words).  What's the best way of 
doing this?  I can use wordOffset for each individual word in the 
phrase and then make sure that the offsets are next to each other in 
the text, but that sounds horrible.  There has to be a better way.

Helplessly yours,

Toma

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Icons and scope

2003-09-11 Thread Alex Shaw
At 07:38 PM 10/09/2003 -0400, you wrote:


Actually, Graham, the image needs to have a unique ID vs. a unique name
(AFAIK). So if you say:
  set the icon of btn myButton to (the id of img ImageForIcon of cd
MyIcons of stack myStuff)
it should work so long as the ID number is unique.

Ken Ray


What if you only have the id number of an object?

I tried using 'owner' but i could not use the returned reference.

Basically, how do you read the data from a field on another card with only 
the field's ID number?

regards
alex 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: problems decompressing files

2003-09-11 Thread Rob Cozens
I would think encountering 13 identical and contiguous bytes would 
be a very common occurrence
I think that would depend on the type of data being compressed, 
Tom...I believe the original file in question is a .wav.

As I noted yesterday 20+MB of ASCII text apparently has no such 
contiguous identical byte string issues.
--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm
And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee.
from The Triple Foole by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to change cards without go...

2003-09-11 Thread Rob Cozens
I would like clicking on a card in the list to select that card
in the other window without bringing that window to the front. I can
think of some brute force ways to accomplish this, but I haven't found
any smooth way of doing it. Is there (yet another) cool Rev command I
am missing that does this?
Nope, Jim: no cool new commands; but simply a twist on an old one--

Example: instead of

lock screen
lock messages
push card
got to stack database.rev
put newValue into field A
get field B
pop card
unlock messages
unlock screen
use

	put newValue into field A of card 1 of stack 
Server/Drive/Folder/database.rev
	get field B of card 1 of stack Server/Drive/Folder/database.rev

The limitation here is one still has to go to the stack to add  delete cards;
--
Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm
And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee.
from The Triple Foole by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Stack script problem

2003-09-11 Thread Pierre Sahores
Le jeu 11/09/2003  09:52, Rolf Kocherhans a crit :
 I made a stack script which would delete the contents of a field in a 
 substack
 which I open as sheet.
 
 The script goes like this and is in the main stack:
 
 on openStack
 put empty into field fldLog of stack Log
 end openStack
 
 Now, my field gets emptied every time I open the Stack  Log  as sheet,
 but I would expect that it is emptied only at startup, when the main 
 stack gets loaded.
 
 Any clues ?

Did you try to put, at least,

 on openStack
   pass openStack
 end openStack

handler in the substack Log

Regards, Pierre

 
 Cheers
 Rolf
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Vertical Horizontal revtools hacks

2003-09-11 Thread Mathewson
Dear RunRev Afficionados,
  I have just uploaded updates to my RR revtool hacks.

Unfortunately the vertical variant got fatter (wider) to
accommodate all the widgets and small window sizes: if you
feel a desperate need for a 'long and thin' one contact me
off list and I will knock one up (although most RR
programmers can presumably do a quick stack resize and
shuffle a few buttons around by now).

Love, Richmond

__
See Mathewson's software at:

http://members.maclaunch.com/richmond/default.htmland
http://www.runrev.com/Revolution1/developercentral/usercontributions.html
__
---
Great Macintosh Products 
 The MacLaunch Store! http://www.maclaunch.com/cgi-launch/store/agora.cgi
---
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Icons and scope

2003-09-11 Thread Ken Ray
 I tried using 'owner' but i could not use the returned reference.
 
 Basically, how do you read the data from a field on another 
 card with only 
 the field's ID number?

Get the long id of the field and us it. owner returns effectively
the name of the owner of the object, and long owner returns the
long name. Personally, I'd use long id... is is always unique.

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/ 


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Unicode matchChunk (was multiple-word phrases, links)

2003-09-11 Thread Toma Tasovac
Thanks to Kjeti, Chris and Ken.

Chris, your script works great with English, but I can't get it to work 
with Unicode text.  I tried to unidecode both the text field and 
thePhrases and thus deal with two one-byte chars per one Unicode 
two-byte character, preform the matchChunk function with one-byte 
chars, and then use the startChars and endChars in the unicode field, 
but the results are weirdly off.

I don't know if this is a bug or if I am doing something wrong.  Has 
anybody successfully used matchChunk with Unicode text?  Any hints 
would be greatly appreciated.

All best,
Toma
Am Donnerstag, 11.09.03 um 16:17 Uhr schrieb Chris Sheffield:

Toma,

Here's a bit of code I use to do just that.

repeat for each line tPhrase in thePhrases]
if matchChunk(fld MyText, (  tPhrase  ), tStartChar, 
tEndChar)
then
  set the textStyle of char tStartChar to tEndChar of fld MyText 
to
link
end if
end repeat
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: problems decompressing files

2003-09-11 Thread Dar Scott
I may have found a training string that avoids compression that trips 
up decompression on OS X, Revolution 2.1.  Maybe.

Here is my test button script:
//
on mouseUp
  get field Input
  get xCompress(it)
  get xDecompress(it)
  put [  it  ]  LF into field Log
end mouseUp
function trainer
  local train
  repeat with i= 0 to 255
put numToChar(i)a after train
  end repeat
  return train
end trainer
function xCompress s
  return compress( trainer()  s )
end xCompress
function xDecompress s
  return char 513 to -1 of decompress(s)
end xDecompress
/*/
As is, it needs fields Input and Log.

Put some string into field Input.  Click the button.  The result 
comes out in field Log between brackets.  You might want to try it on 
anything you can find and see if this really does any good.  For all I 
know there is no training string that will prevent the error.  I can't 
prove this will fix the problem, either.

And this will do no good for decompressing what was compressed 
elsewhere.

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: problems decompressing files

2003-09-11 Thread Dar Scott
On Wednesday, September 10, 2003, at 03:22 PM, Chris Sheffield wrote:

I had one test file that was only 6
bytes and it compressed/decompressed fine.  One thing I did notice, 
however,
is that when a file is this small, the compressed file actually ends up
being larger.  I think in this case it was about 33 bytes.  Not sure 
what
that means.
The gzip format puts at minimum (typically) a 18-byte wrapper around 
the deflate data.  The deflate data is the compressed data, but has 
a minimum of maybe 5 bytes of overhead.

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Print with dialog?

2003-09-11 Thread Sarah
Thanks, Jan.  I tried what you suggested (I think):

on mouseup
answer printer
open printing with dialog   
print card into 36,36,550,610
end mouseup
The first time I got both dialogs:
paper size
# number of copies
But then, nothing printed.

Subsequent clicks of the same button got me dialog 1, paper size, then 
no second dialog, and still nothing sent to printer.

I just don't get the printing deal with Rev.  It's got to be easier 
than this.

Hi Mark,

If you use open printing, then the print card statement(s) just 
queue all the cards you want to print, until you use close printing 
to tell them to go ahead. This enables you to print multiple cards at a 
time, but is perhaps less than intuitive :-)

Anyway, just add a line to your script, after print card... saying 
close printing and all will be well.

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: problems decompressing files

2003-09-11 Thread Dar Scott
On Thursday, September 11, 2003, at 06:06 AM, T. R. Ponn wrote:

Tim Ponn...the guy who thought turning 1 file into 1,000,000 files was 
a good approach. :-[
But, if one is interested in compression and not in making standard 
file, your idea of breaking up the file might have merit.  Break it up. 
 Try to compress and test decompress each part wrapping with try/catch. 
 If the decompress fails save that uncompressed.  The file might be a 
series of sub files each with a length prefix and a compressed-or-not 
flag.

Or, since recursion is the current watchword, the enhancement that 
breaks up a file like this recursively is left as an exercise.

Dar Scott



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: problems decompressing files

2003-09-11 Thread Robert Eppich

I think something more is at play here:  I put 13 @s in an SDB
record field, backed up the db--which includes gzip compression, and
then restored from the (decompressed) backup.  I then add a line of
approx 30 *s with the same (error-free) result.
What are we doing differently?  I ran my tests on a G4 iMac, Mac OS
10.2,  RR 2.02.
Mac OS X 10.2.6, Powerbook 500 MHz G3 Pismo, RR 2.1 (RR 1.1.1 was last 
version to work properly).

Try this in your message box:
--
put @ into cmprsThs
put compress(cmprsThs) into cmprsd
put decompress(cmprsd) into msg
--
If you do not get an error, then it must be the difference between 10.2 
and 10.2.6, or G4, or perhaps you are using the URL keyword with a 
file. I haven't used URL, might you have a script with URL that I 
could test?

Robert Eppich
epsi computer systems, inc.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Chunk Expressions (see if my solutions is bad)

2003-09-11 Thread Stephen Quinn Barncard
I don't see why 'seeing' ascii 11 is bad anyway, it helps 
troubleshooting. It's not meant to be displayed, just a way to 
substitute returns

sqb

Rev on OS X displays a character for ASCII 11 that looks like a 
curved arrow. ASCII 29 doesn't display any character in a field (I 
tried several fonts) and seems to work OK as an invisible delimiter.

The definition is group separator according to the ASCII 
definition (http://www.asciitable.com/). Does anyone see a problem 
using ASCII 29? I can't imagine what it would be used for these days.
Bill Vlahos
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution