repeat loops, efficiency

2005-01-01 Thread Kurt Kaufman
I have a repeat loop within a button script that runs constantly:
on mouseup
set the name of me to STOP
  repeat until the mouseclick
--do specific stuff here
wait ten seconds --I need this delay
  end repeat
set the name of me to START
end mouseup
Is there perhaps a more efficient way of doing this?
Thanks, Kurt
PS/ If the answer to my question is in the Rev docs, I could not easily 
find it.  How should I have searched?

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: repeat loops, efficiency

2005-01-01 Thread Dar Scott
On Jan 1, 2005, at 7:11 AM, Kurt Kaufman wrote:
on mouseup
set the name of me to STOP
  repeat until the mouseclick
--do specific stuff here
wait ten seconds --I need this delay
  end repeat
set the name of me to START
end mouseup
Is there perhaps a more efficient way of doing this?
One of the flasher examples from the Message Mechanics Primer might 
help:

 http://www.swcp.com/dsc/revstacks.html
Look also at the relay change lockout example in that stack, if you 
want to cut the last delay short, but still keep specific stuff from 
happening too soon.

That stack describes some techniques in using send and cancel.  (It 
needs a little updating.)

Dar
**
DSC (Dar Scott Consulting  Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: repeat loops, efficiency

2005-01-01 Thread Kurt Kaufman
...One of the flasher examples from the Message Mechanics Primer 
might
help...

Thank you, Dar.  I'll have a look later today!
-Kurt
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Line Numbers

2005-01-01 Thread Wilhelm Sanke
On Sat Jan 1 10:23:47, D.Rothe drothe at optusnet.com.au wrote:
  

G'Day and Happy New Year to all
I am hoping someone could guide me with the following prob.
I have two fields (field 1  field 2), field 2 is for loading and 
displaying a txt file and field 1
is for displaying each corresponding line number of field 2.
The line numbers must be in a seperate field otherwise they will show 
when printing field 2.

Obviously field 2 is a scrolling field so the problem is getting field 
1 to scroll in unison with field 2 so the line numbers match the 
correct line.

Any ideas on the code or maybe a different solution
Thanx to all.
Cheers Dwayne...

Put this into the script of the scrolling field 2:
on scrollbardrag
 set the scroll of fld 1 to the scroll of me
end scrollbardrag
Regards and Happy New Year!
Wilhelm Sanke
www.sanke.org/MetaMedia
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Graphic Objects Memory Use

2005-01-01 Thread Gordon Webster
Dear Revolutionaries

I have a question or two about rev's graphic objects
...

Since the rev graphic objects such as lines and shapes
are objects that can have their own properties, styles
etc., is there a big memory overhead in using them to
create complicated graphics? 

What would be the best way in rev to do the equivalent
of double-buffering the graphics i.e. invisibly
drawing the next frame of a complex graphic in
background and then displaying it?

Happy New Year to you and yours.

Gordon


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Rev2.5 exe error with garbage

2005-01-01 Thread FlexibleLearning
Has anyon else experienced .exe errors when using sockets in a password  
protected stack with Rev2.5 (engine 2.6.1) that do not happen with other 
engines  
or when the password of the stack is empty?
 
I wish I could supply a formula, but the error (or a system freeze) is  
temperamental and inconsistent but nevertheless guaranteed.
 
The situation is when receiving ascii socket data that is placed in a  
field... After a while, there is what looks like an encrypted text dump of the  
stack in the field instead of the text data, then poof! and we have  either 
an 
exe error or a system freeze. The 'text of fld tFld' does not match  the 
displayed garbage, so I am assuming this is the cause of the failure, but  the 
question is where is this garbage coming from and why?
 
Anyone had similar?
 
/H
 
 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Using QT Transitions

2005-01-01 Thread Mark Greenberg
On Saturday, January 1, 2005, at 07:41 AM, 
[EMAIL PROTECTED] wrote:

When you use the answer effect command, an encooded description for
the effect is returned in the it variable. You can store this
somewhere (variable, custom property, etc.) and use it in a later
script:
   answer effect
   if it is not empty then set the myCustomEffect of this stack to it
   -- in a later script...
   visual effect (the myCustomEffect of this stack)
   go card My Card
Okay, but wouldn't that bring up a dialog box for the user of my stack? 
 I would like Card A to gradient wipe to Card B without asking the 
user.  I'm still not getting it.

Mark G.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: getting the Real name of CDs from RR

2005-01-01 Thread Alejandro Tejada
on Thu, 30 Dec 2004 
Ken Ray wrote:

Did you try the Win98 version I'd posted this
morning? 
If not, here it is again:

function GetCDName pLetter
  set the hideConsoleWindows to true
  if the shellCommand is cmd then
put shell(pLetterdir) into temp
if line 1 of temp is empty then delete line 1 of 
temp
return last word of line 1 of temp
  else
-- Win98, etc.
put pLetter  cr  dir into
url(file:c:/temp.bat)
put shell(c:\temp.bat) into tResult
delete file c:/temp.bat
return last word of line 6 of temp
  end if
end GetCDName

Hi, Ken

Thanks a lot for posting this revised version! :-))

