Re: Splash Screen Launcher

2007-10-09 Thread viktoras didziulis

Hi Mark,

1) create 2 stacks: one is going to be your launcher splashscreen app, 
the other - stack to be run via the splashscreen;
2) in stack inspector for the launcher stack set Stack Files pointing 
to that other stack;

3) in the launcher stack's script editor write:
on openStack
go stack thatOtherStack
set the visible of me to false
end openStack

4) compile the launcher stack;
5) create a button on that other stack;
6) set the script of that button to:
on mouseUp
save this stack
end mouseUp
7) set the script of that other stack to:
on closeStack
quit #to make sure closing the stack closes entire application and not 
just this stack

end closeStack

That's it. Should work now.

Viktoras

Mark Greenberg wrote:
I need to make a tiny standalone that will launch a stack file so that 
the user, who doesn't have Rev, can save changes in the stack.  I've 
done this years ago, but, for the life of me, can't figure out how I 
did it.  Probably all I need is the script command that will start up 
the stack file.


Thanks in advance,

Mark Greenberg
___
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: Splash Screen Launcher

2007-10-09 Thread viktoras didziulis

correction for the launcher's handler:
on openStack
hide me in 1 sec
go stack thatOtherStack
end openStack


Hi Mark,

1) create 2 stacks: one is going to be your launcher splashscreen app, 
the other - stack to be run via the splashscreen;
2) in stack inspector for the launcher stack set Stack Files 
pointing to that other stack;

3) in the launcher stack's script editor write:
on openStack
go stack thatOtherStack
set the visible of me to false
end openStack


___
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: libcgi go to url

2007-10-09 Thread Andre Garzia
Hello Chris,

sorry for the late reply, I think I understand what you're trying to
accomplish and will write some words on the topic, if I understood you
wrong, then, sorry, english is not my strongest quality.

Let us divide your problem in two topics: templating and answering

Templating is the act of having a placeholder file or stack that is used by
the cgi to answer to a request, so you put your presentation layer into one
of those templates then with some calls, you glue your data into them. We're
specifically talking about building HTML like files. So you can have a
default HTML template and just glue your data in it.

When you run a Revolution CGI, the CGI has a default folder (global
property the defaultFolder), all it's file operations are relative to such
location, you can change it by setting it to a new folder path such as:

set the defaultfolder to /mySweetTemplates/

You can set it to absolute paths (absolute paths are relative too but they
are relative to the root folder of your file system) or relative path. If
you set the default folder to a relative path, it will be set using the
previous known location and then override this location. This in plain
english means that if the default folder is your cgi folder and you have a
template folder inside it, then executing the following line:

set the defaultfolder to templates/

will set all the file operations to be relative to such child folder. To
read or write files, the best option is to use URL keywork commands such as
you're already doing. Now to glue data into your template there are many
ways, I'll just explore two in here.

First is to use the replace command. You fill your template html file with
place holders such as ###NAME###, each of those placeholders will be
replaced with the actual data by using multiple replace calls. Using your
previous example, let us replace some values, consider that your HTML file
has something like ###NAME### and ###COLOR### in it, and it is answering the
name and the  favorite color of the user. You can then call something like:

replace ###NAME### with tName in tData

replace ###COLOR### with tFavoriteColor in tData

So with each replace call you glue one piece of your data back in the tData
template. This is a very straight forward way of doing templates in
Revolution. Another popular way that requires less coding and is more
flexible is to use the merge command. This command will pick a variable and
inspect it looking for pre-defines placeholders, it will then replace these
place holders with the result of their values. Revolution uses double
brackets as place holders for the merge call, so you just fill your template
with double brackets and your variables. Using our previous example, imagine
that your template looks like

html

headtitleMy Fav Color/title/head

body

Hello, [[tName]]

Your favorite color is [[tFavoriteColor]]

/body

/html

then if you execute the call:

put the merge of tData into tAssembledData

The resulting variable called tAssembledData will contain the content of the
template with those double bracket place holders replaced with the actual
variable content. This is very flexible because you can change your template
to display different data without changing your program code.

