How to prevent unlocking the screen

2009-12-15 Thread Jacques Hausser
Hello everybody, I want to change the size of a stack: command changeStackSize lock screen -- (computes and set the new size) end changeStackSize The problem is that notwithstanding the lock screen the change is visible in two steps: first the window size, and then the content. I would

Re: How to prevent unlocking the screen

2009-12-15 Thread Mark Schonewille
Hi Jacques, Lock screen, change stack size, change content, unlock screen. This should give acceptable results. This is a script, which I use in a project of mine: revChangeWindowSize the width of this stack,the cNewHeight of cd Destination Card,Slide,,100 lock screen go

Re: How to prevent unlocking the screen

2009-12-15 Thread Jacques Hausser
Thanks, Mark. Works for almost everything, except for a copy of a picture (I have the original picture hidden and resized in the background, and a visible copy of it to work on). I tried two solutions 1) resize the original picture and recopy it in my changeStackSize command: command

Re: How to prevent unlocking the screen

2009-12-15 Thread Mark Schonewille
Hi Jacques, When you copy a resized picture, Revolution may restore the original dimensions. Copy the picture first, then resize the new picture, or use the imagedata of the old picture to set the imagedata of the new picture. If you do the latter, set the dimensions of the new picture

Re: Newbie Data Grid question

2009-12-15 Thread Andre.Bisseret
Bonjour Jim, Trevor and others on this thread ;-) Le 14 déc. 09 à 19:11, James Hurley a écrit : ... Trevor (and Andre.Bisseret), Thanks you for the very thoughtful reply(s). It is heartening to see something defended by its parent. My sincere apologies for treating your offspring in such a

Re: How to prevent unlocking the screen

2009-12-15 Thread Jacques Hausser
Mark, Sorry, I was not crystal clear. When I was talking of copying a picture, I was actually transferring the imageData (As an alternative, I also tried to use import snapshot, what works fine and perhaps a bit quicker). You are quite right with the screen unlocking between the two handler

interrupting a repeat loop

2009-12-15 Thread Tim Selander
Is there any way in RR to check for user input during a repeat loop? I'd like a loop to continue until the user types a certain key -- at which point the script would exit the handler. Tim Selander Tokyo, Japan ___ use-revolution mailing list

Re: type font size in dictionary

2009-12-15 Thread Björnke von Gierke
It's a rev stack, and you can set the default font (of the field the content is shown in) to a larger size... however most of the text has it's own style, and those are set by scripts, so you'd need to go trough the scripts and set them yourself. There's a chance that you change the wrong

Re: interrupting a repeat loop

2009-12-15 Thread Jacques Hausser
Hi Tim it depends of the kind of loop you are using. Several possibilities For example in a card script: local stoploop command runTheLoop repeat forever if stoploop = S then exit repeat -- do what you want wait 10 milliseconds with message end repeat end runTheLoop on

Re: interrupting a repeat loop

2009-12-15 Thread Jacques Hausser
Sorry, it is with messages, plural ! Le 15 déc. 2009 à 16:01, Jacques Hausser a écrit : Hi Tim it depends of the kind of loop you are using. Several possibilities For example in a card script: local stoploop command runTheLoop repeat forever if stoploop = S then exit repeat

Re: type font size in dictionary

2009-12-15 Thread D.Coker
From: Björnke von Gierke b...@mac.com To: How to use Revolution use-revolution@lists.runrev.com Sent: Tuesday, December 15, 2009 9:00:28 AM GMT -06:00 US/Canada Central Subject: Re: type font size in dictionary It's a rev stack, and you can set the default font (of the field the content is

Re: type font size in dictionary

2009-12-15 Thread Björnke von Gierke
http://bjoernke.com/?target=bvgdocu Does your document stack replace the original version or can either one be used by choice? There is no replacing going on. However, my stack needs the documentation one time for an initial setup. It will thus display a kind of Setup wizard when you

