Re: Going crazy with closing a stack

2004-02-01 Thread Doug Lerner
I'm spending too much time on this one crazy closeStack message problem, so
for the meantime I've put in the following work-around which is at least
stable:

* I have a button on the parent stack that is supposed to open/close the
video grabber window-and-stack. In there I put:

chatVideoPreviewOff
revCloseVideoGrabber
close stack vgName

The closeChat message is still not being sent to the video grabber stack,
but the stack closes.

* In the video grabber stack I added

on closeStackRequest
  -- block this stack from being closed from the window close button
end closeStackRequest

This blocks the stack from being manually closed, which is a little grody,
but since the openStack handler doesn't get called reliably there is no
choice. I must have users close the stack via the button in the parent
stack.

Interesting enough, even with this closeStackRequest handler here, the
"close stack vgName" command above *does* close the stack. I wonder why the
closeStackRequest doesn't block that as well. Strange all around. But at
least this combination works - you can open and close the video grabber
stack as much as you want by checking/unchecking the box in the parent
stack.

I'll come back to this issue again at another time.

Thanks for all your suggestions. And if anybody has any extra ideas, please
let me know!

Thanks,

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: List etiquette suggestion [almost a flame]

2004-02-01 Thread Richard Gaskin
[EMAIL PROTECTED] wrote:

> i'll go back to the "pen and
> paper" world that i spewed forth from ;-)

Please don't, or we'd have no libSMTP or other cool tools from your presence
in the ether. :)

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: The card is grey on printing!!

2004-02-01 Thread David Squance
I had this same problem, but solved it by going to the colors and patterns
in the card inspector.  I clicked on the square for background in the
'color column', chose crayons from the list and snow from the color
choices.  After that the grey was gone from the card.  This situation may
be a little different in that I was printing cards, not fields.
Dave

>Jan and François,
>
>I'm also having this problem when printing a field from OSX. Here's my
>button script:
>
>on mouseUp
>  put the backgroundColor of cd fld "FileContents" into tBC
>  set the backgroundColor of cd fld "FileContents" to white
>  revPrintField ("field" && quote & "FileContents" & quote)
>  set the backgroundColor of cd fld "FileContents" to tBC
>end mouseUp
>
>The field _still_ prints in a gray rectangle. I checked the button syntax
>by setting the field to BLACK and while the field flashes black for a
>second while the print command runs, the printout is _still_ black text on
>a gray background. Is this a bug? Any advice on how to get the field to
>print black text on a pure white background?
>
>TIA...
>
>joe.


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OT wait with messages...

2004-02-01 Thread Chipp Walters
I reckon.

--- Chipp Walters <[EMAIL PROTECTED]> wrote:

YIH (yep it helps)
you talkin Tex ageein.

=
[EMAIL PROTECTED]http://www.erikhansen.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: find

2004-02-01 Thread hershrev
Ok , that did the trick . Thanks . Now the question how can i specify 
the search only lets say in column 2 ? And also how do I  auto finish 
the equivalent matches , lets say there is 3 names 1, Goldberg 2 
Goldstein, Goodman. now when I type it should auto finish , which means 
when typed gold.. it should enter a field ( in a little window or 
field) three options and by continuing as being continued the unmatched 
should disappear and by exiting the field by on closeField go to the 
correct line ?
Many Thanks. Hershrev.
On Sunday, February 1, 2004, at 03:29 AM, Jan Schenkel wrote:

--- hershrev <[EMAIL PROTECTED]> wrote:


Hi,
I'm trying to make a find field search in a Table
field (according the
instructions in the doc.) some how it doesn't work.
example: I have a closed curser query result list in
a table field and
made a search field to search according the text
entered it should go
to the correct line and select it.
For some reason it doesn't work (ignore find , is
off)
Thanks Hershrev

Hi Herhsrev,

I made a quick test, and it worked for me ; so I guess
something is different between our stacks :-)
My setup :
- field 1 contains the full name of the characters in
the greek alphabet, three per row
- field 2 is where I type my search string
- button 1 has the following script
on mouseUp
  find field 2 in field 1
  put the foundChunk
end mouseUp
==> When I type "Delta" in field 2 and click the
button, it displays a square rectangle around the word
"Delta" in the table field, and puts the place where
it found it into the message box.
If you continue to have problems, don't hesitate to
post a sample stack somewhere on the web and notify
the list ; there are plenty of smart people who would
loe to take a look at it :-)
Hope this helped,

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same 
time."  (La Rochefoucauld)

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with closing a stack

2004-02-01 Thread Doug Lerner
On 2/2/04 1:24 PM, "J. Landman Gay" <[EMAIL PROTECTED]> wrote:

> On 2/1/04 10:02 PM, Doug Lerner wrote:
> 
>>> I click the closebox in the substack and "closing sub" appears in the
>>> message box. I never get an answer dialog.
>> 
>> 
>> That's what I want to happen here too. :)
> 
> So there must be something else happening. Comment out all lines in both
> stack's closestack handlers, with the exception of a single line in each
> (pick one or write one that can stand independently and doesn't rely on
> anything else.) If it works okay, then start adding pieces of the
> handler back in until you reproduce the problem. Then tell us what that
> piece is.

That's why I put the "answer" command as the first line of the closeStack
hander - to see if the handler was being called or not. But it's not. Except
sometimes. And the sometimes seems to have something to do with the state of
the video grabber window.

Are there any extra commands that can tell us whether the video grabber
window is even present or not?

Also, what is that first (and undocumented) parameter to
revInitializeVideoGrabber, as in the video stack example:

revInitializeVideoGrabber the short name of this stack,"qt",iRect

for? The docs only show 2 parameters.

I think both these issues are connected somehow because I don't have similar
problems when closing other stack windows.

doug



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with closing a stack

2004-02-01 Thread J. Landman Gay
On 2/1/04 10:02 PM, Doug Lerner wrote:

I click the closebox in the substack and "closing sub" appears in the
message box. I never get an answer dialog.


That's what I want to happen here too. :)
So there must be something else happening. Comment out all lines in both 
stack's closestack handlers, with the exception of a single line in each 
(pick one or write one that can stand independently and doesn't rely on 
anything else.) If it works okay, then start adding pieces of the 
handler back in until you reproduce the problem. Then tell us what that 
piece is.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to Remove Stack's Shadow

2004-02-01 Thread James Cass
Glen -

Yes.  It works for me on main and sub stacks.  I'm running MacOSX 
Panther (10.3.2).

-James

On Feb 1, 2004, at 6:55 PM, Bojsza wrote:

James,

I have tried this and it doesn't seem to work? Does it work for you?

Glen

> Glen -

> Try this: set the shadow of this stack to false
> I found this by looking up "shadow" in the Transcript Dictionary.
> Hope this is what you needed.
> - James ___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: wait with messages...

2004-02-01 Thread erik hansen
--- Chipp Walters <[EMAIL PROTECTED]> wrote:

> YIH (yep it helps)

you talkin Tex ageein.

=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: age calculator

2004-02-01 Thread Sarah Reichelt
It wont calculate my age from thease two inputs : date of birth  
8/2/1961 , assesment date 30/1/2004
Works for me. I get a result of 42 years 11 months 22 days which looks 
about right.
and how do parameters work , where does param(1) and param(2) come from
Parameters are the extra bits of information sent to a handler or 
function
e.g. answer "Hello"
"Hello" is the parameter.
Usually, the first line of a handler lists what parameters it is going 
to get, but if you aren't sure how many you will get, or don't want to 
do it this way, you can find the parameters inside your handler using 
the param function.
For example, supposing I had a function that multiplied two numbers 
together (I know - there is no way you would want to do this, but it 
will do for testing)

function doMultiply num1, num2
  return num1 * num2
end doMultiply
In the first line, I showed that I was expecting two parameters, which 
I was going to label num1 & num2.

The same thing could have been written like this:

function doMultiply
  put param(1) into num1
  put param(2) into num2
  return num1 * num2
end doMultiply
You can also get the parameter count so that we could write this 
function to allow for any number of parameters:

function doMultiply
  put param(1) into tNum
  repeat with x = 2 to paramCount()
multiply tNum by param(x)
  end repeat
  return tNum
end doMultiply
In this script, both strategies are used, which is not commonly done. 
The parameters are labelled initially, but hose labels are never used.

if centurycutoff  is set to 35 why does it work for dates from 1970 
onwards only
This is a scripting error. The start & end years are extracted from the 
dates, so if you entered 61 and 04, the difference works out as -58. 
The difference in years is then correctly calculated from the date 
items (which work out the correct years based on the century cutoff) 
but the incorrect answer is put into Gbox. Change the 2nd last line to 
read "put diffan into Gbox" and it will work.
I am using version RR 1.1.1. (it was a freebie on a magazine) full 
version aparently
I don't see anything in the script that wouldn't work with 1.1.1
oh and one more question please why have a correction and add it to 
item 3 of enddate?
The program gets the days, months & years of each date and subtracts 
them giving the difference in days, months & years. If the start date 
is the 22nd and the end date is the 4th, then the difference in days is 
4 - 22 or -18. To convert this to a positive number, the script 
converts the end date from say the 4th April to 34th May - a 
nonsensical date, but one which allows the subtraction to work. The 
same process is used for months.
many thanks from a novice

Douglas
Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: List etiquette suggestion [almost a flame]

2004-02-01 Thread [EMAIL PROTECTED]
you increased my intial message from 3 lines to 24 lines by including 
the whole of my message, plus only 3 lines for yours (so far, doing 
okay), but then there's a total of 11 lines of just sigs.. *sigh* i do 
realize that your sig is small, and the other 2 are auto sigs, but you 
can see how that just ends up wasting tons of bandwidth, plus my hard 
drive space, plus my time (having to scan through it all)..

this isn't a personal attack, i've seen much worse sigs and those 
stupid "if message this isn't for you, yadda yadda" bs auto sigs.. 
you're sending to a mailing list, i don't think it matters..

anyways, that's enough of a "rant" from me, i'll go back to the "pen and 
paper" world that i spewed forth from ;-)

-Sean

ps.. original message was "snipped"
pss.. that's something else, please only quote what's needed, not the 
whole dang message..

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with closing a stack

2004-02-01 Thread Doug Lerner
On 2/2/04 12:55 PM, "J. Landman Gay" <[EMAIL PROTECTED]> wrote:

> On 2/1/04 8:20 PM, Thomas McGrath III wrote:
> 
>> 
>> On Feb 1, 2004, at 9:05 PM, Doug Lerner wrote:
>> 
>>> 
>>> I don't see how there could possibly be. This is a substack and inside
>>> the
>>> substack's script there is the closeStack handler.
>> 
>> 
>> 
>> Doug, that was exactly what I had. A closeStack in a substack that I
>> wanted to work when I closed the substack but instead I "think" the main
>> stack was grabbing the closeStack and not the substack even though the
>> closestack  message was 'local' to the substack.
> 
> If that's true, then it sounds like a bug. I just made a simple set of
> test stacks, though, and I couldn't reproduce the behavior. There must
> be something else going on.
> 
> My main stack has one stack handler:
> 
> on closeStack
> answer the target
> end closeStack
> 
> Substack has one stack handler:
> 
> on closeStack
> put "closing sub"
> end closeStack
> 
> I click the closebox in the substack and "closing sub" appears in the
> message box. I never get an answer dialog.

That's what I want to happen here too. :)

[EMAIL PROTECTED]

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Quicktime in Windows: best way to go?

2004-02-01 Thread erik hansen

is Quicktime in Windows the best way to go
for crossplatform apps? Windows only apps?

http://www.apple.com/quicktime/
says that you can make QT apps in Mac,
then run them in Windows. there was some
discussion about this and i did get recent
replies, but am still not sure about how
best to run RunRev MIDI apps on Windows.

thanks,

Erik Hansen

=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] libMp3 v0.5.0 (dev)

2004-02-01 Thread [EMAIL PROTECTED]
I have no idea if anyone is even going to find this library useful or 
not, but I'm working on a library to do "stuff" with MP3 files. The 
current build only reads in ID3 v1.x tags, but I'm going to be adding in 
writing for the next release, as well as ID3 v2.x tags (which will be 
fun)..

Depending on what else I can find to do with MP3's there may not be much 
else to this library, in which case I'll rename it to libId3 (no hidden 
Doom easter egg though ;-)

-Sean
http://shaosean.tk/

ps.. go the website above, and click on "development"

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with closing a stack

2004-02-01 Thread J. Landman Gay
On 2/1/04 8:20 PM, Thomas McGrath III wrote:

On Feb 1, 2004, at 9:05 PM, Doug Lerner wrote:

I don't see how there could possibly be. This is a substack and inside 
the
substack's script there is the closeStack handler.


Doug, that was exactly what I had. A closeStack in a substack that I 
wanted to work when I closed the substack but instead I "think" the main 
stack was grabbing the closeStack and not the substack even though the 
closestack  message was 'local' to the substack.
If that's true, then it sounds like a bug. I just made a simple set of 
test stacks, though, and I couldn't reproduce the behavior. There must 
be something else going on.

My main stack has one stack handler:

on closeStack
 answer the target
end closeStack
Substack has one stack handler:

on closeStack
 put "closing sub"
end closeStack
I click the closebox in the substack and "closing sub" appears in the 
message box. I never get an answer dialog.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: List etiquette suggestion

2004-02-01 Thread erik hansen
--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> i'd prefer if people would turn off their sigs
> on lists, as well as 
> trimming off the added list sig.. sometimes the
> sigs are bigger than the 
> actual message...

i like to collect the websites of the list
users and they change constantly,
so i like sigs.