OBS: the merge call does more than variable glueing. This is just a quick
note...

So now you should have some mental image of how to glue data into your
template and end up with a variable that contains the answer you want to
send back to the browser, let us talk about answering to the browser now.

In your example you try to use RevGoURL. This command is to be used by
desktop application to open the browser directed to some web page, this is
not to be used by CGI applications. It's a purelly desktop command that
opens another program and launches a web page.

Most web servers are running under some kind of unix or follow some
conventions set by the unix familly of operating systems. To explain how the
cgi answers back to the browser let me talk a little about the standard i/o
common to C programs. There are three important standard i/o, they are
STDIN, STDOUT and STDERR. They mean standard input, standard output and
standard error output.

You can think of them as files, three different files used for different
purposes. STDIN always mean the standard input interface, it may be the
keyboard or a piped file. When you use a CGI, the STDIN is written by the
web server to contain the web request, so when you read from STDIN using a
CGI you should read the raw web request data.



STDOUT always mean the standard output, in some cases is the screen, in
others it may be a file. When you talk about CGI, the STDOUT will be grabed
by the web server and sent back to the browser. So your CGI will write it's
output to STDOUT and this will be piped back to the browser.

STDERR points to the standard error output, like STDOUT it differs for each
context, in the cases 

Re: Deleting grouped control deletes group

2007-10-09 Thread Mark Schonewille

Richard,

If you look at the Rev IDE code, you will probably see the answer.  
RunRev has added send commands in several places, which would  
probably be removed if RunRev were to do a massive rewrite of the  
IDE. I suspect one of these send commands is the culprit, but I  
haven't taken the time to prove it.


Best regards,

Mark Schonewille

--

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

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 9-okt-2007, om 2:00 heeft Richard Gaskin het volgende geschreven:



Why does Rev do that?


Know the engine.
Trust the engine.
Use the engine.

--
 Richard Gaskin
 Managing Editor, revJournal



___
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: libcgi go to url

2007-10-09 Thread chris livermore

outstanding reply, thanks for the continued support Andre

chris

On 08/10/2007, at 5:59 AM, Andre Garzia wrote:


Hello Chris,

sorry for the late reply, I think I understand what you're trying to
accomplish and will write some words on the topic, if I understood you
wrong, then, sorry, english is not my strongest quality.

Let us divide your problem in two topics: templating and answering

Templating is the act of having a placeholder file or stack that is  
used by
the cgi to answer to a request, so you put your presentation layer  
into one
of those templates then with some calls, you glue your data into  
them. We're

specifically talking about building HTML like files. So you can have a
default HTML template and just glue your data in it.

When you run a Revolution CGI, the CGI has a default folder (global
property the defaultFolder), all it's file operations are relative  
to such
location, you can change it by setting it to a new folder path such  
as:


set the defaultfolder to /mySweetTemplates/

You can set it to absolute paths (absolute paths are relative too  
but they
are relative to the root folder of your file system) or relative  
path. If
you set the default folder to a relative path, it will be set using  
the

previous known location and then override this location. This in plain
english means that if the default folder is your cgi folder and you  
have a

template folder inside it, then executing the following line:

set the defaultfolder to templates/

will set all the file operations to be relative to such child  
folder. To
read or write files, the best option is to use URL keywork commands  
such as
you're already doing. Now to glue data into your template there are  
many

ways, I'll just explore two in here.

First is to use the replace command. You fill your template html  
file with

place holders such as ###NAME###, each of those placeholders will be
replaced with the actual data by using multiple replace calls.  
Using your
previous example, let us replace some values, consider that your  
HTML file
has something like ###NAME### and ###COLOR### in it, and it is  
answering the
name and the  favorite color of the user. You can then call  
something like:


replace ###NAME### with tName in tData

replace ###COLOR### with tFavoriteColor in tData

So with each replace call you glue one piece of your data back in  
the tData

template. This is a very straight forward way of doing templates in
Revolution. Another popular way that requires less coding and is more
flexible is to use the merge command. This command will pick a  
variable and
inspect it looking for pre-defines placeholders, it will then  
replace these

place holders with the result of their values. Revolution uses double
brackets as place holders for the merge call, so you just fill your  
template
with double brackets and your variables. Using our previous  
example, imagine

that your template looks like

html

headtitleMy Fav Color/title/head

body

Hello, [[tName]]

Your favorite color is [[tFavoriteColor]]

/body

/html

then if you execute the call:

put the merge of tData into tAssembledData

The resulting variable called tAssembledData will contain the  
content of the
template with those double bracket place holders replaced with the  
actual
variable content. This is very flexible because you can change your  
template

to display different data without changing your program code.

OBS: the merge call does more than variable glueing. This is just a  
quick

note...

So now you should have some mental image of how to glue data into your
template and end up with a variable that contains the answer you  
want to
send back to the browser, let us talk about answering to the  
browser now.


In your example you try to use RevGoURL. This command is to be used by
desktop application to open the browser directed to some web page,  
this is
not to be used by CGI applications. It's a purelly desktop command  
that

opens another program and launches a web page.

Most web servers are running under some kind of unix or follow some
conventions set by the unix familly of operating systems. To  
explain how the
cgi answers back to the browser let me talk a little about the  
standard i/o

common to C programs. There are three important standard i/o, they are
STDIN, STDOUT and STDERR. They mean standard input, standard  
output and

standard error output.

You can think of them as files, three different files used for  
different
purposes. STDIN always mean the standard input interface, it may be  
the
keyboard or a piped file. When you use a CGI, the STDIN is written  
by the
web server to contain the web request, so when you read from STDIN  
using a

CGI you should read the raw web request data.



STDOUT always mean the standard output, in some cases is the  
screen, in
others it may be a file. When you talk about CGI, the STDOUT will  
be grabed
by the web server and 

Re: Revolution = YouTube?

2007-10-09 Thread Ian Wood


On 8 Oct 2007, at 22:26, Erik Hansen wrote:


YouTube exposure would complement a browser, right?


Make sure you read YouTube's terms and conditions VERY carefully  
before you submit any videos - by submitting work where you own the  
copyright you are giving YouTube free distribution rights *forever*.  
They can do *anything* with your video, including editing it, selling  
it etc. without having to pay you a penny.


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


How know if a stack is maximized ?

2007-10-09 Thread GIRARD Damien

Hi all,

I am searching, but I don't find anything now.
Does there is a function in Runrev that permit to know if a stack is 
maximized or not ?


Or do I have to do a trick like ever ?
(if the rect of the stack look like to be maximized, it is maximized).

Thanks,

Damien
___
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: Revolution = YouTube?

2007-10-09 Thread Andres Martinez

Hello

Erik wrote this yesterday and I want to know if it is possible to  
export a Rev animation as a video (any format) via scripts, not with  
external capturing software.


Regards,
Andres Martinez
www.baKno.com


On Oct 8, 2007, at 5:26 PM, Erik Hansen wrote:

What is the latest on capturing your Revolution animation as a  
video file?
It used to be make a QuickTime movie, but your Windows viewer  
needs to

install QT.


___
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: Revolution = YouTube?

2007-10-09 Thread Ian Wood


On 9 Oct 2007, at 14:19, Andres Martinez wrote:

Erik wrote this yesterday and I want to know if it is possible to  
export a Rev animation as a video (any format) via scripts, not  
with external capturing software.


As always, 'Trevor's wonderful EnhancedQT External'. :-)

http://www.bluemangolearning.com/developer/revolution/enhancedqt.php

You would have to export each frame as an image file, then load them  
up using the external and turn them into a movie file.


Ian
___
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: Revolution = YouTube?

2007-10-09 Thread Klaus Major

Hi Ian,


On 9 Oct 2007, at 14:19, Andres Martinez wrote:

Erik wrote this yesterday and I want to know if it is possible to  
export a Rev animation as a video (any format) via scripts, not  
with external capturing software.

As always, 'Trevor's wonderful EnhancedQT External'. :-)


