Re: Getting vScroll movement of a field scrollbar

2007-12-11 Thread Kay C Lan
On Dec 11, 2007 11:12 AM, James Hurley [EMAIL PROTECTED] wrote:

 
  On Dec 11, 2007 7:05 AM, James Hurley jhurley0305 at

  Good thought, but it doesn't work unless the mouse leaves and
 reenters the field.


Yes, but that shouldn't be a problem. I figured you'd do something like
this:

on scrollbarDrag tNewPosition
 --do fancy stuff
 put tNewPosition into tStart
end scrollDrag

That way, tStart is always being updated with the last position of the drag.

There are probably other times you want to initialize tStart, like on
openCard or openStack handlers, but as a last resort, the most up to date
would be an 'one mouseEnter' handler. Once inside the field the 'on
scrollbarDrag' message should keep track of every movement so all you need
to do is update tStart after every move.

HTH
___
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: Getting vScroll movement of a field scrollbar

2007-12-11 Thread André.Bisseret

Hello,
Could be I am wrong (I don’t know what’s your aim with your buttons),  
but one solution could be to replace your buttons with images and use  
the imageSource of characters:


- choose (if possible) a character that is impossible to appear in  
your field (e.g., $, €, £, %, …).

- set the textStyle of this character to link
- past an image in your stack and
- set the imageSource of the char to the ID number of this image.

If the field has its lockText property set to true, then the image is  
clickable.


Then, in the field script, you can have a handler of the following  
type :

ON mouseUp
IF the textstyle of the clicktext is « link » THEN
- - the handler of your current button
END IF
END mouseUp

Just an idea, don’t know if that could help

Best regards from Grenoble
André


Le 11 déc. 07 à 00:05, James Hurley a écrit :


I have a field with button superimposed on the text.

I would like the buttons to scroll with the field.

I set the field script to:

local tStart

on mouseDown
   put the vScroll of me into tStart
end mouseDown


on scrollbarDrag newValue
  put tStart  comma   newValue into msg box
end scrollbarDrag

The idea was to get the vertical movement of the scrollbar and move  
the buttons accordingly.


But the field's scrollbar does not appear to get the  mouseDown  
message and so I don't get the  tStart variable


How do I get the initial position  of the scrollbar?

Jim Hurley
___
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: Menubar on Windows???

2007-12-11 Thread Dave

Hi Ian,

Thanks for the help, I realize I have to set the MenuBar property for  
Mac but are you saying that I should set it *only* for Mac? If so,  
how does it know which MenuBar to display under windows?


I have the MenuBar in  a separate stack and do something like this at  
present:


 set the menubar of this stack to myMenuBarGroupLongName

Where myMenuBarGroupLongName is set to a Stack other than this  
stack.


Thanks a lot
All the Best
Dave

On 10 Dec 2007, at 15:54, Ian Wood wrote:

If you look at the docs for 'menubar' you'll see that it is a Mac- 
specific property. This is because the menubar is the bar appearing  
at the top of the screen (not the top of each window), which  
doesn't exist on Windows or Linux.


If the stack's menubar property isn't set to the group it should be  
visible at the top of the window, normal for Windows.


Ian

On 10 Dec 2007, at 15:37, Dave wrote:


Hi All,

I'm trying to get the Menubar to work on Windows, it works fine on  
Mac OS X.


In the preOpenStack hander I execute:

 set the menubar of this stack to myMenuBarGroupLongName

Which Displays the Menu Bar on Mac and I expected it to display  
the Menubar in the stack that is being executed in windows, but  
instead nothing seems to happen, e.g. the Window is the same as  
before the set the menubar code was executed.


So how do I get the menubar displayed under Windows???

Thanks a lot

All the Best
Dave



___
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


___
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: Menubar on Windows???

2007-12-11 Thread Ian Wood


On 11 Dec 2007, at 13:29, Dave wrote:

Thanks for the help, I realize I have to set the MenuBar property  
for Mac but are you saying that I should set it *only* for Mac? If  
so, how does it know which MenuBar to display under windows?


It should have no effect at all on Windows.

I have the MenuBar in  a separate stack and do something like this  
at present:


set the menubar of this stack to myMenuBarGroupLongName

Where myMenuBarGroupLongName is set to a Stack other than this  
stack.


OK, I think that's the problem. Windows programmers will have to chip  
in here, but I think the menu group for a stack has to exist on that  
stack.


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: Menubar on Windows???

2007-12-11 Thread xavier . bury
Hi 

One has to consider that windows menu are in-window just like any other 
group of objects. While mac menus are not...

I dont know how Rev handles mac menus, but once the menu group on windows 
is set, there's no more to it...

When a PC made stack is run on OSX, does the menu work correctly?

Regards,
-=-
Xavier Bury
Clearstream Services
TNS NT LAN Server
ext 36465
Voice: +352 243 3 6465
Fax: +352 243 63 6465

[EMAIL PROTECTED] wrote on 11/12/2007 15:00:03:

 
 On 11 Dec 2007, at 13:29, Dave wrote:
 
  Thanks for the help, I realize I have to set the MenuBar property 
  for Mac but are you saying that I should set it *only* for Mac? If 
  so, how does it know which MenuBar to display under windows?
 
 It should have no effect at all on Windows.
 
  I have the MenuBar in  a separate stack and do something like this 
  at present:
 
  set the menubar of this stack to myMenuBarGroupLongName
 
  Where myMenuBarGroupLongName is set to a Stack other than this 
  stack.
 
 OK, I think that's the problem. Windows programmers will have to chip 
 in here, but I think the menu group for a stack has to exist on that 
 stack.
 
 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




Clearstream Services S.A.
42 Avenue JF Kennedy, L-1855 Luxembourg
Société anonyme is organised with limited liability
in the Grand Duchy of Luxembourg R.C.S. Luxembourg B 60911.


-
Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents
of this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you
are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. Any views expressed in
this e-mail are those of the individual sender, except where the
sender specifically states them to be the views of Clearstream
International or of any of its affiliates or subsidiaries.

Legally required information for business correspondence/
Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
http://deutsche-boerse.com/letterhead

END OF DISCLAIMER
___
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: Getting vScroll movement of a field scrollbar