=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Quicktime in Windows: best way to go?

2004-02-01 Thread erik hansen

is Quicktime in Windows the best way to go
for crossplatform apps? Windows only apps?

http://www.apple.com/quicktime/
says that you can make QT apps in Mac,
then run them in Windows. there was some
discussion about this and i did get recent
help, but am still not sure about how
best to run RunRev MIDI apps on Windows.

thanks,

Erik Hansen



=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: FlashMX and Runtime Revolution

2004-02-01 Thread erik hansen
--- "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> >> You can embedd in revolution a web browser
> with altbrowser.dll from altuit.
> Within this box you can display a flash movie.
> >
> > how many minutes max?

> For me hours...
> 
> But in fact i have a flash website made from
> hundredth of small files (my 
> biggest file is 120 kO). I display this flash
> site within a revolution box.
> 
> For me that's much better than displaying
> ordinary rev fields.
> 
> You can also display flash movies through a
> quicktime player object, but 
> you are limited to the version of flash
> supported by Quicktime.
> 
> Displaying through a browser object you are
> limited to the version of 
> flash installed in Internet Explorer. If you
> upgrade your flash player to 
> 2004MX, you will play 2004MX !
> 
> You can give a test downloading altBrowser.dll
> from www.altuit.com ; there 
> is a rev browser on the site ; open this rev
> browser and try to play your 
> flash movie.
> 
> Of course you need in Flash to export your
> movie in an htmlfile within 
> witch the swf file is embedded.
> 
> I guess that the only limitation of this
> solution is a memory one because 
> you have to run in the same time revolution +
> (embedded internet explorer) 
> + flash plugin.
> I am sure that on a winXP computer with 128 MO
> RAM it is ok.
> On a win98 computer with 64 MO RAM it works but
> not very fast.

thanks for the information.

any caveats for Windows QuickTime?

Erik Hansen



=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: base64encode & decode in a standalone

2004-02-01 Thread Mark Brownell
On Sunday, February 1, 2004, at 12:42  PM, Dar Scott wrote:

On Sunday, February 1, 2004, at 09:24 AM, Mark Brownell wrote:

It looks like the fileType matters before it will save as 
base64Encoded.
I don't get it.  How will a file type affect whether the function 
works or now?

Dar
I don't get it either. Just to be sure I just created a small test app 
as a standalone and I set the fileType to "MTMLMTML" It ended up 
working even though I set the extension to ".gz" It is recognized as a 
MTML. The only difference here is this was a test on already compressed 
data.

The difference looks as if it is when I open an MTML file decompress it 
and then try to save it as MTML it won't save as base64Encode right 
after compress. In the same standalone I can open an already compressed 
MTML file and save it as base64encode fileType "ttxtTEXT" with 
extension ".gz+" I ended up dropping base64encode from the standard 
save process and added base64Encode & Decode as a Help item option for 
internet file preperations transfers.

Anyway it works faster if I don't use base64Encode & Decode all the 
time for every open & save. Most important is I like the added value 
now & especialy now that I have the beta version of an MTML Notebook 
for Mac X ready. As soon as I create an example document I'll make it 
available for testing. Let me know off list if anyone is interested in 
seeing & beta testing the first beta of this three year old project.

Mark

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: GoRevnet & LibURL? (Was: Re: libURL issues?)

2004-02-01 Thread Richard Gaskin
I just thought of something else:

>> Also, I tried to save the Revnet stack on my disk. Not possible via the
>> menu, the "Save" items are grayed. Successful via the message box :-)
>> Anyway, this stack is unusable in "local" mode, isn't it?
> 
> The only requirement of the downloaded RevNet stack is that the GoRevNet
> plugin be opened first, as itcontains a backscriptand image resources needed
> by the downlod.
> 
> To save RevNet to disk just change its mode to toplevel.  As downloaded its
> mode is "modeless" to avoid conflict if the pointer tool is active.

While it's possible to save RevNet locally and still make use of most of its
resources, its content is being updated with ever-increasing frequency so
it's worth solving whatever compatibility issue is preventing you from using
the "live" version.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: GoRevnet & LibURL? (Was: Re: libURL issues?)

2004-02-01 Thread Richard Gaskin
Dom wrote:

> The RevNet "update list" buttons seems to be unresponsive.
> Nothing appears to arrive.
> I tried a number of times, every 20 seconds, with no luck.
> 
> Do you think really it is a backside effect of the MyDoom attack?
> I received some fake error messages originated by this virus, but not
> much, in fact.

I doubt MyDoom is related; it's reported only to be affecting email.
 
> I tried the trick proposed by Dave (to comment a certain line in
> GoRevNet). That worked ONCE (got the stacks list), but ceased quickly...
> 
> Doing more tests...
> 
> My configuration :
> Mac OS 10.2.4
> Revolution 2.1.2

I've had only three reports of similar behavior since RevNet was introduced
in December 2002.

I've not been able to reproduce the error here, but from reading these
reports it seems that something is causing the backscript in the GoRevNet
plugin to be purged.  Two possible causes come to mind:

- Something is explicitely removing the backscript.

- A bug in the engine causes inserted scripts to b removed if the stack
containing them has its destroyStack property set to true and is closed.  By
default the destroyStack property of GoRevnet is false -- could something in
your environment be changing that?

 
> Also, I tried to save the Revnet stack on my disk. Not possible via the
> menu, the "Save" items are grayed. Successful via the message box :-)
> Anyway, this stack is unusable in "local" mode, isn't it?

The only requirement of the downloaded RevNet stack is that the GoRevNet
plugin be opened first, as itcontains a backscriptand image resources needed
by the downlod.

To save RevNet to disk just change its mode to toplevel.  As downloaded its
mode is "modeless" to avoid conflict if the pointer tool is active.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to Remove Stack's Shadow

2004-02-01 Thread Thomas McGrath III
Works here in OSX.

Tom

On Feb 1, 2004, at 6:55 PM, Bojsza wrote:

James,

I have tried this and it doesn't seem to work? Does it work for you?

Glen

> Glen -

> Try this: set the shadow of this stack to false
> I found this by looking up "shadow" in the Transcript Dictionary.
> Hope this is what you needed.
> - James ___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with closing a stack

2004-02-01 Thread Thomas McGrath III
Doug,

I was having problems with the closeStack as well and it seems everyone 
said it must be something I was doing. Well, usually it is.;-)

But once I put my close down stuff into the on shutDown and my start up 
stuff into on StartUp everything now gets set and handled and works 
great.

It seems to me, since you can put closeStack in a stack and in a 
substack and elsewhere that it may not be as pure as is stated. I mean 
startup is just that and only goes off on startup and shutdown is just 
that and only goes off on shutdown. But preOpenStack and OpenStack and 
closestackrequest etc. seem to be upwardly mobile. I mean they work 
best handling upstream stuff.