EXACTLY! :-D


http://www.bluemangolearning.com/developer/revolution/enhancedqt.php
You would have to export each frame as an image file, then load  
them up using the external and turn them into a movie file.


Ian


Best

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de


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


Re: How know if a stack is maximized ?

2007-10-09 Thread Eric Chatonet

Bonjour Damien,

Actually, it's a real problem with stacks the maxWidth or the  
maxHeight of which has been not specified (let to 65536) and Rev  
AFAIK does not provide any function or property to know this.
So just a workaround that consists in setting by yourself the  
maxWidth and the maxHeight according to the windowBoundingRect at  
preOpenstack:


on preOpenStack
  SetMaxDim the long name of this stack --
end preOpenStack

on SetMaxDim pStack
  set the maxWidth of pStack to item 3 of the windowBoundingRect -  
item 1 of the windowBoundingRect - 20
  set the maxHeight of pStack to item 4 of the windowBoundingRect -  
item 2 of the windowBoundingRect - 36

end SetMaxDim

Values above reduce a bit the values returned when the stack is  
maximized by the system then the below function works:


function IsMaximized pStack
  return (the height of pStack = the maxHeight of pStack) and (the  
width of pStack = the maxWidth of pStack)

end IsMaximized

Tested on Mac OSX, XP SP2 and Vista.
Hope this helps...

Le 9 oct. 07 à 15:08, GIRARD Damien a écrit :


Hi all,

I am searching, but I don't find anything now.
Does there is a function in Runrev that permit to know if a stack  
is maximized or not ?


Or do I have to do a trick like ever ?
(if the rect of the stack look like to be maximized, it is maximized).

Thanks,

Damien



Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



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


Re: How know if a stack is maximized ?, Eric Chatonet eric.chatonet at sosma

2007-10-09 Thread Richard Gaskin
Wouldn't a stack be maximized when it's rect equals the current 
windowBoundingRect?


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How know if a stack is maximized ?

2007-10-09 Thread J. Landman Gay

GIRARD Damien wrote:

Hi all,

I am searching, but I don't find anything now.
Does there is a function in Runrev that permit to know if a stack is 
maximized or not ?


If you just want to know whether the stack is not minimized, you can 
check the stack's iconic property. If you want to know whether the stack 
is being shown full-screen, then use one of the methods others have 
posted here (checking the size, windowboundingrect, etc.)


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.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 know if a stack is maximized ?

2007-10-09 Thread Trevor DeVore

On Oct 9, 2007, at 12:11 PM, Richard Gaskin wrote:

Wouldn't a stack be maximized when it's rect equals the current  
windowBoundingRect?


It might be maximized in the sense that the stack is the maximum  
height/width of the windowBoundingRect but it might not be maximized  
in terms of whether or not the user clicked the zoom button on OS X  
or the Maximize button on Windows.


Take this for example -

I open Notepad on Windows. I resize the window with my document just  
how I want it. I close Notepad and the next time I reopen it the  
window is just how I left it. I then click the Maximize button and  
the Notepad window fills the screen. If I quit Notepad and relaunch  
the window does not reopen to fill the entire screen but rather that  
size it was before I clicked the maximize button.


Is there an easy way to reproduce this behavior with Revolution since  
there is no property which reports that a stack is  
'maximized' (though we do have an 'iconic' property)? The user may  
have manually resize the window to fill the screen, in which case you  
should restore the window to that size the next time your app  
launches, or they may have used the maximize button to fill the  
screen in which case you should restore the window to the size it was  
prior to clicking the maximize button.


I filed an enhancement request for this but if I'm missed something  
obvious I would love to know.


http://quality.runrev.com/qacenter/show_bug.cgi?id=3897


--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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 know if a stack is maximized ?

2007-10-09 Thread J. Landman Gay

Trevor DeVore wrote:

On Oct 9, 2007, at 12:11 PM, Richard Gaskin wrote:

Wouldn't a stack be maximized when it's rect equals the current 
windowBoundingRect?


It might be maximized in the sense that the stack is the maximum 
height/width of the windowBoundingRect but it might not be maximized in 
terms of whether or not the user clicked the zoom button on OS X or the 
Maximize button on Windows.


Take this for example -

I open Notepad on Windows. I resize the window with my document just how 
I want it. I close Notepad and the next time I reopen it the window is 
just how I left it. I then click the Maximize button and the Notepad 
window fills the screen. If I quit Notepad and relaunch the window does 
not reopen to fill the entire screen but rather that size it was before 
I clicked the maximize button.


Is there an easy way to reproduce this behavior with Revolution since 
there is no property which reports that a stack is 'maximized' (though 
we do have an 'iconic' property)? The user may have manually resize the 
window to fill the screen, in which case you should restore the window 
to that size the next time your app launches, or they may have used the 
maximize button to fill the screen in which case you should restore the 
window to the size it was prior to clicking the maximize button.


I do this in one of my projects by storing the stack rect every time the 
resizeStack message fires. When the stack is reopened, I just set its 
rect to the stored property.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.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 know if a stack is maximized ?

2007-10-09 Thread Trevor DeVore

On Oct 9, 2007, at 12:30 PM, J. Landman Gay wrote:

I do this in one of my projects by storing the stack rect every  
time the resizeStack message fires. When the stack is reopened, I  
just set its rect to the stored property.


But that means that the stack will reopen to full screen if the user  
clicked the maximize button which is what I am trying to avoid. The  
stack should reopen to the size it was prior to the user clicking on  
the maximize button in the title bar.


--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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 know if a stack is maximized ?

2007-10-09 Thread Derek Bump
Damien,

I've run into the very same problem you are describing.  Here is how I
solved the problem on Windows:

1. Download the Externals Collection from the RunRev web site. (It's
unsupported, but it's free now).  Attach the external file to your stack.

2. Add the following function and command to your stack.

function maxCardRect
  set itemDelimiter to ,
  put screenRect() into maxRect
  put item 2 of ext_menuSize() into item 4 of maxRect
  put queryRegistry(HKEY_CURRENT_USER\Control
Panel\Desktop\WindowMetrics\CaptionHeight) into titleBarSize
  put abs(titleBarSize / 15) + 1 into titleBarSize
  put titleBarSize into item 2 of maxRect
  return maxRect
end maxCardRect

on moveStack
  get
setRegistry(HKEY_CURRENT_USER\Software\Company\Stack\ScreenRect,(the
rect of stack stackName))
  pass moveStack
end moveStack

on resizeStack
  get
setRegistry(HKEY_CURRENT_USER\Software\Company\Stack\ScreenRect,(the
rect of stack stackName))
  pass resizeStack
end resizeStack



3. Add the following code to your loading script. (Ex: preOpenStack,
preOpenCard, etc...)

put queryRegistry(HKEY_CURRENT_USER\Software\Company\Stack\ScreenRect)
into newRect
  if (newRect is not empty) and (- is not in newRect) then
if newRect = maxCardRect() then get ext_maxWindow() else set the
rect of this stack to newRect
  end if


What happens is that the external will find out from the system how
large the Task bar is.  Then the script gathers the size of the titlebar
and window borders.

After that, you do a comparison at the stack loading to see if the rect
of the stack window you saved in the registry is the same size as what a
fullscreen rect would be.

By the way, what you are asking for is an enhancement request on BugZilla.


Derek Bump
Dreamscape Software
http://www.dreamscapesoftware.com


GIRARD Damien wrote:
 Hi all,
 
 I am searching, but I don't find anything now.
 Does there is a function in Runrev that permit to know if a stack is
 maximized or not ?
 
 Or do I have to do a trick like ever ?
 (if the rect of the stack look like to be maximized, it is maximized).
 
 Thanks,
 
 Damien
 ___
 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 know if a stack is maximized ?, Eric Chatonet eric.chatonet at sosma

2007-10-09 Thread Eric Chatonet

Hi Richard,

Le 9 oct. 07 à 18:11, Richard Gaskin a écrit :

Wouldn't a stack be maximized when it's rect equals the current  
windowBoundingRect?


Yes I would have thought so too but, after many experiments, no :-(
I assume that the system takes into account possible window borders +  
some 'cosmetic' margins depending on the system :-)
Actually if you maximize any window in any app with any system, it  
will not fit the screen rect - window bounding rect.
Behavior is different between OSX and Win: when a window is maximized  
on Win it's no longer resizable but you can resize it with Mac OSX  
and even enlarge it!
So I agree: a new property (the maximized of window descriptor)  
would be welcome.


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



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


Re: How know if a stack is maximized ?

2007-10-09 Thread Richard Gaskin

Trevor wrote:

The stack should reopen to the size it was prior to the user
clicking on the maximize button in the title bar.


This seems counterintuitive to me.  If the user explicitly maximized the 
window, why would the window open to any other size?


I couldn't find mention of this exception in the OS X HIG, so I went to 
check the behavior in TextEdit.  Bad idea:  TextEdit doesn't really 
honor any user size settings, at least not in any easily-discernible 
pattern. ;)


Good idea on the request in BZ; I just added some votes to it.

--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How know if a stack is maximized ?

2007-10-09 Thread Trevor DeVore

On Oct 9, 2007, at 12:55 PM, Richard Gaskin wrote:


Trevor wrote:

The stack should reopen to the size it was prior to the user
clicking on the maximize button in the title bar.


This seems counterintuitive to me.  If the user explicitly  
maximized the window, why would the window open to any other size?


True. So Notepad is a bad example. Take Firefox or IE then. If you  
close the application while a window is maximized then the window  
will open back into the maximized state. Clicking the 'Restore Down'  
button then returns the window to it's non-maximized size.


I couldn't find mention of this exception in the OS X HIG, so I  
went to check the behavior in TextEdit.  Bad idea:  TextEdit  
doesn't really honor any user size settings, at least not in any  
easily-discernible pattern. ;)


Behavior on OS X seems more random to me than on Windows. If I recall  
correctly OS X uses a concept of the User window state and the Ideal  
window state. When you click on the + icon in an OS X window the  
window toggles between the size the user has set the window to and  
the ideal size that the program sets. I'm still not clear on how it  
is *supposed* to work though. I just tried OmniOutliner 3 and the  
position of my document windows seem to be remembered but not the size.


In any case, I think we need an additional property in reorder to  
recreate this madness in our own apps.


--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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 know if a stack is maximized ?

2007-10-09 Thread GIRARD Damien

Trevor wrote:


The stack should reopen to the size it was prior to the user
clicking on the maximize button in the title bar. 

Is it counterintuitive to me also, and is it why I must a command that 
can maximize a stack.

The best intuitive method, is that :
- The user set the rect of the window
- He want to maximize it, so it maximize the window.
- He quit the software.
- When the software is re opened, the window must be appear maximized, 
and when he click on the maximize button, the previous rect (not 
maximized) is set.


Runrev cannot do that, so, if is it not fixed for 2.9, I will try a 
tricks. But, this is a CRITICAL problem for a programming language that 
permit to make quickly GUI.


Damien

___
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 know if a stack is maximized ?

2007-10-09 Thread Jim Ault
One method is to make your own title bar set of graphics as buttons (take a
screen shot), set the window decorations to false (don't use the default
system title bar), then when the user clicks to maximize, or chooses to
resize, you are in control of all the operations, even the 'close and quit
X'.

You can even allow user preferences, such as resize-in-place,
center-in-screen, align along left side of monitor, shrink to fit content,
expand to show details, etc.

Hope you find your solution.

Jim Ault
Las Vegas


On 10/9/07 11:12 AM, GIRARD Damien [EMAIL PROTECTED] wrote:

 Trevor wrote:
 
 The stack should reopen to the size it was prior to the user
 clicking on the maximize button in the title bar.
 
 Is it counterintuitive to me also, and is it why I must a command that
 can maximize a stack.
 The best intuitive method, is that :
 - The user set the rect of the window
 - He want to maximize it, so it maximize the window.
 - He quit the software.
 - When the software is re opened, the window must be appear maximized,
 and when he click on the maximize button, the previous rect (not
 maximized) is set.
 
 Runrev cannot do that, so, if is it not fixed for 2.9, I will try a
 tricks. But, this is a CRITICAL problem for a programming language that
 permit to make quickly GUI.