2007-12-11 Thread Eric Chatonet

Hi Jim,

May be I don't understand the problem ;-)
But:

I created a scrolling field, added a button overlaying the field and  
grouped both with group margins = zero.

Then I locked the group: this makes the button disappear appropriately.

In the script of the field:

on scrollbardrag pPos
  set the top of btn Test to value - pPos
end scrollbardrag

value is the top of the button when field's vScroll = zero.

In the script of the card:

on preOpenCard
  send scrollbardrag  the vScroll of fld ScrollingField to fld  
ScrollingField

end preOpenCard

Actually this works for me in any case and I don't mind any initial  
position :-)

What did I miss?

Le 11 déc. 07 à 00:05, James Hurley a écrit :


I have a field with button superimposed on the text.

I would like the buttons to scroll with the field.

I set the field script to:

local tStart

on mouseDown
   put the vScroll of me into tStart
end mouseDown


on scrollbarDrag newValue
  put tStart  comma   newValue into msg box
end scrollbarDrag

The idea was to get the vertical movement of the scrollbar and move  
the buttons accordingly.


But the field's scrollbar does not appear to get the  mouseDown  
message and so I don't get the  tStart variable


How do I get the initial position  of the scrollbar?

Jim Hurley


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: Menubar on Windows???

2007-12-11 Thread Dave


On 11 Dec 2007, at 14:04, [EMAIL PROTECTED] wrote:


Hi

One has to consider that windows menu are in-window just like any  
other

group of objects. While mac menus are not...

I dont know how Rev handles mac menus, but once the menu group on  
windows

is set, there's no more to it...


This is what I don't understand. How to I set the menu group on  
Windows? I can (and have set it and it works ok on Mac). I have a  
Menubar group in a stack called MenuBar how can I use this menubar  
group as the menu bar for the current stack under Windows?


Thanks a lot
All the Best
Dave



When a PC made stack is run on OSX, does the menu work correctly?

Regards,
-=-
Xavier Bury
Clearstream Services
TNS NT LAN Server
ext 36465
Voice: +352 243 3 6465
Fax: +352 243 63 6465

[EMAIL PROTECTED] wrote on 11/12/2007 15:00:03:



On 11 Dec 2007, at 13:29, Dave wrote:


Thanks for the help, I realize I have to set the MenuBar property
for Mac but are you saying that I should set it *only* for Mac? If
so, how does it know which MenuBar to display under windows?


It should have no effect at all on Windows.


I have the MenuBar in  a separate stack and do something like this
at present:

set the menubar of this stack to myMenuBarGroupLongName

Where myMenuBarGroupLongName is set to a Stack other than this
stack.


OK, I think that's the problem. Windows programmers will have to chip
in here, but I think the menu group for a stack has to exist on that
stack.

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




-- 
--

Clearstream Services S.A.
42 Avenue JF Kennedy, L-1855 Luxembourg
Société anonyme is organised with limited liability
in the Grand Duchy of Luxembourg R.C.S. Luxembourg B 60911.


-
Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents
of this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you
are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. Any views expressed in
this e-mail are those of the individual sender, except where the
sender specifically states them to be the views of Clearstream
International or of any of its affiliates or subsidiaries.

Legally required information for business correspondence/
Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
http://deutsche-boerse.com/letterhead

END OF DISCLAIMER
___
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: Menubar on Windows???

2007-12-11 Thread xavier . bury
Not sure of the syntax but either you say set the menubar [of this stack] 
to whatevergroupname 

or

go to the menu builder and set it there via the edit button... Although i 
think there is or was a bug that made it forget which
was the menugroup... 

I never had the issue as the window's menu is pretty much anything you 
want and i dont port my stacks to
osx... 

[EMAIL PROTECTED] wrote on 11/12/2007 16:17:27:

 
 On 11 Dec 2007, at 14:04, [EMAIL PROTECTED] wrote:
 
  Hi
 
  One has to consider that windows menu are in-window just like any 
  other
  group of objects. While mac menus are not...
 
  I dont know how Rev handles mac menus, but once the menu group on 
  windows
  is set, there's no more to it...
 
 This is what I don't understand. How to I set the menu group on 
 Windows? I can (and have set it and it works ok on Mac). I have a 
 Menubar group in a stack called MenuBar how can I use this menubar 
 group as the menu bar for the current stack under Windows?
 
 Thanks a lot
 All the Best
 Dave
 
 
  When a PC made stack is run on OSX, does the menu work correctly?
 
  Regards,
  -=-
  Xavier Bury
  Clearstream Services
  TNS NT LAN Server
  ext 36465
  Voice: +352 243 3 6465
  Fax: +352 243 63 6465
 
  [EMAIL PROTECTED] wrote on 11/12/2007 15:00:03:
 
 
  On 11 Dec 2007, at 13:29, Dave wrote:
 
  Thanks for the help, I realize I have to set the MenuBar property
  for Mac but are you saying that I should set it *only* for Mac? If
  so, how does it know which MenuBar to display under windows?
 
  It should have no effect at all on Windows.
 
  I have the MenuBar in  a separate stack and do something like this
  at present:
 
  set the menubar of this stack to myMenuBarGroupLongName
 
  Where myMenuBarGroupLongName is set to a Stack other than this
  stack.
 
  OK, I think that's the problem. Windows programmers will have to chip
  in here, but I think the menu group for a stack has to exist on that
  stack.
 
  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
 
 
 
  -- 

  --
  Clearstream Services S.A.
  42 Avenue JF Kennedy, L-1855 Luxembourg
  Société anonyme is organised with limited liability
  in the Grand Duchy of Luxembourg R.C.S. Luxembourg B 60911.
 
 
  -
  Visit us at http://www.clearstream.com
 
  IMPORTANT MESSAGE
 
  Internet communications are not secure and therefore Clearstream
  International does not accept legal responsibility for the contents
  of this message.
 
  The information contained in this e-mail is confidential and may be
  legally privileged. It is intended solely for the addressee. If you
  are not the intended recipient, any disclosure, copying,
  distribution or any action taken or omitted to be taken in reliance
  on it, is prohibited and may be unlawful. Any views expressed in
  this e-mail are those of the individual sender, except where the
  sender specifically states them to be the views of Clearstream
  International or of any of its affiliates or subsidiaries.
 
  Legally required information for business correspondence/
  Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
  http://deutsche-boerse.com/letterhead
 
  END OF DISCLAIMER
  ___
  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