Of course I haven't a clue and will probably get reamed but I tell you 
once I moved my stuff into the startup and shutdown handlers they 
finally got called as expected and things then worked great. One 
problem though, I could not debug the startup in the IDE for some 
reason. I put in a break and it never showed but in the standalone 
things were smooth.

FWIW

Tom

On Feb 1, 2004, at 6:31 PM, Doug Lerner wrote:

On 2/2/04 7:44 AM, "Frank Leahy" <[EMAIL PROTECTED]> wrote:

On Sunday, February 1, 2004, at 10:02  PM,
[EMAIL PROTECTED] wrote:
A stack with a card containing 1500 controls takes about 10 minutes 
to
close - on my G4 Powerbook with 667 MHz.
If you are doing something with those controls when you close the 
stack
(e.g. moving them, or resetting any values), that can take a very long
time.

Either way, try setting lock screen and lock messages in your
closeStack handler and see if that speeds things up.
My problem doesn't have anything to do with excessive controls. There 
are
just two in the stack. I am sure the closeStack handler itself is just 
not
being run, even when manually closing the stack. The 
revCloseVideoGrabber
isn't happening, which is what got me started on this.

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: find (and table fields)

2004-02-01 Thread David Squance
>Hi Dave,
>
>As the text is stored in a tab-delimited manner, you
>can get at an individual cell quite easily :
>--
>  set the itemDelimiter to tab
>  get item 3 of line 4 of field "Foobar"
>--

Thanks, Jan.  That's what I needed.
Dave


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


How to Remove Stack's Shadow

2004-02-01 Thread Bojsza
James,

I have tried this and it doesn't seem to work? Does it work for you?

Glen

> Glen -

> Try this: set the shadow of this stack to false
> I found this by looking up "shadow" in the Transcript Dictionary.
> Hope this is what you needed.
> - James 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with closing a stack

2004-02-01 Thread Doug Lerner
On 2/2/04 7:44 AM, "Frank Leahy" <[EMAIL PROTECTED]> wrote:

> 
> On Sunday, February 1, 2004, at 10:02  PM,
> [EMAIL PROTECTED] wrote:
> 
>> A stack with a card containing 1500 controls takes about 10 minutes to
>> close - on my G4 Powerbook with 667 MHz.
> 
> If you are doing something with those controls when you close the stack
> (e.g. moving them, or resetting any values), that can take a very long
> time.
> 
> Either way, try setting lock screen and lock messages in your
> closeStack handler and see if that speeds things up.

My problem doesn't have anything to do with excessive controls. There are
just two in the stack. I am sure the closeStack handler itself is just not
being run, even when manually closing the stack. The revCloseVideoGrabber
isn't happening, which is what got me started on this.

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with closing a stack

2004-02-01 Thread Doug Lerner
On 2/2/04 6:50 AM, "Wilhelm Sanke" <[EMAIL PROTECTED]> wrote:

> 
> On Mon Feb 2  Doug Lerner doug at webcrossing.com wrote:
> 
>> 
>> When I close a stack in which the video grabber is embedded, I am
>> trying to
>> clean up as follows:
>> 
>> (snip)
>> 
>> BUT... even if I close the stack manually, the answer dialog doesn't even
>> appear.
>> 
>> The closeStack handler is just not being called. And it is a handler local
>> to the stack itself!
>> 
>> What might block the closeStack message from being sent to this stack
>> handler?
>> 
>> Thanks,
>> 
>> doug
> 
> 
> 
> Probably this is  related to the problem Revolution has in handling
> greater amounts of data.
> 
> I have various stacks here that contain a larger number of controls on
> one card.
> 
> A stack with a card containing 1500 controls takes about 10 minutes to
> close - on my G4 Powerbook with 667 MHz.
> 
> Metacard closes the same stack immediately.

This stack only has two controls on it - an image and a button.

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with closing a stack

2004-02-01 Thread Doug Lerner
On 2/2/04 2:54 AM, "Robert Brenstein" <[EMAIL PROTECTED]> wrote:

>> When I close a stack in which the video grabber is embedded, I am trying to
>> clean up as follows:
>> 
>> on closeStack
>>   global recordvideo
>>   answer "closing stack " & the short name of this stack
>>   put false into recordvideo
>>   revCloseVideoGrabber
>> end closeStack
>> 
>> Putting false into recordvideo should stop the repeat loop needed for QT, as
>> per the sample stack and docs. revCloseVideoGrabber should close the video
>> grabber. The answer command should at least acknowledge that the stack is
>> being closed.
>> 
>> BUT... even if I close the stack manually, the answer dialog doesn't even
>> appear.
>> 
>> The closeStack handler is just not being called. And it is a handler local
>> to the stack itself!
>> 
>> What might block the closeStack message from being sent to this stack
>> handler?
>> 
>> Thanks,
>> 
>> doug
> 
> I believe that the closeStack is sent as expected. However, the
> engine is closing fast and the dialog is not showing up. It is known
> that it does not wait for dialogs at that stage. If you want to pop a
> dialog, use the closeStackRequest. JUst make sure to pass it or the
> stack will never close.


I know the local closeStack is not getting handled for other reasons though.
For example, "false" is not get put into recordvideo and
revCloseVideoGrabber is not getting called.

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Non-blocking way to open MS Word files?

2004-02-01 Thread Dave Beck


Just want to say thanks so much for the help! I actually used a combination
of the launch command with a separate mini 'launcher' stack to do the trick.
Great idea, Scott! From my main stack, I set a registry key indicating the
path of the document I want to launch, and then use the launch command to
launch my mini 'launcher' stack. The 'launcher' stack reads the reg key, and
then uses the shell() function to open the document.

The only drawbacks are 1) Now my app will be 1 meg bigger because of the
mini 'launcher' app, and 2) You can only launch one document at a time. If
you try to open a second when the first is still open, nothing happens. Oh
well, it works well enough for me!

Thanks again! Great idea with the mini-launcher.
Dave

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Compilers?

2004-02-01 Thread Dar Scott
What compilers are you folks using for what platforms (from what 
platforms) for making externals?

(Other comments?  Recommendations?  Etc.)

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with closing a stack

2004-02-01 Thread Frank Leahy
On Sunday, February 1, 2004, at 10:02  PM, 
[EMAIL PROTECTED] wrote:

A stack with a card containing 1500 controls takes about 10 minutes to
close - on my G4 Powerbook with 667 MHz.
If you are doing something with those controls when you close the stack 
(e.g. moving them, or resetting any values), that can take a very long 
time.

Either way, try setting lock screen and lock messages in your 
closeStack handler and see if that speeds things up.

-- Frank

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Multiple Cards on a Tab?

2004-02-01 Thread Robert Brenstein
What Robert is describing is exactly what I am trying for.

Can it be done or should I take a different approach for the same effect?

