[ANN] Scripter's Scrapbook 5.29 Update

2007-04-21 Thread FlexibleLearning
  
www.FlexibleLearning.com/ssbk 
or www.ssBk.co.uk


UPDATE  AVAILABLE
Thanks to feedback, an incremental update has been uploaded and is  now 
available that fixes some recent bugs and improves the 'interface  experience'.

5.29
Update released 21-APR-2007
- Interface: Added 'Segoe UI'  font support for Windows Vista in place of 
'Tahoma'.
- Enhancement: The Tree  index now supports double-click preferences.
- Bugfix: Documents that contain  a comma in the file name now import as 
expected.
- Bugfix: Unexpected  double-pasting of copied text has been resolved.
- Bugfix: The failure on  some platform configurations to complete an update 
has been fixed. 


NEXT STEP
- Registered and Trial users should update through the  Help menu or in the 
Preferences.

- New users and those interested in  reviewing the changes since an earlier 
trial may obtain a free 30-day  starter-kit at www.FlexibleLearning.com/ssbk. 
You will be asked if you wish to  obtain the most recent version, and it will 
automatically download this update  for you

- Full size screen shots for both Mac OSX and Windows XP are at  
www.FlexibleLearning.com/ssbk/preview including useful mouse shortcuts  
illustrations.


FEEDBACK
Finally, if you have a moment to suggest  improvements or request additional 
features we would very much appreciate your  feedback at 
www.flexiblelearning.com/ssbkFeedback.htm


Hugh  Senior
FLCo
Home of the Scripter's Scrapbook 
 




   
___
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: Mac question

2007-04-21 Thread Stephen Barncard

Cmd-click on a finder title bar (and some apps' title bars)



Is there anyway to show the path of the folder one is navigating to on
the Mac. On the PC, I have an address bar which shows the location of
where I'm at. I've a couple of windows open on the Mac and I've
navigated to the same subfolder, but of different directories. Other
than 'backing out', is there a simple way to know what directory path
one is in?

TIA, Chipp


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
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: Obtaining the size of a file

2007-04-21 Thread Richard Gaskin

John Craig wrote:
I'm recursing through a (sometimes large) list of files and folders 
which can take a while, so I was trying to avoid another function call 
per line.


A perfect case for using the detailed files, so you can rapidly get 
all of the size info for an entire directory in one call, and the just 
format the info or calculate it however you need.


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.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: Obtaining the size of a file

2007-04-21 Thread Bill Marriott

John,

I'm recursing through a (sometimes large) list of files and folders which 
can take a while, so I was trying to avoid another function call per line.


Josh's function is pretty speedy. And, if you know you are going to process 
all the files in a directory, then you can store a copy of the detailed 
files before filtering for the specific file you want.


I've written several handlers in the past for things only to discover 
later that there is a command that does the task in a one liner [...]


Another way to make quick work of the detailed files is to put them into an 
array:


  put the detailed files into foobar
  split foobar by return and comma

then you can say,

  get item 1 of foobar[urlencode(myFileName)]

to obtain the file size. How's that for a one-liner?


___
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: Obtaining the size of a file

2007-04-21 Thread Jim Ault
perhaps an applescript that did the whole list and returned one list as a
result... only one handoff.

Jim Ault
Las Vegas


On 4/21/07 12:17 AM, John Craig [EMAIL PROTECTED] wrote:

 Thanks for the replies, everyone.  I've written several handlers in the
 past for things only to discover later that there is a command that does
 the task in a one liner - I just never found it in the docs - so I
 thought I'd ask.
 
 I'm recursing through a (sometimes large) list of files and folders
 which can take a while, so I was trying to avoid another function call
 per line.
 
 JC
 
 Josh Mellicker wrote:
 Here are a couple of handlers that return the humanSize (a nicely
 formatted version) of a file provided the complete file path and
 filename:
 
 
 put humanSize(tPathAndFile) into fld file size
 
 
 FUNCTION humanSize tPathAndFile
   put theFileDetail(tPathAndFile) into tFileDet
   put item 2 of tFileDet + item 3 of tFileDet into tSize
   IF tSize  100 THEN
 set the numberformat to ##.##
 return tSize/100   MB
   ELSE
 set the numberformat to ##
 return tSize/1000   KB
   END IF
 END humanSize
 
 FUNCTION theFileDetail tPathAndFile
 set the itemdel to /
 put item -1 of tPathAndFile into tFile
 delete item -1 of tPathAndFile
 put / after tPathAndFile
 set the defaultfolder to tPathAndFile
 put the detailed files into tFiles
 filter tFiles with urlencode(tFile)  comma  *
 return tFiles
 END theFileDetail
 
 
 These only took a few days to write, I am not quite as fast as Richard
 :-)
 
 On Apr 20, 2007, at 7:02 PM, Richard Gaskin wrote:
 
 John Craig wrote:
 
 Richard Gaskin wrote:
 John Craig wrote:
 Does anyone know of a native rev. method to obtain the size of a
 file without using shell or 'the detailed files'?
 
 What's the objection to using 'the detailed files'?
 
 It was added to the language specifically to provide what you're
 looking for.
 
 It's clumsy and long winded.
 
 Revolution allows you to write your own custom commands and
 functions, so you can get the exact info you want in a call as simple
 as:
 