Clearstream Services S.A.
42 Avenue JF Kennedy, L-1855 Luxembourg
Société anonyme is organised with limited liability
in the Grand Duchy of Luxembourg R.C.S. Luxembourg B 60911.


-
Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents
of this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you
are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. Any views expressed in
this e-mail are those of the individual sender, except where the
sender specifically states them to be 

Re: Menubar on Windows???

2007-12-11 Thread Richard Gaskin

Dave wrote:
This is what I don't understand. How to I set the menu group on  
Windows? I can (and have set it and it works ok on Mac). I have a  
Menubar group in a stack called MenuBar how can I use this menubar  
group as the menu bar for the current stack under Windows?


From the Rev Dictionary entry for menubar:

   On Mac OS systems, when a stack's menubar property is set,
   the stack is scrolled and resized on Mac OS systems so that
   the group is not visible in the stack window. (On Unix and
   Windows systems, this is not necessary, since the menu bar
   is normally displayed in the window.)

On Windows (and pretty every other OS but Mac), the convention is the 
have menus at the top of the window.  Only Mac detaches them to have a 
separate menu bar at the top of the monitor.  To facilitate this, the 
menuBar property of a stack defines a group in a stack which will be 
automatically scrolled out of view when run on OS X, but will appear in 
place on all other systems.


While contrary to convention, it's possible to have a menu bar on 
Windows which is separate from the stack.  In fact, Rev does this, and 
one of the products we develop here does also (though we're in the 
process of redesigning it to adhere to convention in the next version).


To have a separate menu bar on Windows just build the menu group in a 
separate stack and open it as palette so that it doesn't get covered by 
the other windows in your application.


If your other windows are resizable you can also adjust the 
windowBoundingRect property to account for your menubar stack, so 
zooming won't submarine the top of the document below the menu stack.


--
 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: Menubar on Windows???

2007-12-11 Thread xavier . bury
Hi Richard,

While the idea of a floating menubar is really nice (and so NeXT like!), 
it does pose a few problems on windows:

- win32 task bar object - rev here is a nightmare - click on one and the 
menubar still stays behind/hidden for example...
- If you hide the application, dont forget to hide the menu - but maybe 
that's not wanted but maybe yes other times
- submarining the menu as you mentioned - but sometimes it is the other 
way around. And there's a bug in RR where the palettes are submarined by 
the normal stacks (fixed in 2.9?)
- it's not standard and most windows users hate separate menus (as far as 
i've heard and seen them moan)
- a separate menu steals more desktop real-estate than an included menu

There's reasons why it could be cool but when you are used to menus being 
always on top of the window, you dont have to look for them. 
The same goes for a Mac user who sees their window while the menu of 
another application (which is active with no [overlapping] windows) is 
visible...

just my two revcents...
-=-
Xavier Bury

[EMAIL PROTECTED] wrote on 11/12/2007 16:36:57:

 Dave wrote:
  This is what I don't understand. How to I set the menu group on 
  Windows? I can (and have set it and it works ok on Mac). I have a 
  Menubar group in a stack called MenuBar how can I use this menubar 
  group as the menu bar for the current stack under Windows?
 
  From the Rev Dictionary entry for menubar:
 
 On Mac OS systems, when a stack's menubar property is set,
 the stack is scrolled and resized on Mac OS systems so that
 the group is not visible in the stack window. (On Unix and
 Windows systems, this is not necessary, since the menu bar
 is normally displayed in the window.)
 
 On Windows (and pretty every other OS but Mac), the convention is the 
 have menus at the top of the window.  Only Mac detaches them to have a 
 separate menu bar at the top of the monitor.  To facilitate this, the 
 menuBar property of a stack defines a group in a stack which will be 
 automatically scrolled out of view when run on OS X, but will appear in 
 place on all other systems.
 
 While contrary to convention, it's possible to have a menu bar on 
 Windows which is separate from the stack.  In fact, Rev does this, and 
 one of the products we develop here does also (though we're in the 
 process of redesigning it to adhere to convention in the next version).
 
 To have a separate menu bar on Windows just build the menu group in a 
 separate stack and open it as palette so that it doesn't get covered by 
 the other windows in your application.
 
 If your other windows are resizable you can also adjust the 
 windowBoundingRect property to account for your menubar stack, so 
 zooming won't submarine the top of the document below the menu stack.
 
 -- 
   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




Clearstream Services S.A.
42 Avenue JF Kennedy, L-1855 Luxembourg
Société anonyme is organised with limited liability
in the Grand Duchy of Luxembourg R.C.S. Luxembourg B 60911.


-
Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents
of this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you
are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. Any views expressed in
this e-mail are those of the individual sender, except where the
sender specifically states them to be the views of Clearstream
International or of any of its affiliates or subsidiaries.

Legally required information for business correspondence/
Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
http://deutsche-boerse.com/letterhead

END OF DISCLAIMER
___
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: Menubar on Windows???

2007-12-11 Thread Eric Chatonet

Hi Xaxier,

I do agree.
When I came to Windows (without leaving the Mac: I work with since  
more than twenty years), I did not like the menus 'in' the windows.

Question of habit ;-)
But I have to say that, with large screens we have now, it's seems  
more appropriate...
Actually, I build sophisticated applications without menus but  
toolbars (at the top of the window) AND contextual menus that appear  
more intuitive for more advanced users: hierarchy in the way to  
access provided functions sounds to me as an ergonomic rule.


Letting this apart, Richard explanation is, as usual, complete and  
clear :-)
One way to avoid problems is to begin a project with Win32 and just  
setting the menu bar group using the menu builder then switch to Mac...


Le 11 déc. 07 à 16:50, [EMAIL PROTECTED] a écrit :


Hi Richard,

While the idea of a floating menubar is really nice (and so NeXT  
like!),

it does pose a few problems on windows:

- win32 task bar object - rev here is a nightmare - click on one  
and the