Your new version now works fine in my side:

function GetCDName pLetter
  set the hideConsoleWindows to true
  put pLetter  cr  dir into
url(file:c:/temp.bat)
  put shell(c:\temp.bat) into tResult
  delete file c:/temp.bat
  return line 6 of tResult
end GetCDName

From the resulting line, i could get the full
CD name even if the name has spaces like 30 OCT 03

But still, i do not understand why the engine
executed always the first part of the IF 
statement: if the shellCommand is cmd...
when in fact the shellCommand is command.com

Thanks again and...

Happy New Year for every Developer of every
platform in every programming language
in this earth!!! :-)

al




=
Visit my site:
http://www.geocities.com/capellan2000/



__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: use-revolution Digest, Vol 16, Issue 1

2005-01-01 Thread James Hurley
Message: 15
Date: Sat, 1 Jan 2005 10:23:47 +1000
From: D.Rothe [EMAIL PROTECTED]
Subject: Line Numbers
To: use-revolution@lists.runrev.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain;   charset=iso-8859-1
G'Day and Happy New Year to all
I am hoping someone could guide me with the following prob.
I have two fields (field 1  field 2), field 2 is for loading and 
displaying a txt file and field 1
is for displaying each corresponding line number of field 2.
The line numbers must be in a seperate field otherwise they will 
show when printing field 2.

Obviously field 2 is a scrolling field so the problem is getting 
field 1 to scroll in unison with field 2 so the line numbers match 
the correct line.

Any ideas on the code or maybe a different solution
Thanx to all.
Cheers Dwayne...

Hi Dwayne,
If all you need to do is eliminate the line numbering in the printed 
text, you might just do this via script and then print the results. 
Put something like the following handler in a print button:

on mouseUP
  put field 1 into tData
  repeat for each line tLine in tData
--Assuming the lines are numbered as follows:
--1 This is the first line, including its number.
--Or whatever you might choose.
repeat
  put char 1 of tLine into tChar
  if tChar is a number or tChar is space then --or whatever
delete char 1 of tLine
  else
put tLine  return after results
exit repeat
  end if
end repeat
  end repeat
  revprinttext results
end mouseUP
Jim
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


File info

2005-01-01 Thread Ben Fisher
Hello Revolution Wizards,

I was wondering if there's some way to retrieve the Created or Modified 
dates from a file. I'm using Windows XP. I have a feeling this data isn't 
stored in the file itself, but then where could it be?

-Ben
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Using QT Transitions

2005-01-01 Thread Klaus Major
Hi Mark,
On Saturday, January 1, 2005, at 07:41 AM, 
[EMAIL PROTECTED] wrote:

When you use the answer effect command, an encooded description for
the effect is returned in the it variable. You can store this
somewhere (variable, custom property, etc.) and use it in a later
script:
   answer effect
   if it is not empty then set the myCustomEffect of this stack to it
   -- in a later script...
   visual effect (the myCustomEffect of this stack)
   go card My Card
Okay, but wouldn't that bring up a dialog box for the user of my 
stack?  I would like Card
A to gradient wipe to Card B without asking the user.  I'm still not 
getting it.
:-)
The dialog will NOT pop up in that case!
It is the EFFECT itself that is being stored in the custom property.
This way you can create a library of QT transitions in your stack(s) 
and use it whenever
you like and the user will never! see the dialog, honestly! :-)

		Mark G.
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Writing