Re: interrupting a repeat loop

2009-12-15 Thread Tim Selander
Works great; that's just the thing I was looking for! Thank you. Tim Selander Tokyo, Japan Jacques Hausser wrote: Hi Tim it depends of the kind of loop you are using. Several possibilities For example in a card script: local stoploop command runTheLoop repeat forever if stoploop

Re: interrupting a repeat loop

2009-12-15 Thread Jacques Hausser
Tim, I forgot two little things: local stoploop command runTheLoop put empty into stoploop -- as stoploop is a permanent variable, it should already contain S and the loop will not run repeat forever if stoploop = S then exit repeat -- do what you want wait 10 milliseconds

Re: type font size in dictionary

2009-12-15 Thread D.Coker
That's great, thank you so much! - Original Message - From: Björnke von Gierke b...@mac.com To: How to use Revolution use-revolution@lists.runrev.com Sent: Tuesday, December 15, 2009 9:38:54 AM GMT -06:00 US/Canada Central Subject: Re: type font size in dictionary

Re: interrupting a repeat loop

2009-12-15 Thread Robert Brenstein
On 15.12.2009 at 16:01 Uhr +0100 Jacques Hausser apparently wrote: Hi Tim it depends of the kind of loop you are using. Several possibilities For example in a card script: local stoploop command runTheLoop repeat forever if stoploop = S then exit repeat -- do what you want

Re: type font size in dictionary

2009-12-15 Thread stephen barncard
Hey, this is great. I will donate. I like the attention to detail. Also the (unprotected) stack itself is a good example of some rather nice divider bars, geometry, practical use of XML, and plugin design. - Stephen Barncard San Francisco

Re: interrupting a repeat loop

2009-12-15 Thread Phil Davis
Another way to check for any key being down is: command runTheLoop repeat forever if the keysDown empty then exit repeat -- do what you want end repeat end runTheLoop HTH - Phil Davis On 12/15/09 7:59 AM, Robert Brenstein wrote: On 15.12.2009 at 16:01 Uhr +0100 Jacques

Re: interrupting a repeat loop

2009-12-15 Thread Andre Garzia
Hi Folks, this been answered in many ways already but I thought I'd chime in and try to answer it in a different way. The key is to think of reusable code, every now and them we keep rewritting the same pieces over and over again. How do we create a generic thing that will: 1) Run some code in a

Re: How to prevent unlocking the screen

2009-12-15 Thread Andre Garzia
Jacques, try hiding the stack and showing it only when everything happened... it will flick on the screen but it might be more pleasant On Tue, Dec 15, 2009 at 8:25 AM, Jacques Hausser jacques.haus...@unil.chwrote: Hello everybody, I want to change the size of a stack: command

regex question in matchChunk function

2009-12-15 Thread Chris Sheffield
I am not very familiar with regular expressions, and I'm wondering if someone more knowledgeable could give me a hint as to how to accomplish this. Given a passage of text, I need to find every instance of certain words within that text and draw a box around them. The box drawing I can handle

Re: interrupting a repeat loop

2009-12-15 Thread George C Brackett
Dumb question: could your approach result in too deep a recursion while looping some quick code? George On Dec 15, 2009, at 1:43 PM, Andre Garzia wrote: Hi Folks, this been answered in many ways already but I thought I'd chime in and try to answer it in a different way. The key is to think of

Re: interrupting a repeat loop

2009-12-15 Thread Andre Garzia
Good question george, it depends on the works of dispatch call. Let me try something here, ok did try it, tried computing some big sums and factorials, it can reach recursion limit depending on memory usage but I've reached overflow before reaching recursion limits. But checking the

Re: How to prevent unlocking the screen

2009-12-15 Thread Jacques Hausser
Andre Thank you, I solved the problem, and I think it's a generalisable trick if you know exactly how to compute the future size of the stack (perhaps a rare situation, but it's my case, the stack has only few possible sizes): 1) compute the future size of your stack 2) lock screen 3) compute