___
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 know if a stack is maximized ?

2007-10-09 Thread Richard Gaskin

GIRARD Damien wrote:
Is it counterintuitive to me also, and is it why I must a command that 
can maximize a stack.

The best intuitive method, is that :
- The user set the rect of the window
- He want to maximize it, so it maximize the window.
- He quit the software.
- When the software is re opened, the window must be appear maximized, 
and when he click on the maximize button, the previous rect (not 
maximized) is set.


Runrev cannot do that, so, if is it not fixed for 2.9, I will try a 
tricks. But, this is a CRITICAL problem for a programming language that 
permit to make quickly GUI.


Why not just save the rect of the stack when it closes, and restore that 
rect in the next session?


What you need to do sounds much simpler than what Trevor's doing, since 
he needs to know state information after the state has changed.  But 
since you want to restore the last state, this would seem simple, no?


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How know if a stack is maximized ?

2007-10-09 Thread Derek Bump
Damien,

While Rev cannot do what you want, the external and scripts that I
posted earlier will solve this problem for you.  Specifically, the
ext_maxWindow() function from the Externals Collection will allow you
to, via script, set the window to it's Maximum Rect (like pressing the
Maximize button).  The window controls will automatically be set
correctly, and your Standalone will behave like every other Windows program.

If you are having problems getting this to work, contact me and I will
send you a pre-made stack so you can see it in action.  I know for a
fact that the code works, because I use it in my program JPEGCompress.


Derek Bump
Dreamscape Software
http://www.dreamscapesoftware.com


GIRARD Damien wrote:
 Runrev cannot do that, so, if is it not fixed for 2.9, I will try a
 tricks. But, this is a CRITICAL problem for a programming language that
 permit to make quickly GUI.

___
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 know if a stack is maximized ?

2007-10-09 Thread Trevor DeVore

On Oct 9, 2007, at 2:55 PM, Richard Gaskin wrote:

Why not just save the rect of the stack when it closes, and restore  
that rect in the next session?


What you need to do sounds much simpler than what Trevor's doing,  
since he needs to know state information after the state has  
changed.  But since you want to restore the last state, this would  
seem simple, no?


Currently I do nothing to take into account the maximized property so  
it isn't too complicated :-) I do what Jacque does and just restore  
the stack to it's last size every time. The examples I provided were  
of some typical Windows applications and showed scenarios that we  
have a difficult time duplicating without using externals. I haven't  
finished implementing this behavior in my framework yet though it is  
on a to-do list somewhere...


If I understand correctly he would still need a maximize property/ 
command (or external). To behave like IE or Firefox when the users  
closes a stack window that was maximzed you would need to:


1) set the rect of the window to the last size the user had it set to.
2) set the 'maximized' property of the window.

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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 know if a stack is maximized ?

2007-10-09 Thread Malte Brill

Hi,

just throwing in a thought. If you assume you never start up  
maximized you can create your own property:


on openStack
  set the uIsMaximized of this stack to false
end openStack

on resizestack
  if item 2 of the mouseLoc=0 and item 1 of the mouseLoc  the  
right of this cd - 4 then

 -- maximize button clicked
set the uIsMaximized of this stack to not the uIsMaximized of  
this stack

  else
-- other means of resizing
  end if
  pass resizeStack
end resizestack


All the best,

Malte

___
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 know if a stack is maximized ?

2007-10-09 Thread Trevor DeVore

On Oct 9, 2007, at 3:44 PM, Malte Brill wrote:


n openStack
  set the uIsMaximized of this stack to false
end openStack

on resizestack
  if item 2 of the mouseLoc=0 and item 1 of the mouseLoc  the  
right of this cd - 4 then

 -- maximize button clicked
