Re: Is there such thing as a univeral abort command

2007-11-17 Thread viktoras didziulis
Hi Mark, exit to top aborts all running handlers see also: exit handler (e.g. exit mouseup) exit repeat Best wishes Viktoras Mark E. Powell wrote: Maybe a very simpleton question: Is there a universal abort command that will stop (in a standalone) any running handler? Or must each handler

Re: Is there such thing as a univeral abort command

2007-11-17 Thread Mark Schonewille
Hi Mark, If you set the cantAbort to false (which it is by default) you can press command-period to stop all runing handlers. I know, a key is no command, but I hope this helps. Best regards, Mark Schonewille -- Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com

Adjusting a field size based upon its contents

2007-11-17 Thread Francis Nugent Dixon
Hi from Paris, I have a hidden field that I want to display after I have put a specific text in it. The text is of variable size. The size of field required is obviously based on the "textSize", "textFont" and "number of characters" values. I need to set the size of the field (rect) so that

Re: Adjusting a field size based upon its contents

2007-11-17 Thread Mark Schonewille
Hi Francis, This is very simple: set the height of fld x to the formattedHeight of fld x set the width of fld x to the formattedWidth of fld x or set the rect of fld x to the formattedRect of fld x I would store the topleft of the field before setting the rect and restore the topleft afterw

Re: Adjusting a field size based upon its contents

2007-11-17 Thread Martin Baxter
Francis Nugent Dixon wrote: > Hi from Paris, > > I have a hidden field that I want to display after I have put a specific > text in it. The text is of variable size. > > The size of field required is obviously based on the "textSize", > "textFont" and "number of characters" values. I need to set

Re: (mac) application menu

2007-11-17 Thread Peter Brigham
I tried to send this message once before but I don't think it all got through. Here it is again. Mark Schonewille: When you use the Quit menu item, Mac OS X sends an event to Revolution. You can catch this message with the AppleEvent handler or the shutdownRequest handler. On Mac OS X, I

Re: (mac) application menu

2007-11-17 Thread Björnke von Gierke
On 17 Nov 2007, at 18:28, Peter Brigham wrote: This must be a common need, so I imagine that there are well- established ways of handling it. Yes it's a common need, but it's not documented, nor is there any simple way provided build in. This and menu handling in general is why I rarely e

Re: (mac) application menu

2007-11-17 Thread Marty Knapp
This was driving me crazy too. After messing around with it, I pieced the following together and it's worked for me (I am using Rev 2.6.1): on appleEvent pClass,pID,pSender --I got this from Ken Ray's web site switch (pClass & pID) case "aevtquit" answer "Save changes?" with "Don't Save" o

OT: CSS, Javascript,

2007-11-17 Thread Sivakatirswami
I just watched some of Apple's videos on iPhone Dev. It's all about CSS and Javascript. I guess I will need to learn a little Ajax-Javascript! What's a good book to start with? look really interesting, but the learning curve is not trivial I don't know if some cool library to translate the

Leopard or Rev Browser Issue?

2007-11-17 Thread Sivakatirswami
I had a very unusual experience yesterday. Context: Mac OS X - Leopard Rev 2.8.1 + GLX2 +Rev Browser scenario: -- open stack in IDE, Call web page(s) into a RevBrowser window-frame, -- run QT movie or Flash from within the web page Side Bar + musing: works great! in fact we completely over c

Re: (mac) application menu

2007-11-17 Thread Richard Gaskin
Björnke von Gierke wrote: On 17 Nov 2007, at 18:28, Peter Brigham wrote: This must be a common need, so I imagine that there are well- established ways of handling it. Yes it's a common need, but it's not documented, nor is there any simple way provided build in. This and menu handling in g

Re: Cross-platform video w/out QT

2007-11-17 Thread Richard Gaskin
Andre Garzia wrote: I've been having success with a nice composite scheme. For this you need RevBrowser, JW Flash Player and/org QT.Instead of loading the Rev's own qt player, you'll load a RevBrowser rect with a player inside. This player will be rendered inside an HTML template that is set usin

Size of array

2007-11-17 Thread Shari
How big of an array have you created without noticing any reduction in speed? I'm pondering the best way to store a large conglomerate of data, and was hoping for a general guideline as to how humungous of an array I could create without tripping over it. I'm currently set up to break it into

Re: Cross-platform video w/out QT

2007-11-17 Thread Chipp Walters
Hi Richard, Well, there's 3 main ways you can go: Quicktime, Windows MediaPlayer, and Flash. Windows MediaPlayer, which should be installed in all Windows computers, supports MPEG, but only the later versions support the MPEG4 format. I believe Flash is installed in something like 90% of Windows c

revFont custom font

2007-11-17 Thread Shari
My next app is going to have custom fonts a la revFont. I am really excited about this addition to Rev. If the app is going to be distributed on Mac and Windows, and I'm searching for just the right font for it, does Rev care if the font claims to work on this platform or that? Or will it ha

Re: revFont custom font

2007-11-17 Thread Andres Martinez
Hello Shari True Type Fonts (TTFs) should work on both Mac and Windows. Regards, Andres Martinez www.baKno.com On Nov 17, 2007, at 5:25 PM, Shari wrote: My next app is going to have custom fonts a la revFont. I am really excited about this addition to Rev. If the app is going to be distri

Adjusting a field size based upon its contents

2007-11-17 Thread Francis Nugent Dixon
Hi Mark & Martin, Thanks for the input. set the height of fld x to the formattedHeight of fld x set the width of fld x to the formattedWidth of fld x It never ceases to amaze me, that there is always a command in Revolution to do what was impossible in Hypercard. After I sent in my request, I

Re: (mac) application menu

2007-11-17 Thread Bill Vlahos
Richard, I'm having the same problem which is still present in DP 2.9 b2. I believe there are a couple of BZ tickets on this including one Ken Ray created with me. It is a real problem and one I have not been able to solve. Perhaps I can talk to you offline? Bill Vlahos On Nov 17, 2007,

Re: Cross-platform video w/out QT

2007-11-17 Thread Richard Gaskin
Chipp Walters wrote: Well, there's 3 main ways you can go: Quicktime, Windows MediaPlayer, and Flash. Windows MediaPlayer, which should be installed in all Windows computers, supports MPEG, but only the later versions support the MPEG4 format. Many of these installs are in hospitals, where IT s

Re: Cross-platform video w/out QT

2007-11-17 Thread Chipp Walters
Richard, I do know there are different capabilities among the different versions of MediaPlayer. But, I think most all are capable of playing MPEG. I believe MPEG-2 is the DVD format, and I know earlier versions of MediaPlayer (pre 10 for sure...perhaps 10 as well) did not support it. best, Chipp

Re: Size of array

2007-11-17 Thread Mark Smith
Shari, I think this can be somewhat dependent on how much ram is available, but in my experience, rev handles fairly large arrays very well. I've had arrays consisting of 500 or so elements, each containing 2000+ items without any problem. So I'd stick with the one big array. Best, Mark

Re: Size of array

2007-11-17 Thread Petrides, M.D. Marian
Speaking of arrays... Am I correct in understanding that Rev only supports one dimensional arrays or am I misreading the dox? On Nov 17, 2007, at 7:54 PM, Mark Smith wrote: Shari, I think this can be somewhat dependent on how much ram is available, but in my experience, rev handles fairly la

Re: Size of array

2007-11-17 Thread Mark Smith
Yes, but you can make the keys sort of multi-dimensional: someArray [a,b,c], so for some purposes this works just as well. In fact (note to shari), depending on your particular application, you may find it more efficient to have an array with 300 * 1000 elements than to have an array with 30

Re: Size of array

2007-11-17 Thread Shari
In fact (note to shari), depending on your particular application, you may find it more efficient to have an array with 300 * 1000 elements than to have an array with 300 elements of 1000 items each. Though rev's chunk expressions are extremely efficient, accessing the thousandth item in a list

Re: revFont custom font

2007-11-17 Thread Shari
True Type Fonts (TTFs) should work on both Mac and Windows. The Windows version of the fonts is ttf, so I'll go with that. The Mac version is some sort of importer document, no clue. I was looking thru my own installed fonts, most of which came with the computer, and there are several diffe

Re: Cross-platform video w/out QT

2007-11-17 Thread Bill Vlahos
I thought MPEG could be played on Mac, Windows, and Linux with existing built-in tools but Rev needed QuickTime. Perhaps I'm wrong about that. Here is an interesting blog about the multi-media: http://www.appleinsider.com/articles/07/10/25/ road_to_mac_os_x_leopard_quicktime_itunes_and_media

Re: Size of array

2007-11-17 Thread Mark Smith
I think you'd have to have a much bigger amount of data to run into memory issues on a modern computer. Watching Activity Monitor while the script runs, I saw only a small increase (1MB) in the amount of active memory being used by Rev. I have 2 gigabytes on this machine, but my past experi

Re: Cross-platform video w/out QT

2007-11-17 Thread Josh Mellicker
MPEG4 would be better quality with smaller file sizes, but if it won't play on XP in Rev then you can export MPEG1 files from ffmpeg. Also any software that makes VCDs, like Toast. On Nov 16, 2007, at 5:21 PM, Richard Gaskin wrote: One of the products I manage uses a lot of video, and while

Re: Is there such thing as a univeral abort command

2007-11-17 Thread Mark E. Powell
Hi Mark: The command-period would be sufficient, however it does not work in my standalones, and I have not set any cantAbort to true. Are you saying that command-period works in yours? > >Hi Mark, > >If you set the cantAbort to false (which it is by default) you can >press command-period

Re: Cross-platform video w/out QT

2007-11-17 Thread Jim Sims
On Nov 18, 2007, at 12:55 AM, Richard Gaskin wrote: Many of these installs are in hospitals, where IT staff is very restrictive of what gets installed. We cannot rely on Flash being present any more than we can expect them to install QT, and adding the second extra layer of the browser ju

Re: Cross-platform video w/out QT

2007-11-17 Thread Jim Sims
On Nov 17, 2007, at 10:26 PM, Richard Gaskin wrote: How does one generate simple MPEGs, since QT Player Pro doesn't? Incidentally, the .wmv's referred to at www.einspine.com were generated by my client, the doctor, using flip4mac. He also used blue screen so he could place various scenes of M