Re: Rev IDE vs MetaCard IDE

2009-12-15 Thread Andre Garzia
What is the control browser? Never seen it... On Tue, Dec 15, 2009 at 5:44 PM, Wilhelm Sanke sa...@hrz.uni-kassel.dewrote: I do not care too much how the historical icons look, what I care about is the functionality of the Metacard IDE. Above all I like the quickly accessible Control Browser,

Re: interrupting a repeat loop

2009-12-15 Thread Mark Wieder
Andre- Tuesday, December 15, 2009, 11:01:23 AM, you wrote: But checking the recursionlimits on the dictionary, I see we can increase it by code! :-O So, if you're going to comput something big, then increase it!!! However, note that the default recursionlimit is actually 40, not the

Re: Rev IDE vs MetaCard IDE

2009-12-15 Thread J. Landman Gay
Wilhelm Sanke wrote: I do not care too much how the historical icons look, what I care about is the functionality of the Metacard IDE. Above all I like the quickly accessible Control Browser, which is my main tool during programming. I like MC's control browser too. Sometimes I only want to

Re: Rev IDE vs MetaCard IDE

2009-12-15 Thread J. Landman Gay
Andre Garzia wrote: What is the control browser? Never seen it... In the MC IDE, choose Control Browser from the Tools menu. You will see a list of objects on the current card. You can quickly change the layering order from there, click a button to edit any object script, or double-click to

Re: interrupting a repeat loop

2009-12-15 Thread zryip theSlug
2009/12/15 Tim Selander selan...@tkf.att.ne.jp Is there any way in RR to check for user input during a repeat loop? I'd like a loop to continue until the user types a certain key -- at which point the script would exit the handler. Tim Selander Tokyo, Japan

Re: regex question in matchChunk function

2009-12-15 Thread Troy Rollins
On Dec 15, 2009, at 1:46 PM, Chris Sheffield wrote: Can anyone help? Is there a way to do this? Or can someone recommend another method of accomplishing the same thing? Offset -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ use-revolution

Re: regex question in matchChunk function

2009-12-15 Thread dunbarx
I am not either. but: on mouseup get fld yourField repeat with y = 1 to the number of words in it if word y of it = yourtext then set the textstyle of word y of fld yourField to box end repeat end mouseup Now this writes to fld yourfield every time it matches. I think if

HTMLText question

2009-12-15 Thread dunbarx
Can I use the HTMLText property in a variable? In other words, why does this fail with an error? on mouseup get fld myField --has a few words in it set the htmlText of word 2 of it to boxword 2 of it/box set the htmltext of fld myField to it end mouseup Only field references

Re: HTMLText question

2009-12-15 Thread Jerry Daniels
You need a field for setting HTMLtext. Best, Jerry Daniels The latest Rev Editor Video: http://reveditor.com/feature-friday-manage-your-audio-clips On Dec 15, 2009, at 2:33 PM, dunb...@aol.com wrote: Can I use the HTMLText property in a variable? In other words, why does this fail with an

Re: HTMLText question

2009-12-15 Thread Devin Asay
On Dec 15, 2009, at 1:33 PM, dunb...@aol.com wrote: Can I use the HTMLText property in a variable? In other words, why does this fail with an error? on mouseup get fld myField --has a few words in it set the htmlText of word 2 of it to boxword 2 of it/box set the htmltext of fld

RE: regex/HTMLText question

2009-12-15 Thread dunbarx
Right, thanks to all. Chris', your original regex question could better be addressed by: on mouseup get fld yourField replace yourtext with box yourtext /box in it set the htmltext of fld yourField to it end mouseup This would be fast, and easily extendable, since we are just

Re: Rev IDE vs MetaCard IDE

2009-12-15 Thread D.Coker
Andre Garzia wrote: What is the control browser? Never seen it... In the MC IDE, choose Control Browser from the Tools menu. You will see a list of objects on the current card. You can quickly change the layering order from there, click a button to edit any object script, or double-click to

Re: Rev IDE vs MetaCard IDE

2009-12-15 Thread Andre Garzia
David, I think they have a Yahoo! group where you can download it but the address of the group is unknown to me right now. On Tue, Dec 15, 2009 at 7:15 PM, D.Coker davidoco...@gmail.com wrote: Andre Garzia wrote: What is the control browser? Never seen it... In the MC IDE, choose Control

Re: regex/HTMLText question

2009-12-15 Thread Jim Ault
Caution: wordoffset, replace, regEx You need to decide what constitutes a word. In Rev, ending ending. ending, ending? ending! ending) ending] ending ending's ending= (ending) are all words, so the last word in a phrase or sentence cannot be matched by wordoffset without a bit of

Re: Rev IDE vs MetaCard IDE

2009-12-15 Thread J. Landman Gay
D.Coker wrote: I remember trying/using the MC IDE way back before Rev and would like to have another look for those very reasons expressed. Is there a place that one can still download it for use with the current version of Rev? In RevOnline (in Rev's toolbar) search for the MetaCard Setup

Re: regex question in matchChunk function

2009-12-15 Thread Chris Sheffield
Thanks, Troy. Unfortunately, offset doesn't quite work for me, as it does not honor the wholeMatches property. So I might search for use, and it would find both use and used, which is not the desired result. However, with some extra code I could probably make it work (manually checking for

Re: Rev IDE vs MetaCard IDE

2009-12-15 Thread D.Coker
In RevOnline (in Rev's toolbar) search for the MetaCard Setup stack. This will download the latest MC IDE and set it up with your (licensed) Rev engine, ready to go. It's all one click. Cool beans... I'll give it a try. Thank you Jacque! ___

Re: regex question in matchChunk function

2009-12-15 Thread Peter Brigham MD
Here is one way. These are utility functions I use constantly for text processing. Offsets(str,cntr) returns a comma-delimited list of all the offsets of str in ctnr. Lineoffsets(str,cntr) does the same with lineoffsets. Then you can interate over the list of offsets to do whatever you

Re: regex/HTMLText question

2009-12-15 Thread Chris Sheffield
Thanks, Craig. Unfortunately, this doesn't quite work either. If I were to run: replace use with boxuse/box in it It would not only replace the whole word use, but also the string use in the word used, so I would end up with something like boxuse/boxd, which is not the desired result. On Dec

Re: regex question in matchChunk function

2009-12-15 Thread J. Landman Gay
Chris Sheffield wrote: I am not very familiar with regular expressions, and I'm wondering if someone more knowledgeable could give me a hint as to how to accomplish this. Given a passage of text, I need to find every instance of certain words within that text and draw a box around them. All

Re: regex/HTMLText question

2009-12-15 Thread dunbarx
In a message dated 12/15/09 5:27:40 PM, cmsheffi...@gmail.com writes: Chris. True enough. Sometimes one can be too clever. You can always go back to my little repeat loop. Craig Newman Thanks, Craig. Unfortunately, this doesn't quite work either. If I were to run: replace use with

Re: interrupting a repeat loop

2009-12-15 Thread zryip theSlug
2009/12/15 zryip theSlug zryip.thes...@gmail.com 2009/12/15 Tim Selander selan...@tkf.att.ne.jp Is there any way in RR to check for user input during a repeat loop? I'd like a loop to continue until the user types a certain key -- at which point the script would exit the handler. Tim

Re: Rev IDE vs MetaCard IDE

2009-12-15 Thread Richmond Mathewson
On 16/12/2009 00:20, D.Coker wrote: In RevOnline (in Rev's toolbar) search for the MetaCard Setup stack. This will download the latest MC IDE and set it up with your (licensed) Rev engine, ready to go. It's all one click. Cool beans... I'll give it a try. Thank you Jacque!

Re: regex/HTMLText question

2009-12-15 Thread Peter Brigham MD
Ah, you want to exclude parts of words. Try this: function wordOffsets str,cntr,wholeWords if wholeWords = empty then put true into wholeWords -- or you could default to false if you want put offsets(str, cntr) into charList -- assumes you have the offsets() function to draw on --

Control Browser

2009-12-15 Thread Richmond Mathewson
Of course, nasty I want the best of both worlds types, like me . . . :) hive-off the MC Control Browser, open it up in RunRev, muck around with the scripts a bit and pop it into the RunRev plug-ins folder. Go on, Jacque, smack me! ___ use-revolution

Re: Shortcut for resizing a selected object ?

2009-12-15 Thread zryip theSlug
Hi all, Oups ! It seems that my original message was too long ! 8) Doesn't trapping the arrowKey message, also supported in HC, do what you want? Craig Newman In fact I'm in editing mode with the edit tool when I tried to resize a button with arrow keys. It's an old (may be bad) habit that

Re: Rev IDE vs MetaCard IDE

2009-12-15 Thread D.Coker
In RevOnline (in Rev's toolbar) search for the MetaCard Setup stack. This will download the latest MC IDE and set it up with your (licensed) Rev engine, ready to go. It's all one click. Again I'll say thanks! It works like a charm and everything is just as I remember it. About all I can see that

Re: Control Browser

2009-12-15 Thread J. Landman Gay
Richmond Mathewson wrote: Of course, nasty I want the best of both worlds types, like me . . . :) hive-off the MC Control Browser, open it up in RunRev, muck around with the scripts a bit and pop it into the RunRev plug-ins folder. Go on, Jacque, smack me! Not at all. I did something

Re: Rev IDE vs MetaCard IDE

2009-12-15 Thread J. Landman Gay
D.Coker wrote: In RevOnline (in Rev's toolbar) search for the MetaCard Setup stack. This will download the latest MC IDE and set it up with your (licensed) Rev engine, ready to go. It's all one click. Again I'll say thanks! It works like a charm and everything is just as I remember it. About

VS: How do I construct a scroll bar for stack larger than screen

2009-12-15 Thread Kresten Bjerg
Thank you for good advices. I have tried to follow them, but am approaching the view, that it cannot be done. Which is a shame, because the users of the cheap mini-notebooks would be a most relevant target group It is a most unusual context : A stack, where the stacksize is 3072 x 2304 = 9

Re: VS: How do I construct a scroll bar for stack larger than screen

2009-12-15 Thread Scott Rossi
Recently, Kresten Bjerg wrote: I have tried to follow them, but am approaching the view, that it cannot be done. Which is a shame, because the users of the cheap mini-notebooks would be a most relevant target group It is a most unusual context : A stack, where the stacksize is 3072 x

Re: regex/HTMLText question

2009-12-15 Thread zryip theSlug
Hi Chris, As said by Jim Ault, I think that you have first to decide the list of whole word forms you accept. spaceusespace;usecomma,usedot = use ,use,,use.,.use,.use Once your list prepared, substitute your word by a key that you will replace at the fly by a word to search. = w

Re: interrupting a repeat loop

2009-12-15 Thread Alex Tweedly
Andre Garzia wrote: Hi Folks, this been answered in many ways already but I thought I'd chime in and try to answer it in a different way. The key is to think of reusable code, every now and them we keep rewritting the same pieces over and over again. How do we create a generic thing that will:

Re: Shortcut for resizing a selected object ?

2009-12-15 Thread Richard Gaskin
zryip wrote: In fact I'm in editing mode with the edit tool when I tried to resize a button with arrow keys. It's an old (may be bad) habit that I have to resize objects with arrow keys. I find it more convenient. When I edit objects it seems that the Message Watcher doesn't receive a arrowkey

Re: interrupting a repeat loop

2009-12-15 Thread Kee Nethery
2009/12/15 Tim Selander selan...@tkf.att.ne.jp Is there any way in RR to check for user input during a repeat loop? I'd like a loop to continue until the user types a certain key -- at which point the script would exit the handler. In my code I have this sprinkled throughout all the

Re: Newbie Data Grid question

2009-12-15 Thread Jim Ault
One valuable technique for understanding the DataGrid inner workings. In Rev, choose the pointer tool, click on a data grid, then go the inspector, choose 'custom properties' from the drop down, and now check out the property sets. You should see dgProps and dgCache Note all the properties

Re: HTMLText question

2009-12-15 Thread Kay C Lan
Craig, one further observation. If the field already contains formatted text, ie bold or coloured, doing what you are doing would set everything back to plain text except for word 2 so in most cases (but I accept not all) you'd want to do deal with htmlText exclusively: put the htmlText of fld

Re: type font size in dictionary

2009-12-15 Thread Kay C Lan
2009/12/15 Björnke von Gierke b...@mac.com The easier way is, to use my bvg docu stack, where you can set text sizes in the settings: http://bjoernke.com/?target=bvgdocu Does this incorporate the User Contributed Notes? - They're slowly growing and important to an occasional programmer

Re: Newbie Data Grid question

2009-12-15 Thread stephen barncard
One bit of confusion for me is that there is no dgText property set visible here. The syntax probably a setprop handler. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/15 Jim Ault jimaultw...@yahoo.com One valuable technique for

Re: Newbie Data Grid question

2009-12-15 Thread James Hurley
Message: 2 Date: Mon, 14 Dec 2009 13:19:43 -0500 From: Trevor DeVore li...@mangomultimedia.com Subject: Re: Newbie Data Grid question To: How to use Revolution use-revolution@lists.runrev.com Message-ID: 2489afec-40f1-4057-88dd-e8fa53559...@mangomultimedia.com Content-Type: text/plain;

Saving standalone substacks

2009-12-15 Thread James Hurley
Is there a tutorial someplace on saving data in the standalone substacks? Jim Hurley ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Newbie Data Grid question

2009-12-15 Thread Trevor DeVore
On Dec 16, 2009, at 12:04 AM, James Hurley wrote: It's okay, the Data Grid likes to be beta up on once and a while :-) As long as this is still in Beta, may I make a suggestion? Sorry, that was supposed to be beat not beta. (Does anyone ever let the possibility of the answer be no stop

Re: regex/HTMLText question

2009-12-15 Thread Kay C Lan
On Wed, Dec 16, 2009 at 5:44 AM, Jim Ault jimaultw...@yahoo.com wrote: Caution: wordoffset, replace, regEx You need to decide what constitutes a word. In Rev, ending ending. ending, ending? ending! ending) ending] ending ending's ending= (ending) are all words, so the last word in

Re: Saving standalone substacks

2009-12-15 Thread Kay C Lan
You might try here: http://revjournal.com/tutorials/saving_data_in_revolution.html HTH On Wed, Dec 16, 2009 at 1:05 PM, James Hurley jhurley0...@sbcglobal.netwrote: Is there a tutorial someplace on saving data in the standalone substacks? Jim Hurley

Deriving an angle from three points

2009-12-15 Thread Mark Swindell
40,116 98,186 132,118 How would one determine the angle created from three points, such as those above? Thanks, Mark___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Deriving an angle from three points

2009-12-15 Thread Mark Wieder
Mark- Tuesday, December 15, 2009, 10:21:47 PM, you wrote: 40,116 98,186 132,118 How would one determine the angle created from three points, such as those above? There are three angles. Which one are you interested in? -- -Mark Wieder mwie...@ahsoftware.net

Re: Deriving an angle from three points

2009-12-15 Thread Phil Davis
I never took trig, but I imagine some of Rev's trig functions might be helpful in determining this. If it's any help, here's a button handler that draws the angle: on mouseUp put 40,116/98,186/132,118 into tPointsList replace / with cr in tPointsList set the style of the