set the uIsMaximized of this stack to not the uIsMaximized of  
this stack

  else
-- other means of resizing
  end if
  pass resizeStack
end resizestack


Tricky :-)

On Windows I think this would fail if the user right-clicked on the  
task bar icon and selected Maximize though.


--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Re: How know if a stack is maximized ?

2007-10-09 Thread Malte Brill
Nevermind. Not fool proof. If the user is quick moving the mouse it  
does not work


ATB,

Malte
___
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: Splash Screen Launcher

2007-10-09 Thread Shao Sean

3) in the launcher stack's script editor write:
on openStack
 go stack thatOtherStack
 set the visible of me to false
end openStack


Viktoras, the only thing I would mention as a possible change would  
be to put this code into the startUp handler instead openStack


on startUp
  go stack thatOtherStack
  set the visible of me to FALSE
end startUp

The difference being the startUp command is only fired when the  
program first starts the openStack message will be fired every time  
a stack is opened so you'll need to trap it.


Thanks for the coding tip though as I am going to be doing the exact  
same thing in the next day or two :-)


-Sean
___
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: Splash Screen Launcher

2007-10-09 Thread John Tregea
Hi Guys,
To the suggested script

on startUp
go stack thatOtherStack
set the visible of me to FALSE
end startUp

Maybe it would be worth adding

on startUp
wait 2 seconds -- so users can admire my beautiful splash screen
go stack thatOtherStack
set the visible of me to FALSE
end startUp


: )

Regards

John
-Original Message-
From: Shao Sean [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 10, 2007 06:02 AM
To: use-revolution@lists.runrev.com
Subject: Re: Splash Screen Launcher

 3) in the launcher stack's script editor write:
 on openStack
 go stack thatOtherStack
 set the visible of me to false
 end openStack

Viktoras, the only thing I would mention as a possible change would 
be to put this code into the startUp handler instead openStack

on startUp
 go stack thatOtherStack
 set the visible of me to FALSE
end startUp

The difference being the startUp command is only fired when the 
program first starts the openStack message will be fired every time 
a stack is opened so you'll need to trap it.

Thanks for the coding tip though as I am going to be doing the exact 
same thing in the next day or two :-)

-Sean
___
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: SOAP Library

2007-10-09 Thread Mark Wieder
David-

 One question though, I can't find any documentation on the 
 SOAP.RPCRequest() function. When I click it in SOAPLib Stack, it just 
 shows the name.

Urk. You're right. I just posted a fixed version.

 This was taken from the old SOAP Stack, however there are now more 
 parameters into RPCRequest() and I have no clue what to set them to.

The new parameter is for https connections. If you don't need the extra 
authentication then just set them to empty.

I tried the url you posted: it doesn't work for me, either. But then very 
few web services do. If there were anything like a standard for these things 
then it might be simpler. With your url I get as far as getting rejected 
with a bad SOAPAction verb.

http://www.xmethods.net (An organization dedicated to promoting the 
development, deployment, and use of web services) has a good collection of 
web services you can try out, but most of them don't work or are no longer 
available (has nothing to do with whether they work in rev).

-- 
 Mark Wieder
 [EMAIL PROTECTED]



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


Stack Transparency Background only?

2007-10-09 Thread Sannyasin Sivakatirswami

Mac OSX; rev 2.8.1:

When setting  blend mode (transparency) of a stack, such that the 
background shows thru all objects are also transparent. Is there a way 
to make it so the background only is transparent? in other apps with 
transparency like this (I'm looking at the amazing quickSilver right 
now) the objects on the top are not transparent.


___
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: Stack Transparency Background only?

2007-10-09 Thread Scott Rossi
Recently, Sannyasin Sivakatirswami wrote:

 When setting  blend mode (transparency) of a stack, such that the
 background shows thru all objects are also transparent. Is there a way
 to make it so the background only is transparent?

The only way to do this currently is to use the windowshape property, which
is basically using an image to define the transparent and opaque regions of
the stack.  In doing this you loose the ability to have a resizable stack,
but you will get the effect you're looking for.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design


___
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