2005-01-01 Thread Robert Sabo
Ok this is a stupid question none the less. However I
am just not sure how to do it. All I am trying to
figure out is how to get something to print in a
field. I have seen the reply, answer and put commands
and I dont think those are what I am looking for. I
could be wrong however. However I know using pascal I
would do the following

writeln('Hello');

and that would print hello to the screen. I am not
sure what the equivalent is here and I am hoping you
guys could help me with that. Oh and is there a way to
do it without having it pop up in a different box all
the time? Like I just want it to print in a field and
not pop up in a different box.

Thanks,
Robert



__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Writing

2005-01-01 Thread André Rombauts
Robert,

Just one line to qay: RR is an object oriented programming environment.

André

-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Robert Sabo
Envoyé : samedi 1 janvier 2005 18:33
À : Revolution
Objet : Writing

Ok this is a stupid question none the less. However I
am just not sure how to do it. All I am trying to
figure out is how to get something to print in a
field. I have seen the reply, answer and put commands
and I dont think those are what I am looking for. I
could be wrong however. However I know using pascal I
would do the following

writeln('Hello');

and that would print hello to the screen. I am not
sure what the equivalent is here and I am hoping you
guys could help me with that. Oh and is there a way to
do it without having it pop up in a different box all
the time? Like I just want it to print in a field and
not pop up in a different box.

Thanks,
Robert



__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Writing

2005-01-01 Thread Björnke von Gierke
put is what you want.
it seems you already have a field, if not create one, and give it a 
unique name. Then use the put command like this:
put hello into field YourUniqueName

On Jan 01 2005, at 18:32, Robert Sabo wrote:
Ok this is a stupid question none the less. However I
am just not sure how to do it. All I am trying to
figure out is how to get something to print in a
field. I have seen the reply, answer and put commands
and I dont think those are what I am looking for. I
could be wrong however. However I know using pascal I
would do the following
writeln('Hello');
and that would print hello to the screen. I am not
sure what the equivalent is here and I am hoping you
guys could help me with that. Oh and is there a way to
do it without having it pop up in a different box all
the time? Like I just want it to print in a field and
not pop up in a different box.
Thanks,
Robert

__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

()()()()()()()()()()
official ChatRev page:
http://chatrev.cjb.net
Chat with other RunRev developers:
go stack URL http://homepage.mac.com/bvg/chatrev1.3.rev;
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Writing

2005-01-01 Thread Marian Petrides
Here's an example of how you would do this as part of a button handler, 
assuming the field you wanted the text to appear in was named Field:

on mouseUp
  put This is a test into field Field
end mouseUp
If you wanted the text to display on a line other than the first line 
of the field the statekment would read:

put This is a test into line 2 of field Field
And, if you wanted the text to display as soon as the card is 
displayed, then you would place the put statement into an on OpenCard 
handler either at card level or stack level (latter if it were to 
appear in this field on every card in the stack).

HTH
Marian
On Jan 1, 2005, at 12:32 PM, Robert Sabo wrote:
Ok this is a stupid question none the less. However I
am just not sure how to do it. All I am trying to
figure out is how to get something to print in a
field. I have seen the reply, answer and put commands
and I dont think those are what I am looking for. I
could be wrong however. However I know using pascal I
would do the following
writeln('Hello');
and that would print hello to the screen. I am not
sure what the equivalent is here and I am hoping you
guys could help me with that. Oh and is there a way to
do it without having it pop up in a different box all
the time? Like I just want it to print in a field and
not pop up in a different box.
Thanks,
Robert

__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Writing

2005-01-01 Thread Robert Sabo
Yes that is what I was looking for thanks man!

--- Marian Petrides [EMAIL PROTECTED] wrote:

 Here's an example of how you would do this as part
 of a button handler, 
 assuming the field you wanted the text to appear in
 was named Field:
 
 on mouseUp
put This is a test into field Field
 end mouseUp
 
 
 If you wanted the text to display on a line other
 than the first line 
 of the field the statekment would read:
 
 put This is a test into line 2 of field Field
 
 And, if you wanted the text to display as soon as
 the card is 
 displayed, then you would place the put statement
 into an on OpenCard 
 handler either at card level or stack level (latter
 if it were to 
 appear in this field on every card in the stack).
 
 HTH
 
 Marian
 On Jan 1, 2005, at 12:32 PM, Robert Sabo wrote:
 