menubar still stays behind/hidden for example...
- If you hide the application, dont forget to hide the menu - but  
maybe

that's not wanted but maybe yes other times
- submarining the menu as you mentioned - but sometimes it is the  
other
way around. And there's a bug in RR where the palettes are  
submarined by

the normal stacks (fixed in 2.9?)
- it's not standard and most windows users hate separate menus (as  
far as

i've heard and seen them moan)
- a separate menu steals more desktop real-estate than an included  
menu


There's reasons why it could be cool but when you are used to menus  
being

always on top of the window, you dont have to look for them.
The same goes for a Mac user who sees their window while the menu of
another application (which is active with no [overlapping] windows) is
visible...

just my two revcents...
-=-
Xavier Bury

[EMAIL PROTECTED] wrote on 11/12/2007 16:36:57:


Dave wrote:

This is what I don't understand. How to I set the menu group on
Windows? I can (and have set it and it works ok on Mac). I have a
Menubar group in a stack called MenuBar how can I use this menubar
group as the menu bar for the current stack under Windows?


 From the Rev Dictionary entry for menubar:

On Mac OS systems, when a stack's menubar property is set,
the stack is scrolled and resized on Mac OS systems so that
the group is not visible in the stack window. (On Unix and
Windows systems, this is not necessary, since the menu bar
is normally displayed in the window.)

On Windows (and pretty every other OS but Mac), the convention is the
have menus at the top of the window.  Only Mac detaches them to  
have a

separate menu bar at the top of the monitor.  To facilitate this, the
menuBar property of a stack defines a group in a stack which will be
automatically scrolled out of view when run on OS X, but will  
appear in

place on all other systems.

While contrary to convention, it's possible to have a menu bar on
Windows which is separate from the stack.  In fact, Rev does this,  
and

one of the products we develop here does also (though we're in the
process of redesigning it to adhere to convention in the next  
version).


To have a separate menu bar on Windows just build the menu group in a
separate stack and open it as palette so that it doesn't get  
covered by

the other windows in your application.

If your other windows are resizable you can also adjust the
windowBoundingRect property to account for your menubar stack, so
zooming won't submarine the top of the document below the menu stack.

--
  Richard Gaskin
  Managing Editor, revJournal


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


Menu option on Mac

2007-12-11 Thread Andres Martinez

Hello

The simple applications that we develop do not use Menubars. However,  
the default Menubar created by Revolution on the stand alone for Mac  
includes the About... option as the first one, and I would like to  
do something when the user select that option.


I have seen some Revolution applications doing this. How can I do it?

Regards,
Andres Martinez
www.baKno.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: (no subject)

2007-12-11 Thread Ken Ray
 Your AppleScript should look something like this:
 --3 lines, watch line wraps
 
 tell application Finder
open folder Macintosh HD:Users:MeUser:Desktop:myFolder
 end tell
 
 Your Rev script should look like this:
 --a do statement is single line so you'll need to unwrap this
 --the tricky bit is quotes and spaces in the right place
 
 do tell application   quote  Finder  quote  cr  open folder  
 quote  Macintosh HD:Users:MeUser:Desktop:myFolder  quote  cr  end
 tell as applescript


Just FYI, there's a couple of other approaches (some are best 
practices) when executing AppleScript from Rev... 

1) Put the script into a custom property or field and execute it 
(although I wouldn't recommend fields for a variety of reasons):

  do (the openFolderScript of this stack) as AppleScript

2) If you need to do it inline, use the \ line continuation feature to 
help make your code more readable:

  put Macintosh HD:Users:MeUser:Desktop:myFolder into tFolder
  put tell application  quote  Finder  quote  cr  \
open folder  quote  tFolder  quote  cr  \
end tell into tScript
  do tScript as AppleScript

3) Use backquotes (`) for quotation marks while building your script, 
then replace them with double quotes before you execute your script (a 
variation of #2 above is shown below):

  put tell application`Finder`  cr  \
open folder `Macintosh HD:Users:MeUser:Desktop:myFolder`  cr  \
end tell into tScript
  replace ` with quote in tScript
  do tScript as AppleScript

4) Use the format() function to put in quotes (\) and returns (\n) on 
the fly (be careful though as you can't use continuation chars with 
format IIRC):

  put format(tell application \Finder\\n)  \
format(open folder \Macintosh 
HD:Users:MeUser:Desktop:myFolder\\n)  \
end tell into tScript
  do tScript as AppleScript

Personally, I usually use #3 unless it's a one-liner, in which case I 
use #4 (if it's not too complex), but to each their own. :-)

Also with the upcoming Rev 2.9 having the ability to do do ... as ... 
scriptingLanguage supporting VBScript and JavaScript (on Windows), 
having a good way to handle other scripting languages is important, 
IMHO.


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: Menubar on Windows???

2007-12-11 Thread Ken Ray
On Tue, 11 Dec 2007 15:17:27 +, Dave wrote:


 This is what I don't understand. How to I set the menu group on 
 Windows? I can (and have set it and it works ok on Mac). I have a 
 Menubar group in a stack called MenuBar how can I use this menubar 
 group as the menu bar for the current stack under Windows?

Richard provided one way to make this happen (the floating palette 
that's only a menu while all your other stack windows don't have a menu 
bar at all). But as he pointed out, this is non-standard. So to make 
the same set of menus appear in all of your open stack windows, you 
will need to copy the group that contains the buttons that act as the 
menus (the menu group) to each stack - there isn't a way of setting a 
defaultMenuBar as there is in OS X. And since they will need to be 
copied, it is strongly recommended to *NOT* put the code that deals 
with the menu items inside the buttons that make up the menubar itself, 
as if you need to make a change to the code, you'd have to copy and 
paste it between all the same buttons in each of the open stacks... I 
tend to use (as do many others here on the list) a convention where the 
buttons in the menu group have no script at all, and the menu group has 
a single menupick handler that strips away the crud from the menu 
item name, collapses it into a single word and calls a centralized set 
of menu handlers (either in the main stack script or in a library or 
backscript). Something like this:

on menuPick pMenuItemName
  put the short name of the target into tMenuName
  put  ,...,!c,!n,!r,!u into tSpecialChars
  repeat for each item tItem in tSpecialChars
replace tItem with  in pMenuItemName
  end repeat
  do (tMenuName  _  pMenuItemName)  
end menuPick

So if you selected Page Setup... from the File menu, the menuPick 
handler above would do the command File_PageSetup, which you could 
trap in the mainstack script/library/backscript:

on File_PageSetup
  -- your code here
end File_PageSetup

Other people I know do something similar but like one large DoMenu 
handler, so they'll change the last line of the 'menuPick' handler code 
above to:

  do (DoMenu  tMenuName  ,  pMenuItemName)

and have a DoMenu handler like this:

on DoMenu pMenu,pItem
  switch pMenu
case File
  switch pItem
case New
   -- code here
   break
case PageSetup
   -- code here
   break
-- etc. for all File menu items
  end switch
  break 
 
case Edit
  -- same switch structure here for Edit menu items
  break
  end switch
end DoMenu

Anyway, hope this helps get the mental juices flowing...

;-)

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: Menubar on Windows???

2007-12-11 Thread Richard Gaskin

xavier.bury wrote:
While the idea of a floating menubar is really nice (and so NeXT like!), 
it does pose a few problems on windows:


- win32 task bar object - rev here is a nightmare - click on one and the 
menubar still stays behind/hidden for example...
- If you hide the application, dont forget to hide the menu - but maybe 
that's not wanted but maybe yes other times
- submarining the menu as you mentioned - but sometimes it is the other 
way around. And there's a bug in RR where the palettes are submarined by 
the normal stacks (fixed in 2.9?)
- it's not standard and most windows users hate separate menus (as far as 
i've heard and seen them moan)

- a separate menu steals more desktop real-estate than an included menu

There's reasons why it could be cool but when you are used to menus being 
always on top of the window, you dont have to look for them. 
The same goes for a Mac user who sees their window while the menu of 
another application (which is active with no [overlapping] windows) is 
visible...


just my two revcents...


I'd say more like a dollar's worth. :) You raise some very valuable 
issues, perhaps most importantly the consistency of the user experience 
for the person running your app in Windows.


Just as Mac users would find it disconcerting to have their menus at the 
top of the window rather than in the menu bar, Windows users are 
accustomed to having menus at the top of their window, and changing that 
long-established convention risks being accused of a Mac port (I've 
had that with the one app I still ship which has a detached menu bar).


In that app, we went that route because we had a very Mac Classic 
design, with lots of separate windows providing different views into the 
data.


Since then, software design on the Mac has evolved to favor multiple 
panes in a single window where we used to use multiple windows.  For 
example, in the olden days video editing software commonly had at least 
three windows:  preview, timeline, and clips.  In iMovie and other 
modern apps these are now panes in a single window.  This migration to 
single-window UIs extends to email, iPhoto, tabbed web browsers, and a 
great many others.


With OS X this migration is esp. useful, since Apple has now joined the 
rest of the world with interleaved windows.  In Classic, all windows of 
an app came forward when any of them were clicked, but in OS X (and 
Window, UNIX, Linux, etc.) windows are fully interleaved: bringing a 
window forward only brings that one window forward, and any other 
windows, even those of the same app, are left where they were in the 
stacking order.


This interleaving creates a need for more window management than is 
needed with a single-window UI.  In older-style apps, to see all of the 
data views in various windows one would need to manually bring them all 
forward, or select Bring All To Front from the Window menu.  But if 
you migrate those views to multiple panes within a single window, just 
one click brings everything you need to the front.


For us Rev developers, this trend makes it easier to deliver 
HIG-conformant apps for all platforms, since we can make one menu bar in 
our one window and it'll display appropriately on OS X in the menu bar 
and at the top of the window for all other OSes.


But sometimes redesigning a multi-window app to a single-window one is 
challenging and will require some thought to how the panes are laid out. 
So while prepping for a future single-window version, there are a couple 
things that can be done to make a detached menu bar slightly less 
cumbersome on Windows:


In addition to adjusting the windowBoundingRect noted in my last post, 
there's also the minimize behavior.  For that we trap the iconify 
message in the mainStack, and when the window being iconified is the 
menu bar we iconify all stacks.  Similarly, when any stack is 
uniconified we make sure the menu bar stack is uniconified as well.


But tossing in my own $0.02, I would encourage those making apps with 
detached menu bars to consider migrating to a design which supports the 
Windows convention of having the menu bar at the top of the window. 
While a quickie Mac port can get away with a detached menu bar for a 
first version, to be successful on Windows you'll want to adopt standard 
Windows conventions.


And in the long term, if your app uses multiple windows you may find you 
can simplify your menu work while you simplify the user experience by 
migrating to multiple panes in a single window instead.


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


OT: VMware and Parallels

2007-12-11 Thread Mark Talluto

Hello Everyone,

I have run into an issue with 2.9 b2, OS 10.4.11, and Parallels 3  
build 5580.  I have found Revolution created applications to be very  
unstable when made to run via a shortcut in the startup folder under  
both XP and Vista under the virtualization.


I spent way too much time before trying it on a true PC boxes.  I  
found the software to be stable on the real PC boxes.  I decided to  
give VMware a try as I really make strong use of the virtualization  
technology both of these products provide.  My applications under  
VMware did not crash.  Using VMwares new beta conversion tool  
(parallels to vmware converter), it was very simple to give this a try.


If you have been having any problems with Parallels, I thought you  
might be interested and willing to try VMware.


Side note:  Rev 2.8.1 is very stable under Parallels.  The  
combination of Rev 2.9 and Parallels 3 causes the instability.  Since  
everything works correctly on a real pc and on vmware, I am inclined  
to believe the problem is with Parallels and not Rev.  YMMV.



Mark Talluto
--
CANELA Software
http://www.canelasoftware.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: (no subject)

2007-12-11 Thread Randall Lee Reetz
Thanks Ken, i was using a custom prop and ran it as applescript.  Works fine.  
What i still dont understand is why everything went unresponsive (the finder) 
and why it now works... Maddening. 
What might happen tomorrow?
-Original Message-
From: Ken Ray [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: 12/11/2007 8:56 AM
Subject: Re: (no subject)

 Your AppleScript should look something like this:
 --3 lines, watch line wraps
 
 tell application Finder
open folder Macintosh HD:Users:MeUser:Desktop:myFolder
 end tell
 
 Your Rev script should look like this:
 --a do statement is single line so you'll need to unwrap this
 --the tricky bit is quotes and spaces in the right place
 
 do tell application   quote  Finder  quote  cr  open folder  
 quote  Macintosh HD:Users:MeUser:Desktop:myFolder  quote  cr  end
 tell as applescript


Just FYI, there's a couple of other approaches (some are best 
practices) when executing AppleScript from Rev... 

1) Put the script into a custom property or field and execute it 
(although I wouldn't recommend fields for a variety of reasons):

  do (the openFolderScript of this stack) as AppleScript

2) If you need to do it inline, use the \ line continuation feature to 
help make your code more readable:

  put Macintosh HD:Users:MeUser:Desktop:myFolder into tFolder
  put tell application  quote  Finder  quote  cr  \
open folder  quote  tFolder  quote  cr  \
end tell into tScript
  do tScript as AppleScript

3) Use backquotes (`) for quotation marks while building your script, 
then replace them with double quotes before you execute your script (a 
variation of #2 above is shown below):

  put tell application`Finder`  cr  \
open folder `Macintosh HD:Users:MeUser:Desktop:myFolder`  cr  \
end tell into tScript
  replace ` with quote in tScript
  do tScript as AppleScript

4) Use the format() function to put in quotes (\) and returns (\n) on 
the fly (be careful though as you can't use continuation chars with 
format IIRC):

  put format(tell application \Finder\\n)  \
format(open folder \Macintosh 
HD:Users:MeUser:Desktop:myFolder\\n)  \
end tell into tScript
  do tScript as AppleScript

Personally, I usually use #3 unless it's a one-liner, in which case I 
use #4 (if it's not too complex), but to each their own. :-)

Also with the upcoming Rev 2.9 having the ability to do do ... as ... 
scriptingLanguage supporting VBScript and JavaScript (on Windows), 
having a good way to handle other scripting languages is important, 
IMHO.


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: OT: VMware and Parallels

2007-12-11 Thread Trevor DeVore

On Dec 11, 2007, at 1:38 PM, Mark Talluto wrote:

I have run into an issue with 2.9 b2, OS 10.4.11, and Parallels 3  
build 5580.


Hey Mark,

Just a quick note that 5582 just came out for Parallels and it is the  
official release (not beta) for Leopard. Maybe that would help as well.


--
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: Packages

2007-12-11 Thread Ken Ray
On Mon, 10 Dec 2007 11:31:17 +, Mark Smith wrote:

 This is great! I couldn't find this anywhere. So here's a function 
 that uses it - maybe someone has better code for converting the path  
 to applescript.

Well you can have AppleScript do it for you using as POSIX file:

function thePackages pFolder
  put tell application  quote  Finder  quote  cr  \
  packages of folder (  quote  pFolder  quote  \
  as POSIX file)  cr  end tell into tScr
  
  do tScr as applescript
  put the result into tList
  replace comma with cr in tList
  
  repeat for each line L in tList
get wordoffset(file, L)
put word it + 1 of L  cr after tPackages
  end repeat
  replace quote with empty in tPackages
  return char 1 to -2 of tPackages
end thePackages

Either way works...

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: OT: VMware and Parallels

2007-12-11 Thread Joe Lewis Wilkins

Hi Mark,

The problems I reported a couple of days ago with not appearing  
text for a program running WindowsXP was under VMWare's Fusion as I  
mentioned. Perhaps the problems will disappear if/when I'm able to  
test the program on a real PC Box. This program was compiled using  
Rev 2.8.1. Have you been noting similar text problems with your  
experiments? Otherwise, my program ran just fine.


Joe Wilkins

On Dec 11, 2007, at 10:38 AM, Mark Talluto wrote:


Hello Everyone,

I have run into an issue with 2.9 b2, OS 10.4.11, and Parallels 3  
build 5580.  I have found Revolution created applications to be  
very unstable when made to run via a shortcut in the startup folder  
under both XP and Vista under the virtualization.


I spent way too much time before trying it on a true PC boxes.  I  
found the software to be stable on the real PC boxes.  I decided to  
give VMware a try as I really make strong use of the virtualization  
technology both of these products provide.  My applications under  
VMware did not crash.  Using VMwares new beta conversion tool  
(parallels to vmware converter), it was very simple to give this a  
try.


If you have been having any problems with Parallels, I thought you  
might be interested and willing to try VMware.


Side note:  Rev 2.8.1 is very stable under Parallels.  The  
combination of Rev 2.9 and Parallels 3 causes the instability.   
Since everything works correctly on a real pc and on vmware, I am  
inclined to believe the problem is with Parallels and not Rev.  YMMV.



Mark Talluto
--
CANELA Software
http://www.canelasoftware.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: Packages

2007-12-11 Thread Mark Smith
Thanks, Ken! I had tried packages of POSIX folder..., but it didn't  
work, of course. Can you recommend a good Applescript book? Not an  
intro to scripting, but something fairly in-depth? If not, could you  
write one?  :)


Best,

Mark

On 11 Dec 2007, at 18:54, Ken Ray wrote:


On Mon, 10 Dec 2007 11:31:17 +, Mark Smith wrote:


This is great! I couldn't find this anywhere. So here's a function
that uses it - maybe someone has better code for converting the path
to applescript.


Well you can have AppleScript do it for you using as POSIX file:

function thePackages pFolder
  put tell application  quote  Finder  quote  cr  \
  packages of folder (  quote  pFolder  quote  \
  as POSIX file)  cr  end tell into tScr

  do tScr as applescript
  put the result into tList
  replace comma with cr in tList

  repeat for each line L in tList
get wordoffset(file, L)
put word it + 1 of L  cr after tPackages
  end repeat
  replace quote with empty in tPackages
  return char 1 to -2 of tPackages
end thePackages

Either way works...

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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


OT: AppleScript Book Recommendations (Was Re: Packages)

2007-12-11 Thread Ken Ray
On Tue, 11 Dec 2007 19:11:52 +, Mark Smith wrote:

 Thanks, Ken! I had tried packages of POSIX folder..., but it didn't 
 work, of course. Can you recommend a good Applescript book? Not an 
 intro to scripting, but something fairly in-depth? If not, could you 
 write one?  :)

:-)

Actually, I have/use:

  AppleScript, The Missing Manual (Pogue Press/O'Reilly)
  (c) 2005 by Adam Goldstein
  (Has sections organized by function, like backing up file, 
commanding other applications, saving files, etc.)

  AppleScript in a Nutshell (O'Reilly)
  (c) 2001 by Bruce W. Perry
  (More technical, dictionary-type format)

  And the venerable...

  Danny Goodman's AppleScript Handbook, 2nd Ed (Random House)
  (c) 1994 by Danny Goodman
  (More basic, beginner-level stuff with sections of controlling other 
apps)

Of the three, The Missing Manual is one I use the most when I'm 
looking to write a specific function, and Nutshell when I'm looking 
for a specific token to do a specific thing. Both I'd recommend...


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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


Trouble figuring out printpapersize and small fonts

2007-12-11 Thread rgould8
I am trying to print from Revolution onto a 2 inch wide X .75 inch tall barcode 
label.

I'm having a very hard time, however, because:

1)? I don't know the secret formula for creating the printpapersize dimensions.
According to the docs, 8.5 x 11 equates to a printpapersize of 595, 842.? So, 
if I'm doing my math right, a label that's 2 x .75 inches would have a 
papersize of 153, 57?? I'm telling the printer to print landscape, which also 
complicates things.? I don't know which end is up when defining papersize 
dimensions.

(e.g.? 11 is to 842 as 2 is to 153)


2)? I'm having a hard time getting any fonts to print less than 8 point.? (I'm 
on a Mac).? When I go to see all the sizes that I can use to set a font like 
Courier, it looks like I can go down to 6, but when I print, it comes out 
huge.? Anyone know of any fonts that will print at size 6?





More new features than ever.  Check out the new AOL Mail ! - 
http://webmail.aol.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: Trouble figuring out printpapersize and small fonts

2007-12-11 Thread rgould8

 Oh, I forgot to mention, I'm printing using a Dymo Labelwriter 400 printer 
hook up to my Mac


 


 

-Original Message-
From: [EMAIL PROTECTED]
To: use-revolution@lists.runrev.com
Sent: Tue, 11 Dec 2007 2:59 pm
Subject: Trouble figuring out printpapersize and small fonts










I am trying to print from Revolution onto a 2 inch wide X .75 inch tall barcode 
label.

I'm having a very hard time, however, because:

1)? I don't know the secret formula for creating the printpapersize dimensions.
According to the docs, 8.5 x 11 equates to a printpapersize of 595, 842.? So, 
if I'm doing my math right, a label that's 2 x .75 inches would have a 
papersize 
of 153, 57?? I'm telling the printer to print landscape, which also complicates 
things.? I don't know which end is up when defining papersize dimensions.

(e.g.? 11 is to 842 as 2 is to 153)


2)? I'm having a hard time getting any fonts to print less than 8 point.? (I'm 
on a Mac).? When I go to see all the sizes that I can use to set a font like 
Courier, it looks like I can go down to 6, but when I print, it comes out 
huge.? Anyone know of any fonts that will print at size 6?





More new features than ever.  Check out the new AOL Mail ! - 
http://webmail.aol.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



 



More new features than ever.  Check out the new AOL Mail ! - 
http://webmail.aol.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: Menu option on Mac

2007-12-11 Thread Devin Asay


On Dec 11, 2007, at 9:49 AM, Andres Martinez wrote:


Hello

The simple applications that we develop do not use Menubars.  
However, the default Menubar created by Revolution on the stand  
alone for Mac includes the About... option as the first one, and  
I would like to do something when the user select that option.


I have seen some Revolution applications doing this. How can I do it?


Andres,

In order to make the About... option in the default standalone menu  
work on a Mac, you'll have to create at least a minimal menu. The  
easiest way to do this is to open Tools  Menu Builder. Create a new  
menu and give it a name, say myMenu. Then delete the File and Edit  
menus. In the remaining Help menu, delete the first item, Help,  
leaving only a - and the About item on the next line. Then close  
the Menu Builder. Hide the new group. In the group script create a  
menuPick handler like this:


on menuPick what
  switch what
case About
  -- display the about box here
  break
  end switch
end menuPick

In an openStack or preOpenStack handler make this group the menubar  
group:


  on openstack
set the menubar of this stack to myMenu
  end openstack

Now when you create a standalone from the stack the about menu will  
function. You don't have to worry about the Quit option because the  
OS handles that.


Others may have different ideas about how to do this, but this will  
work.


Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Getting vScroll movement of a field scrollbar

2007-12-11 Thread James Hurley

My thanks to all who replied.

Eric's protocol works wonderfully well--see his description below.

(When he says that this makes the button disappear appropriately I  
think he means that the button will disappear as it passes off the  
top of the field.)


Very slick.

Jim



Message: 20
Date: Tue, 11 Dec 2007 16:02:08 +0100
From: Eric Chatonet [EMAIL PROTECTED]
Subject: Re: Getting vScroll movement of a field scrollbar
To: How to use Revolution use-revolution@lists.runrev.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed

Hi Jim,

May be I don't understand the problem ;-)
But:

I created a scrolling field, added a button overlaying the field and
grouped both with group margins = zero.
Then I locked the group: this makes the button disappear  
appropriately.


In the script of the field:

on scrollbardrag pPos
   set the top of btn Test to value - pPos
end scrollbardrag

value is the top of the button when field's vScroll = zero.

In the script of the card:

on preOpenCard
   send scrollbardrag  the vScroll of fld ScrollingField to fld
ScrollingField
end preOpenCard

Actually this works for me in any case and I don't mind any initial
position :-)
What did I miss?

___
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: Getting vScroll movement of a field scrollbar

2007-12-11 Thread Eric Chatonet

Hi Jim,

Le 11 déc. 07 à 21:23, James Hurley a écrit :


My thanks to all who replied.

Eric's protocol works wonderfully well--see his description below.

(When he says that this makes the button disappear appropriately  
I think he means that the button will disappear as it passes off  
the top of the field.)


You are completely right: your English is better than mine ;-)
Grouping and locking the group with 'no' margins, as you understood  
it :-), makes the button(s) as they were really incorporated in the  
field.
Glad to help you who helped me with Bezier curves some time ago: in  
this field you are a master :-)



Very slick.

Jim



Message: 20
Date: Tue, 11 Dec 2007 16:02:08 +0100
From: Eric Chatonet [EMAIL PROTECTED]
Subject: Re: Getting vScroll movement of a field scrollbar
To: How to use Revolution use-revolution@lists.runrev.com
Message-ID: 7A404ABC-7D1F-466A- 
[EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes;  
format=flowed


Hi Jim,

May be I don't understand the problem ;-)
But:

I created a scrolling field, added a button overlaying the field and
grouped both with group margins = zero.
Then I locked the group: this makes the button disappear  
appropriately.


In the script of the field:

on scrollbardrag pPos
   set the top of btn Test to value - pPos
end scrollbardrag

value is the top of the button when field's vScroll = zero.

In the script of the card:

on preOpenCard
   send scrollbardrag  the vScroll of fld ScrollingField to fld
ScrollingField
end preOpenCard

Actually this works for me in any case and I don't mind any initial
position :-)


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: Getting vScroll movement of a field scrollbar

2007-12-11 Thread Eric Chatonet

Hi James,

Probably, I confused between Jim and James Hurley:
Not a problem: glad to help :-)

Le 11 déc. 07 à 21:38, Eric Chatonet a écrit :


You are completely right: your English is better than mine ;-)
Grouping and locking the group with 'no' margins, as you understood  
it :-), makes the button(s) as they were really incorporated in the  
field.
Glad to help you who helped me with Bezier curves some time ago: in  
this field you are a master :-)


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: Menu option on Mac

2007-12-11 Thread Andres Martinez

Thanks Devin

It worked perfectly!!!  :  )

Regards,
Andres Martinez
www.baKno.com

On Dec 11, 2007, at 3:22 PM, Devin Asay wrote:



On Dec 11, 2007, at 9:49 AM, Andres Martinez wrote:


Hello

The simple applications that we develop do not use Menubars.  
However, the default Menubar created by Revolution on the stand  
alone for Mac includes the About... option as the first one, and  
I would like to do something when the user select that option.


I have seen some Revolution applications doing this. How can I do it?


Andres,

In order to make the About... option in the default standalone menu  
work on a Mac, you'll have to create at least a minimal menu. The  
easiest way to do this is to open Tools  Menu Builder. Create a new  
menu and give it a name, say myMenu. Then delete the File and Edit  
menus. In the remaining Help menu, delete the first item, Help,  
leaving only a - and the About item on the next line. Then close  
the Menu Builder. Hide the new group. In the group script create a  
menuPick handler like this:


on menuPick what
 switch what
   case About
 -- display the about box here
 break
 end switch
end menuPick

In an openStack or preOpenStack handler make this group the menubar  
group:


 on openstack
   set the menubar of this stack to myMenu
 end openstack

Now when you create a standalone from the stack the about menu will  
function. You don't have to worry about the Quit option because the  
OS handles that.


Others may have different ideas about how to do this, but this will  
work.


Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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


Rev 2.9 beta buttons won't move (trying again)

2007-12-11 Thread Paul Gabel

Hello everyone:

When I build a standalone using Rev 2.9 beta 9, my rectangle buttons
will neither play a sound nor move according to the scripts below,
even though they work perfectly in the IDE.

on mouseDown   -- in the button script
   moveButtons
end mouseDown

-

on moveButtons -- in the main stack script
   set the playloudness of audioClip Click 3.aif to 50
   play audioClip Click 3.aif
   move the target relative 2,2 in 4 ticks
   move the target relative -2,-2 in 4 ticks
end moveButtons

Usually the button script (other included commands) will function, but
sometimes not. I filed a bug report about this with quality control,
but now I'm wondering if anyone else has observed this problem, or
could try to duplicate it in the 2.9 beta. Thank you.

Paul Gabel

iMac Intel
Leopard 
___

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


Also OT: Ron Paul

2007-12-11 Thread Josh Mellicker

Has anyone on this list heard of Ron Paul?

If so, just curious what the people whose brains have been trained to  
think logically through a life of programming code think.

___
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: Also OT: Ron Paul

2007-12-11 Thread Randall Lee Reetz
Tax hack dressed up like a candidate.  Think scientology as politics.  

-Original Message-
From: Josh Mellicker [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: 12/11/2007 6:14 PM
Subject: Also OT: Ron Paul

Has anyone on this list heard of Ron Paul?

If so, just curious what the people whose brains have been trained to  
think logically through a life of programming code think.
___
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: Also OT: Ron Paul

2007-12-11 Thread Timothy Miller


On Dec 11, 2007, at 6:14 PM, Josh Mellicker wrote:


Has anyone on this list heard of Ron Paul?


Yes.

If so, just curious what the people whose brains have been trained  
to think logically through a life of programming code think.


You'll find about the same range of political opinions you would find  
among illogical brains.


I get the implication that logical brains prefer Ron Paul. I'll  
give that the consideration it deserves.


Tim
___
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: Also OT: Ron Paul

2007-12-11 Thread Randall Lee Reetz
This is seriously off topic bad form... Sorry i lost track of place and 
purpous... I have read that programmers as a group tend towards libratarianism 
(more proof i am not a real programmer).

-Original Message-
From: Josh Mellicker [EMAIL PROTECTED]
To: How to use Revolution use-revolution@lists.runrev.com
Sent: 12/11/2007 6:14 PM
Subject: Also OT: Ron Paul

Has anyone on this list heard of Ron Paul?

If so, just curious what the people whose brains have been trained to  
think logically through a life of programming code think.
___
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: (no subject)

2007-12-11 Thread Kay C Lan
On Dec 12, 2007 12:56 AM, Ken Ray [EMAIL PROTECTED] wrote:

 Just FYI, there's a couple of other approaches (some are best
 practices) when executing AppleScript from Rev...


As usual, some excellent advice from the experts.

Thanks for sharing.
___
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