get FileSize(pFilePath)
 
 
 Since it only takes a minute to write the dozen or so lines needed,
 I'll go ahead and do that for you:
 
 function FileSize pPath
   set the itemdel to /
   put urlEncode(last item of pPath) into tShortFileName
   delete last item of pPath
   put the directory into tSaveDir
   set the directory to pPath
   put the detailed files into tFiles
   set the directory to tSaveDir
   set the itemdel to comma
   put lineoffset( crtShortFileNamecomma, crtFiles) into tLineNum
   if tLineNum  0 then
 put line tLineNum of tFiles into tLine
 return item 2 of tLine + item 3 of tLine
   end if
 end FileSize
 
 
 Now you can drop than handy function into a library somewhere and use
 it whenever you need it.
 
 -- Richard Gaskin
  Fourth World Media Corporation
  ___
  [EMAIL PROTECTED]   http://www.FourthWorld.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
 
 
 
 ___
 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: Mac question

2007-04-21 Thread Jim Ault
I fire up Path Finder when that is important.
About 18 months ago I investigated any way of 3rd party or other to show the
path in all that space that is available, but could find nothing.  I do lots
of /web/ file paths and this is a real pain.  I guess it is something about
a file that we are easily supposed to observe.  If multiple Finder windows
are open, I have found no way of displaying the full path.

Another welcome feature of Path Finder is the right-click  copy path as
UNIX, HFS, Terminal(spaces escaped), URL, Name

Jim Ault
Las Vegas


On 4/21/07 12:08 AM, Stephen Barncard [EMAIL PROTECTED]
wrote:

 Cmd-click on a finder title bar (and some apps' title bars)
 
 
 Is there anyway to show the path of the folder one is navigating to on
 the Mac. On the PC, I have an address bar which shows the location of
 where I'm at. I've a couple of windows open on the Mac and I've
 navigated to the same subfolder, but of different directories. Other
 than 'backing out', is there a simple way to know what directory path
 one is in?
 
 TIA, Chipp


___
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: Obtaining the size of a file

2007-04-21 Thread Viktoras Didziulis
 
This is an example from documentation,
assuming your file is MyFile.txt:
 
get the detailed files 
filter it with MyFile.txt,* 
put item 2 of it + item 3 of it into myFileSize
 
There is also  size property which reports the amount of disk space taken by
an object to judge how much memory an object takes when displayed. E.g.: 
 
get the size of image myImage
 
However the size property of a stack does not report any meaningful value
and is always 1.
 
All the best!
Viktoras
___
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: Obtaining the size of a file

2007-04-21 Thread Dick Kriesel
On 4/21/07 1:03 AM, Bill Marriott [EMAIL PROTECTED] wrote:

 Another way to make quick work of the detailed files is to put them into an
 array:
 
put the detailed files into foobar
split foobar by return and comma
 
 then you can say,
 
get item 1 of foobar[urlencode(myFileName)]
 
 to obtain the file size. How's that for a one-liner?

You can include the size of the Mac data fork and still use just one line:

get sum(item 1 to 2 of foobar[urlencode(myFileName)])

-- Dick


___
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: textHeight and textSize

2007-04-21 Thread Ferdinand

Thanks for your time and answer.

Setting the font works fine here. I try to be more specific with my  
point:


I need the exact line height needed for the font and font size. So  
the font fits exactly in the line.

For example:

For the font Arial with a size of 96 pts, the line height should be  
110 pts to fit the font exactly.

But for the font Zapfino with a size of 96 pts it should be 324 pts.
And Verdana needs 117 pts to fit on a line. (with a font size of 96)

(i checked this on the texteditor on my Mac... )

It would be nice if there was a way to find this out and program it  
within Revolution.
Otherwise I think I need to make a table with the font name and the  
line height/font size ratio...


I hope I made my point clear this time, and I am sorry if it was not  
before...


thanks again for your time.

Ferdinand.



 [EMAIL PROTECTED] wrote:


With textSize it's either automatic or manual.
To make manual adjustments:
First set choose the textFont and textSize from the Text Formatting  
Palette

Second choose the textHeight from the Basic Properties Palette
ANY change to the first palette will change the textHeight to Rev's  
default (not just textSize changes).
You can set a typeface or font for the entire stack, rather than  
field by field and button by button, if you want. However any  
fields or buttons that already have a typeface selected will not  
have it overrided. So if you are going for a global typeface change  
run a script similar to this:

repeat with i = 1 to the number of flds
set the textFont of fld i to empty
set the textSize of fld i to empty
set the textHeight of fld i to empty
end repeat

Paul Looney




  Hi All,

I have some troubles with the textHeight and textSize properties.

The documentation says:


 If you change the field's textSize, Revolution automatically sets  
the textHeight to trunc(4/3 * the textSize of field). For example,  
if the textSize is set to 12, the textHeight is set to 16 by  
default. If the textSize is set to 14, the textHeight is set to 18.



 With some fonts this is okay, but I have some fonts with a  
greater textHeight/textSize ratio. For example handwriting fonts.

With these fonts the text looks not so nice in a field.
 Is there a way to determine the good textHeight : textSize ratio  
within Revolution ?


Thanks for your help!



___
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: Mac question

2007-04-21 Thread Sarah Reichelt

On 4/21/07, Chipp Walters [EMAIL PROTECTED] wrote:

Is there anyway to show the path of the folder one is navigating to on
the Mac. On the PC, I have an address bar which shows the location of
where I'm at. I've a couple of windows open on the Mac and I've
navigated to the same subfolder, but of different directories. Other
than 'backing out', is there a simple way to know what directory path
one is in?


I customize the toolbar for Finder windows to show a Path popup menu.
This displays the path and allows you to navigate back through it.

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


AW: mysterious set the clipboardData

2007-04-21 Thread Tiemo Hollmann TB
Thank you Ken, Mark and Sarah,
Text of... didn't worked for me
Export... works
And Sarahs trick did it too. Sarah was right, that the problem occurs only,
when the image doesn't have the original size, so I choose Sarahs
workaround.
Did you report this bug Sarah, or shall I do it?

Thank you all
Tiemo

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:use-revolution-
 [EMAIL PROTECTED] Im Auftrag von Sarah Reichelt
 Gesendet: Freitag, 20. April 2007 23:44
 An: How to use Revolution
 Betreff: Re: mysterious set the clipboardData
 
  thought, it would be very simple, now I get a mysterious result. I have
 an
  image with an assigned filename (png file).
 
  If I use: set the clipboardData[image] to image b1
 
  and paste it into any graphic program, it gives me a totally black image
 of
  small size (128x32px) and not the copied image. At least there is any
 kind
  of communication, because the pasted image has the same dpi, as the
 source
  image
 
 There is some problem with copying an image if it is a referenced
 image and/or it it is displayed at a different size to it's actual
 pixels. Here is a routine I use, which requires a hidden image object
 called Clip
 
 lock screen
 put the rect of img MyImage into tRect
 set the width of img MyImage to the formattedwidth of
 img MyImage
 set the height of img MyImage to the formattedheight of
 img MyImage
 set the width of img Clip to the width of img MyImage
 set the height of img Clip to the height of img MyImage
 set the imagedata of img Clip to the imagedata of img
 MyImage
 set the clipboardData[image] to img Clip
 set the filename of img Clip to empty
 set the rect of img tImageName to tRect
 
 MyImage is an image object showing a specific image file at a
 reduced size, so I expand it to full size, copy the imageData to the
 Clip object, then set the clipboardData before restoring the
 original size of the MyImage object.
 
 HTH,
 Sarah
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: OT: Mac question

2007-04-21 Thread Ian Wood


On 21 Apr 2007, at 09:27, Jim Ault wrote:

Another welcome feature of Path Finder is the right-click  copy  
path as

UNIX, HFS, Terminal(spaces escaped), URL, Name


On that subject, Path Snagger is a great donationware preference pane  
that adds a contextual menu item to the Finder, to copy Unix paths,  
HFS paths and URL paths, with options for escaped spaces etc.


http://www.bergenstreetsoftware.com/

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: OT: Mac question

2007-04-21 Thread Robert Brenstein

On Apr 21, 2007, at 6:44 AM, Chipp Walters wrote:


Is there anyway to show the path of the folder one is navigating to on
the Mac. On the PC, I have an address bar which shows the location of
where I'm at. I've a couple of windows open on the Mac and I've
navigated to the same subfolder, but of different directories. Other
than 'backing out', is there a simple way to know what directory path
one is in?


Command Click the name of the folder in the title bar is one way.



Another option is to edit the window toolbar in Finder (Customize 
Toolbar in the View menu) and add the path popup button.


Robert
___
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: Mac question

2007-04-21 Thread Joe Lewis Wilkins
Though this works; even with most OSX compliant application  
documents, one of the first complaints I had with Rev was that it  
does not work when you have a Rev Stack open. This should not be a  
truly difficult fix I should think.


Joe Wilkins

On Apr 21, 2007, at 12:08 AM, Stephen Barncard wrote:


Cmd-click on a finder title bar (and some apps' title bars)


___
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: Mac question

2007-04-21 Thread Richard Gaskin

Joe Lewis Wilkins wrote:
 Though this works; even with most OSX compliant application
 documents, one of the first complaints I had with Rev was that it
 does not work when you have a Rev Stack open. This should not be a
 truly difficult fix I should think.

Wow.  I knew about Cmd-click in the title for Finder windows, but never 
knew that was a standard behavior across most apps.  So cool.


With Rev it may be challenging to determine when to support this, since 
a stack file can contain multiple stacks.  But if we came up with a rule 
that made sense, or maybe better a property of mainstacks, I'd vote for 
the BZ suggestion.


Now that I know about this I want it for the document windows in my 
Rev-based apps, and I'll bet some of my cusyomers do too.


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.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: Mac question

2007-04-21 Thread Jim Ault
On 4/21/07 10:22 AM, Richard Gaskin [EMAIL PROTECTED] wrote:

 Joe Lewis Wilkins wrote:
 Though this works; even with most OSX compliant application
 documents, one of the first complaints I had with Rev was that it
 does not work when you have a Rev Stack open. This should not be a
 truly difficult fix I should think.
 
 Wow.  I knew about Cmd-click in the title for Finder windows, but never
 knew that was a standard behavior across most apps.  So cool.
 
 With Rev it may be challenging to determine when to support this, since
 a stack file can contain multiple stacks.  But if we came up with a rule
 that made sense, or maybe better a property of mainstacks, I'd vote for
 the BZ suggestion.
 
 Now that I know about this I want it for the document windows in my
 Rev-based apps, and I'll bet some of my cusyomers do too.
In some of my apps (for myself) and clients I want to be able to know which
folder the stack is running from so I put a field at the top called
appLocation, shared = true, in a group by itself, behave as background =
true.

on openstack
   put the effective filename of this stack into fld appLocation
   --the effective filename =  the mainstack for substacks

When the content of a card is linked to a folder on the hard drive, I do the
same thing (but not shared text) on opencard or closefield, etc.

Jim Ault
Las Vegas


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


Re: connected to LAN

2007-04-21 Thread Sivakatirswami



Jim Sims wrote:




I suppose I am asking if there might be a specific identifying item 
for a LAN that I can
obtain in order to do the above. I don't want to simply check for 
connection to a LAN but

connection to a specific LAN.


I use ping files on the servers on the LANs. This assume
of course you can set this up in advance. If your app finds
/Volumes/Varuna/WWW/ping.txt  then you know your are
there. If your app can't find that file the you try
/Volumes/LAN2/WWW/ping.txt.


___
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: Mac question

2007-04-21 Thread Sivakatirswami

Jim Ault wrote:

I fire up Path Finder when that is important.
About 18 months ago I investigated any way of 3rd party or other to show the
path in all that space that is available, but could find nothing.  I do lots
of /web/ file paths and this is a real pain.  I guess it is something about
a file that we are easily supposed to observe.  If multiple Finder windows
are open, I have found no way of displaying the full path.
 
Another welcome feature of Path Finder is the right-click  copy path as

UNIX, HFS, Terminal(spaces escaped), URL, Name


I have this same need.. all the time.

I have a small rev utility Favorites that is always open.
Among other things it as this drop field:

-- all handlers

on dragEnter
  set the acceptDrop to true
  end dragEnter

on dragDrop
  put  dragData[files] into tPaths
  set the clipboarddata[text] to tPaths
  put tPaths into me

end dragDrop

I just drag folders or file(s) onto this and my clipboard is loaded.



Jim Ault
Las Vegas


On 4/21/07 12:08 AM, Stephen Barncard [EMAIL PROTECTED]
wrote:


Cmd-click on a finder title bar (and some apps' title bars)



Is there anyway to show the path of the folder one is navigating to on
the Mac. On the PC, I have an address bar which shows the location of
where I'm at. I've a couple of windows open on the Mac and I've
navigated to the same subfolder, but of different directories. Other
than 'backing out', is there a simple way to know what directory path
one is in?

TIA, Chipp



___
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



--
Om shanti
(In  Peace)

Sivakatirswami
www.himalayanacademy.com

Get Hinduism Today Digital Edition. It's Free!
http://www.hinduismtoday.com/digital/

___
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: Mac question

2007-04-21 Thread Chipp Walters

Thanks everyone for your helpful tips Much appreciated :-)
___
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: Mac question

2007-04-21 Thread Joe Lewis Wilkins
Maybe I exaggerated a bit; but even in 9.2 AppleWorks had that  
function and it continues with OSX and some other Apple apps. I don't  
know about 3rd party apps. I know that my favorite, MacDraft doesn't  
have that feature. Still, they all should IMO.


Joe Wilkins

On Apr 21, 2007, at 10:22 AM, Richard Gaskin wrote:


Joe Lewis Wilkins wrote:
 Though this works; even with most OSX compliant application
 documents, one of the first complaints I had with Rev was that it
 does not work when you have a Rev Stack open. This should not be a
 truly difficult fix I should think.

Wow.  I knew about Cmd-click in the title for Finder windows, but  
never knew that was a standard behavior across most apps.  So cool.


With Rev it may be challenging to determine when to support this,  
since a stack file can contain multiple stacks.  But if we came up  
with a rule that made sense, or maybe better a property of  
mainstacks, I'd vote for the BZ suggestion.


Now that I know about this I want it for the document windows in my  
Rev-based apps, and I'll bet some of my cusyomers do too.


___
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


Automatically setting screen resolution

2007-04-21 Thread Stgoldberg
Sorry if I may have missed this topic in a previous forum.   I'd appreciate 
any help on the following question: The standalones that I am creating require 
a screen resolution of 1024 x 768 or higher to properly fit on the screen.   
Since some people may have their monitors set to a lower resolution, I've been 
including a ReadMeFirst file explaining the need for them to reset their 
monitors to the higher resolution.   Is there a way within Revolution to 
automatically set the resolution to 1024x768 (and then convert it back to the 
original 
resolution when the standalone closes)?   
I've been finding Revolution enormously helpful in preparing programs in 
medical education.   At this time all the CDs in my company (MedMaster) are in 
Revolution.   There are a few free downloads on the MedMaster web site if 
anyone 
is interested.   Thanks very much.   
Steve Goldberg, MD, President
MedMaster Inc
www.medmaster.net


**
 See what's free at 
http://www.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: Automatically setting screen resolution

2007-04-21 Thread Joe Lewis Wilkins

Steve,

In my opinion as a very long time user of a  great many different  
programs, I believe handling it as you have with a ReadMe  
instruction, is probably the best method. I have encountered a few  
programs that automatically make the change for me, and I've always  
hated it. I prefer to be in control - ALWAYS - since there can be  
other things affected by a change in resolution beyond what the  
programmer may have taken into consideration. Remember, just because  
your program is opened, that doesn't mean the user will stay there  
until they close it.


Another approach would be to check the resolution on startup and  
provide a dialog informing the user to make the change. At this point  
the dialog could allow to stop the program and do the change  
themselves, or to continue and have the resolution changed for them.  
This would be acceptable. Of course, if the resolution IS the desired  
one, no dialog would appear in the first place.


Joe Wilkins

On Apr 21, 2007, at 7:59 PM, [EMAIL PROTECTED] wrote:

Sorry if I may have missed this topic in a previous forum.   I'd  
appreciate
any help on the following question: The standalones that I am  
creating require
a screen resolution of 1024 x 768 or higher to properly fit on the  
screen.
Since some people may have their monitors set to a lower  
resolution, I've been
including a ReadMeFirst file explaining the need for them to  
reset their
monitors to the higher resolution.   Is there a way within  
Revolution to
automatically set the resolution to 1024x768 (and then convert it  
back to the original

resolution when the standalone closes)?
I've been finding Revolution enormously helpful in preparing  
programs in
medical education.   At this time all the CDs in my company  
(MedMaster) are in
Revolution.   There are a few free downloads on the MedMaster web  
site if anyone

is interested.   Thanks very much.
Steve Goldberg, MD, President
MedMaster Inc
www.medmaster.net


**
 See what's free at
http://www.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


___
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: Automatically setting screen resolution

2007-04-21 Thread Brent Anderson

Hello.

First of all, adjusting screen resolution can make your user annoyed  
and can cause unforeseeable issues on their computer. The ReadMe  
would be good, but a dialog asking them if they want the software to  
change their resolution or to adjust it themselves and then relaunch  
would be preferable.


To change it yourself, you have to use a little external help. There  
was a way to accomplish this using a tool called CScreen. It was a  
command line executable invoked via the shell and it did the job very  
well. Unfortunately, the author has dropped the code from his  
website. The internet is a great thing, however, and an executable  
version has resurfaced at the following address:


http://forums.macosxhints.com/attachment.php? 
attachmentid=1416d=1156306718


This executable will work for Mac OS X and should work for Unix/ 
Linux. I do not know of a solution for Windows, however it is very  
possible that you could achieve the same effect with VBScript.


Thanks,
Brent Anderson
Fiery Ferret

___
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: Automatically setting screen resolution

2007-04-21 Thread Scott Kane


 Is there a way within Revolution to automatically set the resolution to 
1024x768 (and then convert it back to the original

resolution when the standalone closes)?


To give an precise example of where automatic resolution changing would be 
disastrous - if I have open one of my programming languages (say Borland 
Delphi) with a project I'm working on and I run your program you will 
*destroy* the resources in my program in such a way as to make me have to 
completely redesign the user interface as the scaling will be all over the 
place.  While I can probably do this OK it would annoy me immensely and a 
less experienced person using the IDE would have bigger problems.  IMHO 
programs should *never* dictate to the user.  They should politely ask or 
display a readme or message dialog asking me to fix the resolution to see 
the program properly.


Scott

___
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: Automatically setting screen resolution

2007-04-21 Thread Ken Ray
On Sat, 21 Apr 2007 22:59:34 EDT, [EMAIL PROTECTED] wrote:

 Is there a way within Revolution to automatically set the resolution 
 to 1024x768 (and then convert it back to the original 
 resolution when the standalone closes)?  

It's funny you mention this - I just posted an answer to this in the 
MetaCard list. You've already gotten all the caveats from others on 
this list, so if you really want to do it, here's how:

For OS X you can download and implement Jon's Commands X with 
AppleScript (http://www.seanet.com/~jonpugh/). He has an AppleScript 
command called screen list that lets you get data on one or more 
screens, and set screens to to change them. Or you can use the 
'cscreen' command line application, although the original developer has 
gone off the grid and his site is nowhere to be found (but you might 
be able to scare it up with a web search).

For Windows, you can use one of these three third-party command line 
executables (MultiRes, Resolution Changer, or VidRes):
http://www.entechtaiwan.com/files/multires.exe
http://www.myitforum.com/inc/upload/1365Vidchng.zip
http://www.jddesign.co.uk/

HTH,

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