Re: [teaser] Mac OS X external

2009-09-20 Thread René Micout

YES ! YES ! YES !
Bons souvenirs de Paris
René

Le 20 sept. 09 à 17:43, Shao Sean a écrit :

Working on an external for helping Mac applications in Rev look and  
feel more like Mac OS X applications. Current features include:


setWindowModified - toggles the "dirty" document flag on and off
isWindowModified() - returns the state of the "dirty" document flag  
(boolean)

setWindowProxy - adds a proxy icon to the title bar of the window

Screen capture of a modified title bar:
http://revdevelop.com/images/ssMacWindows.png


--
Shao Sean
http://www.RevDevelop.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: [teaser] Mac OS X external

2009-09-20 Thread Arthur Rann
Hi,
I thought RR was being touted as the evolution of HyperCard? I have a hard
time believing the dirty flag isn't supported natively. Are you saying it's
not???

Look, I have a ton of cross-platform apps on my drive, but all of them use
the dirty red button to indicate that the file has been touched. This is the
kind of basic Mac OS X thing that RR should be putting in their
product. Doesn't anyone hold RR to task over Mac OS Interface?

-Art
___
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: Full screen?

2009-09-20 Thread Arthur Rann
Hi,
So let me get this straight because I need to take this back with me to the
dev team. You're saying that there's no built in way to actually go full
screen, like most games do? I admit I don't know much about programming, but
I decided on Rev for a game engine, and this is a pretty big deal. Without a
full screen mode, this is going to look like crap. I mean no game out there
now has just windows floating on a backdrop. And I mean no offense at the
backdrop, Richmond. While I was able to make the window disappear by
clicking on the backdrop, it would at least reappear with yours. RunRev's
backdrop got stuck in front as you pointed out. So this email has already
paid off because I couldn't figure out how to make RRs backdrop stay in the
right damn place.

Edward, that's what we're doing now, but the RR backdrop window 'stuck' in
front of our actual game for awhile and it just threw us for a big damn
loop.

Richmond, every game on the market has a full screen mode. In OpenGL, I hear
that you can 'request' full screen mode, and it will set the resolution back
when your app is done. I know this is one of the things from DrawSprockets
that Apple brought forward to OSX as well. I don't know what API to use for
that on Windows. But it's absolutely silly that this very basic concept
found in all professional video games and kiosk software isn't even possible
in RR, since it seems perfect for making games and kiosk software. I'm not
trying to permanently change their settings, that's the whole point behind
these APIs that Apple put in place (and have had in place for over 10 years
now). They're for games to let the dev set the screen to a certain res, but
still let the user command+tab out, and then have your icons stay in the
right places.

I bet I could do this with an AppleScript, so that's my next test...

Thanks for the info though. And Richmond I'll be using your script if I cant
make this work with OSX's native capabilities.

Hey do you know if SuperCard externals run in RR? This guy Chilton wrote an
external for us a long time ago that did that and I just tried it in SC 4.5
and it still works in Snow Leopard. If those externals work in RR, I could
use that. OR I could include a SuperCard app in the RR bundle, and run that,
to force the RR game into full screen mode. OOh I'll try that too.

Thx,
-Art
___
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: Full screen?

2009-09-20 Thread Rick Harrison

Hi Arthur,

Use the screenRect function to find out the available screen sizes and  
to scale windows to the size of the screen.


Examples from the dictionary:
the screenRect
set the rect of this stack to line 2 of the working screenRects

I also found:

Use the revChangeWindowSize command to change the size of a stack  
while leaving its top left corner in place, with optional animation  
effects.


Examples:

revChangeWindowSize 100,120
revChangeWindowSize the width of stack "Template",200,"slide"
revChangeWindowSize myWidth,myHeight,"snap",1 -- displays card 1
revChangeWindowSize 200,250,"slide",,500 -- slides over 1/2 second

And the following I also found to be very interesting:

Use the systemWindow property to create a stack that can be used as a  
systemwide utility, available in all applications.


Value:
The systemWindow property of a stack is true or false. By default, the  
systemWindow of a newly created stack is set to false.


The systemWindow property makes a window float above all running  
applications.


Examples:
set the systemWindow of stack "Magnifier" to true
set the systemWindow of the target to false

I hope this helps!

Rick

On Sep 20, 2009, at 3:30 PM, Arthur Rann wrote:


Hi,
How do I make my RR stack run full screen? I don't want to stretch  
things to
meet the screen, I want to enter a 'full screen mode' like most  
video games
do, where it temporarily sets the user's monitor resolution to  
1024x768 or

something like that.

Thank you !
-Art




___
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: [teaser] Mac OS X external

2009-09-20 Thread Mark Wieder
Sarah-

Sunday, September 20, 2009, 4:36:15 PM, you wrote:

> your part. I think this is what profiles are good for, but I never
> really got into using profiles.

Yeah - me neither. Had some thoughts about it but never really
bothered.

So I'm curious... does anyone use profiles, and if so, what for?

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
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: [teaser] Mac OS X external

2009-09-20 Thread Sarah Reichelt
> It is the right track. There are still others improvement to bring so that
> Rev applications look and feel more like Mac OS X applications. For example,
> tool bars, gradient buttons, button and field with the default Mac OS X
> font, size and position, etc. In a word, this would be great if Rev
> applications respected the Apple Human Interface Guidelines.

This is the price we pay for using a cross-platform tool.
However you can set the font and with the new graphic effects, you can
make gradient buttons.
Tool bars are easy enough to make yourself, although allowing the
standard customization would be a neat trick which I have never
bothered with. (I never have enough options to need it.)

Then you start running into the same issues that Rev has i.e. if you
make your app look too much like a standard Mac app, then it won't
look like a Windows app for Windows users, without a lot of effort on
your part. I think this is what profiles are good for, but I never
really got into using profiles.

Cheers,
Sarah
___
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: [teaser] Mac OS X external

2009-09-20 Thread Sarah Reichelt
On Mon, Sep 21, 2009 at 1:43 AM, Shao Sean  wrote:
> Working on an external for helping Mac applications in Rev look and feel
> more like Mac OS X applications. Current features include:
>
> setWindowModified - toggles the "dirty" document flag on and off
> isWindowModified() - returns the state of the "dirty" document flag
> (boolean)
> setWindowProxy - adds a proxy icon to the title bar of the window
>
> Screen capture of a modified title bar:
> http://revdevelop.com/images/ssMacWindows.png


Awesome - that's been on my wish list for ages.

Cheers,
Sarah
___
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: Full screen?

2009-09-20 Thread Richmond Mathewson

Edward D Lavieri Jr wrote:
When I want to simulate this, I use the "set backDrop to " 
command.



On Sep 20, 2009, at 2:30 PM, Arthur Rann wrote:


Hi,
How do I make my RR stack run full screen? I don't want to stretch 
things to
meet the screen, I want to enter a 'full screen mode' like most video 
games
do, where it temporarily sets the user's monitor resolution to 
1024x768 or

something like that.

Thank you !
-Art
___

The built-in Backdrop is awful insofar if an end-user clicks on it there is
every chance your stack will relayer to behind the backdrop.

If you wish to use a backdrop that behaves the way it should download
this:

http://mathewson.110mb.com/FILEZ/Backdrop-O-Matic.rev.zip

and adapt it to your needs.
___
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


tab for next cell in DataGrid

2009-09-20 Thread Beat Cornaz

Hi,

I repacked an application into the GLX framework and made new  
datagrids. Now the TAB button does not move from an open cell  to the  
next cell and open it anymore, as it did in my older copy (pre GLX  
framework of this application).  How can I get that behavior back?  
The Tab now closes the open cell and that's it.


Thanks for any help,

Best,

Beat Cornaz

___
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: convert oddity - solved!

2009-09-20 Thread Jim Bufalini
Hi Richard,

> Found the culprit:
> 
> When I had first set up that server I was just using the most current
> engine I had available to me, which was 2.9-dp5.  I updated the CGI
> engine there to v3.5 and now the problem is resolved, everything
> converts as expected.
> 
> Lesson learned:  if you find unexpected behavior, make sure you're
> using
> a release version and not a developer preview version. ;)

I'm glad you figured that out because I was going to suggest if you had
remembered time-zone differences, when I got to the last line of your post,
which said you were in the same time-zone, which then left me without a clue
of what to even suggest to look at. ;-)

Aloha from Hawaii,

Jim Bufalini

___
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: How to use socket commands and function in a .irev script

2009-09-20 Thread Jim Bufalini
Jérôme Rosat wrote:

> I believed naively that a script .irev behaved like a stack and
> "persist" in memory. I conclude that a .irev with an on-rev web
> account does nothing more than a "ordinary" hosting account  with
> Revolution CGIs.

This is 100% correct and should always be kept in mind. So if you POST to an
irev script, it is identical to posting to a rev CGI or any other CGI, for
that matter. The irev script only persists in the server memory for as long
as it runs and then it is gone, along with all of its vars, settings, etc.
The main advantages of using irev on On-Rev instead of rev CGI is you don't
have to set anything up to use irev like you have to do with rev CGI and you
can debug the irev script in real time while it is running on the server.
Other than that, and for the purposes you are using an irev script for
uploading and downloading data, think of the two as identical.

Aloha from Hawaii,

Jim Bufalini



___
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


close a DataGrid

2009-09-20 Thread Beat Cornaz

I want to close an open cell (field) in a datagrid

dispatch "CloseFieldEditor" to grp "DataGrid 1" -- does not work.

This does not work either :
put the long id of the target into tFieldEditor   -- the target  
being that field

 dispatch "CloseFieldEditor" to grp "dataGrid 1"  with tFieldEditor

I don't seem to find how to do it in the manuals and the older  
postings in this group.


Thanks,

Beat Cornaz
___
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


convert oddity - solved!

2009-09-20 Thread Richard Gaskin

Found the culprit:

When I had first set up that server I was just using the most current 
engine I had available to me, which was 2.9-dp5.  I updated the CGI 
engine there to v3.5 and now the problem is resolved, everything 
converts as expected.


Lesson learned:  if you find unexpected behavior, make sure you're using 
a release version and not a developer preview version. ;)


--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: 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


convert oddity

2009-09-20 Thread Richard Gaskin

I have a CGI which stores dates using internet date format.

In one of my CGI routines I use the convert command to reformat the date 
into a more user-friendly form:


convert tTimeStamp to long date and short time

The oddity is that the convert command running on the server shows the 
time portion as 8 hours ahead of the value in the original timestamp.


I've also used seconds instead of the internet date, with the same result.

I've verified that the CGI is storing the correct timestamp, and when I 
run the same convert on my local machine it always converts correctly.


Is there something odd about using the convert command in a CGI that I 
don't know about?


FWIW, I'm not using the useSystemDate, and since the server is in my 
time zone that shouldn't affect it anyway.


What am I missing?

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: 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: Full screen?

2009-09-20 Thread Edward D Lavieri Jr
When I want to simulate this, I use the "set backDrop to "  
command.



On Sep 20, 2009, at 2:30 PM, Arthur Rann wrote:


Hi,
How do I make my RR stack run full screen? I don't want to stretch  
things to
meet the screen, I want to enter a 'full screen mode' like most  
video games
do, where it temporarily sets the user's monitor resolution to  
1024x768 or

something like that.

Thank you !
-Art
___
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: Full screen?

2009-09-20 Thread Richmond Mathewson

Arthur Rann wrote:

Hi,
How do I make my RR stack run full screen? I don't want to stretch things to
meet the screen, I want to enter a 'full screen mode' like most video games
do, where it temporarily sets the user's monitor resolution to 1024x768 or
something like that.

Thank you !
-Art
___
  

You cannot use Runtime Revolution to muck about with people's
monitor settings.
___
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


Full screen?

2009-09-20 Thread Arthur Rann
Hi,
How do I make my RR stack run full screen? I don't want to stretch things to
meet the screen, I want to enter a 'full screen mode' like most video games
do, where it temporarily sets the user's monitor resolution to 1024x768 or
something like that.

Thank you !
-Art
___
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: How to use socket commands and function in a .irev script

2009-09-20 Thread Jérôme Rosat


Le 20 sept. 2009 à 17:21, Richard Gaskin a écrit :

I started by using the command “post” but I encountered problems  
to  recover the entirety of the data.


Did you use a FileUpload object for that?


No. I'm going to try.

Most web hosts provide dropbox CGIs, and at their heart they're just  
a FileUpload object in a form using POST.  Given how commonly such  
dropbox CGIs work well, I would guess that any limitations a server  
might put on POST for some form elements are allowed for the  
FileUpload object.






Thanks for the link.


--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: 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: Snapshot problems

2009-09-20 Thread Richard Gaskin

Graham Samuel wrote:

> However Richard your other point:
>
>> The rect option can be useful at times, but since v2.7 we've had a
>> much easier and more robust method of exporting images of objects
>> by specifying the object itself rather than a rect:
>>
>>   import snapshot from img "MyImage"
>>
>> The object needn't be an image; it can be anything other than a stack
>> (referencing the card will work for those), even groups.
>>
>> The big difference is how the image is generated:
>>
>> Using the rect option  cips a portion of the display buffer, so if
>> your image is out of bounds there won't be anything to get.
>>
>> But using an object reference causes the engine to render the object
>> into a private buffer for you, much like it would do when rendering
>> the image on a card, and then hands that buffer back to you in the
>> resulting image.
...
> Is not so easy to follow if you're trying to build up a composite
> image: say for the sake of argument one has a picture (an image)
> occupying some part of a card, and one imposes on top of it another
> image, with the intention of snapshotting the combined image so as to
> create a new picture that can be exported: it might be a jpg of a
> membership card with the member's picture imposed on it, or something
> like that. Then if I import a snapshot of my background image (the
> card design), won't  my foreground image (the member's picture) be
> ignored? That's how I read the docs - so what I did in the end was to
> use a rect based on the background image, something like:
>
> import snapshot from rect (the rect of of img "MembershipCard")
>
> This worked, but it appeared to me that I had to have a window (card,
> stack) as big as the whole background image if nothing is to be
> clipped, which was inconvenient.

If you can put the objects you want into a group, this needn't affect 
anything in your user experience and requires only small changes to your 
script, but would let you use the robust one-liner to get the snapshot 
of the group image even if outside of the clipping region of the window:


 import snapshot from grp "MyCompositeThang"

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: 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: Quicky: what's the name of the property to find out if a stack is protected?

2009-09-20 Thread Richard Gaskin

Sarah Reichelt wrote:

On Sun, Sep 20, 2009 at 8:44 PM, David Bovill wrote:

Can't find protected in the dictionary :)


How about:

   if the password of this stack is not empty then
  -- stack is protected
   end if



If the intended use is in the IDE, it may be helpful to distinguish 
which of the stack that have a password set are currently unlocked. If 
David needs that he can use:


 if the password of stack tStack <> the passKey of stack tStack then 

password = the encrypted string stored in the stack as the flag to 
determine if it will encrypt its scripts and properties when it writes 
the stackfile to disk


passkey  = what the developer enters in development to be able to edit 
scripts, active only so long as the stack is in memory



--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: 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: [teaser] Mac OS X external

2009-09-20 Thread Richard Gaskin

Shao Sean wrote:

Working on an external for helping Mac applications in Rev look and  
feel more like Mac OS X applications. Current features include:


setWindowModified - toggles the "dirty" document flag on and off
isWindowModified() - returns the state of the "dirty" document flag  
(boolean)

setWindowProxy - adds a proxy icon to the title bar of the window

Screen capture of a modified title bar:
http://revdevelop.com/images/ssMacWindows.png


Most excellent!  This will serve very well until/unless RunRev gets 
around to that sort of fit-and-finish in the enfgine.  Good job.


Where/when/how do we get it?

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: 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: How to use socket commands and function in a .irev script

2009-09-20 Thread Jérôme Rosat


Le 20 sept. 2009 à 15:55, Jim Ault a écrit :


Programs and scripts running on a web server are running under  
Apache, which has environment variables set when it loads.  I don't  
know of a way that a process running in Apache can open and close  
sockets between processes.  Opening and using sockets to the network  
is done all the time.


Jim Bufalini correctly mentions the POST command as a way of using  
port 80, a default for Apache.
I think you would have to modify the httpd.conf file and tell Apache  
to listen on those ports.
One catch to this is that any program or script that is opened in  
Apache would be working with that port.


I am not certain that it is possible to modify this file in an one-rev  
account.




One serious difficulty with this is that Apache will launch a  
script, run it, then clear that memory.  The next request starts a  
new instance of the script.  This is how multiple users can access  
the same 'web page' and see it as their own session.  The process in  
Apache dies after the page is sent to the browser, thus there is no  
running program in Apache to receive the packets sent.


I believed naively that a script .irev behaved like a stack and  
"persist" in memory. I conclude that a .irev with an on-rev web  
account does nothing more than a "ordinary" hosting account  with  
Revolution CGIs.




Basically, everything on a web server is accessed by telling Apache  
what you want and how you want it.


I would like to learn more about On-Rev surprising features and  
limitations so feel free to jump in if my comments are not telling  
the whole story.


Jim Ault
Las Vegas



___
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: I need to blink and carry on !

2009-09-20 Thread Jim Ault



On Sep 20, 2009, at 10:33 AM, stephen barncard wrote:


send in time
get Dar Scott's stack that demonstrates Message Mechanics

http://pages.swcp.com/dsc/revstacks.html

-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/9/20 Francis Nugent Dixon 


Hi from Paris,

Way back in the good old days, on a 3270
monitor, we could blink any line. Very useful !

I want to blink an error message, to bring
it to the attention of the user, but I don't
want to stop the execution of the current
script.

How would I go about this ?

---
In Rev, many thing run faster if the
screen lock is true and the
lock messages is true

Try
lock messages -- unless you need this
lock screen
repeat many steps
add 1 to processCount
if the processCount > 50 then
unlock screen --allow an update
set the hilite of something to false
lock screen
set the hilite of something to true --for next time
put 0 into processCount
end if
end repeat

---
Also look at a second compiled app that doest the blinking blinking.
It will run as a separate process in RAM and cpu thread


Jim Ault
Las Vegas



___
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: [teaser] Mac OS X external

2009-09-20 Thread Bill Vlahos

Shao,

Fantastic.

Bill Vlahos

On Sep 20, 2009, at 8:43 AM, Shao Sean wrote:

Working on an external for helping Mac applications in Rev look and  
feel more like Mac OS X applications. Current features include:


setWindowModified - toggles the "dirty" document flag on and off
isWindowModified() - returns the state of the "dirty" document flag  
(boolean)

setWindowProxy - adds a proxy icon to the title bar of the window

Screen capture of a modified title bar:
http://revdevelop.com/images/ssMacWindows.png


--
Shao Sean
http://www.RevDevelop.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


[ANN] Major update for tRev now available

2009-09-20 Thread Jerry Daniels

tRev users,

The features you watched on the Feature Friday video have now been  
released.


Three new features:

- Auto-complete within Raptor Handlers (def., special tRev block  
comments)!
- Auto-complete custom properties in any handler (includes Raptor  
handlers)!

- Select Structure lets you find the beginning & end of any structure.

But wait, there's more!

http://reveditor.com/feature-friday-sept-18-select-structures

Read all about the extra features, enhancements and fixes at the above  
link.


Best,

Jerry Daniels
Watch tRev - The Movie
http://reveditor.com/trev-the-movie

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

2009-09-20 Thread Graham Samuel
Thanks to all who replied. I think my immediate problem was trying to  
get stuff from a rectangle that extended beyond the actual rendered  
area, as Richard mentions: this causes an 'Execution Error' with no  
further detail, so it's hard to know what has gone wrong - but finger  
trouble, essentially.


However Richard your other point:

The rect option can be useful at times, but since v2.7 we've had a  
much

easier and more robust method of exporting images of objects by
specifying the object itself rather than a rect:

  import snapshot from img "MyImage"

The object needn't be an image; it can be anything other than a stack
(referencing the card will work for those), even groups.

The big difference is how the image is generated:

Using the rect option  cips a portion of the display buffer, so if  
your

image is out of bounds there won't be anything to get.

But using an object reference causes the engine to render the object
into a private buffer for you, much like it would do when rendering  
the
image on a card, and then hands that buffer back to you in the  
resulting

image.

In my experience using object references is reliable under a much  
wider
range of circumstances than using rects, even with objects on cards  
that

aren't open.

This extension to the snapshot syntax was a by-product of the massive
rendering overhaul Mark Waddingham did for v2.7, and one that's done
wonders here for making screenshots very easily.

Is not so easy to follow if you're trying to build up a composite  
image: say for the sake of argument one has a picture (an image)  
occupying some part of a card, and one imposes on top of it another  
image, with the intention of snapshotting the combined image so as to  
create a new picture that can be exported: it might be a jpg of a  
membership card with the member's picture imposed on it, or something  
like that. Then if I import a snapshot of my background image (the  
card design), won't  my foreground image (the member's picture) be  
ignored? That's how I read the docs - so what I did in the end was to  
use a rect based on the background image, something like:


import snapshot from rect (the rect of of img "MembershipCard")

This worked, but it appeared to me that I had to have a window (card,  
stack) as big as the whole background image if nothing is to be  
clipped, which was inconvenient.


Anyway I have cracked it, but I don't think the docs tell you all the  
ins and outs - and IMHO there aren't enough examples.


Thanks again

Graham

___
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: [teaser] Mac OS X external

2009-09-20 Thread Richmond Mathewson

Shao Sean wrote:
Working on an external for helping Mac applications in Rev look and 
feel more like Mac OS X applications. Current features include:


setWindowModified - toggles the "dirty" document flag on and off
isWindowModified() - returns the state of the "dirty" document flag 
(boolean)

setWindowProxy - adds a proxy icon to the title bar of the window

Screen capture of a modified title bar:
http://revdevelop.com/images/ssMacWindows.png



My God; I thought I was past being teased by dirty documents.

BUT:

Tell me more!
___
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: I need to blink and carry on !

2009-09-20 Thread stephen barncard
send in time
get Dar Scott's stack that demonstrates Message Mechanics

http://pages.swcp.com/dsc/revstacks.html

-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/9/20 Francis Nugent Dixon 

> Hi from Paris,
>
> Way back in the good old days, on a 3270
> monitor, we could blink any line. Very useful !
>
> I want to blink an error message, to bring
> it to the attention of the user, but I don't
> want to stop the execution of the current
> script.
>
> How would I go about this ?
>
> -Francis
>
>
> ___
> 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: Quicky: what's the name of the property to find out if a stack is protected?

2009-09-20 Thread David Bovill
Thanks :)

2009/9/20 Sarah Reichelt 

> On Sun, Sep 20, 2009 at 8:44 PM, David Bovill 
> wrote:
> > Can't find protected in the dictionary :)
>
> How about:
>
>   if the password of this stack is not empty then
>  -- stack is protected
>   end if
>
>
> Cheers,
> Sarah
> ___
> 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: [teaser] Mac OS X external

2009-09-20 Thread Jérôme Rosat


Le 20 sept. 2009 à 18:57, Shao Sean a écrit :


For example, tool bars, gradient buttons,

am looking into this, but my skillz are not mad (even though i am ;-)


Don't be so modest :-)


button and field with the default Mac OS X font, size and position
Set your stack to have the font Lucinda Grande, size 13.. Set your  
buttons to have a height of 22 pixels.. There are probably other  
tweaks to be made but that is a start in the right direction..


This is what I do but after that you must take account of the platform  
in your code to change font, size, etc. and for an application  
(Revolution) which wants to be easy and cross platform, that beats  
me ! :-)



___
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


I need to blink and carry on !

2009-09-20 Thread Francis Nugent Dixon

Hi from Paris,

Way back in the good old days, on a 3270
monitor, we could blink any line. Very useful !

I want to blink an error message, to bring
it to the attention of the user, but I don't
want to stop the execution of the current
script.

How would I go about this ?

-Francis


___
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: [teaser] Mac OS X external

2009-09-20 Thread Shao Sean

For example, tool bars, gradient buttons,

am looking into this, but my skillz are not mad (even though i am ;-)


button and field with the default Mac OS X font, size and position
Set your stack to have the font Lucinda Grande, size 13.. Set your  
buttons to have a height of 22 pixels.. There are probably other  
tweaks to be made but that is a start in the right direction..

___
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: [teaser] Mac OS X external

2009-09-20 Thread Jérôme Rosat

Great,

It is the right track. There are still others improvement to bring so  
that Rev applications look and feel more like Mac OS X applications.  
For example, tool bars, gradient buttons, button and field with the  
default Mac OS X font, size and position, etc. In a word, this would  
be great if Rev applications respected the Apple Human Interface  
Guidelines.



Le 20 sept. 2009 à 17:43, Shao Sean a écrit :

Working on an external for helping Mac applications in Rev look and  
feel more like Mac OS X applications. Current features include:


setWindowModified - toggles the "dirty" document flag on and off
isWindowModified() - returns the state of the "dirty" document flag  
(boolean)

setWindowProxy - adds a proxy icon to the title bar of the window

Screen capture of a modified title bar:
http://revdevelop.com/images/ssMacWindows.png


--
Shao Sean
http://www.RevDevelop.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: [teaser] Mac OS X external

2009-09-20 Thread Paul Foraker
I keep hoping for

  set the style of this stack to cocoa

-- Paul


On Sun, Sep 20, 2009 at 8:43 AM, Shao Sean  wrote:

> Working on an external for helping Mac applications in Rev look and feel
> more like Mac OS X applications. Current features include:
>
> setWindowModified - toggles the "dirty" document flag on and off
> isWindowModified() - returns the state of the "dirty" document flag
> (boolean)
> setWindowProxy - adds a proxy icon to the title bar of the window
>
> Screen capture of a modified title bar:
> http://revdevelop.com/images/ssMacWindows.png
>
>
___
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: [teaser] Mac OS X external

2009-09-20 Thread Klaus on-rev

Hi Sean,

Working on an external for helping Mac applications in Rev look and  
feel more like Mac OS X applications. Current features include:


setWindowModified - toggles the "dirty" document flag on and off
isWindowModified() - returns the state of the "dirty" document flag  
(boolean)

setWindowProxy - adds a proxy icon to the title bar of the window

Screen capture of a modified title bar:
http://revdevelop.com/images/ssMacWindows.png


Cool! Consider me teased :-)


--
Shao Sean
http://www.RevDevelop.com/


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


[teaser] Mac OS X external

2009-09-20 Thread Shao Sean
Working on an external for helping Mac applications in Rev look and  
feel more like Mac OS X applications. Current features include:


setWindowModified - toggles the "dirty" document flag on and off
isWindowModified() - returns the state of the "dirty" document flag  
(boolean)

setWindowProxy - adds a proxy icon to the title bar of the window

Screen capture of a modified title bar:
http://revdevelop.com/images/ssMacWindows.png


--
Shao Sean
http://www.RevDevelop.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: How to use socket commands and function in a .irev script

2009-09-20 Thread Richard Gaskin

Jérôme Rosat wrote:

I started by using the command “post” but I encountered problems to  
recover the entirety of the data.


Did you use a FileUpload object for that?

Most web hosts provide dropbox CGIs, and at their heart they're just a 
FileUpload object in a form using POST.  Given how commonly such dropbox 
CGIs work well, I would guess that any limitations a server might put on 
POST for some form elements are allowed for the FileUpload object.




--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: 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: How to use socket commands and function in a .irev script

2009-09-20 Thread Jérôme Rosat


Le 20 sept. 2009 à 15:31, Jim Bufalini a écrit :


Jérôme Rosat wrote:


Which solution is implemented by developer  to transfer a significant
amount of data (approximately 100 ' 000 records) between the client
app and a server app on on-rev?


Start from the client side. Use can use *post* (look this up in the
Dictionary and also the "See Also" for post).


I started by using the command “post” but I encountered problems to  
recover the entirety of the data. So I look in the "See Also"  
paragraph to find a other way to solve my problem and I imagined “to  
push” the data, it's for that I try to use socket commands and  
functions.



With this you could upload
data to an irev script on the server or request the irev script to  
download

data to the desktop app. Also, look up all the libURL... commands for
transferring data to and from a server and the *load* command and it's
callback for monitoring progress.


I'm going to do that. Thanks a lot.



Aloha from Hawaii,

Jim Bufalini



___
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: How to use socket commands and function in a .irev script

2009-09-20 Thread Jim Ault

On Sep 19, 2009, at 5:16 PM, Sarah Reichelt wrote:


On Sun, Sep 20, 2009 at 9:20 AM, Jérôme Rosat  wrote:

Hi all,

Is it possible to use socket commands and functions in a .irev  
script on a

on-rev serveur ?



I just tested it and you can see the script & the result at
.
Trying to open a socket doesn't give an error but it doesn't seem to
do anything.
Trying with a callback doesn't trigger the callback either, it's like
the open socket command just disappears.
The docs list "open socket" as being available for desktop, server &
web, but the functionality isn't there. Maybe this is temporary.


Programs and scripts running on a web server are running under Apache,  
which has environment variables set when it loads.  I don't know of a  
way that a process running in Apache can open and close sockets  
between processes.  Opening and using sockets to the network is done  
all the time.


Jim Bufalini correctly mentions the POST command as a way of using  
port 80, a default for Apache.
I think you would have to modify the httpd.conf file and tell Apache  
to listen on those ports.
One catch to this is that any program or script that is opened in  
Apache would be working with that port.


One serious difficulty with this is that Apache will launch a script,  
run it, then clear that memory.  The next request starts a new  
instance of the script.  This is how multiple users can access the  
same 'web page' and see it as their own session.  The process in  
Apache dies after the page is sent to the browser, thus there is no  
running program in Apache to receive the packets sent.


Basically, everything on a web server is accessed by telling Apache  
what you want and how you want it.


I would like to learn more about On-Rev surprising features and  
limitations so feel free to jump in if my comments are not telling the  
whole story.


Jim Ault
Las Vegas



___
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: How to use socket commands and function in a .irev script

2009-09-20 Thread Jim Bufalini
Jérôme Rosat wrote:

> Which solution is implemented by developer  to transfer a significant
> amount of data (approximately 100 ' 000 records) between the client
> app and a server app on on-rev?

Start from the client side. Use can use *post* (look this up in the
Dictionary and also the "See Also" for post). With this you could upload
data to an irev script on the server or request the irev script to download
data to the desktop app. Also, look up all the libURL... commands for
transferring data to and from a server and the *load* command and it's
callback for monitoring progress.

Aloha from Hawaii,

Jim Bufalini



___
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: How to use socket commands and function in a .irev script

2009-09-20 Thread Jérôme Rosat

Sarah,

Thank you for your confirmation. I tried myself and I found the same  
results.


I believed it was me and my script.

But I remain interrogative.

Which solution is implemented by developer  to transfer a significant  
amount of data (approximately 100 ' 000 records) between the client  
app and a server app on on-rev?


Jérôme

Le 20 sept. 2009 à 02:16, Sarah Reichelt a écrit :


On Sun, Sep 20, 2009 at 9:20 AM, Jérôme Rosat  wrote:

Hi all,

Is it possible to use socket commands and functions in a .irev  
script on a

on-rev serveur ?



I just tested it and you can see the script & the result at
.
Trying to open a socket doesn't give an error but it doesn't seem to
do anything.
Trying with a callback doesn't trigger the callback either, it's like
the open socket command just disappears.
The docs list "open socket" as being available for desktop, server &
web, but the functionality isn't there. Maybe this is temporary.

Cheers,
Sarah
___
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: Want to Try Franklin 3D - 3D Engine for Revolution?

2009-09-20 Thread splash21
Lynn, the demo stack is very slick! 



Lynn Fredricks wrote:

Hello all,

Anyone interested in a solid 3D game engine for Revolution? :-) This is
getting good enough to show, so we thought we'd show it.

Thanks to everyone who downloaded the initial beta. Id like to let everyone
know that they can download the beta stack/component, and we've set up an
install of Mantis to accept bug/issue reports. This is the same material,
and its Windows only at the moment. But don't fret, we have a Mac OS X
version in the works. Of course on the Mac, you have OpenGL (on Windows,
OpenGL or DirectX).

If you already did some testing, we'd appreciate it if you would fill in the
mantis reports - the download is version 1.0b2. It is very important that
you update your video drivers and also submit your video card info, OS,
processor info and the like, esp when it comes to performance.

This is a stack with about 12 demos in it. Most are working just fine on
Windows XP with a reasonably modern Direct X 9 compatible video card, as
well as OpenGL. The Irrlicht file format loader seems to be still giving us
some trouble but its being worked on. These are all based on the Irrlicht
demos. The demos do a bit more than their names imply. The Hello World
example shows things like loading an animated mesh, for example. The Mesh
loader example gives you some idea how call backs work.

Download: http://www.franklin3d.com/download/franklin3d_win.zip

Report Issues: http://www.franklin3d.com/bt

What is Franklin 3D?
---
Franklin 3D ports the stable, muscular Irrlicht engine so that its
accessible within Runtime Revolution. You will be able to make OpenGL or
DirectX powered games.

Where to Learn More
---
The website is just coming together, here: http://franklin3d.com/. It will
be more polished over the next few days.

Where Can I Buy it?
---
You can pre-order it from the franklin3d.com online store. Anyone who
pre-orders gets a license right away, plus 12 months of updates (or more,
"founders" we may fudge on and give more update time). All our initial sales
go towards paying developers to polish up and complete the Mac OS X version.
All pre-orders folks get access to the private beta list too.

I can answer some questions on the list - feel free.

Best regards,

Lynn Fredricks
Mirye Software Publishing
http://www.mirye.com

Mirye Community NING
http://miryesoftware.ning.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: Quicky: what's the name of the property to find out if a stack is protected?

2009-09-20 Thread Sarah Reichelt
On Sun, Sep 20, 2009 at 8:44 PM, David Bovill  wrote:
> Can't find protected in the dictionary :)

How about:

   if the password of this stack is not empty then
  -- stack is protected
   end if


Cheers,
Sarah
___
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


Quicky: what's the name of the property to find out if a stack is protected?

2009-09-20 Thread David Bovill
Can't find protected in the dictionary :)
___
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