__ 
Do you Yahoo!? 
Jazz up your holiday email with celebrity designs. Learn more. 
http://celebrity.mail.yahoo.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Writing

2005-01-01 Thread Marian Petrides
On Jan 1, 2005, at 12:41 PM, Marian Petrides wrote:
Here's an example of how you would do this as part of a button 
handler, assuming the field you wanted the text to appear in was named 
Field:

on mouseUp
  put This is a test into field Field
end mouseUp
OOOPS... incorrect use of terminology--concept is correct. Sentence 
should read as part of a mouseUp handler in a button script. 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: File info

2005-01-01 Thread J. Landman Gay
On 1/1/05 10:44 AM, Ben Fisher wrote:
Hello Revolution Wizards,
I was wondering if there's some way to retrieve the Created or Modified dates from a file. I'm using Windows XP. I have a feeling this data isn't stored in the file itself, but then where could it be?
Yup. See the files function in the dictionary, particularly the 
detailed files option. That gives this info.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Graphic Objects Memory Use

2005-01-01 Thread Alex Tweedly
Gordon Webster wrote:
Dear Revolutionaries
I have a question or two about rev's graphic objects
...
Since the rev graphic objects such as lines and shapes
are objects that can have their own properties, styles
etc., is there a big memory overhead in using them to
create complicated graphics? 
 

I'm sure there is some overhead - but not too much. (Note - this is 
speculation on my part - I have no inside knowledge.)
I'd be concerned about storing a million objects each of which is a 
single line - but not about a few thousand of them (though it can be 
expensive in time to create many graphics - or even worse to delete them 
)

Note that there are some very clever things you can do with polygon 
objects that in some cases allow you to achieve the drawing effects you 
want with many fewer graphic objects (and much more speed).

For instance, you can put a marker on each vertex of a polygon  (this 
is a quick way to draw many similar shapes - set the marker of a polygon 
to the shape you want to draw, and then simply adding a vertex to the 
polygon gives you a whole extra shape. This is often used in combination 
with the other unusual feature - a blank line in the list of vertices 
results in a non-visible edge; so a list of points like
 100,100
 100,200

 200,200
 400,400
 400,500
will result in two disjoint line line segments.
What would be the best way in rev to do the equivalent
of double-buffering the graphics i.e. invisibly
drawing the next frame of a complex graphic in
background and then displaying it?
 

The simple answer is that you probably don't need to double-buffer it. 
Of course there are cases where the simple answer is wrong :-)

If you have a few thousand graphic shapes, and want to redraw them, then 
you may need to. On the other hand, if you can use the clever features 
of polygons above, then you can get very smooth animation effects at 
very high speed without double-buffering.

If you need to double-buffer, you can do
 set lockscreen to true
 -- draw the next screen now
 set lockscreen to false
If you haven't already, take a look at Malte's libRMC (latest version 
announced on the list within the last few weeks)

-- Alex.

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 30/12/2004
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Using QT Transitions

2005-01-01 Thread Ben Fisher
Okay, but wouldn't that bring up a dialog box for the user of my stack? 
  I would like Card A to gradient wipe to Card B without asking the 
user.  I'm still not getting it.

Mark G.

You don't have to put the answer effect in your script that runs every time. 
Just put it in the message box, because it only needs to be run once. 

answer effect
if it is not empty then set the myCustomEffect of this stack to it

Once you have the effect data, it can be placed in a custom property and can be 
retrieved w/o having to use answer effect. No one needs to see the dialog 
again, the data is stored in myCustomEffect. 
Then, put this into the script you want. 

visual effect (the myCustomEffect of this stack)
go card My Card

-Ben
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


OT: Scripting the UI in Windows

2005-01-01 Thread Michael D Mays
Is there an application in Windows such as FaceSpan
 http://www.facespan.com/facespan/pagespeed/url//Home/
I want to be able to click some buttons, window items; etc  
programatically in a program I think was written with VisualBasic.

Michael
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Setting more than 1 textStyle

2005-01-01 Thread Cubist
   A number of setting multiple text-styles at once solutions have been 
posted to the list, but there's a problem in all of them. Namely, text-styles 
are 
supposed to be a toggleable thing. If you select Bold for plain text, it gets 
bolded; but if you select Bold for text that *is* bold, it turns plain again! 
And there's the whole problem of when the text-style of the selected text is 
'mixed', what do I do?...

on ChangeStyle SelText,NuStyle
  # SelText is the selected text -- char 5 to 29 of field Fred or whatever
  # NuStyle is the newly-selected text style that the user wants to put on 
that text

  if NuStyle = plain then
# nuke it all
set the textStyle of SelText to plain
exit to top
  end if

  put the textStyle of SelText into OldStyle
  if OldStyle = mixed then
# this bit will work, but its obvious goal is problematic...
set the textStyle of SelText to NuStyle
  else
if the number of items in OldStyle = 1 then
  # only one text-style, huzzah!
  switch OldStyle
  case NuStyle
# user has selected the existing style -- toggle it
set the textStyle of SelText to plain
break
  case plain
# it's virgin text
set the textStyle of SelText to NuStyle
break
  default
# the user has selected a different style than is there -- toggle it!
set the textStyle of SelText to (OldStyle  ,  NuStyle)
  end switch
else
  # okay, multiple text-styles
  # is NuStyle one of the text-styles that's already on the selected text?
  put 0 into Kounter
  repeat for each item II in OldStyle
add 1 to Kounter
if II = NuStyle then exit repeat
  end repeat

  if Kounter  0 then
# the newly-selected style is already there -- turn it off!
delete item Kounter of OldStyle
set the textStyle of SelText to OldStyle
  else
# the newly-selected style is, well, NEW -- turn it on
set the textStyle of SelText to (OldStyle  ,  NuStyle)
  end if
end if
  end if
end ChangeStyle

   I am not happy with the bit that handles mixed text-style; it just plows 
everything under, burying it all beneath the newly-selected style. Sure, it 
works and it's obvious, but... it's not what you'd call elegant, okay?
  What should happen in situations like when *all* of the selected text is 
Italic, but some of the selected text has Bold *in addition to* Italic? At 
minimum, it should check to see what styles apply to *all* the selected text, 
and 
not eliminate any whole-selection styles that the user didn't select... (pause 
to let readers parse that sentence) ...but what happens when the user selects 
Italic, and (let us say) 15% of the selected text is Italic? Do you make every 
character Italic (in addition to whatever other text-styles whichever 
character might have), do you remove Italic from whichever characters have it, 
or 
what?
   My own first impulse is to go with a 50% rule -- count the text-styles 
of individual characters, and if more than 50% of the selected text has a given 
style, treat it as tho the whole thing has it; otherwise, treat it as tho the 
whole thing doesn't have that style. What do the rest of you think?
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Setting more than 1 textStyle

2005-01-01 Thread Martin Baxter
Cubist wondered...
...but what happens when the user selects
Italic, and (let us say) 15% of the selected text is Italic? Do you make
every
character Italic (in addition to whatever other text-styles whichever
character might have), do you remove Italic from whichever characters have
it, or
what?
   My own first impulse is to go with a 50% rule -- count the text-styles
of individual characters, and if more than 50% of the selected text has a
given
style, treat it as tho the whole thing has it; otherwise, treat it as tho the
whole thing doesn't have that style. What do the rest of you think?

Good question, In the past I've implemented the same sort of brute force
fudge as yours.

I just ckecked my old copy of MSWord to see what that does and the
behaviour is quite sensible IMO.

If only some of the characters have the style you are applying, The style
you are applying is applied to all the selected characters, and any other
existing styles are preserved.

If all of the characters have the style you are applying, the style you are
applying is removed from the selected characters, and any other styles are
preserved.

So if for example some of the characters selected have italic, and your
intention is to remove that while retaining other styling, you can apply
italic twice to achieve that effect.

From a user perspective I think the straightforwardness of that recommends
it to me.

Martin Baxter


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Resizing stack to any screen size!

2005-01-01 Thread D.Rothe
Hi all,
Have seen a few posts about how to rezize a stack to suit your screen size, 
here's how I did it!

Resizing the main stack to suit any screen size is quite simple really, the 
challenge comes when trying to keep all your fields in a relative size  
position. 
To resize a stack to any screen size I use the following code;

on preOpenStack
-- get users screen size -- left,top,width,height

   put the screenrect into tScreenSize

