Re: No Ask/Answer dialogs with 2.7.1 on XP -- 11th hour

2006-05-31 Thread Dar Scott


On May 31, 2006, at 11:28 PM, Dar Scott wrote:

I've been using 2.7.1 on XP for a while and am now wrapping up a  
project.  Just need to do some file I/O.  Only ask and answer do  
not work.  I get a flicker on the screen I think.  Otherwise  
nothing.  They work on 2.7.1 on OS X.


Could I be missing some file?


I just had to restart Rev.  -- dar
___
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


No Ask/Answer dialogs with 2.7.1 on XP -- 11th hour

2006-05-31 Thread Dar Scott
I've been using 2.7.1 on XP for a while and am now wrapping up a  
project.  Just need to do some file I/O.  Only ask and answer do not  
work.  I get a flicker on the screen I think.  Otherwise nothing.   
They work on 2.7.1 on OS X.


Could I be missing some file?

Dar Scott
___
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: number of columns in a table field

2006-05-31 Thread Bill Marriott
Can you imagine the outcry if Excel supported only 2000 rows? But the "real" 
limit is even lower when you consider the performance realities. Consider if 
you have a grid, 1000 rows of 20 columns, and you want to delete row 2 then 
you must somehow update 19,980 objects.

You could say, "Well, don't structure it that way. Use only the fields 
necessary for on-screen display." Unfortunately, once you are in the 
business of going into fields and setting them, Rev bogs down as well.

What I arrived at was using a single field for each column, but it still is 
not as fast as deleting a line from a single field.

Richard Gaskin wrote
> It's worth noting that 32,806 is almost 38 feet at 72dpi, which is plenty 
> for most uses so I can't really call this a bug.

and "640K should be enough for anyone" :D 



___
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


Corrupted Images

2006-05-31 Thread Bridger Maxwell

Hey,
 I have been having troubles with a few of my stacks.  At random times
images that I have imported will just show up as a big rectangle of uniform
black and white pixels.  The only resemblance the image keeps is its
original size.  I think they have all been PNG images.  I would use a
different image type, but PNG is the best for transparency.  Has anyone had
this problem before?  It has happenend in both Revolution Dreamcard
2.5.1and Revolution Studio
2.7.

 TTFN
Bridger
___
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: Linux installation

2006-05-31 Thread Rishi Viner
Hi Bob,

On Thu, 1 Jun 2006 06:56 am, Bob Warren wrote:
> If any of you have non-Debian based Linuxes installed, would you mind
> giving it a quick try? I would also be interested in knowing the
> contents of the "sys_info.txt" output file under your different Linux
> flavour.

On Gentoo (with KDE), I get:

/home/rishi/Desktop/
/home/rishi/
/usr/
/tmp/
/home/rishi/
failed
failed
failed

in my sys_info.txt

Under KDE it looks like you have trouble with FontsFolder, StartupItemsFolder, 
TrashFolder. 

I'm fairly sure the normal fonts location is: /usr/share/fonts/

My startup items folder is at: /home/rishi/.kde/Autostart/

My trash is at /home/rishi/Desktop/trash.desktop which is a shortcut with 
URL=trash:/  
I'm not sure how those KDE/Konqueror KIOslave URLs work in terms of file 
systems... might get more info on this as freedesktop.org?

HTH

-- 
Rishi Viner
--
Australia

___
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: Linux installation

2006-05-31 Thread Bob Warren
Regarding the standalone module for discovering fundamental system path 
information in Linux, which you can download here:-


http://www.howsoft.com/runrev/sysinfo/get_sys_info_linux.zip

- I am pleased to say that I have managed to cure the little problem 
that made it necessary to give the prog "executable" status in its 
properties. The program should now run directly after extracting it.


If any of you have non-Debian based Linuxes installed, would you mind 
giving it a quick try? I would also be interested in knowing the 
contents of the "sys_info.txt" output file under your different Linux 
flavour.


Thanks!

Bob Warren

___
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: snapshot and imageData...

2006-05-31 Thread Jim Ault
Could decoding the RGB of one of the last 10 pixels help?  This assumes that
Rev processes from first to last of the image length.

Jim Ault
Las Vegas

On 5/31/06 12:57 PM, "Dar Scott" <[EMAIL PROTECTED]> wrote:

> 
> On May 31, 2006, at 12:45 PM, jbv wrote:
> 
>> I wonder if there's a way to know when the "import snapshot"
>> is completed to start further processing of the imageData...
> 
> Candidates might be...
> 
>  unlock screen
>  wait
> 
> Dar Scott


___
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


Meaning of "language" names

2006-05-31 Thread Dar Scott
Several places in Revolution as in font names, htmlText, uniDecode(),  
and uniEncode() the word "language" is used to designate the  
character encoding.  The value for language is not the name of some  
standard, it seems, but is some other name, often the name of a  
natural language.  Presumably there is some map from the Revolution  
names to the character encoding standard.


Is that arbitrary, or based on some Internet standard such as an IANA  
standard or the MIME standard, or based on some Font standard?  How  
do I get from the Revolution names for character encodings to the  
standards?


Does the "language" in this context ever indicate anything other than  
character encoding to Revolution?


Dar
___
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: Photo Processing - Brightness and Unsharp Mask

2006-05-31 Thread Wilhelm Sanke

Richard Gaskin wrote:


Wilhelm Sanke wrote:

> As I have already mentioned as a request,  a nice add-on for Revolution
> would be a DLL (and the equivalent for MacOS) for a filter size of 5X5
> or even better 7X7. Photoshop CS (1) allows for the setting-up of
> user-defined filters with a 5X5 matrix. PaintShop Pro offers a 7X7 
matrix.


Or take it one step further and provide an interface for Photoshop
filters to be used in Rev directly.

One enhancement = thousands of features



Richard,

exactly what I meant at the end of my above quoted post:


The needs are certainly different for all users, but in any case it
would be a valuable enhancement to Revolution to have improved
image-processing capabilities, both with extended filter matrices and
possibly with a DLL that would open the door to work with
Photoshop-compatible plugin-filters.

Such enhancements would certainly attract new users and encourage
present Revolution users to experiment with image processing.



Best,

Wilhelm Sanke



___
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: snapshot and imageData...

2006-05-31 Thread Dar Scott


On May 31, 2006, at 12:45 PM, jbv wrote:


I wonder if there's a way to know when the "import snapshot"
is completed to start further processing of the imageData...


Candidates might be...

unlock screen
wait

Dar Scott
___
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: snapshot and imageData...

2006-05-31 Thread Francis Nugent Dixon

Hi from Paris,

I agree about Rev gagging on large JPEG files, and
coming up with a black rect.


On May 31, 2006, at 8:48 AM, jbv wrote:


the 2nd image is just a black rect; although the imagedata
contains more than 5 Mb of binary, it seems that they're
all zeros...


It might be that Rev is gagging on the large JPEG.  Perhaps, this
works better with PNG.


I had to scale down many of my JPEG files with
GraphicConverter to get them visible in my stack.
If the JPEG is less than 500K, then display is almost
immediate. If it is over 2 megs, be prepared for a long
wait - and the dreaded black rect afterwards (Mac G4 733)!
2 meg colour photos from my Sony digital, scaled down
to less than a meg work beautifully. Strangely enough,
high volume Black & White photos seem prone to this
problem, although I haven't quite fathomed out the whys
and whens ! It seems as if most of my problems come
from scanned B & W photos (HP ScanJet 7400). I may
rescan these using a different quality. I also use a little
routine to scale the "too tall - too wide" photos into the
smaller wondow. This may not help either. I will try PNGs
when I get some time !

-Francis

"Nothing should ever be done for the first time !"

___
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: Photo Processing - Brightness and Unsharp Mask

2006-05-31 Thread Richard Gaskin

Wilhelm Sanke wrote:

As I have already mentioned as a request,  a nice add-on for Revolution 
would be a DLL (and the equivalent for MacOS) for a filter size of 5X5 
or even better 7X7. Photoshop CS (1) allows for the setting-up of 
user-defined filters with a 5X5 matrix. PaintShop Pro offers a 7X7 matrix.


Or take it one step further and provide an interface for Photoshop 
filters to be used in Rev directly.


One enhancement = thousands of features

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.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: Photo Processing - Brightness and Unsharp Mask

2006-05-31 Thread Wilhelm Sanke

On Mon, 29 May 2006 , Sivakatirswami <[EMAIL PROTECTED]> wrote:

>>The filter matrix can  
>> be used to experiment with own matrix settings.


hmmm 3 X 3? ... too small. Does  it mean that any starting image must  
have this rect?



3X3, of course, means the size of the matrix filter, you can use Chipp's 
DLL for any image size and different rects (as far as my experiments 
went). My own scripted filters are adapted to an image size of 640X480, 
but that could be easily changed; however, the larger the image, the 
more processing time is needed - execution time for most of the no-dll 
640X480 filters is between 1 and 2 seconds. When the DLLs are used, the 
results are instantaneous.


As I have already mentioned as a request,  a nice add-on for Revolution 
would be a DLL (and the equivalent for MacOS) for a filter size of 5X5 
or even better 7X7. Photoshop CS (1) allows for the setting-up of 
user-defined filters with a 5X5 matrix. PaintShop Pro offers a 7X7 matrix.


I am not familiar with creating DLLs, but my guess is that it could not 
be too difficult to extend the functionality of Chipp's and Derek Bump's 
3X3-matrix DLL to cover a 7X7 filter matrix.


One thing is missing in the 3X3 Dlls, which include the "division" 
factor - "scale" in Chipp's and Derek's stacks,  namely what is called 
"shift" in Photoshop and "bias" in PaintShop Pro. This is a color value 
to be added to the equation important for instance for creating "relief" 
(and other) effects. I tried to add such a "bias" to Chipp's scripted 
(without DLL) solution, but did not get the same results as with 
PaintShop Pro. Otherwise the PaintShopPro sample filters, so far as they 
fit into a 3X3 matrix, yield the same results in my "ImageFilterDemo" 
that contains a modified version of Chipp's stack.


Especially PaintShop Pro 8 contains about 15 3X3 usable matrix filters, 
versions 7 and 10 only about 5, that could be used in our sample stacks. 
I will add some of these filters to a new release of my ImageFilterDemo.
I might also give it a try - in case I find time - to extend Chipp's 
no-dll version to encompass a 4X4 matrix.


>> I am experimenting myself with scripted filters, some of which are  
>> contained in the ImageFilterDemo, about a hundred or so will be  
>> available shortly in my "Imagedata Toolkit".


Keep us all posted.  My needs are pretty much always the same -- and  
this would apply to most users needing to get from raw camera to web  
quickly, assuming they don't have time to  tweak levels or fix red-

eye -- or  those who have no clue what that stuff even means.

one  pass: raw Digital camera image.jpg
1) rotate
2) downsize
3) autolevels
4) unsharp mask (I will try sharpening, but for sure it's not as good  
for edges)

5) save jpg "optimize"

Option to turn off 4) 5) above where the image has already been  
through one in interpolation and more  filters will simply degrade.


Sivakatirswami



The needs are certainly different for all users, but in any case it 
would be a valuable enhancement to Revolution to have improved 
image-processing capabilities, both with extended filter matrices and 
possibly with a DLL that would open the door to work with 
Photoshop-compatible plugin-filters.


Such enhancements would certainly attract new users and encourage 
present Revolution users to experiment with image processing.


Regards,

Wilhelm Sanke


___
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: snapshot and imageData...

2006-05-31 Thread jbv
yes, there seems to be a speed problem...

in the following example :

on mouseUp
   import snapshot from rect (the screenRect)
   create img
   set rect of img 2 to rect of img 1
   set imageData of img 2 to imageData of img 1
end mouseUp

it looks like lines 2 to 4 are executed before the
completion of the snapshot, hence the "blank" imageData...

I wonder if there's a way to know when the "import snapshot"
is completed to start further processing of the imageData...

Actually, snapshots of large screen is a rather slow process,
and my goal is to loose as little time as possible...

JB

> On May 31, 2006, at 8:48 AM, jbv wrote:
>
> > the 2nd image is just a black rect; although the imagedata
> > contains more than 5 Mb of binary, it seems that they're
> > all zeros...
>
> It might be that Rev is gagging on the large JPEG.  Perhaps, this
> works better with PNG.
>
> Dar
> ___
> 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

--



_
Faith is a central nervous system disease, like Alzheimer or multiple sclerosis.


___
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: number of columns in a table field

2006-05-31 Thread Trevor DeVore

On May 31, 2006, at 8:24 AM, Richard Gaskin wrote:


What I found is that the number shown above assigned to N is the  
max I can create here without odd positioning of objects.  If I  
exceed that I start getting row groups positioned over other row  
groups.


The formattedHeight of the "main" group is shown as 32806 --  
suspiciously close to 32767 (32k), the old buffer limit for QuickDraw.


So this may suggest that the internal routines for buffering groups  
is either using the old QD API, or has internal limits about the  
same as QD's.


Richard,

This may be related to this bug I filed.  Read the comments from Raney.

http://support.runrev.com/bugdatabase/show_bug.cgi?id=247

What I ended up doing for the large data set in the problem I faced  
(a timeline) was only drawing what could actually be seen on screen.   
As the user scrolls a scrollbar, I just change the data in the  
visible cells.


--
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
[EMAIL PROTECTED]


___
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: Webcam and Rev?

2006-05-31 Thread Richard Miller

Roger,

I've had no problem switching between cameras. Try using the Video  
Input stack that comes with Rev, using the Video Source button to  
switch between cameras. You can then save the state of any one camera  
to a custom property or to a separate file so that you can call up  
that camera any time. I am doing this with firewire-based webcams,  
but I do not believe it is any different with a USB webcam.


Let me know if you need more help with this.

Richard Miller
Imprinter Technologies

Yes, using Windows 2000 and XP USB webcams work great in Rev.  I  
only wish

you could switch between multiple cameras. Instead, Rev only sees the
first available device. That is unless there is a documented or
undocumented feature that I am unaware of.

Roger Eller <[EMAIL PROTECTED]>

___
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: Webcam and Rev?

2006-05-31 Thread Roger . E . Eller
On 5/29/06, Garrett Hylltun <[EMAIL PROTECTED]> wrote:
>
> Rev 2.6.1
>
> Is it possible in Rev 2.6.1 to access usb or serial webcams?
>
> Thanks,
> -Garrett

Yes, using Windows 2000 and XP USB webcams work great in Rev.  I only wish 
you could switch between multiple cameras. Instead, Rev only sees the 
first available device. That is unless there is a documented or 
undocumented feature that I am unaware of.

Roger Eller <[EMAIL PROTECTED]>

___
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: snapshot and imageData...

2006-05-31 Thread Scott Rossi
Recently, jbv wrote:

> when using
>   import snapshot from rect (the screenrect)
> 
> as well as
>   export snapshot from rect (the screenrect) to myVar as JPEG
>   put var into img 1
> 
> it seems that the imageData of the image object is blank...
> I tried with Rev 2,5 and MC 2.4.1

Testing here with MC 2.4.3 on OSX seems to work as expected.  The length of
the imageData is a number, as opposed to 0.  Are you getting imageData of 0
length?

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: snapshot and imageData...

2006-05-31 Thread Mark Schonewille

JB,

Your script works fine here. I don't know why it wouldn't work for  
you. Did you restart Revolution and try this script again in an  
otherwise empty stack? Maybe, you machine is too slow, you don't have  
enough memory available, or maybe you have an empty image on your  
card which you forgot about. Without more information, there is  
nothing I can do.


Best,

Mark

--

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

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html




Op 31-mei-2006, om 16:48 heeft jbv het volgende geschreven:




Mark,

yes, you're right; but try this :

on mouseUp
import snapshot from rect (the screenRect)
put length(the imagedata of img 1)

create img
set rect of img 2 to rect of img 1
set imageData of img 2 to imageData of img 1
end mouseUp

the 2nd image is just a black rect; although the imagedata
contains more than 5 Mb of binary, it seems that they're
all zeros...

as for Rev doc, just have a look at what it says for imageData
(bottom of the screen)...

JB



___
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: snapshot and imageData...

2006-05-31 Thread Dar Scott


On May 31, 2006, at 8:48 AM, jbv wrote:


the 2nd image is just a black rect; although the imagedata
contains more than 5 Mb of binary, it seems that they're
all zeros...


It might be that Rev is gagging on the large JPEG.  Perhaps, this  
works better with PNG.


Dar
___
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: number of columns in a table field

2006-05-31 Thread Richard Gaskin

Jonathan Lynch wrote:


And, independent of the the engine's size limit on a subgroup, there is also
the problem of moving around that many objects...

Say you have a pseudo-table with 3000 rows, and you insert a row between
rows 1 and 2 - the engine then has to go through and rename rows 2 through
3000, and reposition them in order to make space for row 2.

This is not instantaneous.


In any language. ;)


I have thought of another method, using only enough rows to be visible in
the table, and storing all the rest of the data in custom props - then, when
you scroll, it would actually just reassign the information in each row.
Such a thing would be tough to implement so that it actually looks like
normal scrolling, but I think it could be done.


One of the challenges in using Rev effectively is that it does such a 
good job of hiding the deep nasty work needed to get stuff done from us 
that we often forget how complex these things are under the hood.


What we're talking about here would be a custom list definition in any 
lower-level language.  List defs are complex beasts.


One thing we can learn from list defs (in addition to a healthy 
appreciation for the enormity of the task and how relatively simple Rev 
makes it) is that, generally speaking, they often work much as you describe.


For example, a spreadsheet has only two elements in it:  a custom list 
definition to display the rows and columns, and a single editable text 
field positioned as needed for in-cell editing.


In the Rev world, the ease of working with fields may seduce us to 
forget how complex field objects are, tempting us to use a field for 
every cell.  And for small numbers of cells that works, and well -- but 
with larger numbers it exhibits the performance issues you note.


Extending that idea to use graphics in a list for display, and having a 
single row group for editing makes a lot of sense.  It may take some 
time to set up, but will be more efficient -- it's closer to how one 
would solve the problem in a lower-level language.


--
 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: number of columns in a table field

2006-05-31 Thread Jonathan Lynch

Interesting...

And, independent of the the engine's size limit on a subgroup, there is also
the problem of moving around that many objects...

Say you have a pseudo-table with 3000 rows, and you insert a row between
rows 1 and 2 - the engine then has to go through and rename rows 2 through
3000, and reposition them in order to make space for row 2.

This is not instantaneous.


I have thought of another method, using only enough rows to be visible in
the table, and storing all the rest of the data in custom props - then, when
you scroll, it would actually just reassign the information in each row.
Such a thing would be tough to implement so that it actually looks like
normal scrolling, but I think it could be done.


On 5/31/06, Richard Gaskin <[EMAIL PROTECTED]> wrote:


Jonathan Lynch wrote:
> my psuedo-table object works pretty well - Marielle made it available on
his
> site. It addresses many of these concerns.
>
> However, I would not use it for thousands of rows. For a couple hundred
> rows, it works ok, but for 2 or 3 thousand rows - well, that is just too
> many sub groups for the engine to handle quickly.

I've been using nested groups as custom tables for quite some time, but
curious about the threshold for bad behavior I did some testing:

1. Make a group -- two buttons, two fields, each 23px high, in a row
2. Group it, name the group "record"
3. Make a copy of that group, group both groups, and name the new master
   group "main"
4. Make a button with this script:

on mouseUp
  put 2113 into n
  --
  lock screen
  lock messages
  --
  -- delete old groups:
  repeat with 1 = the number of grps of grp "main" down to 2
delete grp 2 of grp "main"
  end repeat
  --
  set the vscroll of grp "main" to 0
  put 0 into i
  if the optionKey is "down" then exit to top
  repeat n
add 1 to i
clone grp "record" of grp "main"
set the topleft of it to the bottomleft of grp i of grp "Main"
  end repeat
  --
  put the formattedheight of grp "main"
end mouseUp


What I found is that the number shown above assigned to N is the max I
can create here without odd positioning of objects.  If I exceed that I
start getting row groups positioned over other row groups.

The formattedHeight of the "main" group is shown as 32806 --
suspiciously close to 32767 (32k), the old buffer limit for QuickDraw.

So this may suggest that the internal routines for buffering groups is
either using the old QD API, or has internal limits about the same as
QD's.

It's worth noting that 32,806 is almost 38 feet at 72dpi, which is
plenty for most uses so I can't really call this a bug.

But it might make a useful enhancement request to explore extending that
buffer size.

Or would it?  There's already a request for compound-object tables, so
if that gets done will we need position objects for any other purpose
farther than 38 feet in either direction?

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


___
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: number of columns in a table field

2006-05-31 Thread Richard Gaskin

Jonathan Lynch wrote:

my psuedo-table object works pretty well - Marielle made it available on his
site. It addresses many of these concerns.

However, I would not use it for thousands of rows. For a couple hundred
rows, it works ok, but for 2 or 3 thousand rows - well, that is just too
many sub groups for the engine to handle quickly.


I've been using nested groups as custom tables for quite some time, but 
curious about the threshold for bad behavior I did some testing:


1. Make a group -- two buttons, two fields, each 23px high, in a row
2. Group it, name the group "record"
3. Make a copy of that group, group both groups, and name the new master
   group "main"
4. Make a button with this script:

on mouseUp
  put 2113 into n
  --
  lock screen
  lock messages
  --
  -- delete old groups:
  repeat with 1 = the number of grps of grp "main" down to 2
delete grp 2 of grp "main"
  end repeat
  --
  set the vscroll of grp "main" to 0
  put 0 into i
  if the optionKey is "down" then exit to top
  repeat n
add 1 to i
clone grp "record" of grp "main"
set the topleft of it to the bottomleft of grp i of grp "Main"
  end repeat
  --
  put the formattedheight of grp "main"
end mouseUp


What I found is that the number shown above assigned to N is the max I 
can create here without odd positioning of objects.  If I exceed that I 
start getting row groups positioned over other row groups.


The formattedHeight of the "main" group is shown as 32806 -- 
suspiciously close to 32767 (32k), the old buffer limit for QuickDraw.


So this may suggest that the internal routines for buffering groups is 
either using the old QD API, or has internal limits about the same as QD's.


It's worth noting that 32,806 is almost 38 feet at 72dpi, which is 
plenty for most uses so I can't really call this a bug.


But it might make a useful enhancement request to explore extending that 
buffer size.


Or would it?  There's already a request for compound-object tables, so 
if that gets done will we need position objects for any other purpose 
farther than 38 feet in either direction?


--
 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: turning a list into something more complex

2006-05-31 Thread Jonathan Lynch

I think you could do this by modifying my pseudo-table object:

http://revolution.widged.com/stacks/open/components/spreadsheet_object.rev


Each row already contains a pulldown menu (accessed by right-clicking in the
space to the left of the row). You can just change the options on that
pulldown menu. Each row is a subgroup of the spreadsheet object.

1) delete all rows except row 1
2) Go into the subgroup that contains the items for row 1 and change it to
meet your needs
3) create new rows as needed, using the insert row option in the pulldown
menu for row 1, or by hitting tab when in the very last cell

When it creates a new row, it does so by copying row 1, so whatever changes
you make to row 1 will now be present in every row in the table.


If this will work for you, I can help you with any scripting questions you
might have for using that pseudo-table object.

Take care,

Jonathan
___
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: turning a list into something more complex

2006-05-31 Thread Stephen Barncard
Checkboxes are a pain to implement in a scrolling field. And users 
are presented with a bewildering array of checkboxes.


Why don't you just have the number of checkboxes you need for one 
line off to the side or top of a scrolling field. They could set the 
delimited data line selection to one's or checkmarks (in the line) 
without having to implement check boxes on each line.


In other words, the list, when clicked, would put the data on that 
selection line into one special line of checkboxes and fields for 
data entry and an 'enter' button, which then puts the data back on 
the selection line.


THis is the classic 'list' and 'detail' views of a database.

A popup menu or menus can also be used to alter data in a line.



I asked:
==

I'm writing a program that will eventually create a tabbed line, 
multiple lines

in a field.

Is there any way I can display each line (or a subsection thereof) and place
beside it a series of check boxes or pull down boxes.

peptide 1 1234.5  [chk1]  [..]   [..]  pulldowncolour  pulldownstyle
peptide 2 2334.5  [chk2]  [..]   [..]  pulldowncolour  pulldownstyle

Say I was drawing a graphic controlled by the list, and I wanted to use check
boxes to say "display this" or "Colour this red/green/blue (pulldown)". I have
tried to think this through, but I can't see an easy way at all. The number of
items in the list are such as to require that I can scroll through the items.



--
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: turning a list into something more complex

2006-05-31 Thread Devin Asay


On May 31, 2006, at 8:04 AM, Rob Beynon wrote:


And I say, being a pest(!)
Devin, that is neat, and I shall play as soon as I am back at base  
(away in conference). One problem I foresee is that the number of  
lines is variable from run to run of the programme. Would you  
create the scrolling list dynamically, or could I make a list of  
say 200 lines, and hide the unneeded ones? If you had an example...:-)


Before I answer, let me just say that Chipp's suggestion (to use  
imbedded graphics in the field in conjunction with the popup command)  
might also be an excellent approach here. It would just depend on the  
types of controls that needed to be anchored to each line of text.


Okay, this is how I'd try appraoching it:

1. The field, and one of each type of control--say one checkbox and  
one option menu--are set up as templates and aligned to the first  
line of the field. Group these, turn on the group's vertical  
scrollbar, and lock the group's location. (set the lockLoc of group  
"mylistgrp" to true)


2. Populate the field with however many lines you need.

3. Use the formattedHeight property to set the physical height of the  
field:
   set the height of fld "mylist" to the formattedHeight of fld  
"myList"


   Keep in mind that the size and loc of the group needs to have  
been locked or the group will try to resize itself to accomodate the  
field's size.


4. Create a copy of the other controls for each line (line 2 to  
number of lines in fld "mylist"). Use the textHeight of the field to  
figure out how much space to leave between each control so that they  
line up with the proper line.


5. Update the hilite of the checkboxes and the contents of the option  
menus to match the contents of the corresponding line, as needed.


This is the basic recipe; the devil is in the details of getting it  
to create and align the needed controls properly. However, once it's  
working I've found it to be fast enough to handle several dozen  
lines--haven't needed to go higher than that so I don't know if there  
is an effective upper limit where it starts to bog down.


I hope this can get you to where you need to be.

Regards,
Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


Re: number of columns in a table field

2006-05-31 Thread Jonathan Lynch

Here it is:

http://revolution.widged.com/stacks/open/components/spreadsheet_object.rev





On 5/31/06, Bill Marriott <[EMAIL PROTECTED]> wrote:


Link? (I poked around his site a while and couldn't find your stack)

Jonathan Lynch  wrote
> my psuedo-table object works pretty well - Marielle made it available on
> his
> site. It addresses many of these concerns.



___
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: number of columns in a table field

2006-05-31 Thread Bill Marriott
Link? (I poked around his site a while and couldn't find your stack)

Jonathan Lynch  wrote
> my psuedo-table object works pretty well - Marielle made it available on 
> his
> site. It addresses many of these concerns.



___
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: Detecting Window's Maximize Window Click

2006-05-31 Thread Rob Cozens

Alex, et al:


 (in Rev, "full screen" is "windowBoundingRect", not "screenRect").



On Tablet PCs, "full screen" is "working screenRect", not 
"windowBoundingRect" or "screenRect".  This is necessary to resize 
based on the presence/absence of the TCP Input Panel.


Rob Cozens
CCW, Serendipity Software Company

"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
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: snapshot and imageData...

2006-05-31 Thread jbv


Mark,

yes, you're right; but try this :

on mouseUp
import snapshot from rect (the screenRect)
put length(the imagedata of img 1)

create img
set rect of img 2 to rect of img 1
set imageData of img 2 to imageData of img 1
end mouseUp

the 2nd image is just a black rect; although the imagedata
contains more than 5 Mb of binary, it seems that they're
all zeros...

as for Rev doc, just have a look at what it says for imageData
(bottom of the screen)...

JB

> Hi JB...
>
> Why do you think that the imagedata of the imported image are
> blank...? What should I do to see what you see...? Here, the
> imagedata of the image are not blank... (do you mean empty...?)...
> where do the docs say that the imagedata and image content are
> different...? Try the following script...
>
> on mouseUp
> import snapshot from rect (the screenRect)
> put length(the imagedata of img 1)
> end mouseUp
>
> After running this script... the message box contains... 5242880.
> So... I think you do something wrong...
>
> Best...
>
> ...Mark
>
> --
>
> Economy-x-Talk
> Consultancy and Software Engineering
> http://economy-x-talk.com
> http://www.salery.biz
>
> Salery is the easiest way to get your own web store on-line: http://
> www.salery.biz/salery.html
>
> Op 31-mei-2006, om 16:13 heeft jbv het volgende geschreven:
>
> >
> >
> > Mark,
> >
> > yes, it works fine for me too, but as I said before, the imageData
> > of the imported image seems to blank...
> > and as the Rev doc says, the image content and the imageData prop.
> > are in different forms... so it seems that the image content displays,
> > but the imageData isn't created...
> >
> > Am I wrong ?
> >
> > JB
> >
>
> ___
> 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

--



_
Faith is a central nervous system disease, like Alzheimer or multiple sclerosis.


___
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: number of columns in a table field

2006-05-31 Thread Jonathan Lynch

my psuedo-table object works pretty well - Marielle made it available on his
site. It addresses many of these concerns.

However, I would not use it for thousands of rows. For a couple hundred
rows, it works ok, but for 2 or 3 thousand rows - well, that is just too
many sub groups for the engine to handle quickly.


On 5/31/06, Bill Marriott <[EMAIL PROTECTED]> wrote:


Kay,

Sorry, I'm not sure what you're talking about -- of course all those UI
options are great but the way one must use them is not. The standard
method,
I believe, is to use a group the hold all those fields and controls, and
then scroll that group around. But the performance of such a solution is
truly awful when you have to move around hundreds of rows of a couple
dozen
columns. Not to mention that the Geometry Munger likes to resize the group
when it feels like it, and group scroll bars -- horizontal and vertical --
like to resize themselves at will. You end up rolling your own geometry
manager and scrolling manager and resize manager, etc. I do not think it
is
fun to build all these things from scratch, especially when I want to have
some advanced options like splitters and discontinuous selections, proper
cross-platform handling of keyboard controls, response to scroll wheels,
etc., etc. There are various sample stacks out there that try to address
the
shortcomings of the built-in table object, but none of them are perfect...
which just shows you how hard it is to do.

Even rolling my own, I had one standalone where people couldn't scroll to
the very bottom of a group after a certain number of rows were used. And
to
fix it I had to completely delete everything and rebuild from scratch. It
wasn't my code; Rev simply "held on" to something deep in its bowels and
wouldn't let go of it. Groups like to make themselves a couple pixels off
the size of the selected objects so you have a very unprofessional-looking
appearance. More than once I had scrollbar thumbs that refused to move all
the way to the beginning or end of their range. If you're not careful
during
development you can force the group's size to reset and it's difficult to
realign it just right. I don't like having to spend 60% - 70% of my
development time "reinventing the wheel" and working around display
idiosyncrasies just to get a decent grid UI. That is not "software at the
speed of thought" or "rapid application development" by any stretch.

The basic table object can't right-justify or center-justify columns,
easily
lock column and row headings, or even apply its own number formatting
rules
automatically. If a user tries to edit a cell, they get an edit box that
is
much larger than the size of the cell being edited. If you try to edit the
right-most  visible column of a table, Rev forces horizontal scrolling and
the addition of an extra column. Using the built-in, undocumented, set and
get cell commands is slower than molasses; but if you don't use those
methods the contents of the field disappear when you make changes (like
resizing the field) during development. You can't easily select columns of
data, and you can't embed radio buttons, check boxes, or drop-down lists.
This is in sharp contrast to what one can do in FileMaker, Excel, Visual
Basic, and most other development environments I can think of.

I am not making this stuff up, much of it is already documented in
BugZilla.

In short, the Revolution table object is crap and the alternatives are
exercises in frustration. In my opinion ... Attention to *QUALITY* grid
handling is an absolute necessity for the next major update if Rev wants
to
be taken seriously for database work.

Kay C Lan wrote
> Whilst Table representation certainly has its advantages and place, I
> think if you look a little deeper into a 'customised' display you'll
> be quickly impressed with the power and flexibility it provides.



___
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: Detecting Window's Maximize Window Click

2006-05-31 Thread Rob Cozens

Ken, et al:

>>What I'm seeing with an empty stack and your script is that clicking 
on the Maximize Box reverses the width & height of the stack on WinXP.


My apologies.  I'm still not clear on what Rev is trying to do with the 
maximize box; but I'm going to conclude that my problem boils down to a 
Rev's lack of TCP compliance: Maximizing does _not_ fill the screen 
when the TCP Input Panel is hidden, as it does in MS software.


You can vote for TCP Compliance at

 

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

___
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: snapshot and imageData...

2006-05-31 Thread Mark Schonewille

Hi JB...

Why do you think that the imagedata of the imported image are  
blank...? What should I do to see what you see...? Here, the  
imagedata of the image are not blank... (do you mean empty...?)...  
where do the docs say that the imagedata and image content are  
different...? Try the following script...


on mouseUp
   import snapshot from rect (the screenRect)
   put length(the imagedata of img 1)
end mouseUp

After running this script... the message box contains... 5242880.  
So... I think you do something wrong...


Best...

...Mark

--

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

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html




Op 31-mei-2006, om 16:13 heeft jbv het volgende geschreven:




Mark,

yes, it works fine for me too, but as I said before, the imageData
of the imported image seems to blank...
and as the Rev doc says, the image content and the imageData prop.
are in different forms... so it seems that the image content displays,
but the imageData isn't created...

Am I wrong ?

JB



___
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: OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Klaus Major

Dag Wouter,


On 31 May 2006, at 12:52, Klaus Major wrote:

...
Depends how nicely you need it.


VERY nice :-)


-snip-

Hi,
from an old project for what it is worth (will display the manpage  
as in the terminal):

(beware of the mail wraps!!!)

set the htmltext of fld  to prepMan()

local lC
function prepMan pMan
 ...
  put space into lC["14"]
end preplC

Greetings,
Wouter


Cool, thanks, the result is indeed VERY nice :-)


Groetjes

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: Detecting Window's Maximize Window Click

2006-05-31 Thread Alex Tweedly

Rob Cozens wrote:


Hi Ken,


Actually this doesn't work on Windows, Rob



It looks like it's working fine here (WinXP TPC Edition 2005).



Well, I tried it on Win XP Pro SP 2 with this code:

on resizeStack newWidth,newHeight,oldWidth,oldHeight
if newWidth = oldWidth and newHeight = oldHeight then
  put "Maximized"
else
  put newWidth,newHeight,oldWidth,oldHeight
end if
 end resizeStack

it never put "maximized"... it always put the sizes in the message 
box, and

the numbers I get are something like:

  1280,934,256,256

so it's obvious that there's no match going on...


That code never will (never should) put "Maximized"
What the Maximize icon does, on Win, is flip back and forward between 
"normal" size and "full screen" (in Rev, "full screen" is 
"windowBoundingRect", not "screenRect").


SO one time you should see (something like)
 1280,934,256,256
next time
  256,256,1280,934
next time
 1280,934,256,256
etc.

(When I say "never", I mean "almost never" - you could of course re-size 
the window by dragging until it is exactly the same size as it becomes 
when Maximized - then it should say it matched :-)




Looking more closely at what's going on here it appears you are correct.

What I'm seeing with an empty stack and your script is that clicking 
on the Maximize Box reverses the width & height of the stack on WinXP.


This is _not_ the response I get when clicking the Maximize Box on MS 
applications like WordPad & NotePad: in those cases the Window grows 
to full screen size or shrinks back to "normal" size.


So is there a bug in Rev's Maximize Box logic for Windows?  It 
certainly seems so to moi...especially since the behavior on MacOS is 
different.


It works for me on 2.6.1., WinXP and Mac.  - flips between (in my case) 
927 x 674 and 400 x 400.


(Sorry - I haven't been following this thread closely, so if it's 2.7 
specific, then there may be a problem I haven't seen yet).




--
Alex Tweedly   http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 28/05/2006

___
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


turning a list into something more complex

2006-05-31 Thread Rob Beynon

I asked:
==

I'm writing a program that will eventually create a tabbed line, multiple lines
in a field.

Is there any way I can display each line (or a subsection thereof) and place
beside it a series of check boxes or pull down boxes.

peptide 1 1234.5  [chk1]  [..]   [..]  pulldowncolour  pulldownstyle
peptide 2 2334.5  [chk2]  [..]   [..]  pulldowncolour  pulldownstyle

Say I was drawing a graphic controlled by the list, and I wanted to use check
boxes to say "display this" or "Colour this red/green/blue (pulldown)". I have
tried to think this through, but I can't see an easy way at all. The number of
items in the list are such as to require that I can scroll through the items.

Devin Asay kindly answered
==
I've done something like this before, and the easiest way is to make  
a large field without scrollbars and create checkboxes and/or option  
lists btns that are aligned to the lines in the field. Then group all  
of them and make the group smaller than the field, adding a vertical  
scrollbar to the *group*. You'll also have to lock the group's size  
and location to prevent it from automatically resizing to show the  
whole group. Once the group's scroll bar is in place you can scroll  
everything in the group together and it looks like the other controls  
are part of the field. It's also possible using this approach to  
dynamically create the number of checkboxes and option menus you need  
based on the number of lines in the field.


And I say, being a pest(!)
Devin, that is neat, and I shall play as soon as I am back at base (away in 
conference). One problem I foresee is that the number of lines is variable from 
run to run of the programme. Would you create the scrolling list dynamically, 
or could I make a list of say 200 lines, and hide the unneeded ones? If you had 
an example...:-)

Strikes me that this could almost be constructed as a generic tool. Useful for DB access, or almost any list processing. Thanks for the help. Rob 



--
==
Prof. Rob Beynon|+44 151 794 4312 (voice)
Dept. Veterinary Preclinical|+44 151 794 4243 (fax)
Sciences, University of Liverpool,
Crown Street, Liverpool L69 7ZJ |mailto:[EMAIL PROTECTED]
--
http://www.liv.ac.uk/pfg|http://www.csiv.org
==

___
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: Detecting Window's Maximize Window Click

2006-05-31 Thread Rob Cozens

Hi Ken,


Actually this doesn't work on Windows, Rob


It looks like it's working fine here (WinXP TPC Edition 2005).


Well, I tried it on Win XP Pro SP 2 with this code:

on resizeStack newWidth,newHeight,oldWidth,oldHeight
if newWidth = oldWidth and newHeight = oldHeight then
  put "Maximized"
else
  put newWidth,newHeight,oldWidth,oldHeight
end if
 end resizeStack

it never put "maximized"... it always put the sizes in the message 
box, and

the numbers I get are something like:

  1280,934,256,256

so it's obvious that there's no match going on...



Looking more closely at what's going on here it appears you are correct.

What I'm seeing with an empty stack and your script is that clicking on 
the Maximize Box reverses the width & height of the stack on WinXP.


This is _not_ the response I get when clicking the Maximize Box on MS 
applications like WordPad & NotePad: in those cases the Window grows to 
full screen size or shrinks back to "normal" size.


So is there a bug in Rev's Maximize Box logic for Windows?  It 
certainly seems so to moi...especially since the behavior on MacOS is 
different.



Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

___
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: snapshot and imageData...

2006-05-31 Thread jbv


Mark,

yes, it works fine for me too, but as I said before, the imageData
of the imported image seems to blank...
and as the Rev doc says, the image content and the imageData prop.
are in different forms... so it seems that the image content displays,
but the imageData isn't created...

Am I wrong ?

JB

> The following scripts work fine in Rev 2.7.1.
>
> on mouseUp
>import snapshot from rect (the screenRect)
> end mouseUp
>
> on mouseUp
>export snapshot from rect "100,100,200,200" to myVar as PNG
>set the rect of img 1 to "110,110,210,210"
>put myVar into img 1
> end mouseUp
>
> Best,
>
> Mark
>
> --
>
> Economy-x-Talk
> Consultancy and Software Engineering
> http://economy-x-talk.com
> http://www.salery.biz
>
> Salery is the easiest way to get your own web store on-line: http://
> www.salery.biz/salery.html
>
> Op 31-mei-2006, om 15:07 heeft jbv het volgende geschreven:
>
> > Hi list,
> >
> > when using
> > import snapshot from rect (the screenrect)
> >
> > as well as
> > export snapshot from rect (the screenrect) to myVar as JPEG
> > put var into img 1
> >
> > it seems that the imageData of the image object is blank...
> > I tried with Rev 2,5 and MC 2.4.1
> >
> > Am I missing something, or is there a way to create the actual
> > imageData for further image processing ?
> > I haven't found anything useful in the archives...
> >
> > Thanks,
> > JB
>
> ___
> 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

--



_
Faith is a central nervous system disease, like Alzheimer or multiple sclerosis.


___
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: OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Dom
Klaus Major <[EMAIL PROTECTED]> wrote:

> can someone explain why I get this strange output and how to
> avoid/workaround itwhen using e.g.:
> 
> ...
> put shell("man grep") into fld 1

[snip]

By the way, if all you want is to obtain a clean output of man, you may
also use ManOpen:

http://www.clindberg.org/projects/ManOpen.html

"ManOpen is a graphical interface for viewing Unix manual pages"
___
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: OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Bill Marriott
Ok, sure that's impressive... but now can you write a routine that shows a 
print head moving back and forth and emulates the "clackety clack" noise of 
a teletype machine?

Just kidding! :D

Wouter wrote:
> [a brilliant 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: snapshot and imageData...

2006-05-31 Thread Mark Schonewille

The following scripts work fine in Rev 2.7.1.

on mouseUp
  import snapshot from rect (the screenRect)
end mouseUp

on mouseUp
  export snapshot from rect "100,100,200,200" to myVar as PNG
  set the rect of img 1 to "110,110,210,210"
  put myVar into img 1
end mouseUp

Best,

Mark

--

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

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html




Op 31-mei-2006, om 15:07 heeft jbv het volgende geschreven:


Hi list,

when using
import snapshot from rect (the screenrect)

as well as
export snapshot from rect (the screenrect) to myVar as JPEG
put var into img 1

it seems that the imageData of the image object is blank...
I tried with Rev 2,5 and MC 2.4.1

Am I missing something, or is there a way to create the actual
imageData for further image processing ?
I haven't found anything useful in the archives...

Thanks,
JB


___
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


snapshot and imageData...

2006-05-31 Thread jbv
Hi list,

when using
import snapshot from rect (the screenrect)

as well as
export snapshot from rect (the screenrect) to myVar as JPEG
put var into img 1

it seems that the imageData of the image object is blank...
I tried with Rev 2,5 and MC 2.4.1

Am I missing something, or is there a way to create the actual
imageData for further image processing ?
I haven't found anything useful in the archives...

Thanks,
JB


___
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: OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Wouter

On 31 May 2006, at 12:52, Klaus Major wrote:


Hi Alex,


Klaus Major wrote:

Hi Bill,

Underscore. The boxes are backspace characters.


Aha, thanks :-)
Any hints on how to clean up this to display this nicely in a Rev  
field?

You do it based on the backspaces (numtochar(8))s.

Depends how nicely you need it.


VERY nice :-)


-snip-

Hi,
from an old project for what it is worth (will display the manpage as  
in the terminal):

(beware of the mail wraps!!!)

set the htmltext of fld  to prepMan()

local lC
function prepMan pMan
  if the keys of lC = "" then preplC
  put numtochar(8) into tx
  set the casesensitive to true
  put "" into tChars
  put "" into tList
  repeat for each char i in pMan
if i = cr then put numtochar(13) into i
if i = space then put numtochar(14) into i
if tChars[1] = "" then -- may not be tx
  if i = tx then next repeat
  else
put i into tChars[1]
  end if
else
  if tChars[2] = "" then -- must be tx
if i = tx then put i into tChars[2]
else
  put chartonum(tChars[1]) into a
  put lC[a] after tList
  put i into tChars[1]
end if
  else
if tChars[3] = "" then -- may not be tx
  if i <> tx then put i into tChars[3]
  else
put chartonum(tChars[1]) into a
put lC[a] after tList
put "" into tChars
  end if
else
  if tChars[4] = "" then -- must be tx for sequence
if i = tx then put i into tChars[4]
else
  if tChars[1] = tChars[3] then put ""&lC[chartonum 
(tChars[3])]&"" after tList
  else if tChars[1] = "_" then put ""&lC[chartonum 
(tChars[3])]&"" after tList
  else if tChars[1] = "+" and tChars[3] = "o" then put  
""&lC[chartonum(tChars[3])]&"" after tList

  else put lC[chartonum(tChars[3])] after tList
  put "" into tChars
  put i into tChars[1]
end if
  else
if tChars[3] = i then put ""&lC[chartonum(i)]&""  
into tTemp
if tChars[1] = "_" then put "" & tTemp & "" into  
tTemp

put tTemp after tList
put "" into tChars
  end if
end if
  end if
end if
  end repeat
  return tList & ""
end prepMan

on preplC
  repeat with i = 33 to 255
put numtochar(i) into fld "temp" ### hidden field
put char 4 to -5 of the htmltext of fld "temp" into lC[i]
  end repeat
  put "" & cr & "" into lC["13"]  -- cr > more readable in  
the debugger

  put space into lC["14"]
end preplC

Greetings,
Wouter
___
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: OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Klaus Major

Hi Alex,


Klaus Major wrote:


Hi Alex,

Depends how nicely you need it.

VERY nice :-)

Easy: put numtochar(8) into BS
put replacetext(tData, "."+BS, tNewdata)

I get an "Operators + : error in left operand"?


I can't believe that
(a) I wrote this
(b) I didn't spot it


:-)

My excuse is I tested it on the Mac, and then typed the email on  
the PC, so I didn't copy/paste it, plus I've been doing too much  
Python and not enough Rev lately :-) - it should be


put replacetext(tData, "."&BS, "") into tNewData
i.e. & not +
replace it by empty string
store the result somewhere


Thank you very much!

Works fine now and is nice enough to display in a field :-)

GREP 
(1) 
GREP(1)



NAME
   grep, egrep, fgrep - print lines matching a pattern

SYNOPSIS
   grep [options] PATTERN [FILE...]
   grep [options] [-e PATTERN | -f FILE] [FILE...]

DESCRIPTION
   Grep  searches the named input FILEs (or standard input if no  
files are
   named, or the file name - is given) for lines containing a  
match to the

   given PATTERN.  By default, grep prints the matching lines.

   In addition, two variant programs egrep and fgrep are  
available.  Egrep

   is the same as grep -E.  Fgrep is the same as grep -F



Alex Tweedly   http://www.tweedly.net


Best 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: OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Alex Tweedly

Klaus Major wrote:


Hi Alex,



Depends how nicely you need it.



VERY nice :-)


Easy: put numtochar(8) into BS
put replacetext(tData, "."+BS, tNewdata)



I get an "Operators + : error in left operand"?


I can't believe that
(a) I wrote this
(b) I didn't spot it

My excuse is I tested it on the Mac, and then typed the email on the PC, 
so I didn't copy/paste it, plus I've been doing too much Python and not 
enough Rev lately :-) - it should be


put replacetext(tData, "."&BS, "") into tNewData
i.e. & not +
replace it by empty string
store the result somewhere



--
Alex Tweedly   http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 28/05/2006

___
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: OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Klaus Major

Hi Alex,


Klaus Major wrote:

Hi Bill,

Underscore. The boxes are backspace characters.


Aha, thanks :-)
Any hints on how to clean up this to display this nicely in a Rev  
field?

You do it based on the backspaces (numtochar(8))s.

Depends how nicely you need it.


VERY nice :-)


Easy: put numtochar(8) into BS
put replacetext(tData, "."+BS, tNewdata)


I get an "Operators + : error in left operand"?

replaces any pair of chars containing a BS with nothing - so "_BS"  
goes away, and "x_x" becomes simply "x"


Harder:
scan through it looking for BSs,
if previous character is an underscore, then the next char  
should become underlined
if prev char and next char are the same, omit one of the  
duplicates, and make the other bold



--
Alex Tweedly   http://www.tweedly.net


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: OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Alex Tweedly

Klaus Major wrote:


Hi Bill,


Underscore. The boxes are backspace characters.



Aha, thanks :-)

Any hints on how to clean up this to display this nicely in a Rev field?


You do it based on the backspaces (numtochar(8))s.

Depends how nicely you need it.

Easy: 
put numtochar(8) into BS

put replacetext(tData, "."+BS, tNewdata)

replaces any pair of chars containing a BS with nothing - so "_BS" goes 
away, and "x_x" becomes simply "x"


Harder:
scan through it looking for BSs,
if previous character is an underscore, then the next char should 
become underlined
if prev char and next char are the same, omit one of the 
duplicates, and make the other bold



--
Alex Tweedly   http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 28/05/2006

___
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: OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Klaus Major

Hi Bill,


Underscore. The boxes are backspace characters.


Aha, thanks :-)

Any hints on how to clean up this to display this nicely in a Rev field?


Klaus Major wrote:


But what about : "..._P_A_T_T_E_R_N | --ff _F_I_L_E]
[_F_I_L_E...]"?
Capital letters, but not doubled.


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: OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Bill Marriott
Underscore. The boxes are backspace characters.

Klaus Major wrote:

> But what about : "..._P_A_T_T_E_R_N | --ff _F_I_L_E] 
> [_F_I_L_E...]"?
> Capital letters, but not doubled. 



___
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: OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Klaus Major

Bonjour Didier,


"Double letters" is the way the Terminal displays bold characters...


thanks for the explanation.

But what about : "..._P_A_T_T_E_R_N | --ff _F_I_L_E]  
[_F_I_L_E...]"?

Capital letters, but not doubled.

Any hint on how to correct the display in Rev???


D.S.


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: OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Didier SANZ

"Double letters" is the way the Terminal displays bold characters...

D.S.

Le 31 mai 06 à 10:20, Klaus Major a écrit :


Hi friends,

can someone explain why I get this strange output and how to
avoid/workaround itwhen using e.g.:

...
put shell("man grep") into fld 1
...

The result looks like:


NNAAMMEE
   grep, egrep, fgrep - print lines matching a pattern

SSYYNNOOPPSSIISS
   ggrreepp [_o_p_t_i_o_n_s] _P_A_T_T_E_R_N  
[_F_I_L_E...]
   ggrreepp [_o_p_t_i_o_n_s] [--ee  
_P_A_T_T_E_R_N | --ff _F_I_L_E] [_F_I_L_E...]


DDEESSCCRRIIPPTTIIOONN
   GGrreepp  searches the named input _F_I_L_Es (or  
standard input if no files are
   named, or the file name -- is given) for lines containing a  
match to the
   given _P_A_T_T_E_R_N.  By default, ggrreepp  
prints the matching lines.


   In addition, two variant programs eeggrreepp and  
ffggrreepp are available.  EEggrreepp
   is the same as ggrreepp --EE.  FFggrreepp is the  
same as ggrreepp --FF.


OOPPTTIIOONNSS
   --AA _N_U_M, ----aafftteerr-- 
ccoonntteexxtt==_N_U_M
  Print _N_U_M  lines  of  trailing  context  after   
matching  lines.
  Places  a  line  containing  ----  between   
contiguous  groups  of

  matches.

   --aa, ----tteexxtt


NO booze involved! ;-)


Any hints are very appreciated!


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


OT: Strange output of shell"man xyz" on OS X

2006-05-31 Thread Klaus Major

Hi friends,

can someone explain why I get this strange output and how to
avoid/workaround itwhen using e.g.:

...
put shell("man grep") into fld 1
...

The result looks like:


NNAAMMEE
   grep, egrep, fgrep - print lines matching a pattern

SSYYNNOOPPSSIISS
   ggrreepp [_o_p_t_i_o_n_s] _P_A_T_T_E_R_N  
[_F_I_L_E...]
   ggrreepp [_o_p_t_i_o_n_s] [--ee  
_P_A_T_T_E_R_N | --ff _F_I_L_E] [_F_I_L_E...]


DDEESSCCRRIIPPTTIIOONN
   GGrreepp  searches the named input _F_I_L_Es (or  
standard input if no files are
   named, or the file name -- is given) for lines containing a  
match to the
   given _P_A_T_T_E_R_N.  By default, ggrreepp prints  
the matching lines.


   In addition, two variant programs eeggrreepp and  
ffggrreepp are available.  EEggrreepp
   is the same as ggrreepp --EE.  FFggrreepp is the  
same as ggrreepp --FF.


OOPPTTIIOONNSS
   --AA _N_U_M, ----aafftteerr-- 
ccoonntteexxtt==_N_U_M
  Print _N_U_M  lines  of  trailing  context  after   
matching  lines.
  Places  a  line  containing  ----  between   
contiguous  groups  of

  matches.

   --aa, ----tteexxtt


NO booze involved! ;-)


Any hints are very appreciated!


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