Glen
Depending on the amount of data (field content, checkboxes, radio 
buttons, etc), you can ease switch cards keeping the same tab (as you 
considered) or keep the data as custom properties instead of cards 
and simply swap the data.  User will not know the difference. Each 
approach has its pros and cons. I think the latter is a bit 'cleaner' 
to program and maintain.

Robert
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with closing a stack

2004-02-01 Thread Wilhelm Sanke
On Mon Feb 2  Doug Lerner doug at webcrossing.com wrote:


When I close a stack in which the video grabber is embedded, I am 
trying to
clean up as follows:

(snip)

BUT... even if I close the stack manually, the answer dialog doesn't even
appear.
The closeStack handler is just not being called. And it is a handler local
to the stack itself!
What might block the closeStack message from being sent to this stack
handler?
Thanks,

doug


Probably this is  related to the problem Revolution has in handling 
greater amounts of data.

I have various stacks here that contain a larger number of controls on 
one card.

A stack with a card containing 1500 controls takes about 10 minutes to 
close - on my G4 Powerbook with 667 MHz.

Metacard closes the same stack immediately.

Regards,

Wilhelm Sanke

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to Remove Stack's Shadow

2004-02-01 Thread James . Cass
Glen -

Try this: set the shadow of this stack to false
I found this by looking up "shadow" in the Transcript Dictionary.
Hope this is what you needed.

- James





Bojsza <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
02/01/04 12:47 PM
Please respond to How to use Revolution
 
To: [EMAIL PROTECTED]
cc: 
Subject:How to Remove Stack's Shadow


I have created a main stack 800 by 600 and a sub stack 500 by 300.

I have set the location of the sub stack to the center of the main
stack and have given it no controls. There is a shadow from the sub
stack when it is shown...is it possible to not show this shadow?

thanks,

Glen

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


help with understanding why script dont give disired outcome

2004-02-01 Thread Douglas Mackay
here is part of the script I am working with :
on mouseUp
  global Gbox
  ask "Date of Birth? (eg. 23/9/1987)"
  put it into firstDate
  ask "Date of Assessment? (eg. 18/3/2001)"
  put it into secondDate
  put whichage (firstDate, secondDate) into dateholder

  if Gbox = 1
  then put "year" into field "nameYear"
  else
put "years" into field "nameYear"
  end if
  put Gbox into field "year2"

  if item 2 of dateholder = 1
  then put "month" into field "nameMonth"
  else
put "months" into field "nameMonth"
  end if
  put item 2 of dateholder into field "month"

  if item 3 of dateholder = 1
  then put "day" into field "nameDay"
  else
put "days" into field "nameDay"
  end if
  put item 3 of dateholder into field "day"
end mouseUp


function whichage fromwhich,towhich
  global Gbox
  set the centuryCutoff to 35
  set useSystemDate to true
  if param(1) = "" then exit to top
  put param(1) into startdate
  put param(2) into enddate
  set the itemDelimiter to "/"

  put item 3 of startdate into GsYear
  put item 3 of enddate into GeYear

  set the itemDelimiter to comma
  convert startdate to dateitems
  convert enddate to dateitems
  put item 3 of enddate into bbmsg
  put (item 3 of enddate - item 3 of startdate) into diffjour
  if diffjour < 0 then
add "1" to item 2 of startdate
get item 2 of enddate
if (it is in "1,3,5,7,8,10") or (it= "12") then put "31" into correction
else if (it is in "4,6,9,11") then put "30" into correction
else if item 1 of enddate mod 4 = 0 then put "29" into correction
else put "28" into correction
add correction to item 3 of enddate
put (item 3 of enddate - item 3 of startdate) into diffjour
  end if
  put (item 2 of enddate - item 2 of startdate) into diffmois
  if diffmois < 0 then
add "1" to item 1 of startdate
put (item 2 of enddate) + 12 into item 2 of enddate
put (item 2 of enddate - item 2 of startdate) into diffmois
add "1" to GsYear

the line in bold type will not work when giving start and enddates 1961 , and for 
example todays date .having looked in the debugger  convert startdate to dateitems

 and  convert enddate to dateitems  
only converts the enddate to dateitems 

can anyone explain why this happens please to me ?

Douglas

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Multiple Cards on a Tab?

2004-02-01 Thread [EMAIL PROTECTED]


take a look at the sample stacks at RunRev's website showing how to use 
tabs.. there's one stack showing the use with hidden fields, and another 
stack showing the use with multiple cards..

http://www.runrev.com/revolution/downloads/developerdownloads/usingtabs.z
ip

http://www.runrev.com/revolution/downloads/developerdownloads/Using_Tabs_
with_Cards.zip




-Sean

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: base64encode & decode in a standalone

2004-02-01 Thread Dar Scott
On Sunday, February 1, 2004, at 09:24 AM, Mark Brownell wrote:

It looks like the fileType matters before it will save as 
base64Encoded.
I don't get it.  How will a file type affect whether the function works 
or now?

Dar

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Multiple Cards on a Tab?

2004-02-01 Thread Dar Scott
On Sunday, February 1, 2004, at 11:43 AM, Robert Brenstein wrote:

I think this is exactly what he needs. I believe he wants to switch 
cards while showing the same tab. If the same tabbed button is placed 
on all those cards and the same tab is active (which you can switch 
from script), user will not know that you are on a different card.
Also...  If, say, card names need to go on the tabs, the group can be 
smart enough to handle that.  (I would think.)

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Multiple Cards on a Tab?

2004-02-01 Thread Bojsza
What Robert is describing is exactly what I am trying for.

Can it be done or should I take a different approach for the same 
effect?

Glen

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Multiple Cards on a Tab?

2004-02-01 Thread Robert Brenstein
On Sunday, February 1, 2004, at 08:00 AM, Bojsza wrote:

I believe that this can be done by having multiple cards in a 
normal situation but is it possible to have multiple cards 
associated with one tab?
I'm not sure what you mean.  You might want to look into putting the 
tab into a shared group (background).

Dar Scott
I think this is exactly what he needs. I believe he wants to switch 
cards while showing the same tab. If the same tabbed button is placed 
on all those cards and the same tab is active (which you can switch 
from script), user will not know that you are on a different card.

Robert
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with closing a stack

2004-02-01 Thread Robert Brenstein
When I close a stack in which the video grabber is embedded, I am trying to
clean up as follows:
on closeStack
  global recordvideo
  answer "closing stack " & the short name of this stack
  put false into recordvideo
  revCloseVideoGrabber
end closeStack
Putting false into recordvideo should stop the repeat loop needed for QT, as
per the sample stack and docs. revCloseVideoGrabber should close the video
grabber. The answer command should at least acknowledge that the stack is
being closed.
BUT... even if I close the stack manually, the answer dialog doesn't even
appear.
The closeStack handler is just not being called. And it is a handler local
to the stack itself!
What might block the closeStack message from being sent to this stack
handler?
Thanks,