-- *Note: screenrect is the working size of the window NOT including borders.
-- For this reason we set the parameters as follows.

   set itemDel to ,
   put item 3 of tScreenSize into tWidth
   put item 4 of tScreenSize into tHeight
   set the rect of this stack to 2,28,tWidth-2,tHeight-4

end preOpenStack

2 puts the window 2 pixels from the left
28 puts the window 28 pixels from the top, this allows the window title bar to 
show.
tWidth-2 sets the overall window width to the screen size -2 pixels to allow 
the border to fit.
tHeight-4 sets the overall window height to the screen size -4 pixels to allow 
the border to fit.

This setting works well using windows XP but I haven't tested it on other OS'.

To manipulate fields etc. use; set the rect of fld fieldname to 
?,?,tWidth-?,tHeight-?

Happy New Year!! . Dwayne
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


changing object's location causing long delays

2005-01-01 Thread Nicolas Cueto
Hello,
(B
(BAny ideas why there would be a long processing delay (about 15 seconds)
(Bwhenever I use the mouse to move any non-hidden object on a card? By
(Bcontrast, there is no significant delay if I use keyboard arrow-keys instead
(Bto move the same object, nor if I do any other types of changes to the same
(Bcard, such as to the scripts, properties or adding objects.
(B
(BOf possible significance:
(B
(B- the card has 388 objects
(B
(B- almost all objects are hidden, and grouped as smaller groups into eight
(Blarger groups. About half of the objects in each of these eight groups are
(Bbuttons and a third are images. Out of those grouped images, about 35 in
(Btotal are referenced by fileName to the same gif image, 2 images in each of
(Bthe eight groups together have a total size of about 13,000, and the
(BalwaysBuffer ("Preload in memory") is "false
(B
(B- bufferHiddenImages is set to "false". I also tried setting it to "true",
(Bbut no effect. Similarly, I also set the alwaysBuffer of all images to
(B"true", but with no improvement
(B
(B- the computer is Win2k, 400Mb RAM, 900Mghz
(B
(B- the stack itself has three other cards, each of which has under 30
(Bobjects, and none of which show the same delay when objects are moved by
(Bmouse
(B
(BThank you.
(B
(BCheers,
(BNicolas Cueto
(B___
(Buse-revolution mailing list
(Buse-revolution@lists.runrev.com
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Inter-process communication

2005-01-01 Thread Gordon Webster
Dear Revolutionaries

Is it sensible/feasible to use the clipboard for
communicating between rev and other processes?

e.g. suppose I want to pass control to another process
that does a large, numerically intensive calculation
and then passes the result back to the rev app by
writing to the clipboard. This assumes that the
overhead of parsing the result on the clipboard is
more than offset by the time saved by doing the
calculation in a separate, natively compiled process.

Would this be quicker than communicating using files?

Is there a way in rev to get a message when the
clipboard's contents change?

- something like on clipboardUpdated

Of course, using the externals SDK to access a DLL
would be optimal - is there a tutorial somewhere on
how to access the functions in a DLL from within rev?
Would I have to write a C program to do this?

Best

Gordon

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Can't build a standalone

2005-01-01 Thread Erik Hansen

do you have a website and would
you want it on your signature?

someone made a see Monte's... reference,

thanks,

Erik Hansen

=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: changing object's location causing long delays

2005-01-01 Thread Ken Ray
On 1/1/05 6:17 PM, Nicolas Cueto [EMAIL PROTECTED] wrote:

 Hello,
 
 Any ideas why there would be a long processing delay (about 15 seconds)
 whenever I use the mouse to move any non-hidden object on a card? By
 contrast, there is no significant delay if I use keyboard arrow-keys instead
 to move the same object, nor if I do any other types of changes to the same
 card, such as to the scripts, properties or adding objects.

Can I assume this is in the IDE and not in a standalone? If so, I'd
recommend attempting the same action in a standalone and if it is very fast,
then the reason is the IDE's attempt to keep track of all the objects.

Just my 2 cents,

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


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Graphic Objects Memory Use

2005-01-01 Thread Ken Ray
On 1/1/05 9:16 AM, Gordon Webster [EMAIL PROTECTED] wrote:

 Dear Revolutionaries
 
 I have a question or two about rev's graphic objects
 ...
 
 Since the rev graphic objects such as lines and shapes
 are objects that can have their own properties, styles
 etc., is there a big memory overhead in using them to
 create complicated graphics?

I would doubt it... the reason I say this is that Geoff Canyon created an
entire Asteroids-like *game* using a *single* polygon that has its points
calculated and adjusted on the fly. If you can imagine dozens/hundreds of
individual points that need to be adjusted in real time, you get the idea
that even if there *was* some overhead, it would be minimal.

Just my 2 cents,

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


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: getting the Real name of CDs from RR

2005-01-01 Thread Ken Ray
On 1/1/05 10:02 AM, Alejandro Tejada [EMAIL PROTECTED] wrote:

 on Thu, 30 Dec 2004

 But still, i do not understand why the engine
 executed always the first part of the IF
 statement: if the shellCommand is cmd...
 when in fact the shellCommand is command.com

and actually, it should have been:

  if the shellCommand is cmd.exe then

but I don't know why the if statement would go awry...

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


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: changing object's location causing long delays

2005-01-01 Thread Nicolas Cueto
Ken Ray wrote:
(B
(B Can I assume this is in the IDE and not in a standalone? If so, I'd
(B recommend attempting the same action in a standalone
(B
(BIt is indeed in the IDE. As for trying it on a standalone (a.k.a.,
(B"distribution"?), do you mean to add a "grab" command to an object, then
(Bbuild a distribution, and see if there's a delay? And even if that's not it,
(Bwell, given that once finished my stack will not require users to move
(Bobjects, why would I nonetheless want to discover now whether a distribution
(Bversion of an incomplete stack is faster than the present version I'm now
(Bwhittling away -- and sometimes painfully slow at that! -- on the IDE?
(B
(BThanks all the same, though.
(B
(BCheers,
(BNicolas Cueto
(B___
(Buse-revolution mailing list
(Buse-revolution@lists.runrev.com
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Re: changing object's location causing long delays

2005-01-01 Thread Ken Ray
On 1/1/05 11:34 PM, Nicolas Cueto [EMAIL PROTECTED] wrote:

 Ken Ray wrote:
 
 Can I assume this is in the IDE and not in a standalone? If so, I'd
 recommend attempting the same action in a standalone
 
 It is indeed in the IDE. As for trying it on a standalone (a.k.a.,
 distribution?), do you mean to add a grab command to an object, then
 build a distribution, and see if there's a delay?

No, I mean add a button to your standalone that says:

  on mouseUp
choose pointer tool
  end mouseUp

And then click it, which will change the tool to a pointer tool, select all
of your objects by dragging out a selection rectangle and try moving them.
WHen you're done, just quit your standalone (since you won't have an easy
way to switch back to browse tool).

 well, given that once finished my stack will not require users to move
 objects, why would I nonetheless want to discover now whether a distribution
 version of an incomplete stack is faster than the present version I'm now
 whittling away -- and sometimes painfully slow at that! -- on the IDE?

Is the inspector palette open? Perhaps if you cloe it, it will speed things
up (no need to keep track of multiple objects if you don't have the
Application Browser or Properties palettes open AFAIK.

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


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: changing object's location causing long delays

2005-01-01 Thread Nicolas Cueto
 No, I mean add a button to your standalone that says:
(B
(B   on mouseUp
(B choose pointer tool
(B   end mouseUp
(B
(BOh. I didn't know objects could be moved even on a standalone. Wow!
(B
(BOk, I added that button and built a distribution. However, relocating an
(Bobject using the pointer-tool is still as slow on the standalone as when on
(Bthe IDE.
(B
(B Is the inspector palette open?
(B
(BAlright, let me try that...
(B
(BNo luck. I closed the Properties palettes and the Application Browser, but
(Bstill there's a long pause as soon as I release an object that has been just
(Brelocated with the pointer tool.
(B
(BIs there a way of trapping Rev events themselves so I can see what's
(Bhappening in the background immediately after I release an object?
(B
(BWhat continues to especially baffle me is not understanding why the object
(Bpost-movement delay doesn't also occur after I use the keyboard-arrows.
(B
(BOh well. Thanks.
(B
(BCheers,
(BNicolas Cueto
(B___
(Buse-revolution mailing list
(Buse-revolution@lists.runrev.com
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution