Re: Printing question

2007-01-22 Thread Jeanne A. E. DeVoto
At 12:57 PM -0500 1/21/2007, Charles Szasz wrote:
I have been using Dan Shafer's excellent book on printing has help 
me a great deal iwith my project. But I have a question. I have 
three cards that I want to print. Each card has a button that has to 
be hidden and one card has a group three radio buttons that have to 
be hidden. I am using lock screen and unlock screen with the hide 
and show commands to hide the buttons and radio buttons. Here is my 
question, how do I incorporate printing each card with different 
elements to be hidden and shown in the printing script that is in 
one print button?


If I understand your question right, you want to print all three cards (with 
the controls correctly hidden) in a single print job - is that right?

You can do this by using open printing and close printing:

  open printing -- optionally add with dialog if you want the print dialog box
  hide button Unprintable of card 1
  print card 1
  show button Unprintable of card 1
  hide button Dont Print Me of card 2
  print card 2
  show button Dont Print Me of card 2
  hide button Please no pictures of card 3
  hide group Eek! of card 3
  print card 3
  show group Eek! of card 3
  show button Please no pictures of card 3
  close printing -- prints all three cards
-- 
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.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


mac help needed

2007-01-22 Thread rev
Hi All.
I've not been around recently, see you all soon, howeverI Need your help.

THis is not a rev question but a mac question.

One of the Prof's here is giving a statistics tutorial. He uses a program called
SuperANOVA. He is the registered user, but has it on an old blueberry iMac
running OS 9.2.

He has lost the discs and the iMac doesn't have video out to an external
projector (well I cant see one).

He would like to use this on his powerbook. I thought he could simply copy the
app folder over, however, it wont run. I cannot see anything related to the app
in another folder.

He cannot contact the company (abacus systems) because they are defunct (website
is now a financial company). Is there a way to find the files associated with
this app on his machine (he needs a backup anyway) so we can run it to show the
students proper stats.

If we copied the hard disc over to an external hard drive and ran it from that
disc would the app run or are mac apps pathway specific?

Any help appreciated.

Cheers
Bob

___
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 help needed

2007-01-22 Thread Mark Schonewille

Hi Bob,

Is the PowerBook running Mac OS X or Mac OS 9? What does it won't  
run mean exactly, does it do anything at all, like starting up and  
quitting immediately? You should be able to copy the entire hard  
disk, but it won't help if you don't run it on exactly the same  
machine, because the system software will run on the same type of  
iMac only. (If you decide to copy the hard disk over the network,  
don't copy more than 2 Gig at a time). Normally, Mac programmes are  
not path specific, but there may be safety measures built into the  
application, making it path-specific.


Mark

--

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

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 22-jan-2007, om 10:28 heeft [EMAIL PROTECTED] het volgende geschreven:


Hi All.
I've not been around recently, see you all soon, howeverI Need  
your help.


THis is not a rev question but a mac question.

One of the Prof's here is giving a statistics tutorial. He uses a  
program called
SuperANOVA. He is the registered user, but has it on an old  
blueberry iMac

running OS 9.2.

He has lost the discs and the iMac doesn't have video out to an  
external

projector (well I cant see one).

He would like to use this on his powerbook. I thought he could  
simply copy the
app folder over, however, it wont run. I cannot see anything  
related to the app

in another folder.

He cannot contact the company (abacus systems) because they are  
defunct (website
is now a financial company). Is there a way to find the files  
associated with
this app on his machine (he needs a backup anyway) so we can run it  
to show the

students proper stats.

If we copied the hard disc over to an external hard drive and ran  
it from that

disc would the app run or are mac apps pathway specific?

Any help appreciated.

Cheers
Bob

___
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 help needed

2007-01-22 Thread rev

Quoting Mark Schonewille [EMAIL PROTECTED]:


Hi Bob,


Hi Mark


Is the PowerBook running Mac OS X or Mac OS 9? What does it won't  
run mean exactly, does it do anything at all, like starting up and  
quitting immediately? You should be able to copy the entire hard  
disk, but it won't help if you don't run it on exactly the same  
machine, because the system software will run on the same type of  
iMac only. (If you decide to copy the hard disk over the network,


The powerbook is a new one and runs OSX but he as the classic environment as
well.

When you double click on the app icon it wont run. He is not in  yet so I'll
check the fine details with him.



don't copy more than 2 Gig at a time). Normally, Mac programmes are  
not path specific, but there may be safety measures built into the  
application, making it path-specific.


This is quite an expensive app so it is probably secured in some way. My app
(statview) is a cut down version and cost about $450 so his app is, no doubt,
protected.

I just thought of something.

Could he run it from the powerbook in classic mode via appletalk. I remember
years ago running apps on my powerbook that was on another machines HD?

Is this possible from classic to OS9.2?

More later
Bob


Mark

--

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

Get your store on-line within minutes with Salery Web Store software. 
 Download at http://www.salery.biz


Op 22-jan-2007, om 10:28 heeft [EMAIL PROTECTED] het volgende geschreven:


Hi All.
I've not been around recently, see you all soon, howeverI Need  
your help.


THis is not a rev question but a mac question.

One of the Prof's here is giving a statistics tutorial. He uses a  
program called

SuperANOVA. He is the registered user, but has it on an old  blueberry iMac
running OS 9.2.

He has lost the discs and the iMac doesn't have video out to an  external
projector (well I cant see one).

He would like to use this on his powerbook. I thought he could  
simply copy the
app folder over, however, it wont run. I cannot see anything  
related to the app

in another folder.

He cannot contact the company (abacus systems) because they are  
defunct (website
is now a financial company). Is there a way to find the files  
associated with
this app on his machine (he needs a backup anyway) so we can run it  
to show the

students proper stats.

If we copied the hard disc over to an external hard drive and ran  
it from that

disc would the app run or are mac apps pathway specific?

Any help appreciated.

Cheers
Bob

___
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 help needed

2007-01-22 Thread Mark Schonewille

Hi Bob,

You could install VNC on both computers. With VNC, you can display  
the screen of the iMac on the PowerBook and control it remotely, or  
work on the iMac and just show the action on the PowerBook. This is  
rather slow, however.


Best,

Mark

--

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

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 22-jan-2007, om 11:12 heeft [EMAIL PROTECTED] het volgende geschreven:

snip



I just thought of something.

Could he run it from the powerbook in classic mode via appletalk. I  
remember
years ago running apps on my powerbook that was on another machines  
HD?


Is this possible from classic to OS9.2?

More later
Bob


___
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


FormatForPrinting

2007-01-22 Thread Graham Samuel
I am reluctantly using FormatForPrinting to gain control over exact  
layout in Windows printouts. It seems to me an amazingly awkward  
beast, requiring one to remove a stack from memory before setting  
this property; not being editable once the property is set (meaning  
you have to save the stack before using it); not being cross- 
platform; and giving viewing difficulties if one wants to show an  
accurate preview. According to the docs



Comments:
Windows systems may use different font versions for printing and  
for screen display, and the spacing of the print version may differ  
from the spacing of the screen version. This can result in layouts  
and line breaks differing between the screen display and the  
printed result. For the best appearance of printed cards in a  
stack, make sure the stack is closed (and not in memory), then set  
the stack's formatForPrinting property to true before opening the  
stack to print it.


  Important!  Do not edit field text in a stack whose  
formatForPrinting is true. Doing so can cause display anomalies.  
Set the formatForPrinting property to false before you make changes  
to text in fields.


The spacing of printer font versions usually results in a difficult- 
to-read display when these fonts are used for screen viewing. To  
avoid display problems, set the formatForPrinting property to true  
only when printing. To let the user preview the appearance of the  
printed output, set the formatForPrinting property to true before  
opening the stack.


This all makes me wonder whether it's worth doing, especially for an  
app that's supposed to work both on Macs and PCs.


Has anyone any experience of using this stuff that they would like to  
share?


TIA

Graham



Graham Samuel / The Living Fossil Co. / UK and France

___
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 help needed

2007-01-22 Thread Marian Petrides
You might be able to run the iMac's HD in Firewire target mode from  
the Powerbook, if you can connect the two via firewire. If this  
works, then the iMac will appear just like any other an external HD  
on the Powerbook.


For exact instructions, check Apple's support pages and search for  
firewire target mode.  Most Macs can do this but some cannot and, I  
think, the instructions may be slightly different depending on model.


HTH.

Marian
On Jan 22, 2007, at 4:39 AM, Mark Schonewille wrote:


Hi Bob,

You could install VNC on both computers. With VNC, you can display  
the screen of the iMac on the PowerBook and control it remotely, or  
work on the iMac and just show the action on the PowerBook. This is  
rather slow, however.


Best,

Mark

--

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

Get your store on-line within minutes with Salery Web Store  
software. Download at http://www.salery.biz


Op 22-jan-2007, om 11:12 heeft [EMAIL PROTECTED] het volgende  
geschreven:


snip



I just thought of something.

Could he run it from the powerbook in classic mode via appletalk.  
I remember
years ago running apps on my powerbook that was on another  
machines HD?


Is this possible from classic to OS9.2?

More later
Bob


___
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


A Standalone Win Build Problem

2007-01-22 Thread Charles Szasz

Bill,

I made the changes you suggested but that did not work.  My question  
now is if changed the appearance of the card to have a gray  
background how do I maintain a white background for printing purposes  
so I don't get a gray background?



Charles Szasz
[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


Rev Crashing..

2007-01-22 Thread Chipp Walters

When using Rev 2.7.4 build 291, the latest 'official' release.

I've narrowed down a bug which I think is happening when trying to select
text and drag/drop itself in the same single line field with the htmlText
having a font attribute of 'bgColor'.

IOW, I've successfully crashed Rev when I'm trying to select/deselect text
repeatedly in a grouped field with the htmlText set to:

font bgColor=128,255,255   try to select THIS and move it after the
period.   /font

Anyone else seeing this same problem? It's very disconcerting. If I can find
a reproducable recipe, I'll post it to bugzilla, as this one's really nasty.
___
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: FormatForPrinting

2007-01-22 Thread Chipp Walters

Hi Graham,

Yeah, I use it on Windows for printing, and you do have to jump through some
hoops. As I recall, if you don't use it, your font metrics may be off and
you may not get what you think you're printing.

I've also found setting the text field's margins to something really large
(20) helped from characters at the end of a line form getting clipped off.

HTH, 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: A Standalone Win Build Problem

2007-01-22 Thread Roger . E . Eller
On 01/22/2007 at 09:06 AM Charles Szasz wrote:
 Bill,
 
 I made the changes you suggested but that did not work.  My question 
 now is if changed the appearance of the card to have a gray 
 background how do I maintain a white background for printing purposes 
 so I don't get a gray background?
 
 Charles Szasz
 [EMAIL PROTECTED]

Try this:

put the bgColor of this card into tMyGrayBG
set the bgColor of this card to white -- or 255,255,255
print this card
set the bgColor of this card to tMyGrayBG

The above is untested, but should work.

--
Roger Eller [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: FormatForPrinting

2007-01-22 Thread Mark Swindell
Are these printing issues among those being fixed in the next bug- 
free release?  i.e. Are they top priority at this point in Revs  
evolution?

Mark

On Jan 22, 2007, at 6:15 AM, Chipp Walters wrote:


Hi Graham,

Yeah, I use it on Windows for printing, and you do have to jump  
through some
hoops. As I recall, if you don't use it, your font metrics may be  
off and

you may not get what you think you're printing.

I've also found setting the text field's margins to something  
really large
(20) helped from characters at the end of a line form getting  
clipped off.


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



___
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: Rev Printing Problem

2007-01-22 Thread Devin Asay

Charles,

Can you just include the hiding/showing in the same button script?

on mouseUp
  hideStuff
  ## print command here
  showStuff
end mouseUp

on hideStuff
  ## hide controls here
end hideStuff

on showStuff
  ## show controls here
end showStuff

Am I missing something? Is the problem that the show happens too fast  
after the print command, so they are already visible again before the  
print command has done its thing?


Devin

On Jan 21, 2007, at 12:43 PM, Charles Szasz wrote:

I have been using Dan Shafer's excellent book on printing has help  
me a great deal with my project. But I have a question. I have  
three cards that I want to print. Each card has a button that has  
to be hidden and one card has a group three radio buttons that have  
to be hidden. I am using lock screen and unlock screen with the  
hide and show commands to hide the buttons and radio buttons. Here  
is my question, how do I incorporate printing each card with  
different elements to be hidden and shown in the printing script  
that is in one print button?



Charles Szasz
[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



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

2007-01-22 Thread Chipp Walters

I seem to remember one of the reasons for the complete graphics overhaul of
the engine in 2.7+ was to better support printing.
___
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: last char

2007-01-22 Thread Chipp Walters

Here's something which may be interesting regarding last char:

I typically do this sort of thing:

repeat for each line L in tList
 put item 1 of L  cr after tList2
end repeat
delete last char of tList2

This works fine, even if tList2 is empty. IOW, I don't have to check to see
if tList2 has cr as it's last char before deleting.
___
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


displaying imported images from within htmltext

2007-01-22 Thread Viktoras Didziulis
how do we display an image imported into the stack's or substack's image
library within a field using htmltext img src= ? Is this possible ? I
tried various combinations without any success, and it is likely that the
only way to display an image in htmltext of the field is to have it as a
file on a hard drive... Or am I wrong ? 
 
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: Load and stacks...

2007-01-22 Thread David Bovill

On 21/01/07, Dave Cragg [EMAIL PROTECTED] wrote:

You could use libUrlDownloadToFile to do an asynchronous load

directly to a file instead of the cache. Or in the callback message
for load, save the url to a local file. For example:

load url myUrl with message loaded

on loaded pUrl, pStatus
   if pStatus = cached then
 put url pUrl into url (binfile:  pathToLocalFile)
   end if
   unload url pUrl
end loaded



Ah - thanks that should work. NB as libUrlDownloadToFile uses ftp rather
than http which load uses... I am wondering which is the faster and most
reliable method? Ive never really trusted ftp and prefer to use http
whenever possible - but is that an unfounded prejudice? Is http faster? Are
there any differences in terms of firewalls? I am thinking in cases where
you control both the http web server and the ftp server.
___
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: displaying imported images from within htmltext

2007-01-22 Thread Mark Schonewille

Viktoras,

Use the imageSource property. Examples from the docs:

set the imageSource of char 1 of line 2 of field This to 2533
set the imageSource of char thisChar of field 1 to Arrow
set the imageSource of last char of me to binfile:My Image

Best,

Mark

--

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

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 22-jan-2007, om 17:38 heeft Viktoras Didziulis het volgende  
geschreven:


how do we display an image imported into the stack's or substack's  
image
library within a field using htmltext img src= ? Is this  
possible ? I
tried various combinations without any success, and it is likely  
that the
only way to display an image in htmltext of the field is to have it  
as a

file on a hard drive... Or am I wrong ?

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


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


How do I query 'What object is on top?'

2007-01-22 Thread Mark Powell
Can't find this anywhere in docs or archives.  How can I determine what
object is occupying the top layer of a card at a given moment?  

Mark
___
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: mac help needed

2007-01-22 Thread John Vokey

Bob,
  SuperAnova runs fine under Classic---at least I have never had any  
problems, and is not locked in anyway, so it should work following a  
simple copy.  I suspect the Classic system files on the OS X machine  
are not complete.  SuperAnova even runs fine under Sheepshaver  
(system 8.6), and miniVMac, with systems 7.x.  Indeed, it even works  
in miniVMac with system 6.08!


On 22-Jan-07, at 7:13 AM, [EMAIL PROTECTED] wrote:


Hi All.
I've not been around recently, see you all soon, howeverI Need  
your help.


THis is not a rev question but a mac question.

One of the Prof's here is giving a statistics tutorial. He uses a  
program called
SuperANOVA. He is the registered user, but has it on an old  
blueberry iMac

running OS 9.2.

He has lost the discs and the iMac doesn't have video out to an  
external

projector (well I cant see one).

He would like to use this on his powerbook. I thought he could  
simply copy the
app folder over, however, it wont run. I cannot see anything  
related to the app

in another folder.

He cannot contact the company (abacus systems) because they are  
defunct (website
is now a financial company). Is there a way to find the files  
associated with
this app on his machine (he needs a backup anyway) so we can run it  
to show the

students proper stats.

If we copied the hard disc over to an external hard drive and ran  
it from that

disc would the app run or are mac apps pathway specific?

Any help appreciated.

Cheers
Bob


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


Re: How do I query 'What object is on top?'

2007-01-22 Thread Mark Schonewille

Hi Mark,

put the layer of the last control

Best,

Mark

--

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

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 22-jan-2007, om 18:11 heeft Mark Powell het volgende geschreven:

Can't find this anywhere in docs or archives.  How can I determine  
what

object is occupying the top layer of a card at a given moment?

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

http://lists.runrev.com/mailman/listinfo/use-revolution


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


RE: How do I query 'What object is on top?'

2007-01-22 Thread Mark Powell
Hi Mark,

Thanks, but that tells me the layer number, right?  What I need to know
is what *object* occupies the layer.  For example, a pseudo function
like

  put whatObjectOnTop()

might return 

  image id 2834

Mark P.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Schonewille
Sent: Monday, January 22, 2007 10:22 AM
To: How to use Revolution
Subject: Re: How do I query 'What object is on top?'

Hi Mark,

put the layer of the last control

Best,

Mark

--

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

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz

Op 22-jan-2007, om 18:11 heeft Mark Powell het volgende geschreven:

 Can't find this anywhere in docs or archives.  How can I determine 
 what object is occupying the top layer of a card at a given moment?

 Mark
 ___
 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: How do I query 'What object is on top?'

2007-01-22 Thread Mark Schonewille

Mark,

On second thought, maybe this is what you want:

function topControl
  repeat with x = 1 to number of controls
if the layer of control x is the number of layers then return  
the id of control x

  end repeat
end topControl

It would be nice to do this without repeat loop, though.

Mark

--

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

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 22-jan-2007, om 18:21 heeft Mark Schonewille het volgende geschreven:



Op 22-jan-2007, om 18:11 heeft Mark Powell het volgende geschreven:

Can't find this anywhere in docs or archives.  How can I determine  
what

object is occupying the top layer of a card at a given moment?

Mark


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


Re: How do I query 'What object is on top?'

2007-01-22 Thread Richard Gaskin

Why not this?:

  get the long id of the last control


--
 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: Load and stacks...

2007-01-22 Thread Dave Cragg


On 22 Jan 2007, at 16:39, David Bovill wrote:


On 21/01/07, Dave Cragg [EMAIL PROTECTED] wrote:

You could use libUrlDownloadToFile to do an asynchronous load

directly to a file instead of the cache. Or in the callback message
for load, save the url to a local file. For example:

load url myUrl with message loaded

on loaded pUrl, pStatus
   if pStatus = cached then
 put url pUrl into url (binfile:  pathToLocalFile)
   end if
   unload url pUrl
end loaded



Ah - thanks that should work. NB as libUrlDownloadToFile uses  
ftp rather

than http which load uses...


You can use both load and libUrlDownloadToFile with http and ftp urls.

Cheers
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


Re: How do I query 'What object is on top?'

2007-01-22 Thread Mark Schonewille

Because this returns the number and not the layer.

Mark

--

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

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 22-jan-2007, om 18:34 heeft Richard Gaskin het volgende geschreven:


Why not this?:

  get the long id of the last control


--
 Richard Gaskin
 Fourth World Media Corporation

___
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: FormatForPrinting

2007-01-22 Thread Graham Samuel
Thanks Chipp - and Mark, I have no idea if better printing is coming  
along but it certainly should: I do not think RunRev's support for  
printing is adequate for a modern RAD tool: one very old issue is  
that one can't get at the settings made by the user in the Page Setup  
dialog, but others do include the kludge which is FormatForPrinting,  
the great difficulty you have now about working out exactly how many  
pages are needed for a printout of a given field, and the fact that  
you can't find out the limits of the marking engine within the  
printed page for a given printer, despite the fact that many other  
apps obviously do have access to this info, some of them on more than  
one platform.


I would really like a packaged printing library offering a simple  
reporting feature one could build on, with page numbers, headings,  
previews, back and forth views and so on. I do not believe such a  
thing could be constructed in pure Transcript (or Revscript or  
whatever) today, because not all the building blocks are there.


The usual 2 Eurocents

Graham

On Mon, 22 Jan 2007 06:50:56 -0800, Mark Swindell  
[EMAIL PROTECTED] wrote:

Are these printing issues among those being fixed in the next bug-
free release?  i.e. Are they top priority at this point in Revs
evolution?
Mark

On Jan 22, 2007, at 6:15 AM, Chipp Walters wrote:



Hi Graham,

Yeah, I use it on Windows for printing, and you do have to jump
through some
hoops. As I recall, if you don't use it, your font metrics may be
off and
you may not get what you think you're printing.

I've also found setting the text field's margins to something
really large
(20) helped from characters at the end of a line form getting
clipped off.

HTH, Chipp





Graham Samuel / The Living Fossil Co. / UK and France

___
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: displaying imported images from within htmltext

2007-01-22 Thread Chipp Walters

Or,
Just set the htmlText of a given line of a field..like this:

set the htmlText of line 3 of fld hello to \
 pimg src=downArrowClick Here To EXPAND/p

Assumes there is an image named downArrow on the card.

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: How do I query 'What object is on top?'

2007-01-22 Thread Mark Smith

Not tested but should work:

get the name of control (the number of controls of this cd) of this cd

Best,

Mark

On 22 Jan 2007, at 17:11, Mark Powell wrote:

Can't find this anywhere in docs or archives.  How can I determine  
what

object is occupying the top layer of a card at a given moment?

Mark
___
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 help needed PROBLEM SOLVED

2007-01-22 Thread Bob Hartley
You wrote:

Hi All

I feel really stupid now. I assumed he ws up on file extensions etc.

He was using a PC form,atted USB pen to transfer the files. It was so simple
I never even thought of asking him. :-)

Anyway all have a quiet chuckle on me.:-)

Using a MAC formatted stick it now works. :-)

Thanks for all the help

Cheers
Bob; Sunny Scotland

 You might be able to run the iMac's HD in Firewire target mode from the
 Powerbook, if you can connect the two via firewire. If this works, then
 the iMac will appear just like any other an external HD on the Powerbook.
 
 For exact instructions, check Apple's support pages and search for
 firewire target mode.  Most Macs can do this but some cannot and, I think,
 the instructions may be slightly different depending on model.
 
 HTH.
 
 Marian On Jan 22, 2007, at 4:39 AM, Mark Schonewille wrote:
 
  Hi Bob,
 
  You could install VNC on both computers. With VNC, you can display the
  screen of the iMac on the PowerBook and control it remotely, or work on
  the iMac and just show the action on the PowerBook. This is rather slow,
  however.
 
  Best,
 
  Mark
 
  --
 
  Economy-x-Talk Consultancy and Software Engineering
  http://economy-x-talk.com http://www.salery.biz
 
  Get your store on-line within minutes with Salery Web Store software.
  Download at http://www.salery.biz
 
  Op 22-jan-2007, om 11:12 heeft [EMAIL PROTECTED] het volgende geschreven:
 
  snip
 
 
   I just thought of something.
 
   Could he run it from the powerbook in classic mode via appletalk. I
   remember years ago running apps on my powerbook that was on another
   machines HD?
 
   Is this possible from classic to OS9.2?
 
   More later Bob
 
  ___ 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: Load and stacks...

2007-01-22 Thread David Bovill

Ah... well I guess the docs need changeing :)

Summary:
Downloads a file from an Internet server asynchronously via FTP.



On 22/01/07, Dave Cragg [EMAIL PROTECTED] wrote:



On 22 Jan 2007, at 16:39, David Bovill wrote:

 On 21/01/07, Dave Cragg [EMAIL PROTECTED] wrote:

 You could use libUrlDownloadToFile to do an asynchronous load
 directly to a file instead of the cache. Or in the callback message
 for load, save the url to a local file. For example:

 load url myUrl with message loaded

 on loaded pUrl, pStatus
if pStatus = cached then
  put url pUrl into url (binfile:  pathToLocalFile)
end if
unload url pUrl
 end loaded


 Ah - thanks that should work. NB as libUrlDownloadToFile uses
 ftp rather
 than http which load uses...

You can use both load and libUrlDownloadToFile with http and ftp urls.

Cheers
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


Re: displaying imported images from within htmltext

2007-01-22 Thread Eric Chatonet

Hi Viktoras,

Mark told you about using the imageSource property.
As for me I don't like too much to use it: even if it works, it  
sounds like a workaround:

You display an image but it is referenced by a char.
When building lists, for instance, you have to plan fake chars then  
set their imageSource, etc.

This does not sound good to me ;-)

I prefer the way building correct html at first :-)
Just as you thought of.

Here is an example of a function that builds a list of usernames with  
a specific icon in front of each username according to the fact that  
its account is password protected or not (to give you the idea):


function BuildUsersHtmlList pArray
  local tHtml,tID
  -
   repeat with i = 1 to pArray[length]
if pArray[Data,i,uPassword] = empty then put 60079 into tID
else put 60080 into tID
put pimg src=  quote  tID  quotepArray 
[Data,i,uName]  /p  cr after tHtml

  end repeat
  delete last char of tHtml
  return tHtml
end BuildUsersHtmlList

tID is a variable that contains the ID of an image: this image can be  
in the current stack or in any open stack (visible or not).
Note how the html is built using quotes and concatenating text and  
variables values.


On the other hand, my Encoded Text Picker plugin might help you:
It's an HTML and URLencode translator:

Ability to translate both to and from HTML and/or URLEncode.
Integrated search and replace features (including tab and return.)
Ability to determine text style and color, include images. Copy  
function.

Playing with it should make html easier ;-)

You will find it by going to http://www.sosmartsoftware.com/.

Hope this helps.

Le 22 janv. 07 à 17:38, Viktoras Didziulis a écrit :

how do we display an image imported into the stack's or substack's  
image
library within a field using htmltext img src= ? Is this  
possible ? I
tried various combinations without any success, and it is likely  
that the
only way to display an image in htmltext of the field is to have it  
as a

file on a hard drive... Or am I wrong ?


Best Regards from Paris,
Eric Chatonet
 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


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


Re: How do I query 'What object is on top?'

2007-01-22 Thread Mark Schonewille
That won't work because number and layer is not the same. It would be  
exactly equal to


put the name of the last control

Best,

Mark

--

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

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 22-jan-2007, om 19:27 heeft Mark Smith het volgende geschreven:


Not tested but should work:

get the name of control (the number of controls of this cd) of this cd

Best,

Mark



___
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


help with a multi process http server.

2007-01-22 Thread Andre Garzia

Hello Folks,

I am here experimenting with a new approach to building revolution  
based servers. We've been asking for threads or forks for a while but  
until the day of such implementation comes, we need to use what we  
can. One other language I always liked (to the point that we created  
a whole company around it some years ago) was REBOL. I remember from  
the blogosphere that someone did a REBOL based webserver with some  
nice benchmarks, I decided to check it out because last I remembered,  
REBOL was also a single thread language. After checking many sites, I  
discovered that they along with other people around are using a  
process pool and a scheduler that handles the connections and  
redirect them to the next free process on the pool.


I decided to take the same approach, I made a tweeked version of my  
RevHTTP server that can be launched from a shell() call so that I can  
create a scheduler that can launch some number of processes to make  
the pool. I created a simple communicating scheme using wget to make  
little semaphores so that each server instance can tell the scheduler  
where it is busy or free. So far, so good but there's one problem.


Suppose the scheduler is running 8080 and each server instance in the  
pool is running from 8081 onwards. When the client connects to 8080,  
the scheduler sends back a redirection response so that the client  
refreshes to a different port (of a free instance in the pool). The  
problem is that a http client such as a browser will then request  
favico and all the links in the html from the same port for it re- 
uses data from the connection that yielded that result to fill  
missing data in the URL. For example, if you make a link that goes  
to /newpage.html, then the server will make it http://yourserver/ 
newpage.html. If I answered from port 8081, all links in the page  
will inherit that port and I want all the connections to come to  
the scheduler running on a different port.


One approach to solve this is to parse all the response and change  
all the html responses to include the correct URLs. This is very  
boring and slow for we must cope with href, src, link, rel and all  
kinds of css includes and stuff. What I hoped to find was some HTTP  
header field that would tell like: hey this server is acutally  
running at port bla bla bla such as:


host: localhost:8080

despite the fact that that answer came thru 8081. This way the whole  
thing would work and maybe we would have a a web server built with  
Rev that could see some real world use...


Anyone has two cents?

Andre

___
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: Load and stacks...

2007-01-22 Thread Dave Cragg


On 22 Jan 2007, at 18:44, David Bovill wrote:


Ah... well I guess the docs need changeing :)


So they do.  I've just QCized it. :-)

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


Re: How do I query 'What object is on top?'

2007-01-22 Thread Richard Gaskin

To get the topmost object:

  get the long id of last control


To get its name:

  get the short name of the last control


To get its layer:

  get the layer of the last control


To get its type-specific number:

  get the number of the last control


What else is needed?

--
 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: help with a multi process http server.

2007-01-22 Thread Dave Cragg

On 22 Jan 2007, at 19:25, Andre Garzia wrote:

Suppose the scheduler is running 8080 and each server instance in  
the pool is running from 8081 onwards. When the client connects to  
8080, the scheduler sends back a redirection response so that the  
client refreshes to a different port (of a free instance in the  
pool). The problem is that a http client such as a browser will  
then request favico and all the links in the html from the same  
port for it re-uses data from the connection that yielded that  
result to fill missing data in the URL. For example, if you make a  
link that goes to /newpage.html, then the server will make it  
http://yourserver/newpage.html. If I answered from port 8081, all  
links in the page will inherit that port and I want all the  
connections to come to the scheduler running on a different port.


One approach to solve this is to parse all the response and change  
all the html responses to include the correct URLs. This is very  
boring and slow for we must cope with href, src, link, rel and all  
kinds of css includes and stuff. What I hoped to find was some HTTP  
header field that would tell like: hey this server is acutally  
running at port bla bla bla such as:


host: localhost:8080

despite the fact that that answer came thru 8081. This way the  
whole thing would work and maybe we would have a a web server built  
with Rev that could see some real world use...


Anyone has two cents?


This is very interesting, Andre. I wish I had your energy.

One thought.

If I understand correctly, under this system, the scheduler  
immediately responds to the client with a redirect to the same url  
but on a different port. Intead of using a redirect, is it not  
possible for the scheduler to hand off the request directly to an  
available process (for example, on localhost:8082), wait for the  
response, and then the scheduler writes the response directly back to  
the client? This would preserve the socket details for the client.


This would put an extra burden on the scheduler when it has to write  
back large quantities of data to simulataneous requests from  
different clients. But I think it should be possible to slice up the  
responses so that you only write back to the client sockets in small  
chunks (say 4096 KB at a time). This should allow simultaneous  
connections to appear to work simultaneously.


Also, is there not a problem in redirecting clients that have made a  
POST request? My memory of the http rfc is that redirects only use  
the GET method. The above idea would get round that problem.


Cheers
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


Re: Is this a bug?

2007-01-22 Thread Richard Gaskin

Chipp Walters wrote:


Mark, your example also demonstrates the power of same named instances of
object. I guess it all boils down to each of us trying our best to create
reusable grouped components, each with the same codebase. A most difficult
task.


In the absence of parentScripts (a shared library that is specific to 
assigned objects) I have yet to find an ideal solution, but here's a 
convention Ken and I tend to use for custom controls and other reusable 
groups, with three parts:


- a prefab template object
- an inspector for copying it and manipulating its properties
- a library to drive it

I have a table object that best exemplifies this arrangement.  The 
library stack also contains a group which is coped by the inspector onto 
the card to create a new one.


The template object has almost no code; where needed it has stub 
handlers that just make calls to the library.  For example, the column 
resizing controls simply contain mousedown, mouseMove, mouseUp, and 
mouseRelease handlers which call _lib4wTableHeaderMouseDown, 
_lib4wTableHeaderMouseMove, _lib4wTableHeaderMouseUp, and 
_lib4wTableHeaderMouseRelease messages, respectively.


Note the preceding underscore.  That distinguishes handlers in the 
library which are used internally only, as opposed to those which are 
part of the API (when we get truly private handlers that convention can 
go away).


Most of the object's behaviors are established as property settings. 
For example, setting the ufwTableData of the group puts the specified 
columnar data into the table; setting the ufwTableHeaderInfo of the 
control sets up the column heading labels and widths; setting the 
ufwTableSortColumn of the group establishes which column the data is 
currently sorted by, and colors that heading differently from the others 
as per the OS HIG.


These property settings are handled in getProp/setProp handlers in the 
library.  They keep track of the target object, so any number of tables 
can be used in a layout without conflict.



Having as much code as possible in the library means I never need to 
update any controls to enhance functionality.


Having a template object means all instances get implemented 
consistently with reasonable default settings.


Having an inspector means I get to install tables and modify their 
settings quickly without having to write a line of code.



If I get some time I'll publish my table widget, but with my current 
workload it's hard to say exactly when that'll be


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


Emergency - (sort of) a stack name with the same name...

2007-01-22 Thread David Bovill

I have done this so many times - but wandering if someone can tell me how to
get out of it... Rev is stuck in an infinite loop... it keeps infinitely
saving two files and has the error dialogue stuck in the back. Command
period and nothing I can think of exits the loop.

I have almost never got out of this without a force quite - and I have just
finished some complex coding. Is there any way to get out of it??? I am sure
you all know what I mean - it happens pretty well all the time if you change
stacks name and thenSave as...

I can never quite believe that it will do this so occasionally I try a
Save as... - deadly! I'll go and have a beer and hope some guru has a hack
to get out of this?
___
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: help with a multi process http server.

2007-01-22 Thread [EMAIL PROTECTED]
Hi Andre,

I hope I understood you correctly:

did you try the old base href= tag?

If you use in the header of the first html file:

head
base href=http://server2.com:;
  !-- ...  ... --
/head

all will be loaded from the server2 at port .
A declaration like
img src=/src/logo.gif
will become like
img src=http://server2.com:/src/logo.gif;.

 
If you put in ANY html page delivered from your servers
head
base href=http://schedulerserver.com;
  !-- ...  ... --
/head

all requests will be loaded from schedulerserver.com at port 80 even if the 
parent page was delivered from another server.


Even in the old days of HTML one could send a base href tag in the head of 
the html-file and all the following relational links have been calculated in 
the browsers according to this base. I think this works in all browsers on the 
market.
If you have a php or shtml generated index file on the main server which sends 
a first html page with such a base href tag, the browsers will connect to the 
declared server for downloading and so on - you do not need to parse any pages, 
the relational base mechanism makes the rest.
  
Even the favicon can be declared explicitely:
compare 
http://www.selfhtml.org/
http://de.selfhtml.org/navigation/suche/index.htm?Suchanfrage=base+href
there might be english versions also


and any stuff comes from the second server ...

http://de.selfhtml.org/html/kopfdaten/beziehungen.htm#quellen
favicon in line 4 of the header:

head
!-- ... andere Angaben im Dateikopf ... --
link rel=stylesheet type=text/css href=../../src/selfhtml.css

link rel=shortcut icon type=image/x-icon href=/src/favicon.ico

link rel=author title=Impressum href=../../editorial/impressum.htm
link rel=contents title=Inhaltsverzeichnis 
href=../../navigation/inhalt.htm
link rel=index title=Stichwortverzeichnis 
href=../../navigation/stichwort.htm
link rel=search title=Suche href=../../navigation/suche/index.htm
link rel=help title=Hilfe href=../../editorial/index.htm
link rel=copyright title=Urheberrecht href=../../editorial/copyright.htm
link rel=top title=SELFHTML href=../../index.htm
link rel=up title=HTML-Kopfdaten href=index.htm
link rel=next title=Durchsuchbarkeit mit Server-Kommunikation 
href=durchsuchbarkeit.htm
link rel=prev title=Adressbasis und Zielfensterbasis href=basis.htm
link rel=first title=Titel einer HTML-Datei href=titel.htm
link rel=last title=Durchsuchbarkeit mit Server-Kommunikation 
href=durchsuchbarkeit.htm
/head

Regards, Franz

Mit freundlichen Grüßen
Franz Böhmisch

[EMAIL PROTECTED]
http://www.animabit.de
GF Animabit Multimedia Software GmbH
Am Sonnenhang 22
D-94136 Thyrnau
Tel +49 (0)8501-8538
Fax +49 (0)8501-8537



___
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: help with a multi process http server.

2007-01-22 Thread Andre Garzia

Franz,

I own you a beer! :-)

You just saved my life... I'll experiment with this and post the  
result on this list! :D


Cheers
andre

On Jan 22, 2007, at 6:37 PM, [EMAIL PROTECTED] wrote:


Hi Andre,

I hope I understood you correctly:

did you try the old base href= tag?

If you use in the header of the first html file:

head
base href=http://server2.com:;
  !-- ...  ... --
/head

all will be loaded from the server2 at port .
A declaration like
img src=/src/logo.gif
will become like
img src=http://server2.com:/src/logo.gif;.


If you put in ANY html page delivered from your servers
head
base href=http://schedulerserver.com;
  !-- ...  ... --
/head

all requests will be loaded from schedulerserver.com at port 80  
even if the parent page was delivered from another server.



Even in the old days of HTML one could send a base href tag in  
the head of the html-file and all the following relational links  
have been calculated in the browsers according to this base. I  
think this works in all browsers on the market.
If you have a php or shtml generated index file on the main server  
which sends a first html page with such a base href tag, the  
browsers will connect to the declared server for downloading and so  
on - you do not need to parse any pages, the relational base  
mechanism makes the rest.


Even the favicon can be declared explicitely:
compare
http://www.selfhtml.org/
http://de.selfhtml.org/navigation/suche/index.htm?Suchanfrage=base 
+href

there might be english versions also


and any stuff comes from the second server ...

http://de.selfhtml.org/html/kopfdaten/beziehungen.htm#quellen
favicon in line 4 of the header:

head
!-- ... andere Angaben im Dateikopf ... --
link rel=stylesheet type=text/css href=../../src/selfhtml.css

link rel=shortcut icon type=image/x-icon href=/src/favicon.ico

link rel=author title=Impressum href=../../editorial/ 
impressum.htm
link rel=contents title=Inhaltsverzeichnis href=../../ 
navigation/inhalt.htm
link rel=index title=Stichwortverzeichnis href=../../ 
navigation/stichwort.htm
link rel=search title=Suche href=../../navigation/suche/ 
index.htm

link rel=help title=Hilfe href=../../editorial/index.htm
link rel=copyright title=Urheberrecht href=../../editorial/ 
copyright.htm

link rel=top title=SELFHTML href=../../index.htm
link rel=up title=HTML-Kopfdaten href=index.htm
link rel=next title=Durchsuchbarkeit mit Server-Kommunikation  
href=durchsuchbarkeit.htm
link rel=prev title=Adressbasis und Zielfensterbasis  
href=basis.htm

link rel=first title=Titel einer HTML-Datei href=titel.htm
link rel=last title=Durchsuchbarkeit mit Server-Kommunikation  
href=durchsuchbarkeit.htm

/head

Regards, Franz

Mit freundlichen Grüßen
Franz Böhmisch

[EMAIL PROTECTED]
http://www.animabit.de
GF Animabit Multimedia Software GmbH
Am Sonnenhang 22
D-94136 Thyrnau
Tel +49 (0)8501-8538
Fax +49 (0)8501-8537



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

http://lists.runrev.com/mailman/listinfo/use-revolution


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


RE: How do I query 'What object is on top?'

2007-01-22 Thread Mark Powell
Richard, 

This does do what I was asking about, thanks!

Mark




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Richard
Gaskin
Sent: Monday, January 22, 2007 1:02 PM
To: How to use Revolution
Subject: Re: How do I query 'What object is on top?'

To get the topmost object:

   get the long id of last control


To get its name:

   get the short name of the last control


To get its layer:

   get the layer of the last control


To get its type-specific number:

   get the number of the last control


What else is needed?

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


Re: help with a multi process http server.

2007-01-22 Thread Andre Garzia

Dave,

I didn't want to add that burden to the scheduler because I am afraid  
of denial of service, my whole quest in the field of revolution based  
servers is trying to avoid such situations. I need to check if I can  
redirect POST requests... If I can't then I'll need to implement a  
solution like you outlined here at least for POST calls.


If I managed to build such thing, I'll post here on the list.

Cheers
andre

On Jan 22, 2007, at 6:18 PM, Dave Cragg wrote:


On 22 Jan 2007, at 19:25, Andre Garzia wrote:

Suppose the scheduler is running 8080 and each server instance in  
the pool is running from 8081 onwards. When the client connects to  
8080, the scheduler sends back a redirection response so that the  
client refreshes to a different port (of a free instance in the  
pool). The problem is that a http client such as a browser will  
then request favico and all the links in the html from the same  
port for it re-uses data from the connection that yielded that  
result to fill missing data in the URL. For example, if you make a  
link that goes to /newpage.html, then the server will make it  
http://yourserver/newpage.html. If I answered from port 8081, all  
links in the page will inherit that port and I want all the  
connections to come to the scheduler running on a different port.


One approach to solve this is to parse all the response and change  
all the html responses to include the correct URLs. This is very  
boring and slow for we must cope with href, src, link, rel and all  
kinds of css includes and stuff. What I hoped to find was some  
HTTP header field that would tell like: hey this server is  
acutally running at port bla bla bla such as:


host: localhost:8080

despite the fact that that answer came thru 8081. This way the  
whole thing would work and maybe we would have a a web server  
built with Rev that could see some real world use...


Anyone has two cents?


This is very interesting, Andre. I wish I had your energy.

One thought.

If I understand correctly, under this system, the scheduler  
immediately responds to the client with a redirect to the same url  
but on a different port. Intead of using a redirect, is it not  
possible for the scheduler to hand off the request directly to an  
available process (for example, on localhost:8082), wait for the  
response, and then the scheduler writes the response directly back  
to the client? This would preserve the socket details for the client.


This would put an extra burden on the scheduler when it has to  
write back large quantities of data to simulataneous requests from  
different clients. But I think it should be possible to slice up  
the responses so that you only write back to the client sockets in  
small chunks (say 4096 KB at a time). This should allow  
simultaneous connections to appear to work simultaneously.


Also, is there not a problem in redirecting clients that have made  
a POST request? My memory of the http rfc is that redirects only  
use the GET method. The above idea would get round that problem.


Cheers
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


Oh well.. force quit I guess?

2007-01-22 Thread David Bovill

:(
___
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: help with a multi process http server.

2007-01-22 Thread David Bovill

Not sure if this text give you some arguments :)

 http://www.nightmare.com/medusa/medusa.html
___
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: help with a multi process http server.

2007-01-22 Thread Dave Cragg


On 22 Jan 2007, at 20:54, Andre Garzia wrote:

 I need to check if I can redirect POST requests... If I can't then  
I'll need to implement a solution like you outlined here at least  
for POST calls.



Andre, I just looked up the rfc to see if this was the case. This is  
the intro to the section describing the various redirect responses  
(301, 302, etc.):



10.3 Redirection 3xx

   This class of status code indicates that further action needs to be
   taken by the user agent in order to fulfill the request.  The  
action

   required MAY be carried out by the user agent without interaction
   with the user if and only if the method used in the second  
request is

   GET or HEAD.


So it looks like POST requests can't be redirected, at least not  
without the browser asking the user for some interaction.


Cheers
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


What is causing this bug?

2007-01-22 Thread David Bovill

OK - so I've had to force quit.

Now the start-up routing loads some libraries. One of them is the the
original one I Saved as... - remember folks at home never do this. On
starting up I get that dreaded dialogue again...


Now what could be wrong with this script?

repeat for each line stackObject in stackObjects
   if exists(stackObject) and word 1 of stackObjects is stack then
   if boolean is false then
   stop using stackObject
   else
   start using stackObject
   end if
   end if
end repeat

It cholks on start using stack libOPN_Menus and tries to load stack
libOPN_ExtraMenus which is the saved as stack. The stackfiles knows
nothing about libOPN_ExtraMenus and the script is not even trying to lad
that stack...

I'll check the actual stack names and see... but really what should I avoid
doing to stop this happening... saving as is not such a crime is it?
___
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


Some clues...

2007-01-22 Thread David Bovill

Well the actual stack name of original libOPN_Menus stack somehow also got
changed and saved as libOPN_MenuExtras.

So I have two stack named libOPN_MenuExtras - fine.

But why when I do this - (no stacks in memory):

 put exists(stack libOPN_Menus)

The result is true, and the original stack which has been renamed somehow
is loaded into memory - ie libOPN_menus.rev which has the name
libOPN_ExtraMenus.

So no big deal - the right stack is loaded with the wrong name by the
stackfiles.

But doing this again:

 put exists(stack libOPN_Menus)

Results in that annoying dialogue which caused the inifinite loop... surely
existence is not such a problem ? What is the rev IDE checking for and does
anyone else know what the bug is here?
___
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 Graphics Gurus

2007-01-22 Thread John Vokey

Dar,
  An old thread, and I hope you don't mind me contacting you  
directly.  I asked a while back about presenting the average of two  
images, and you suggested that I a) group them, b) set the ink  
property of each, including the group, to blendSrcOver, and c) then  
set the opacity 0% and 50%.  I am only know trying this stuff out,  
only to find that that there is no ink called blendSrcOver, but there  
is an ink called blend, and there is a basic property called blend.   
Are these what you meant?  Second, what is the function of grouping  
the images?  Wouldn't the inks work the same without the grouping?


Dr. John R. Vokey
___
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: Some clues...

2007-01-22 Thread J. Landman Gay

David Bovill wrote:
Well the actual stack name of original libOPN_Menus stack somehow also 
got

changed and saved as libOPN_MenuExtras.

So I have two stack named libOPN_MenuExtras - fine.

But why when I do this - (no stacks in memory):

 put exists(stack libOPN_Menus)

The result is true, and the original stack which has been renamed somehow
is loaded into memory - ie libOPN_menus.rev which has the name
libOPN_ExtraMenus.


There is a difference between a stack's name and its filename. Do you 
mean it was renamed on disk? That won't affect its stack name.




So no big deal - the right stack is loaded with the wrong name by the
stackfiles.

But doing this again:

 put exists(stack libOPN_Menus)

Results in that annoying dialogue which caused the inifinite loop... surely
existence is not such a problem ? What is the rev IDE checking for and does
anyone else know what the bug is here?



When you check for a stack's existence, the engine will open the stack 
(without sending any messages) much as it does when you start using a 
stack. If another stack has the same name, then you have two of them 
open, which can be a problem. Before checking for existence, try:


  if there is a stack mystack then delete stack mystack

assuming the stack is not a substack. If it is a substack, just close it 
instead. You'll probably want to remove the stack after the existence 
check too, if you aren't going to use it immediately.


Try this test:

 answer file Choose a stack file:
 put there is a stack it -- if you chose a stack, this is true
 answer the mainstacks

When you look at the mainstacks, you will see the stack you chose, even 
though you never specifically opened it.


One way to get around this auto-opening is to check for a file instead 
of a stack:


  if there is a file mystack then...

Checking for a file does not open the file, even if it is a stack. It 
just checks to make sure some kind of file with that name is at the path 
you specify. This is different than checking for the existence of a 
stack, because the engine needs to open and read the stack file header 
to determine whether it is a stack or not. It doesn't bother opening and 
reading anything when you just check for the existence of a file.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev Crashing..

2007-01-22 Thread Sarah Reichelt

On 1/23/07, Chipp Walters [EMAIL PROTECTED] wrote:

When using Rev 2.7.4 build 291, the latest 'official' release.

I've narrowed down a bug which I think is happening when trying to select
text and drag/drop itself in the same single line field with the htmlText
having a font attribute of 'bgColor'.

IOW, I've successfully crashed Rev when I'm trying to select/deselect text
repeatedly in a grouped field with the htmlText set to:

font bgColor=128,255,255   try to select THIS and move it after the
period.   /font

Anyone else seeing this same problem? It's very disconcerting. If I can find
a reproducable recipe, I'll post it to bugzilla, as this one's really nasty.



Using the same build but Mac OS X 10.4.8 this works fine for me with
no crashes. It's hard to see what I have selected since the bgcolor is
the same as my hilite color, but selecting and dragging works
perfectly.

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


Stop Repeating Keys

2007-01-22 Thread Mark Greenberg
I have an application where the user types in numbers, but I don't  
want the keys to automatically repeat.  For instance, if the user  
holds down the 5 key too long, I don't want  to appear.  I am  
already capturing the keystroke with an ON KeyDown handler and  
manipulating the user's input.  Using KeyUp instead causes a problem  
when two keys are pressed, so that won't work.


Any help would be appreciated,

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


Crash of Windows standalone made on Intel iMac

2007-01-22 Thread Bruce A. Pokras
This was the first time I had built a Windows standalone on my new 
Intel iMac. I am using Rev Studio 2.7.4, Build 291. The standalone 
contains two cards. The first card shows up fine, and everything 
operates normally. The fun starts when I either try to go to the 
second card or click the Close box to quit.


On my IBM laptop (Windows 2000), when I click a button whose script 
is simply Go next, nothing happens for a few moments except that 
the title bar now shows (2) (for card 2) rather than (1).  Then the 
standalone crashes. The title bar of the error alert says:


9d4: [application name.exe] - Application error

The body of the error alert says:

The instruction at 0x00161100 referenced memory at 0x00050007. 
The memory could not be written. (The quotation marks are actually 
in the alert text).


Click on OK to terminate the program
Click on CANCEL to debug the program

Now if I don't try to go to the second card, and simply close the 
standalone, it crashes with the following error alert:


The title bar of the alert says:

MCdummy: [application name.exe] - Application error

The body of the alert says:

The instruction at 0x77fcc8e3 referenced memory at 0x00565878. 
The memory could not be written. (The quotation marks are actually 
in the alert text).


There has never been any problem like this with my Classic iMac 
running Rev 2.6.1. I looked through Bugzilla, and could not find 
anything similar. Has anyone experienced this?


Regards,

Bruce Pokras
Blazing Dawn Software
[EMAIL PROTECTED]
[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: Stop Repeating Keys

2007-01-22 Thread Sarah Reichelt

On 1/23/07, Mark Greenberg [EMAIL PROTECTED] wrote:

I have an application where the user types in numbers, but I don't
want the keys to automatically repeat.  For instance, if the user
holds down the 5 key too long, I don't want  to appear.  I am
already capturing the keystroke with an ON KeyDown handler and
manipulating the user's input.  Using KeyUp instead causes a problem
when two keys are pressed, so that won't work.



How about something like this (untested):

local sKeyPressed

on keyDown pKey
 if sKeyPressed  true then
   put true into sKeyPressed
   pass keyDown
 end if
end keyDown

on keyUp
 put false into sKeyPressed
end keyUp

When a key is pressed, it checks the flag. If it is not true, then the
keyDown message gets passed so the key will be typed. Then the flag is
set to true. Any more keyDowns will be ignored until the flag is reset
which happens on keyUp.

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


Re: Emergency - (sort of) a stack name with the same name...

2007-01-22 Thread Bridger Maxwell

Hey,
 I have had a few experiences with an answer box popping up, but then
making itself inaccessible, either by hiding itself or by simply lacking an
OK button.  Revolution will not let you do anything until you have
responded, and you are unable to respond.  I have been able to fix this by
opening another stack with networking enabled (I found I am still able to
open stacks, even with Rev stuck) and then remote-administering from a
different computer.  This usually includes:
close stack Answer dialog
and:
lock messages; wait 5 seconds with messages
I don't know if you happen to have two computers and a good networking stack
lying around, but it is one possibility.  Sorry if this wasn't much help, I
was just sharing how I usually get myself out of that situation.  Best of
luck!

  TTFN
  Bridger
  Christa McAuliffe Space Education Center

On 1/22/07, David Bovill [EMAIL PROTECTED] wrote:


I have done this so many times - but wandering if someone can tell me how
to
get out of it... Rev is stuck in an infinite loop... it keeps infinitely
saving two files and has the error dialogue stuck in the back. Command
period and nothing I can think of exits the loop.

I have almost never got out of this without a force quite - and I have
just
finished some complex coding. Is there any way to get out of it??? I am
sure
you all know what I mean - it happens pretty well all the time if you
change
stacks name and thenSave as...

I can never quite believe that it will do this so occasionally I try a
Save as... - deadly! I'll go and have a beer and hope some guru has a
hack
to get out of this?
___
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