doug
I believe that the closeStack is sent as expected. However, the 
engine is closing fast and the dialog is not showing up. It is known 
that it does not wait for dialogs at that stage. If you want to pop a 
dialog, use the closeStackRequest. JUst make sure to pass it or the 
stack will never close.

Robert Brenstein
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


How to Remove Stack's Shadow

2004-02-01 Thread Bojsza
I have created a main stack 800 by 600 and a sub stack 500 by 300.

I have set the location of the sub stack to the center of the main 
stack and have given it no controls. There is a shadow from the sub 
stack when it is shown...is it possible to not show this shadow?

thanks,

Glen

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Icons, big "answer" box

2004-02-01 Thread Wilhelm Sanke
On 31 Jan 2004  Thomas Cole <[EMAIL PROTECTED]> wrote

(snip)
1. When you use the answer "whatever" command in RR, the box that 
comes up is often so darned big that it spreads across the screen and 
you have to pull it around to read it. I have a program that gives 
instructions using the answer this or that command and this is a real 
problem. Is there any way to make answers appear neatly as they used 
to do in HyperCard?
(snip)
What am I doing wrong?

Many thanks,
Tom


and on Sat, 31 Jan  Richard Gaskin wrote:

I believe there is a Bugzilla report for this.  Please consider voting for
it.
-- Richard Gaskin Fourth World Media Corporation


and on Sun, 1 Feb Bj?rnke von Gierke<[EMAIL PROTECTED]> wrote:

You can also try to wrap your messages yourself so instead of:

answer "very long text that stretches the message box way beyond the
screen borders."
you could write

answer "very long text that stretches the message box" & return & "way
beyond the screen borders."


Maybe there is a Bugzilla report for this, but the "big" answer dialog 
is not really a bug, but rather an intended feature.

Three recommendations to get a a better proportioned width of the 
"answer dialog":

1. Open the card script of stack "answer dialog"

 - comment line "#set the width of button i to 82"
add a new line after that line, namely  "set the width of btn i to the 
formattedwidth of btn i + 10"

- comment line  "#if the width of btn i < the formattedWidth of btn i 
+28 then set the width of btn i to the formattedWidth of btn i + 28"

- comment line "#if tWidth < 400 then put 400 into tWidth"

Additionally use Björnke von Gierkes recommendation to wrap the message like

 answer "very long text that stretches the message box" & return & "way
beyond the screen borders."
Together this should produce acceptable results.

2. Use the "answer dialog" of the Metacard IDE

  Add the Metacard "answer dialog" to your stack as a substack. When 
you use the "answer" command, this substack will be called instead of 
the Rev stack. (Of course you could also permantly replace the Rev 
"answer dialog" stack with the Metacard IDE stack in the Rev IDE).

The Metacard "answer dialog" is much "smaller", proportioned, and 
somewhat more flexible.
So you can set the textsize (set the textsize of stack "answer dialog" 
to 16), which is not possible with the Rev "answer dialog" unless you 
change the "presets" in the script of the dialog - necessary then each 
time you want to have a different textsize.
What you can do with the text of the Rev dialog is to set the 
"textstyle" - for example to bold - to improve the readability of the 
tiny text of the Rev dialog.

3. Design you own modal dialogs

Usually I use the Rev and Metacard "answer dialogs" - and for that 
matter the "ask dialogs" - mainly during development as an interim solution.
For a completed project I often add my own custom dialogs specifically 
adapted to the needed user input.

For example:  I want the user to select a  number of problems from a 
"repertoire" field or file, the range being from 4 to 50.
Even with the smaller Metacard "ask dialog" the width of the  input 
field for this  two-digit number is out of proportion (and could hold 
billions).

With a custom dialog - designed from scratch or as a modified dialog - 
you can control all kind of options you want to have, e.g. the location 
of the modal dialog on the screen or relative to the stack.
I have used such a custom dialog in my stack "Topsearch" (see Rev "user 
contributions").

Regards,

Wilhelm Sanke

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: base64encode & decode in a standalone

2004-02-01 Thread Mark Brownell
On Saturday, January 31, 2004, at 06:05  PM, I wrote:

I believe that I read about this somewhere but I can't find it in the 
list archives. I have a save file function that compresses then 
base64encodes some data as it puts this data into a URL using binfile: 
This works on Mac10.2.4 in  the IDE but it doesn't work in the 
standalone. The base64Encodes & base64Decodes scripts are ignored in 
the standalone but they save and open as compressed.
While trying to fix this I got this to work in the standalone:

put compress(tankX) into tkx
put base64Encode(tkx) into tky
set the fileType to "ttxtTEXT"
put tky into URL ("binfile:" & it)
It looks like the fileType matters before it will save as base64Encoded.

I can make this work as an option for deliberately base64Encoding 
files. I have no problems saving my own fileType, "MTMLMTML," with 
compression.

What's really strange is that it looks like any file that has been 
base64Encoded are the only type that open now. This is what I wanted 
originally and I can't figure out why yet. Certainly it must be some 
fileType issue allowing this to work.

Mark

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Going crazy with closing a stack

2004-02-01 Thread Doug Lerner
When I close a stack in which the video grabber is embedded, I am trying to
clean up as follows:

on closeStack
  global recordvideo
  answer "closing stack " & the short name of this stack
  put false into recordvideo
  revCloseVideoGrabber
end closeStack

Putting false into recordvideo should stop the repeat loop needed for QT, as
per the sample stack and docs. revCloseVideoGrabber should close the video
grabber. The answer command should at least acknowledge that the stack is
being closed.

BUT... even if I close the stack manually, the answer dialog doesn't even
appear.

The closeStack handler is just not being called. And it is a handler local
to the stack itself!

What might block the closeStack message from being sent to this stack
handler?

Thanks,

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


GoRevnet & LibURL? (Was: Re: libURL issues?)

2004-02-01 Thread Dom
Richard Gaskin <[EMAIL PROTECTED]> wrote:

> >  > ases.s html>
> 
> I'm using that one since yesterday.

Hi, Richard!

Back to the List.

I downloaded and installed LibURL 1.0.3
With no luck.

The RevNet "update list" buttons seems to be unresponsive.
Nothing appears to arrive.
I tried a number of times, every 20 seconds, with no luck.

Do you think really it is a backside effect of the MyDoom attack?
I received some fake error messages originated by this virus, but not
much, in fact.


I tried the trick proposed by Dave (to comment a certain line in
GoRevNet). That worked ONCE (got the stacks list), but ceased quickly...

Doing more tests...

My configuration :
Mac OS 10.2.4
Revolution 2.1.2

Also, I tried to save the Revnet stack on my disk. Not possible via the
menu, the "Save" items are grayed. Successful via the message box :-)
Anyway, this stack is unusable in "local" mode, isn't it?

-- 
Digital photos (nature, garden) : http://cooldomi.free.fr/
Scripting : http://domiscript.free.fr/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revdberr: invalid database type

2004-02-01 Thread Sjoerd Op 't Land
On Fri, 30 Jan 2004 06:09:08 -0800 (PST), Jan Schenkel wrote

> I had the same problem a while back when I was
> experimenting with the cgi-engine ; the quick solution
> is to copy the database drivers into the same dir as
> the engine and the cgi-scripts.
I tried this (with or w/o issuing revSetDatbaseDriverPath); no luck. I'm using 
engine version 2.51G buildnumber 1. This same engine works perfectly on 
another server, strange isn't it?

> The cleaner way is to use the command
> 'revSetDatabaseDriverPath' to point to the correct
> directory on your server before making any calls to
> the revdb functions.
I know, this is the way it worked before (on the other server). Could it be 
some permission problem? (I don't know how *.so files (drivers) are used in 
Linux. Do they need special permissions to be mounted or something like that 
(I'm a Linux newbie, please share your knowlege)?)

> Hope this helped,
> 
> Jan Schenkel.
Thanks so far,
Sjoerd Op 't Land
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


closeStack and the message path question

2004-02-01 Thread Doug Lerner
I have a stack, and a substack with the following handlers in it:

stack
closeStackRequest
closeStack

substack
closeStack


Since the substack does not have its own closeStackRequest it seems to be
taking the one from the parent stack.

But after the parent stack's closeStackRequest is done, the closeStack that
apepars to get executed is the closeStack handler in the parent stack,
rather than the one in the substack.

Is that the way it's supposed to work?

doug

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Multiple Cards on a Tab?

2004-02-01 Thread Dar Scott
On Sunday, February 1, 2004, at 08:00 AM, Bojsza wrote:

I believe that this can be done by having multiple cards in a normal 
situation but is it possible to have multiple cards associated with 
one tab?
I'm not sure what you mean.  You might want to look into putting the 
tab into a shared group (background).

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Multiple Cards on a Tab?

2004-02-01 Thread Bojsza
I want to use the tabs for the user to navigate to different parts of 
the application. But on one of the tabs I want to use it as a 
configuration builder, where the screen has several fields that the 
user fills in and then can save. On this tab I want to list the saved 
configurations available and if the user wants to bring up one of these 
it populates the fields properly.

I believe that this can be done by having multiple cards in a normal 
situation but is it possible to have multiple cards associated with one 
tab?

Could it look like a normal tab?

thanks,

Glen

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: wait with messages...

2004-02-01 Thread Dar Scott
On Sunday, February 1, 2004, at 02:47 AM, Dave Cragg wrote:

repeat until 
  wait for messages
end repeat
It seemed the same as this:

wait until  with messages.
I think I get it.  Use the first for testing something that will be set 
by a callback. Use the second if there is no callback as in polling the 
shift key or calling an external.

It would be nice if there was a way to filter what messages got 
processed.

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: List field behavior

2004-02-01 Thread Robert Presender
Thanks to Jacqueline, Rob and Bj?rnke von Gierke for your input.  I 
appreciate it.
Regards  Bob

On Saturday, January 31, 2004, at 10:15  PM, Jacqueline Landman Gay 
wrote:

On 1/31/04 5:39 PM, Robert Presender wrote:

Is this the effect you are looking for:

delete line 2 of field [fieldName]
wait 1 second -- to see deletion
put "New line 2" & return before line 2 of field [fieldName]
No. This just adds a blank line in line 3 of 4. My problem is that I
want line 3 to take the place of line 2 and result in only two lines.
This behavior was a bug, now fixed in the latest version.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


placeholders in mySQL queries

2004-02-01 Thread Toma Tasovac
Hello everybody.

Does anybody have any idea why this works:

global tDatabaseID
global tFormID
on mouseUp
  put unidecode (char 1 to -1 of fld "pronunciation", "utf8") into 
updatedPronunciation
  put "UPDATE entry SET entry.pronunciation =:1 WHERE entry.formID 
='4'" into tQuery
  revExecuteSQL tDatabaseID,tQuery,"updatedPronunciation"
  put the result
end mouseUp

BUT why using two placeholders instead of one does not

global tDatabaseID
global tFormID
on mouseUp
  put unidecode (char 1 to -1 of fld "pronunciation", "utf8") into 
updatedPronunciation
  put "UPDATE entry SET entry.pronunciation =:1 WHERE entry.formID =:2" 
into tQuery
  revExecuteSQL tDatabaseID,tQuery,"updatedPronunciation", "tFormID"
  put the result
end mouseUp

In the second case, even though "tFormID" evaluates to 4, making it 
exactly the same as the first example, the result is always 0, and no 
update is being made.

All best,
Toma
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: use-revolution Digest, Vol 4, Issue 211

2004-02-01 Thread Cubist

In a message dated 1/31/04 11:16:03 PM, 
[EMAIL PROTECTED] writes:

>
>Date: Sat, 31 Jan 2004 15:39:12 -0800
>From: Robert Presender <[EMAIL PROTECTED]>
>Subject: Re:List field behavior
>To: [EMAIL PROTECTED]
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset=US-ASCII; format=flowed
>
>Rob,
>
>On Saturday, January 31, 2004, at 03:04  PM, Rob Cozens wrote:
>
>> Bob,
>>
>> Is this the effect you are looking for:
>>
>>  delete line 2 of field [fieldName]
>>  wait 1 second -- to see deletion
>>  put "New line 2" & return before line 2 of field [fieldName]
>>
>No. This just adds a blank line in line 3 of 4. My problem is that I 
>want line 3 to take the place of line 2 and result in only two lines. 
>I don't want to add text to the deleted line.  I use a count syntax to
>add a new line after the existing lines in my SC version.
>In my SC app, when a line is deleted the lines below move up to the 
>deleted space.
   On my machine, the command "delete line Whatever" behaves the way you want 
it to; I have no idea why it's not working for you. But that isn't very 
helpful, so here's an alternative which should hopefully do the trick...

on NukeLine DerFld, LineNum
  if there is not a field DerFld then
answer "There is no field named '" & DerFld & "'."
exit NukeLine
  end if
  if LineNum is not a number then
answer "A field cannot have a line number '" & LineNum & "'."
exit NukeLine
  end if
  if LineNum is not an integer then put trunc (LineNum) into LineNum
  if LineNum < 1 then put 1 into LineNum
  put the number of lines in field DerFld into MaxLinez
  if LineNum => MaxLinez then
put (MaxLinez - 1) into Begyn
put MaxLinez into Ende
  else
put LineNum into Begyn
put (LineNum + 1) into Ende
  end if
put line Ende of field DerFld into line Begyn to Ende of field DerFld
  end NukeLine

   The final line of the hander is the actual suggestion; everything that 
precedes it is just idiot-proofing.
   Hope this helps...
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: wait with messages...

2004-02-01 Thread Dave Cragg
At 12:14 am -0600 1/2/04, Chipp Walters wrote:

Would it be something like:

wait for 4 seconds with messages
I'm not sure if that will work. The old Metacard docs only show the 
"with messages" option being valid with the "wait until" or "wait 
while" variations of wait. I.e. it needs a condition. But the Rev 
docs shows it being OK with "wait for" as well.

wait for messages
(pauses handler until *any* message is received? and why would I ever use
this?)
I have a feeling there's some great power here, I just want to understand
how to use it!
This one puzzled me when I took over libUrl. It was full of snippets 
like this (and still is):

repeat until 
  wait for messages
end repeat
It seemed the same as this:

wait until  with messages.

But Scott (Raney) told me that the "wait for messages" in the repeat 
loop is much more efficient as the condition is tested only when a 
message is sent. In the single liner, the condition is tested 
continually ( a bit like "idle").

My own limited testing at the time didn't seem to show a great 
difference in how often the condition was tested. But the explanation 
seemed sensible, so I stuck with the "wait for messages" in the 
repeat loop.

Cheers
Dave
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: wait with messages...

2004-02-01 Thread Martin Baxter
Regarding remote popups, I'd like to add the esoteric information that you
need to use this wait with messages conditional in standalones that run
under mac system 7 as well as windows. 68k standalones tested under
emulation on a PPC don't need this, but when run under system 7 they behave
the same as windows.

There is another subtle platform difference I've found with remote popups,
which is that if the traversalon of the remote popup button is true (the
default), the resulting menu will grab the focus under windows (and mac
system 7), but not on PPC mac. I'd guess this is a related isssue.

Martin

>For example, one thing that has been bugged in Bugzilla is that opening
>up a popup menu remotely:
>
>  popup (long id of btn "ContextPop" of card 1 of stack "MyStack") at
>the mouseLoc
>
>is modal on MacOS (i.e. it waits until you pick something from the menu
>before it goes to the next script line), but on Windows, it's not (it
>pops up the menu and immediately goes to the next script line).
>
>So to get around it, I have added right after it:
>
>  if the platform is "Win32" then
>wait until the mouse is up with messages
>  end if
>
>This causes the script to pause, but allows other things to happen
>(pendingMessages get sent, etc.).
>
>HTH,
>
>Ken Ray


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: find

2004-02-01 Thread Jan Schenkel
--- hershrev <[EMAIL PROTECTED]> wrote:
> 
> 
> Hi,
> I'm trying to make a find field search in a Table
> field (according the 
> instructions in the doc.) some how it doesn't work.
> example: I have a closed curser query result list in
> a table field and 
> made a search field to search according the text
> entered it should go 
> to the correct line and select it.
> For some reason it doesn't work (ignore find , is
> off)
> 
> Thanks Hershrev
> 

Hi Herhsrev,

I made a quick test, and it worked for me ; so I guess
something is different between our stacks :-)

My setup :
- field 1 contains the full name of the characters in
the greek alphabet, three per row
- field 2 is where I type my search string
- button 1 has the following script
on mouseUp
  find field 2 in field 1
  put the foundChunk
end mouseUp

==> When I type "Delta" in field 2 and click the
button, it displays a square rectangle around the word
"Delta" in the table field, and puts the place where
it found it into the message box.

If you continue to have problems, don't hesitate to
post a sample stack somewhere on the web and notify
the list ; there are plenty of smart people who would
loe to take a look at it :-)

Hope this helped,

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: FlashMX and Runtime Revolution (erik hansen)

2004-02-01 Thread [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

You can embedd in revolution a web browser with
altbrowser.dll from altuit.
Within this box you can display a flash movie.
how many minutes max?

thanks,

Erik Hansen
For me hours...

But in fact i have a flash website made from hundredth of small files (my 
biggest file is 120 kO). I display this flash site within a revolution box.

For me that's much better than displaying ordinary rev fields.

You can also display flash movies through a quicktime player object, but 
you are limited to the version of flash supported by Quicktime.

Displaying through a browser object you are limited to the version of 
flash installed in Internet Explorer. If you upgrade your flash player to 
2004MX, you will play 2004MX !

You can give a test downloading altBrowser.dll from www.altuit.com ; there 
is a rev browser on the site ; open this rev browser and try to play your 
flash movie.

Of course you need in Flash to export your movie in an htmlfile within 
witch the swf file is embedded.

I guess that the only limitation of this solution is a memory one because 
you have to run in the same time revolution + (embedded internet explorer) 
+ flash plugin.
I am sure that on a winXP computer with 128 MO RAM it is ok.
On a win98 computer with 64 MO RAM it works but not very fast.

Regards

Claude Lemmel / Opus species
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: find (and table fields)

2004-02-01 Thread Jan Schenkel
--- David Squance <[EMAIL PROTECTED]> wrote:
> And while our gurus are thinking about table fields,
> coincidentally, I've
> been trying to find the syntax for getting the
> contents of a cell in a
> table field.  The glossary says a cell is specified
> by its column and row
> numbers (eg: 1,2), but playing with a table and the
> message box, I
> can't 'put' the contents of cell.  Is there simple
> syntax for this?
> Dave
> 

Hi Dave,

As the text is stored in a tab-delimited manner, you
can get at an individual cell quite easily :
--
  set the itemDelimiter to tab
  get item 3 of line 4 of field "Foobar"
--

During a discussion on this list a while ago, the
following script ws developed to allow the easy
setting and getting of individual calls in a table, by
mean of custom properties :
--
getProp uCell[pIndex]
  # this allows you to get the content of a cell

  # extract the row and column from the index param
  put item 1 of pIndex into tRow
  put item 2 of pIndex into tCol
  # now return the data in that cell
  set the itemDelimiter to tab
  return item tCol of line tRow of me
end uCell

setProp uCell[pIndex] pContent
  # this allows you to set the content of a cell

  # extract the row and column from the index param
  put item 1 of pIndex into tRow
  put item 2 of pIndex into tCol
  # now return the data in that cell
  set the itemDelimiter to tab
  put pContent into item tCol of line tRow of me
end uCell
--

If you put the above into the script of the field, you
can get and set the content of individual cells by
calls like :
--
  get the uCell[9,2] of field "Foobar"
  set the uCell[3,4] of field "Foobar" to "Snafu"
--

Hope this helped,

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: wait with messages...

2004-02-01 Thread Ken Ray
> Thanks for the explanation.
> How would you use:
> 
> wait for messages
> and
> wait with messages
> 
> ??
> 
> Would it be something like:
> 
> wait for 4 seconds with messages

Right, allowing processing to continue while it waits.

> wait for messages
>
> (pauses handler until *any* message is received? and why 
> would I ever use
> this?)

I don't know... this one seems a little goofy, but I'm sure there was a
reason to have it developed. :-)

Another one I like is this one:

  global gStatus

  wait until gStatus is "go" with messages

This allows you to stop at a line and wait until a global has been set
to a particular value while other things are going on.


GIH (glad it helps)

Ken


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution