Re: Record Audio for only 10 seconds?

2010-04-13 Thread Klaus Major
Hi John,

> Hi All...
> 
> I'm attempting to create a little stack that will allow the user to record 
> audio, their voice, for a specific amount of time.
> 
> I have the recording scripts down:

try this:

> put the long name of current stack into theTargetPath
>   put the itemDel into tOrigItemDel
>   set the itemDel to "/"
>   delete last item of theTargetPath
>   delete first item of theTargetPath
>   put "/" & theTargetPath & "/Recordings/" into theRecordingTarget
>   --create a unique name for the audio file
>   convert the date && the long time to seconds 
>   put it into tFileName
>hide me 
> show button "Stop Recording"

send "mouseup" to btn "Stop Recording" in 10 secs

>record sound file theRecordingTarget&tFilename
>put theRecordingTarget&tFileName into cd fld "recording name"
>   set the itemDel to tOrigItemDel
> 
> However I'm not sure how to add the timer component. I'm thinking I will need 
> to use a "send" statement, something like, send "stop recording" after 10 
> seconds to current stack???
> 
> Thank you!
> 
> John Patten

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Old CGI engine and POST

2010-03-25 Thread Klaus Major
Bonjour Jacqueline,

> Klaus Major wrote:
>> Hi all,
>> maybe someone happens know this?
>> We are using an old Rev engine as a CGI engine on our server.
>> Is it possible to "POST" something to an url with this old CGI engine?
> If you mean, the cgi needs to catch POST requests and process them then yes, 
> I catch those all the time. If you mean the cgi needs to *generate* POST 
> requests then you'll probably need to do what Bjornke said.

the latter one, thanks :-)

We will use probably CURL, since we have a Mac server.

> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software       |     http://www.hyperactivesw.com

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Old CGI engine and POST

2010-03-25 Thread Klaus Major
Hi Andre,

> Klaus,
> 
> I think it is easier to shell() to CURL than to load libURL on old CGI
> engines. CURL can POST, GET and pretty much anything you want.

ah, yes, I see!

Good idea, since we have a Mac server (an old eMac, but what the heck :-)
CURL shoould already avialble on that machine.

Thanks!

> Cheers
> andre

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Old CGI engine and POST

2010-03-25 Thread Klaus Major
Hi Björnke,

> should work, but you need to load liburl yourself, as it's (for obvious 
> reasons) not included directly in the engine. Note that some colocation and 
> shared servers will not allow any outgoing sockets.

thanks for the fast answer!
Since this is our server, there won't be any problems I think, we'll check this 
:-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


Old CGI engine and POST

2010-03-25 Thread Klaus Major
Hi all,

maybe someone happens know this?

We are using an old Rev engine as a CGI engine on our server.
Is it possible to "POST" something to an url with this old CGI engine?
Know what I mean?

I do not have the chance to test this in the moment.

Thanks for all answers :-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Animated graphics ?

2010-03-09 Thread Klaus Major

Am 09.03.2010 um 14:01 schrieb Richmond Mathewson:

> Will RunRev display animated PNG images correctly?

No, Rev does not support animated PNGs at all!

> http://animatedpng.com/

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: when saving as standalone get a text file; SOLVED

2010-02-18 Thread Klaus Major

Am 18.02.2010 um 14:32 schrieb Richard Gaskin:

> Andre.Bisseret wrote:
>> This morning I succedeed to save my app. as standalone normally! (Mac
>> OSX 10.5.8 ; Rev 4.0)
>> 
>> The only difference that I noticed was that, a couple of days ago, I
>> saved it successfully in a "default built folder" whose name did not
>> had accented characters
>> while yesterday, I was trying to make my standalone in a folder whose
>> name had one accented character !!!
>> 
>> Removing the accent solved my problem
>> I got a normal "executable Linux file" (can't try it) and a Mac
>> application which is working well.
>> 
>> poor people who inherited a native language with accents ;-o)))
> 
> Good sleuthing, Andre.
> 
> Seems related, possibly worthy of a vote:
> Files with high-ASCII characters are not recognized by Revolution
> <http://quality.runrev.com/qacenter/show_bug.cgi?id=6394>

I just added my votes and a comment.
Hopefully this real BLOCKER will get fixed in 4.5 :-/

> --
> Richard Gaskin
> Fourth World
> Rev training and consulting: http://www.fourthworld.com
> Webzine for Rev developers: http://www.revjournal.com
> revJournal blog: http://revjournal.com/blog.irv

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: survey

2010-02-17 Thread Klaus Major
Mikey,

with all due respect, but Alex wrote "... WERE well known..."
which means this has been the case at some arbitrary point in the past :-)

m 17.02.2010 um 15:14 schrieb Mikey:
> Alex,
> With all due respect, even HP doesn't use DEC systems any more.
>> ...
>> VMS (i.e. DEC systems, based in Mass) were well known for the joke of
>> having timings defined in microfortnights (pretty close to one second).
>> 
>> -- Alex.

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Calling handlers on different stacks.

2010-02-16 Thread Klaus Major
Hi Andre,

> Another silly question that I don't quite get.
> Calling handlers located on Stack1 from Stack2.
> Code in stack 2:
> start using stack "Stack1"
> PopulateListOnFilter --Handler on Stack1
> stop using stack "Stack1"
> How do I call PopulateListOnFilter on stack1 from stack 2?

Check "call" in the docs (Rev Dictionary) :-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Stack open?

2010-02-16 Thread Klaus Major
Hi Andrew,

> 
> I need to check to see if a stack is open. Not sure of the syntax or even if
> that can be done.
> if stack "Stack" is open then
>blah blah
> end if

you're almost there :-)
...
if "Name of your stack" is in the openstacks then
## Stack is open
end if
...

> Thanks,
> 
> Andrew Kluthe

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: AW: open substack flickering despite lockscreen

2010-02-04 Thread Klaus Major
Hi Tiemo,

> Hi Klaus,
> 
> there is a saying "don't halloo, before you are out of the wood"

??? I only understand "station" :-D

> When using just:
> 
>   set the left of stack "lizenzinfo" to tLocX
>   set the top of stack "lizenzinfo" to tLocY
>   modal stack "lizenzinfo"
> 
> the setting of the loc seems to be ineffective, The stack just opens at the
> default center position. When opening the stack, before setting the loc, as
> in my first approach, the positioning works, but the flickering.
> Any idea what's wrong?

Oops, my fault!
I thought this behaviour only applies to the "Ask" and "Answer" dialogs, but a 
look into the docs proved me wrong.
This is obviously managed by the engine.

No other idea, sorry.

> Thanks
> Tiemo

Best

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: open substack flickering despite lockscreen

2010-02-04 Thread Klaus Major
Hi Tiemo,

> Hello,
> 
> I want to open a substack modal at the loc of the mouse. Everything works,
> beside there is a flickering, when opening the substack and positioning it
> at the mouse loc despide of having a lockscreen. For a moment of a second
> the stack appears at his default loc and then it appears at my wanted
> position. So there must be a fault in my following approach:
> 
>   set the lockscreen to true
>   open stack "lizenzinfo"
>   set the left of stack " lizenzinfo" to tLocX
>   set the top of stack " lizenzinfo" to tLocY
>   modal stack "lizenzinfo"
>   set the lockscreen to false
> 
> The reason for using first "open" and afterwords "modal" was, that I
> couldn't change the position, when opening it with modal, as far as I
> remember my code.

Try this, since you can set these props even BEFOE you open your stack!
...
  set the left of stack "lizenzinfo" to tLocX
  set the top of stack "lizenzinfo" to tLocY
  modal stack "lizenzinfo"
...

> Why does the lockscreen doesn't seem to be affective? What am I doing wrong?

"lock screen" only works inside of a stack, not on the screen unfortunately!

> Thanks for any hint
> 
> Tiemo

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Flash & mouseclicks in Revbrowser

2010-02-04 Thread Klaus Major
Hi Colin,

> The same issue comes up when using Director that has Flash elements, when 
> used on a touch screen. For those cases I've had to modify the Flash code to 
> work around the problem. I imagine that Flash in RevBrowser is a similar kind 
> of embedding, where it's taking the first click to get the Flash piece into 
> focus, then the second click registers.

OK, may be in Director. 

But in a Revbrowser you really have to doubleclick (clickclick)!
Click..* 1001 mississippi...Click does NOT work!

* Right now the Flash element SHOULD have the focus according to your theory :-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


Flash & mouseclicks in Revbrowser

2010-02-04 Thread Klaus Major
Hi all,

I found that most of the time you need to doubleclick(!) Flash elements 
(e.g. the movie controls in Youtube videos) when in a Revbrowser,
but the intended single clicks in a "normal" Browser like Safari or FireFox.

Know what I mean? Anyone else experienced this?

I'm on OS X 10.6.2, Intel.


Best

Klaus
--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Export locations

2010-01-28 Thread Klaus Major
Hi Richmond,

> Having exported a file from my merry Sanskrit Typewriter standalone to my 
> location of choice,
> I find, on attempting to save a second file the standalone has not remembered 
> my previous choice
> so I have to click around all over again, and again, and again to find my 
> location.
> 
> Not Good.
> 
> Any bright ideas?

I am sure there are many free memory training apps around on the net :-D
Sorry, never can resist...


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: [ANN] ssMacWindows 1.6.0

2010-01-21 Thread Klaus Major
Bonjour René,

> What is CAD ?

= Computer Aided Design!

But in this case it is more likely CAnadian Dollars :-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Modal dialog not modal... any hints?

2010-01-20 Thread Klaus Major
Hi all,

I also had some troubles in the past with a script NOT halting while a modal 
stack was displayed.

...
## After downloading some files from the internet...
answer "Update complete! The app will be shut down..."
quit
...

I saw the "Answer dialog" flashing and the app quit, without leaving time to 
click the "OK" button!
NOTHING else involved that could have caused this anomaly!

Unfortunately this is not reproducable, but it happens, which makes it 
difficult to stay mentally sane :-D


Best

Klaus
--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


Bug?: SPACES in RevBrowser, platform differences!

2010-01-19 Thread Klaus Major
Hi all,

I use a RevBrowser object to display SWF files.
Before I set the RevBrwoser URL to the filepath, I usually replace SPACE with 
"%20"
Works fine on a Mac!

On windows (XP and greater) i end with "%2520" instead of "%20" in the url.
This is obviously "normal" (HA! :-) behaviour on windows as Google told me

So again I have to use:
...
if the platform <> "Win32" then 
   replace SPACEW with "%20" in tUrl
end if
...
when I shouldn't...

What dou you think?
"Bug" or "the joy of crossplatform development"?

I think the Browserobject should take care of this.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Windows 7 & "launch app.exe"

2010-01-13 Thread Klaus Major
Hi Richmond,

> On 13/01/2010 16:10, Klaus Major wrote:
>> Dag Mark,
>> Am 13.01.2010 um 15:05 schrieb Mark Schonewille  
>>> Hi Klaus,
>>> I often have the same problem with other versions of Windows. It is not 
>>> limited to Windows 7. Quite some time ago, I decided not to bother anymore 
>>> and to use the shell whenever I have to launch an application or file.   
>> Ah, good to know, thanks!
>> Are you sure that this hasn't been reported yet?
>>>  No idea :-)
>> ...
> 
> Well, I have had no problems with any versions of Windows up to an including 
> XP * 3.
> Mind you, that is majorly outdated except in Bulgaria . . .  :)

Not only in Bulgaria :-)

> Mind you, I wonder why people would prefer Vista?

Mind YOU, they wouldn't!

> I wonder if "7" is better than Vista, or just a fudge rather like Millennium 
> was?

Yes, this is better, just like a little cold is better than a mature influenza 
:-D


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: BLOBs to files - works great but...

2010-01-13 Thread Klaus Major
Hi Alex,

Am 13.01.2010 um 15:29 schrieb zryip theSlug:

> 2010/1/13 Alex Adams :
> 
> Hello Alex,
> 
>> What isn¹t working for me yet is a lack of autonomy of the files restored to
>> a Mac OS X.  The files work just fine, if opened by a program that uses the
>> file type, but the finder always opens them in a text editor.
> 
>> What am I missing?
>> Thanks,
> 
> On Mac OS X try to restore the file with the command: ask file... with type...
> It means that when you store a file in the dataBase, you need to keep
> its type somewhere in the record.

Add this line:
...
set the filetype to ""
...
before you write your file(s) to disk.

This way the Finder will be forced to check the file suffix and to open that 
file
with the associated app when doubleclicked.

I do this all the time and works fine.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Windows 7 & "launch app.exe"

2010-01-13 Thread Klaus Major
Dag Mark,

Am 13.01.2010 um 15:05 schrieb Mark Schonewille:

> Hi Klaus,
> 
> I often have the same problem with other versions of Windows. It is not 
> limited to Windows 7. Quite some time ago, I decided not to bother anymore 
> and to use the shell whenever I have to launch an application or file.

Ah, good to know, thanks!

> Are you sure that this hasn't been reported yet?

No idea :-)

> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> 
> We make software, websites and webware. We are always looking for new 
> projects. Feel free to contact us and ask for a quote without any further 
> obligations
> http://economy-x-talk.com/contact.html

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


Winmdows 7 & "launch app.exe"

2010-01-13 Thread Klaus Major
Hi all,

looks like Rev is not (yet) working with Windows 7.

I have a valid pathname to a valid EXE file in "the_app".

This does not work:
...
launch the_app
answer the result
## I get "not opened"
## A good laugh, but not really useful :-D
...

This does work:
...
set the hideconsolewindows to true
get shell("start" && QUOTE & QUOTE && QUOTE & the_app & QUOTE=
...

So looks like "launch" is broken on Windows 7!?
Could someone check this please before I file this as a bugreport? 
Thanks!


Best

Klaus
--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


Test

2010-01-07 Thread Klaus Major
Hi all, 

just a test, since I did not receive any posting since yesterday evening.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: VideoGrabber on Windows

2010-01-06 Thread Klaus Major
Hi friends,

no other win user that work with the RevVideoGrabber
and wants to share her/his experiences?

Oh, c'mon folks! :-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: VideoGrabber on Windows

2010-01-06 Thread Klaus Major
Buongiorno Paolo,

> Klaus Major writes:
> 
>> Believe it or not, its official:
>> The videograbber is also supposed to work in Revlets
>> Isn't this amazing? Anyone dared this yet? :-D
> 
> Hello Klaus,
> where did you get this piece of information?
> I had a look at runrev.com web site but I could not find it.

You can see the "revvideograbber.bundle" inside of the "RevWebPlayer.app"
On OS X you can find it here:
../Library/Application Support/RunRev/revwebplayer/

And Kevin Miller mentioned it a couple of weeks before when the first version 
of the
plugin was published.

> Do you know if the issue about audio compression in video grabber has been 
> solved?

Nothing has been solved concerning the VideoGrabber unfortunately!

> Referring to RQCC it is still unconfirmed. See..
> http://quality.runrev.com/qacenter/show_bug.cgi?id=3712
> Command RevSetVideoGrabAudio does not work in MacOSX.

I know, I reported a lot of bugs concerning the videograbber external

> It is not possible to set compression of the audio   and files recorded using
> the Video Capture stack are too big.

Yep, one can alos not switch audio recording off, if you only wnat the video.

> I tryed to set recording audio using  command:
> RevSetVideoGrabAudio true, "1", "8", "11025"
> What I get, regardless of any setting,  is a big file with audio set to:
> 16-bit Intero (Endian grande), Mono, 48,000  kHz
> I think this  is a bug of the revvideograbber external for MacOSx

See above, obviously the mothership has other priorities (gradients, display of 
CMYK jpegs etc...)

> Best regards
> 
> Paolo Mazza

Ciao amico

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


VideoGrabber on Windows

2010-01-05 Thread Klaus Major
Hi friends,

I am currently trying to make the videograbber work on Windows 7.

I have a brandnew "Cheapnis" PC with Windows 7 Premium Home
to test this. The only other newly installed software is Rev 4 and
QuickTime 7x, latest version for Windows.

What I found so far is extremely disappointing.

All tests were made with the "Video Capture.rev" test stack from Rev.

1. QuickTime:
When trying to:
...
revInitializeVideoGrabber the short name of this stack, "QT",the rect of img 
"video" of cd 1
answer the result 
## = Cannot load video component
...

I already bugzillaed this:
<http://quality.runrev.com/qacenter/show_bug.cgi?id=8465>

2. Video for Windows:
This works in general, but I found that one cannot save the current settings, 
which works fine on a Mac:
...
local myVar
revVideoGrabSettings "myVar"
answer (myVar = empty)
## Gives me TRUE!!!
...

So this way I cannot save/load settings :-/

Anyone working with the videograbber successfully on Windows 7?
If yes, with QuickTime or VfW?
Any opinions, hints or comfort? ;-)

Believe it or not, its official:
The videograbber is also supposed to work in Revlets
Isn't this amazing? Anyone dared this yet? :-D


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Path name to CD drive

2009-12-17 Thread Klaus Major
Hi Tiemo,

> Hello,
> 
> if I want to get the path to an inserted CD, with name "foo" I can check on
> Mac "the drives", if my disk is inserted. But actually the full path is
> "/Volumes/foo/myfile"
> 
> Not having so much experience on Mac I would like to know, if I can always
> set "/Volumes/" as a prefix before my disk name

Yes.

> or is the name "Volumes" customizable on different Macs?

No.

> Or is there another straight way to get the path to a known file on a known
> CD?

Not that I knew :-)

> Thanks
> 
> Tiemo

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: storing a stack as a customprop

2009-12-09 Thread Klaus Major
Hi Ron,

> As a follow up to this -
> I am storing my prefs  in a stack that starts as a custprop and is spit out  
> when the application starts. The resulting stack is referenced throughout the 
> application and data saved to it. It is not outputted each time the app 
> starts (unless the user deletes the file), but it is written to and saved 
> each time a preference is changed. When a stack is included in the standalone 
> build there is an option to encrypt the stack.
> 
> However, the file that results (is outputted?) from the method above is 
> readable by any text editor. Is there a way to encrypt this stack created 
> from a custprop?

set a password for that stack before you save it to disk/import as CP.

> Thanks for your help,
> Ron
> 
> 
> BTW another approach to the problem below is to two step it:
> 
> put "binfile:" & filepath into filepath
> set the storedStack of stack "updateList" to URL filepath

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: right click on a list field

2009-11-18 Thread Klaus Major
Bonjour Thierry,

> Le 18 nov. 09 à 12:44, Klaus Major a écrit :
>> Bonjour Thierry,
> Halo Klaus,
> Du hast mir den Tag gerettet !

A votre service, monsieur :-)

> Ich danke dir.

De rien...

> Thierry

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: right click on a list field

2009-11-18 Thread Klaus Major
Bonjour Thierry,

> Hi all,
> 
> Can someone confirm that we can't select a line in a list field
> when right clicking on any line ?
> 
> Rev4 - MacOsx
> 
> And any quick workaround ?

add this to the field script:

on mouseUp what
  if what = 3 then
select line (word 2 of the mouseline) of me
  end if
end mouseUp

> Regards,
> Thierry

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Centering revlet in browser

2009-11-17 Thread Klaus Major
Hi Richard,

> Solved it.

could you please tell us how you solved this?

Thanks!

> Richard

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Pasting formatted text into Rev fields not possible on OS X

2009-11-11 Thread Klaus Major
Hi Jacques,

> Klaus,
> 
> I just checked it... and it works perfectly well both from TextEdit to Rev 
> and from Rev to TextEdit, both with drag and drop and copy/paste (MacOS 10.6)
> Should I add it to your report ?

Well, that might be a good idea.

> Some computers have their idiosyncrasies...

You bet! :-)

> Jacques


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


Pasting formatted text into Rev fields not possible on OS X

2009-11-11 Thread Klaus Major
Hi all,

FYI: I just reported this very nasty bug:
<http://quality.runrev.com/qacenter/show_bug.cgi?id=8428>

Hope this gets fixed until this evening* :-D
*Or whenever Rev 4 is officially released.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: QUIT in Revlets -> Bugreport

2009-11-03 Thread Klaus Major

Buenos dias Alejandro,



Hi Klaus,

On Quit, the web plug-in should unload the stack
from the window revlet area and download a small
stack from Runrev website, with a custom message
with Runrev logo and a button that
a) reload the stack from Hard Disk or
b)download again from web.

This should be the default behavior for
Runrev web plugin. In this way, everytime
that a revlet fails to load from some unreliable
server, the web plug-in loads a stack from Runrev
site and shows that Web plugin works fine when
served from a reliable website.

My two cents.

Alejandro


thanks for the info!

Maybe that it SHOULD load a small stack from the Rev website after the
user has "quit" but it DOESN'T :-D, so I filed this enhancement request.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


QUIT in Revlets -> Bugreport

2009-11-03 Thread Klaus Major

Hi all,

I just made an enhancement request to disable the QUIT command in the  
web plug in.


Check this for three reasonable reasons :-)
<http://quality.runrev.com/qacenter/show_bug.cgi?id=8404>


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com

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


Re: How do I check which field has the focus on / is active?

2009-10-30 Thread Klaus Major

Hi William,


Hi Jan & Klaus,

None of your answers works for me :-)


Aha, but nevertheless you should change your script(s) to using "short  
name of ..." ;-)



Must be something else then that is bugging me.
Could be the dentist! Got to go there within the hour because of an
awful toothache.


Ouch! Good luck!


to be continued

Greetings,

William


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com

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


Re: How do I check which field has the focus on / is active?

2009-10-30 Thread Klaus Major

Hi William,


Hi there all,

How do I check which has the focus on / is the active one?
When I use: 'answer the selectedField' it shows me the correct field
but when I put the next code into a button it doesn't work anymore:
--
on mouseUp
put the name of the selectedField into tData

if tData = "number1"
then send mouseup to btn "check"
...
end mouseUp


...
put the name of the selectedField into tData
...

If you look at the content of the variable "tDate" you will see  
something like this:

FIELD "Name of field here..."
!!!

So if you change the line to:
...
put the SHORT name of the selectedField into tData
...
your script will run as exspected :-)


--
Thanks!
Greetings, William


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Placing objects manually

2009-10-14 Thread Klaus Major

Hi Richmond,


Klaus Major wrote:

Hi Richmond,

I have recently noticed that one cannot place objects
manually where their positions involve odd numbers.

Too bad!

For example:  123,123
One can drag an object to 122,122 or 124,124
The rest has to be done by adjusting values via the
Preferences palette.

What a pity!

When one has to place some 2500 objects (as I have
with my Sanskrit Typewriter) this can slow things down
considerably.

Oh well!

On the other hand one could open the Rev Preferences -> Appearance
and set the value of "Grid spacing (pixels)" to 0 or 1 :-D


Best

Klaus

--

You sarcastic *&%$£)( !


I do my best :-)


Thank you for pointing out something that suddenly makes a lot of
things look brighter.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Placing objects manually

2009-10-14 Thread Klaus Major

Hi Richmond,


I have recently noticed that one cannot place objects
manually where their positions involve odd numbers.


Too bad!


For example:  123,123
One can drag an object to 122,122 or 124,124
The rest has to be done by adjusting values via the
Preferences palette.


What a pity!


When one has to place some 2500 objects (as I have
with my Sanskrit Typewriter) this can slow things down
considerably.


Oh well!


On the other hand one could open the Rev Preferences -> Appearance
and set the value of "Grid spacing (pixels)" to 0 or 1 :-D


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Using a player instead of an image

2009-10-09 Thread Klaus Major

Hi Sarah,

Formattedheight and -width don't work correctly if the player is  
hidden or
if a stack is being opened and the players is being loaded before  
the stack

window is visible.

Not a problem for my app.

There are problems with visual effects.

Again, not a problem for my app.

There are lots of problems with putting objects over player objects.

I don't need to do this.


If you set the "alwaysbuffer" of these players to true, everything  
should be fine.


I have been doing this for years and never had problems, not even with
mouseclicks!


MouseClicks may not work.

This could be a real problem.


See above!


...


Sarah


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: [ANN] MacWindows external 1.0.0 (005)

2009-09-23 Thread Klaus Major

Hi Sean,

Could you please add a "PkgInfo" -> BNDL file to the bundle so  
it will appear as one file on the Mac?

It does appear as a single file here


but not here :-)


but I will look into this issue further.


After adding the file it immedaitely appeared as one file here.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: [ANN] MacWindows external 1.0.0 (005)

2009-09-23 Thread Klaus Major

Hi Sean,

I have decided to release this now due to the feedback received in  
regards to the "dirty" document flag..

MacWindows 1.0.0 (005)
External to give Revolution applications a more Mac-like experience.  
The name comes from the Carbon header file that the majority of the  
features are called from.

...


Way cool, hope I will find the time to play with it a bit.

Could you please add a "PkgInfo" -> BNDL file
to the bundle so it will appear as one file on the Mac?

Thanks.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Where to place (sub)stacks?

2009-09-17 Thread Klaus Major

Hi David,


On 16 Sep 2009, at 6:00 pm, Klaus wrote:
If I would ever need to let the users modify and save STACK files,  
I would go this way:

...
5. Pro: If a user deletes one of your stacks (c'mon, we all know  
how they are :-D) you can quickly replace it with a fresh copy!

...


Klaus,

This issue has caused me considerable pain in the past, but I have  
sorted most of it out since Vista flounced onto the OS stage with  
such ill placed confidence. I have just had a results stack in  
the installation folder, and copied it to the users documents folder  
if it isn't already there.  (This is a little unsatisfactory in that  
the results file isn't exactly a user's document in the simplest  
sense, but it does work.)
However, I have never come across the stack as a custom property in  
this context. What is the advantage of doing it that way?


The advantage is that you do not have "files" anymore that you need to  
manage somehow.


Is it that you set the property in the IDE, and so don't actually  
need the stack to be anywhere else in the installation once you build?


Yes, since you store the "binary" (tha actual "your_stack.rev" file)  
in a custom property!
I also do this insted of cloning a stack if necessary, since you can  
also do:

...
put the cStack01 of this stack into tStack
go stack tStack
...

Kinda "virtual stack" :-)


Intrigued..

David Glasgow


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Where to place (sub)stacks?

2009-09-16 Thread Klaus Major

Hi Beat,

I am completing my first commercial standalone and I am unsure of  
where to place the (sub)stacks on the user's machine.


The stack consists of a splash (main stack) with about 30 substacks.  
Some of the substacks display data which is changed by the user and  
needs to be saved.
Now, where do I put my stacks on the users machine? Until now I put  
the whole package (main stack + all substacks) into the Application  
Folder.
But I heard that this might cause problems (i.e. in Vista) because  
some setups do not allow to write to files in the Application Folder.


Is it a good way to place those substacks that need writing to, into  
the Application Support Folder? If so, how do I do that with the  
installer? I got help from Lars Bremer with the Inno Setup  
Installer, which works great, but places all (sub)stacks into the  
Application Folder. How will I solve this?


If I would ever need to let the users modify and save STACK files, I  
would go this way:


1. Create all the stacks that will be modified and saved by the end  
user as MAIN stacks!
2. Import each of these stacks into a custom porperty of your SPLASH/ 
main stack

...
set the cStack01 of stack "splash or whatever" to url("binfile:" &  
path_to_your_stack)

...
3. When the app starts, I would check if these stacks have already  
been "outputted" into the users "preferences folder:

Mas OS X: specialfolderpath("preferences")
## Current user only

Windows: specialfolderpath(26)
## Current user only

Might be good style to create a subfolder for your app there!

If the stacks are not yet there, I would output all the stacks from  
your CPs:

...
put specialfolderpath("preferences") into tFolder
put the cStack01 of stack "splash or whatever" into url("binfile:" &  
tFolder & "/" & "name of original stack here...")

## NO suffix necessary!
...
4. Now the user (your app) can open any of these stack, modify them  
and save them again without permission problems.


5. Pro: If a user deletes one of your stacks (c'mon, we all know how  
they are :-D) you can quickly replace it with a fresh copy!


Know what I mean?
Drop a line if not :-)


,,,
Beat Cornaz


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Datagrid speed problem

2009-09-16 Thread Klaus Major

Hi all and Beat and Trevor :-)


On Sep 16, 2009, at 5:30 AM, Beat Cornaz wrote:


...
Another problem which might be associated with it is the following :
I have originally started this project in rev 2.9 and only when the  
datagrids came along I upgraded to rev. 3.5 (because I totally  
dislike the new editor :-(   ) and implemented the datagrids. I  
noticed that my datagrids only work if I separately include the  
revdatagridLib as a substack. So it is there twice (once in the  
engine and once as a substack).
If I don't do that, the datagrids show, but have no functionality.  
Also, the revdatagridLib as a substeacks tends to 'escape' from my  
mainstack, meaning that all of a sudden it is still there, but as a  
mainstack, and not as a substack.


I don't think that bringing a 2.9 project into 3.5 would cause these  
sorts of problems.


There are problems when you open a stack (with behaviors) with a  
version < 3.5 and save this stack.
After opening this stack again with version >= 3.5, all behaviors are  
gone!


Just a hint, has probably nothing to do with your current problems!


...
--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: [ANN] tRev release

2009-09-14 Thread Klaus Major

Hi all,


Kay C Lan wrote:

On Mon, Sep 14, 2009 at 8:59 AM, Sarah Reichelt gmail.com>wrote:
P.S. Jerry is having trouble posting to the list, so I am sending  
this

for him. Please contact Jerry directly with any questions at
.
___
Glad you explained that. I started reading the announcement and  
immediately
thought to myself. Wait a minute... Sarah's now working for  
Jerry??. First
it was Trevor, now Sarah..., Jacque will be next, followed by  
Richard; the

coup would then be complete ;-) Now that would be a Revolution ;-)


But Jacque and I already work for Andre, who's in discussions to be  
acquired by Ken Ray, who is already a subsidiary of Klaus Major.
Klaus may be soft-spoken, but he's secretly the kingpin of the  
entire Rev universe. :)


Someone called my name?

Are you makig fun at me, you MORTALS?

Know that this might lead to eternal damnation via a never escapable  
"Answer Dialog" within a "repeat loop"!

You don't want that! :-D


--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: popup-/contextmenu in Editor field of DataGrid?

2009-09-11 Thread Klaus Major

Hi Trevor,


On Sep 11, 2009, at 5:12 AM, Klaus Major wrote:


Hi all (and Trevor :-)


Hi Klaus :-)


Any hints on how to popup a menu in the "Editor field" of a DataGrid?
I want to let the user choose pre-made text to insert into that  
column, know what I mean?
This lesson shows how to trigger the data grid mousedown code before  
displaying a contextual:
How Do I Show a Contextual Menu?: <http://revolution.screenstepslive.com/spaces/revolution/manuals/datagrid/lessons/2962 
>
Although the example script would be placed in the data grid group  
script itself you could just as easily place the code in the  
behavior for a custom column template:
How Do I Customize A Table's Columns?: <http://revolution.screenstepslive.com/spaces/revolution/manuals/datagrid/lessons/3436-How-Do-I-Customize-A-Table-s-Columns- 
>


Or if that is not possible, I could also need this when right- 
clicking on any column,

so I can insert the chosen text into the clicked column.

The popup button will NOT be part of the DataGrid.


As long as the popup menu button is on the card you won't have any  
problems. What you do need to do, however, is have the popup send a  
message back to the custom column control so that you can update the  
data grid value. I usually do this by setting a custom property on  
the button before displaying it. So below you will find one way to  
approach this.


-- Column behavior script

on mouseDown pMouseBtnNum
   dgMouseDown pMouseBtnNum
   if pMouseBtnNum is 3 then
   set the uTarget of button "MyContextualMenu" to the long id  
of me

   popup button "MyContextualMenu"
   end if
end mouseDown

Then in the menuPick handler of "MyContextualMenu" I would do  
something like this:


-- button "MyContextualMenu" script

on menuPick pChosen
   dispatch "UpdateColumnValue" to the uTarget of me with pChosen
end menuPick

Now you just add the UpdateColumnValue command to the column  
behavior script. The code will look just like any other code in the  
docs that update data grid values.


-- Column behavior script

command UpdateColumnValue pValue
   put the dgIndex of the me into theIndex
   put the dgDataOfIndex[theIndex] of the dgControl of me into  
theDataA

   put pValue into theDataA[the dgColumn of me]
   set the dgDataOfIndex[theIndex] of the dgControl of me to theDataA
end UpdateColumnValue

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com


thanks a LOT for this!
Will try later at home.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


popup-/contextmenu in Editor field of DataGrid?

2009-09-11 Thread Klaus Major

Hi all (and Trevor :-)

Any hints on how to popup a menu in the "Editor field" of a DataGrid?
I want to let the user choose pre-made text to insert into that  
column, know what I mean?


Or if that is not possible, I could also need this when right-clicking  
on any column,

so I can insert the chosen text into the clicked column.

The popup button will NOT be part of the DataGrid.

Thanks a lot in advance!


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: closefield/exitfield

2009-09-09 Thread Klaus Major

Hi Jan,


Hi Klaus,

The 'traversalOn' property has no effect for buttons on MacOSX. The  
safest way is to 'select empty' just before doing your auto-saving  
stuff; for the best user experience, save 'the selectedChunk' and  
select it again afterwards.


thank you, I already came to this conclusion after the replies to my  
post about three hours ago ;-)



HTH,

Jan Schenkel


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: closefield/exitfield

2009-09-09 Thread Klaus Major

Hi sims,


On Sep 9, 2009, at 11:51 AM, Klaus Major wrote:

Should a "closefield/exitfield" handler of a field be executed if  
one clicks a button that
has its "traversalon" property set to TRUE (on the same card of  
course)?
closeField message is generally not sent when another control (such  
as a button) is clicked. This is because clicked buttons do not  
receive the focus on Mac OS systems, and therefore the selection  
remains active.


That help you?


YES, SIR! :-)

How embarrassing, looks like I totally overlooked this in the docs :-/
Thanks again!


sims


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: closefield/exitfield

2009-09-09 Thread Klaus Major

Hi Mark,


Hi Klaus,

Your proposal


I did not propose anything.

would break projects that rely on the ability to copy selected text  
from a field by clicking on a button or selecting an item from a menu.


I was talking about a button/menubutton/whatever with its  
"traversalon" prop set to TRUE.

If one does not want to lose a selection this MUST be FALSE.

So unfortunately you did not really answer my first question:
Should a "closefield/exitfield" handler of a field be executed if one  
clicks a button that

has its "traversalon" property set to TRUE (on the same card of course)?


There are sufficient ways to implement an autosave feature.
Think of closefield, exitfield,


See above that's what this is all about!
This does NOT work!


resumestack, suspendstack, et cetera.


Yes, we are using this because of the problems described above.


--
Best regards,

Mark Schonewille



Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


closefield/exitfield

2009-09-09 Thread Klaus Major

Hi freinds,

I have a question thats on my mind for a long time:
should a "closefield/exitfield" of a field be executed if one clicks a  
button that

has its "traversalon" property set to true (on the same card of course)?

I think yes, but it doesn't, Rev 3.4, OS X 10.5xxx.

According to the docs, "traversalon" will "catch" the focus which  
implies that the focus will be
taken away from other objects, like fields in this case and should  
thus fire a "closefield/exitfield"

handler!?

I also found that sometimes a "mouseenter" of an object in another NOT  
active
stack (sic!), when you move the mouse on the monitor, gets fired, but  
a "closefield/exitfield"
in the active stack does not. This makes it alsmost impossible to  
implement a reliable

"autosave" feature...

Any insights and opinions welcome.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Quicktime and the Snow Leopard

2009-09-08 Thread Klaus Major

Hi sims,



On Sep 8, 2009, at 9:19 AM, Klaus Major wrote:


for your interest: Trevors wonderful Enhanced QuickTime external
works fine on OS X 10.6, so does my freeware "The Exporter", which
was made with Rev 3.5 and this external :-)


When you upgraded to 10.6 did you have to elect to re-install QT 7?  
If so, was it obvious where or how to do so?
Did you need to re-register QT 7 to make it QT Pro (assuming you had  
QT Pro)?


Actually I did not yet update to 10.6, but could check test this on  
another machine ;-)

I hope to be able to update in the next weeks...


sims


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Quicktime and the Snow Leopard

2009-09-08 Thread Klaus Major

Hi all,

for your interest: Trevors wonderful Enhanced QuickTime external
works fine on OS X 10.6, so does my freeware "The Exporter", which
was made with Rev 3.5 and this external :-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Launch another app from my standalone

2009-09-03 Thread Klaus Major

Hi Adrian,


...
Adrian Williams wrote:

Phil,
Now have slightly different error:

TypeCommands: missing ','
ObjectOK
LineFUNCION getPathToFile pFile


There is a T missing in funcTion!
But maybe this is just a typo in your post?


Best

Klaus
--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: What does "menu" do in the decorations property

2009-08-20 Thread Klaus Major

Hi Tim,

Thanks for the reply Bjoernke. I was probably too brief in my  
question. When I set the decorations of a stack to menu, nothing  
happens. The only way I know of to create a "menubar" on Windows or  
Linux is to create a group and make it look like a menubar. Once  
that's done setting the decorations property still has no effect.  
Setting the menubar is supposed to be a Mac only property. So, my  
question remains, what is the menu keyword supposed to do when used  
with the decorations property? On my system it does not appear to do  
anything.


the decoration "menu" will only enable the context menu (right click)  
on the window title bar on windows.

Not more, but also not less :-)


Tim Bleiler


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Drop destination path

2009-08-12 Thread Klaus Major

Hi Tariel,


HI,

I guess it's something obvious, but I'm not very familiar yet with  
new drag / drop syntax.
if I drop some text or image from Revolution into some arbitrary  
folder on hard disk, how do I get the path to this folder?


I also would like to get this, but I'm afraid there is no way to get  
the "dropdestination" from oustside of Rev/MC.


Hopefully someone will proof me wrong :-)


Thanks in advance
Tariel


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: Detecting UTF-8 Encoded Files

2009-08-07 Thread Klaus Major

Hi Ken,

I do not see any problem (and wouldn't if there were ;-)
but Mark Waddingham once helped me out with a working function exactly  
for determining

how a VCARD is encoded!

Here it is including Marks (very helpful)comments:

# vCards are stored as a text file, however, the text encoding used  
varies depending on the program that exported them.

# We use the following heuristic to detect encoding:
# 1) If there is the byte order mark 0xFEFF then we assume UTF-16BE
# 2) If there is the byte order mark 0xFFFE then we assume UTF-16LE
# 3) If the first byte is 0x00 then we assume UTF-16BE (compatibility  
with Tiger Address Book)

# 4) Otherwise we assume UTF-8
function vcf_convert3format tBinaryVCard
  # First load the vCard as binary data - at this stage we don't know  
the text encoding of the file and loading

  # as text would cause inappropriate line ending conversion.
  # This variable will hold the vCard encoded in MacRoman (the  
default text encoding Revolution uses on Mac OS X)

  local tNativeVCard

  # We now do our checks to detect text encoding
  switch
  case charToNum(char 1 of tBinaryVCard) = 0
put "UTF16BE" into tTextEncoding
break
  case charToNum(char 1 of tBinaryVCard) = 0xFE and charToNum(char 2  
of tBinaryVCard) = 0xFF

delete char 1 to 2 of tBinaryVCard
put "UTF16BE" into tTextEncoding
break
  case charToNum(char 1 of tBinaryVCard) = 0xFF and charToNum(char 2  
of tBinaryVCard) = 0xFE

delete char 1 to 2 of tBinaryVCard
put "UTF16LE" into tTextEncoding
break
  default
put "UTF8" into tTextEncoding
break
  end switch

  if tTextEncoding begins with "UTF16" then
# Work out the processors byte order
local tHostByteOrder
if the processor is "x86" then
  put "LE" into tHostByteOrder
else
  put "BE" into tHostByteOrder
end if

# If the byte orders don't match, switch the order of pairs of  
bytes

if char -2 to -1 of tTextEncoding <> tHostByteOrder then
  put swapbytes(tBinaryVCard) into tBinaryVCard
end if

# Decode the UTF-16 to native
put uniDecode(tBinaryVCard) into tNativeVCard
  else
# Use the standard uniDecode/uniEncode pair to decode the UTF-8  
encoding

put uniDecode(uniEncode(tBinaryVCard, "UTF8")) into tNativeVCard
  end if

  # We now need to normalize line endings to make sure all lines  
terminate in 'return' (numToChar(10)).

  put tNativeVCard into tTextVCard

  # First replace Windows CR-LF style endings
  replace numToChar(13) & numToChar(10) with return in tTextVCard

  # Now replace Mac OS CR style endings
  replace numToChar(13) with return in tTextVCard
  return mac2win(tTextVCard)
end vcf_convert3format

***
Here is my function "mac2win" that we use in our crossplatform project  
werhe we store EVERYTHING in ISO format!

function mac2win was
  if the platform = "MacOS" then
return mactoiso(was)
  else
return was
  end if
end mac2win

Hope that helps!


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: revweb and videos (quicktime and youtube)

2009-08-07 Thread Klaus Major

Hi Richard,


Hi Klaus,

Yes, I know FLV is not directly playable in Quicktime. I am looking  
for a workaround... some way to play a YouTube video in a revlet,  
other than directly through a Quicktime player. Could be impossible.


Yep, I'm afraid it is impossible, since the only crossplatform way to  
play an FLV without QT is
via the FLASH browser plug-in, and using "RevBrowser" inside a revlet  
is not supported, as

far as I know.


Perian looks to be Mac only.


Yes.


Thanks.
Richard


Best

Klaus
___
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: revweb and videos (quicktime and youtube)

2009-08-07 Thread Klaus Major

Hi Richard,

Solved the first item. In other versions of Rev, it works fine to  
set the filename of a quicktime player to something of the form,  
"ftp://";. Doing so in a revlet will lock everything up. But when  
I switched to "http://... ", all worked fine. Streaming begins and  
the video plays fine.


I'd still like to hear thoughts on the YouTube item, though.


videos on YOUTUBE are most of the time in FLV format, which cannot be  
displayed

"per se" with QuickTime except PERIAN is installed!

On the other hand the HQ versions  of the videos are in MP4 format  
that you can display

in a player as long as you provide the correct URL.


Thanks.
Richard


Best

Klaus

___
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: Problem with answer file(s)

2009-08-04 Thread Klaus Major

Hi Graham,

This seems extremely simple, but I can't get the following example  
to work (the example comes from the Rev dictionary for Rev 3.5.0  
build 870):


For example, to specify that only Revolution files should appear in  
the dialog box, use this statement. The description "Revolution  
files" is visible to the user at the bottom of the dialog, and only  
files with the extension ".rev" are shown:

answer file myPrompt with filter "Revolution files,*.rev"


this is the old Windows-only filter method.

When I do this on an Intel Mac running Mac OS 10.5.7, the file  
selection box appears but all the files (not just non- .rev files)  
in the directory are dimmed and can't be selected. Same if I use the  
"answer files" version, and also if I substitute "type" for  
"filter". OTOH if I leave out the type/filter part of the statement,  
I get the directory shown with all types of files (of course) and  
the individual files are selectable and the expected list appears in  
the "it" variable.


I just want to see one type of file (not really .rev, but if that  
example works then clearly I can do what I want).


What am I doing wrong? Answer file has existed for a long time, so I  
imagine it's my mistake rather than a bug. I found some some  
correspondence about this in the list archives way back in 2002, but  
nothing I can see more recent.


The crossplatform way is:
...
answer file myPrompt with TYPE "Revolution Stacks|rev|RSTK"
...

Check the docs answer file with TYPE" for more info.


TIA

Graham


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: [ANN] First On-Rev based CMS and Blog system available.

2009-04-23 Thread Klaus Major


Am 23.04.2009 um 10:31 schrieb Klaus Major:


Hi all,


Andre strikes again!
Like a few others, I've already downloaded this so that I can have  
a poke through the code. Fantastic work again...
Hmm, I missed this announcement somehow, could someone please post  
the URL again?

Thanks!


Nevermind, found it in the archives!

Great work, Andre and an invaluable example/tutorial of the power of  
"irev"!

Or ist "iRev" ;-)




Ian


Best

Klaus


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: [ANN] First On-Rev based CMS and Blog system available.

2009-04-23 Thread Klaus Major

Hi all,


Andre strikes again!
Like a few others, I've already downloaded this so that I can have a  
poke through the code. Fantastic work again...


Hmm, I missed this announcement somehow, could someone please post the  
URL again?

Thanks!


Ian


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: [OT] Deciding about On-Rev

2009-04-21 Thread Klaus Major

Hi George,

I had a couple of questions that Heather answered, and others may be  
interested:


1.	On-Rev will ultimately include domain registration services, as  
many other hosts do.


That'ws very good news! I must confess I am a bit lost in my switch...

Any timeframe for this service? Or should I also write a mail to  
Heather?



...
George


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: sample data grid code

2009-04-12 Thread Klaus Major

Hi Sarah,


On Sun, Apr 12, 2009 at 10:17 AM, Trevor DeVore
 wrote:

On Apr 11, 2009, at 7:02 PM, sadhu wrote:
Yes! Makes sense. I'm out and about at the moment, we are on  
holiday, but
can't wait to get back to the cabin to try it. Except, my wife is  
shopping

so I guess I'll be waiting for a bit, if you know what I mean. :)
I have no idea what you are talking about. I have never had to wait  
for my

wife while shopping :-)


You guys need wives who's idea of shopping is checking out the latest
Macs & iPhones, then rushing home to play on her computer :-)


Yep, but all these hot aussie chicks are already spoken for! :-D


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


DataGrid sort by column

2009-04-12 Thread Klaus Major

Hi all,

am I overlooking something or does the DataGrid not remember the
"sort by column" settings in 3.5 GM1?

Whenever I uncheck this in the inspector, the columns are still sorting
when clicked...?!


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: The name of a group

2009-03-28 Thread Klaus Major

Bonjour René,


Hello,
I have a button within a group, when I click the button I want the  
name of the group.
I script : "put the name of the group of the target into x" but it  
is wrong.

What is the good syntax ?


Try: "put the name of the OWNER of the target into x"

See the the docs -> "owner" for more info.


Thank You
René from Paris


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: silly text editing question

2009-03-19 Thread Klaus Major

Hi Mark,

How do you find out where the current "insertion point" in an  
editable field is?


I mean, if you have:

This is line 1
This is line 2
This is line 3

in an editable field, if the user has placed the caret after the 'n'  
in line 2 and then hit return for example, how do you know where in  
the field you are? (either in terms of chars, or char n of line n,  
or whatever).


This is probably really simple, but I can't for the life of me  
figure it out!


check "the selectedchunk" :-)


Best,

Mark


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: HC Music that should be on Runtime Revolution

2009-03-17 Thread Klaus Major

Hi Colin,


On Mar 17, 2009, at 11:16 AM, Klaus Major wrote:

If I can get those to play, would that count as a new trick?

YOU BET! :-D


The "those" I was referring to would have been external files that  
are in the standalone bundle.
I'm not sure how a file player can play media if you're not allowed  
to make the media be a file as part of the solution.


What's the downside of playing it as a file?


That's not the point, this is more of an academic question ;-)

On the other hand, many folks don't like to put media on the users  
harddisk,

maybe for copyright reasons or whatever...


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: HC Music that should be on Runtime Revolution

2009-03-17 Thread Klaus Major

Hi Colin,



On Mar 17, 2009, at 10:59 AM, Klaus Major wrote:

This VERY old trick does not count as "playing internal files in a  
player object"!

Sorry you're out :-D


I don't feel bad, having worked it all out for myself, without  
knowing that it was an old trick!


Sorry, did not mean to offend you at all!

But what counts as an internal file? If it's really internal data,  
it's not a file.

Do you mean files that you include when making a standalone?


I mean everything that is INSIDE of your stack(s) like imported images  
or imported sounds/movies

or even movies or sound stored into custom props or fields.

That's the problem, you cannot play any internal sound or movie in a  
player object, without "spitting"

it out to a file first...


Are those really not playable?


You can "play" internal sonds/movies but we are talking about using a  
player object!



If I can get those to play, would that count as a new trick?


YOU BET! :-D


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: HC Music that should be on Runtime Revolution

2009-03-17 Thread Klaus Major

Hi Colin,



On Mar 17, 2009, at 9:45 AM, Klaus Major wrote:


MIDI, with QuickTime in a player object.

Yep!
Alas, if we just could use internal/imported files within a player  
object...
Well, I wasn't fully sure this would work, but it seems to (the  
first two lines just clear out the previous midi file):


set the filename of player 1 to ""
stop player 1
answer file "pick midi file"
put it into f
open file f for binary read
read from file f until eof
close file f
put it into field 1

open file "mymidi.mid" for binary write
write field 1 to file "mymidi.mid"
close file "mymidi.mid"
set the filename of player 1 to "mymidi.mid"
play player 1

I could quit Rev and reopen it, and just do the last lines:

open file "somethingnew.mid" for binary write
write field 1 to file "somethingnew.mid"
close file "somethingnew.mid"
set the filename of player 1 to "somethingnew.mid"
play player 1

and the tune played.

So, although the tunes are played from an external file, it was  
internal data just before then.


This VERY old trick does not count as "playing internal files in a  
player object"!

Sorry you're out :-D


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: HC Music that should be on Runtime Revolution

2009-03-17 Thread Klaus Major

Hi Richard,


Richmond Mathewson wrote:
Embedding music files in RunRev / MetaCard stacks comes at quite a  
hit,
both in terms of file size, and RAM requirements; the HyperCard  
method

would be considerably 'cheaper' in both of these respects.


MIDI, with QuickTime in a player object.


Yep!

Alas, if we just could use internal/imported files within a player  
object...



--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com


Best

Klaus (who does NOT want the complete Rev language to be translated to  
german ;-)


--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: My BBC Master - - - getting Beeped-off.

2009-03-11 Thread Klaus Major

Hi Scott and all,


Recently, J. Landman Gay wrote:


If you don't have a Mac, you're kinda out of luck AFAIK because
while there is a Windows version, I've never actually come across
anyone who was able to make it work under Windows.


So maybe it's harder than we think to implement sound channels on
Windows after all.


No "dis" intended Jacque, but I seriously doubt this.  From Adobe's  
Flash

tech notes, published at the end of 2005:

"Macromedia Flash Player 8 now supports 32 simultaneous sound  
channels,
increased from the 8 sound channel limit previously in Flash Player  
7."


Better audio in Rev is long overdue.  If the Rev guys don't want to  
build it

themselves, they could license from somebody else.


I have the old "External Collection Windows" somewhere on my (Mac) HD.
That 60 KB DLL also supports (4?) soundchannels and has been programmed
by Mr. Tuv Snyder.

If I remember right the copyrights belong to "CrossWorld Computing" :-)
So why not take this as a base for further implementations?

UserBase to Scotland! Got the message?

"Gradients" are nice, but soundchannels are even nicer! :-D


Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: problem with brackets in script editor

2009-03-10 Thread Klaus Major

Bonjour Andre,


Bonjour,

In order to keep trying Data Grid, I have to learn about « arrays  
» (that I did not use up to now ).
Well, I am reading the  article from Tom Healy « Arrays Examined »  
in revUp, 57,  sept 26 2008.

First trial : first example from Tom :

-
local tShoppingList,
put "Apple" into tShoppingList[Fruit]
put "Cornflakes" into tShoppingList[Cereal]
put "Carrot" into tShoppingList[Veg]
put "Lemonade" into tShoppingList[Drink]
put tShoppingList[Fruit]
---

In the message box, it works well (I get "Apple" ;-))
Exactly the same in the script of a button, I can’t compile ; get an  
error : first line with hint : ]


Thanks in advance for any explanation and solution


you need to QUOTE teh keys of an array!
...
put "Apple" into tShoppingList["Fruit"]
...

That should do the trick.


Best regards from Grenoble

André


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: Another hole in the Ozone laye

2009-03-05 Thread Klaus Major

Hi Richmond,



Tried a button:

on mouseUp
 set the style of the templateGraphic to circle
 choose graphic tool
 create grc "CIRC"
end mouseUp

and I got a rectangle called "CIRC"

so . . . must be missing something . . .


Here your missing link...

From the docs "style"(Rev 3.0):
...
The style of a graphic determines its shape and is one of the following:
* curve: a curved line
* line: a straight line
* oval: an oval or circle shape
* polygon: an irregular polygon shape
* rectangle: a rectangle or square shape
* regular: a regular polygon shape
* roundRect: a rectangle or square shape with rounded corners
...


sincerely, Richmond Mathewson.


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: doMenu, alas

2009-03-04 Thread Klaus Major

Hi Craig,


...
I will send "menuPick", and like it.

But I never got a simple straight answer from the community.
Is this how everyone does it?


No, I always create handlers in the mainstack or lib-stacks and will  
just

call these handlers "on menupick". This way these handlers can be called
from anywhere without using the menu :-)

Is that what you meant?


Craig Newman


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: strange interaction with message box

2009-03-02 Thread Klaus Major

Hi Andre,


Thank you Devin ! so I am not alone ;-))
Thanks also to Jacque for informing that it is a bug

Anyway, that's not a huge trouble ; waiting quietly for a next version


There are some issues with he message box, see also:
http://quality.runrev.com/qacenter/show_bug.cgi?id=6434

But although the msg is a very important developer tool,
this does not seem to have high priority... :-/


André


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: ANN: Draw kaleidoscopic effects

2009-02-28 Thread Klaus Major

Hi James,

I failed in my attempt to find a way to  use the pen tool to paint  
kaleidoscopic effects. This stack (see below) draws the effects  
instead. Painting would be better. More options. Well, except for  
the fact that I can't do it. Every time I try to drag the pen in a  
mouseMove handler, RR locks up on me. If you can find a way, let me  
know.


To see the stack run this in the message box:

go url "http://www.jamesphurley.com/Kaleidoscope.rev";


That's pretty cool! Chapeau!

It runs a lot smoother when you add a "lock screen" and "unlock screen"
at the beginning/end of the "mousemove" handler!

At least it does her on my MacMini 1.66.


Jim Hurley


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: AW: OT: How to zip two program bundles in one zip?

2009-02-27 Thread Klaus Major

Hi Tiemo,


I should have known that, Klaus!


EXACTLY! :-D


Thank you, you saved my day!


You're welcome!


Tiemo


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: OT: How to zip two program bundles in one zip?

2009-02-27 Thread Klaus Major

Hi Tiemo,


Hello,

I have an update routine, where I put my updates in a zip file,  
download the
zip, unzip it and copy the content files to the different target  
dirs. This
works fine with single files and also with one program bundle. But  
if I put
two program bundles in one zip, the update gets messed up, probably,  
because
the content of the two bundles get mixed up in the zip file and  
don't keep
their structure. That's how I see it so far. Handling program  
bundles is so

complicated for me, coming from windows.

Is there any chance to keep two program bundles separate in one zip -
without zipping or imaging every single bundle before zipping them  
together?

Are there any Mac-Zip tools, how can do that job?


DITTO! :-D

I use to copy all my app bundles into an extra folder (maybe in the  
temporary directory)
ZIP that folder, and UNZIP that folder on the target machine again in  
the temp folder

and then copy the app bundles to the correct target folders.

ALL done with DITTO :-)


Thanks for any hint

Tiemo


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: getting timeout with load URL

2009-02-25 Thread Klaus Major

Hi Tiemo,


Hello,

I am experiencing sometimes timeouts with a load URL at a beta tester.
Testing the same download from same server at the same time, runs  
smooth.
Obviously the bottleneck seems to be the internet connection or  
provider of
the tester, though he is supposed to have a 2000 kBit line. On the  
other
hand he can surf the net and downloads mails without a problem -  
beside of

slow performance some times.

Are there any options to tweak the load URL / internet connection from
within Rev, like setting the timeout, retrying or anything else? Or  
do I

just have to live with that behaviour and have to tell my customers to
retry?

Thanks for any experience


you can get and set "the socketTimeOutInterval" like:
...
put the socketTimeOutInterval into alt_interval
set the socketTimeOutInterval to 2
## Do your internet stuff...
set the socketTimeOutInterval to alt_interval
...

that's the way we do it and it works fine so far :-)


Tiemo


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: [ANN] chartsEngine - now on revSelect

2009-02-20 Thread Klaus Major

Hi Malte,

alles fit soweit? :-)


Richard wrote:


One small note for us MC users:  the initialization of the demo stack
makes a call to something in the Rev libraries, so when running in  
any

other IDEs it throws an error and doesn't load the library.



That would be the call to revLoadedStacks in the stack script of the  
example stack. Any effective way to test, which IDE is being used?  
Otherwise I would just wrap a try / catch around it and react  
accordingly.


You could check "revAppVersion()" which will return 0 in MetaCard.


Cheers,

Malte


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: AW: Any chance to identify if the title of a stack is corrupted byQT?

2009-02-18 Thread Klaus Major

Hi Tiemo,


Hi Joe,
hmmm, I've thought about that, but I still think it is a known bug  
in the

QCC and there are many others encountering the same phenomenon.


Check this:
http://quality.runrev.com/qacenter/show_bug.cgi?id=7290

I tried a little test, created a test button with just one line "set  
the

title of this stack to "foo". Once the title is corrupted I even can't
regenerate it with this one-liner. The only thing what happens, is  
that the
hieroglyphs disappear and there is only the first char (f) of "foo"  
in the
title. So I think, even if I would mess up the memory of the title,  
I should
be able to regenerate it with this statement, but it doesn't works.  
Or don't

you think so?


You can't workaound this, but sure you can waste you time trying :-D


Thanks for your two cents
Tiemo


-Ursprüngliche Nachricht-
Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-
boun...@lists.runrev.com] Im Auftrag von Joe Lewis Wilkins
Gesendet: Mittwoch, 18. Februar 2009 17:22
An: How to use Revolution
Betreff: Re: Any chance to identify if the title of a stack is  
corrupted

byQT?
Hi Tiemo,
I had this sort of problem many years ago using other development
systems. In every case it was an indication of a more ominous   
problem

with my coding; usually, as I recall, a memory problem wherein
something I was doing was overwriting the titlebar data.
Consequently, I would not suggest that you do as you are indicating
you might do: just providing an empty name for the titlebar. Instead,
you must continue to debug your coding to locate your "true" problem,
the "disease" and not the "symptom. Sorry I can't be more help.

Joe Wilkins


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: Title gets corrupted when opening a substack

2009-02-13 Thread Klaus Major

Hi Tiemo,


Hello,

I have a really wired phenomenon at one of my beta testers, Win XP.

Opening my mainstack, it has his title icon and title text, just  
normal.
When opening a substack (with toplevel) the title of the mainstack  
gets
completely corrupted. The title of the maintack shows only special  
chars, as

if it wouldn't find the font or language anymore.

In the stack properties\text of all of my stacks I have choosen no  
font, the
property is empty. Which font is choosen? Standard Rev font? Is it a  
godd

idea, not to choose a special font? But nevertheless, what font I have
choosen,  why does it only happens after opening a substack and why  
does it

only happens at one of ten PCs?

Has anybody seen this behaviour or has any idea, what is going on  
there?


Any hint appreciated


Is there any (QuickTime) player in the substack with the corrupted  
title?
If yes, then this is a known bug, at least it is in Bugzilla, as far  
as I know.


We have the same behaviour here on XP and Windows Server 2008
(or whatever this thing is called).

If there is no player envolved, no idea...


Tiemo


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-06 Thread Klaus Major

Bonsoir Mark,


C'était une blague.


Well, I guessed, but the lack of "smileys" always perplexes me a bit :-)


:)
m


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-06 Thread Klaus Major

Hi Jaqueline,


Scott Rossi wrote:

Recently, J. Landman Gay wrote:



I suppose it would be possible to write a little script that would
calculate the font size, compare it to the button height, and  
adjust the

margins.
It's possible, but it's not a little script. :-)  I demoed a  
customizable
button object at the last RevLive conference in Vegas.  One can set  
the font
of the text, the orientation of the text, margins, and include an  
icon
(which orients itself as expected, as opposed to the current  
behavior). But
this all needs to be handled as a group of objects. Features in the  
upcoming
version of Rev will make this type of control much more practical  
for end

users.


I was thinking of something much simpler, just as a work-around.  
Something like this:


put (the height of btn 1 - the textheight of btn 1) div 2 into tMargin
set the margins of btn 1 to 0,tMargin,0,tMargin

No bells and whistles though, it just mashes the name into the  
center. The math may need some jiggl...um, adjustments.


:-)

Tested a bit and did some finetuning:
...
 put (the height of btn 1 - the textheight of btn 1 - the effective  
textsize of btn 1) div 2 into tMargin

 set the margins of btn 1 to 0,tMargin,0,tMargin
...


Yours is much prettier. Everything you do is much prettier.


No doubt, but he's a graphics guy, you know?! ;-)


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-06 Thread Klaus Major


Am 05.02.2009 um 22:50 schrieb Mark Swindell:



On Feb 5, 2009, at 1:33 PM, Klaus Major wrote:

Maybe I'm thinking  a bit naive, but why shouldn't it then be  
possible (for the engine) to combine these two

"states" and the result would be "the label on top of the icon" :-)


Troublemaker.


Monsieur?


Regards

Klaus
--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Klaus Major

Hi Jacqueline,


Klaus Major wrote:

Hi Jaquelin,

Wilhelm Sanke wrote:

- The name or label of a button can be displayed on the right or  
the left side of an icon or *beneath* the icon, but not directly  
*on top* of an icon.
Actually, if you jiggle the top and bottom margin settings of the  
button, you can achieve this.

Hmm, "jiggling" does not sound too professional to me :-D
Actually one has to visually check the results for each different  
image, which make this "option" quite useless.


True. But if the engine calculated and provided for a vertically  
centered name, you'd get the same results. So you'd have to "jiggle"  
some more anyway. :)


Maybe, but when you habve a button with no icon, that name/labe is  
exactly in the center of the button.

And it stays there whenever you resize the button.

If you have a button with an icon and "showname" = false, the icon is  
also exactly in the center of the button.

And it also stays there whenever you resize the button.

Maybe I'm thinking  a bit naive, but why shouldn't it then be possible  
(for the engine) to combine these two

"states" and the result would be "the label on top of the icon" :-)


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Klaus Major

Hi Jaquelin,


Wilhelm Sanke wrote:

- The name or label of a button can be displayed on the right or  
the left side of an icon or *beneath* the icon, but not directly  
*on top* of an icon.
Actually, if you jiggle the top and bottom margin settings of the  
button, you can achieve this.


Hmm, "jiggling" does not sound too professional to me :-D

Actually one has to visually check the results for each different  
image, which make this "option" quite useless.



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: Dynamic labels for buttons with (oddshaped) icon images?

2009-02-05 Thread Klaus Major

Hi Wilhelm,

Both Chipp's "ButtonGadget" and Richmond's "Button Basher" automate  
the process of glueing together images with text - and other  
properties - and finally produce buttons with 2 or 4 icon states.


Chipp's application possesses a number of nice and useful features,  
which otherwise you may find only in other commercial or open-source  
Photo tools. Richmond will probably develop his stack in a similar  
direction. It is good to know that there are quite a number of  
possibilities inside Revolution.


Of course one could also use low-priced or free photo tools for such  
tasks, like "RealDraw Pro" (which I use a lot), "PaintShopPro", or  
"Gimp".


The result of all these approaches are buttons or images with  
"static" text, i.e. text that needs not and cannot be changed - with  
the exception that you could produce different texts, colors etc.  
for the different icon states.


This is probably sufficient for the majority of applications in  
which buttons are being used.


However, in some cases, especially for certain types of educational  
software, you need the feature to be able to *dynamically* change  
the text/label of buttons at runtime.
As an example, imagine a Matching Exercise for second-language  
learning where you have got two columns of 10 buttons each - one  
columns of buttons with words of the first language, the other  
column for the second language - in which you have to drag the  
matching button near to the foreign language equivalent.
Then after all pairs have been correctly matched, a new set of 10x2  
words or expressions are being displayed in the labels of the 20  
buttons etc. etc.


We use quite a variety of such exercises for the students studying  
in our Language Department that rely on assigning new labels  
dynamically from an attached database or a hidden vocabulary field  
inside the stack itself.


If you just use normal buttons - without icon images - there is of  
course no problem to achieve such dynamic setting of labels, but if  
you choose to be creative with presumeably more appealing buttons  
with icon images and transparent shapes then you run into  
difficulties:


- The name or label of a button can be displayed on the right or the  
left side of an icon or *beneath* the icon, but not directly *on  
top* of an icon. If the latter would be the case, this would be very  
convenient for dynamic label setting.
About 10 years ago - or maybe even earlier - I had asked Scott Raney  
to introduce such a feature for Metacard, but apparently it was of  
limited priority on his agenda.


- The other possibility to place text directly over icon images is  
to set an icon as a backpattern of the button. This works fine as  
long as the icons are rectangular, when they are oddshaped, however,  
the transparent parts of the image show as black.
I assume that this basically could be changed in a future version of  
Revolution so that the transparent parts of backpattern really would  
remain as transparent.


Lacking such features at present, one workaround would be to take a  
labelles/nameless button with several icon states and to combine the  
button with a graphic/field, grouped together with the button or  
just as an overlay to the button. This is one way to achieve dynamic  
setting of labels at runtime.-


I have put together a very small stack that just shows four  
different icon images and four dynamic button entities which  
replaceable text; this is not an educational exercise, just  
demonstrating in which ways buttons and graphics could be combined.


<http://www.sanke.org/Software/DynamicImageButtons.zip>

(I will be out of home and office for the next three days.)

Regards,

Wilhelm Sanke


See also my "enhancement request" from about two years ago:
http://quality.runrev.com/qacenter/show_bug.cgi?id=3265

I do not think this is too difficult for a man like Mark W., but... ;-)


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: regex/matchtext question

2009-02-05 Thread Klaus Major

Hi Jim,

looks like you missed my second post, I already found the solution to  
my problem.


Difficulty one is that '[' is a special character in regular  
expressions and
escaping can make using them even more confusing.  This is also true  
of the

filter command.


Anyway, thanks for you post, will take a deeper look in a quiet  
moment ;-)



--this function seems to work
--the catch is that the "[" and "]" are special chars
--recall the merge("") function

function getList dertext, derdelimiter, derdelimiter2
 put "<<,>>,{,},[,],{{,}},[[,]]" into oppositeDelm
 if not(derdelimiter is among the items of oppositeDelm)
 then put "::" into derdelimiter
 if not(derdelimiter2 is among the items of oppositeDelm)
 thenput "::"  into derdelimiter2
 replace cr with numtochar(3) in dertext  --all on one line now

 if ( derdelimiter <> derdelimiter2 ) is true then
   replace derdelimiter with (cr & derdelimiter) in dertext
   replace derdelimiter2 with ( derdelimiter2 & cr ) in dertext
   if "]" is in dertext then -- we are using brackets
 replace ( derdelimiter2 & cr ) with ("^^" & cr) in dertext
 filter dertext with ( "*^^" )
 replace "^^" with ( derdelimiter2 ) in dertext  --we are done
   else
 filter dertext with ( "*" & derdelimiter 2 )--we are done
   end if
 else   --using "::" symetrical double-delimiters
   replace ":" with (":" & cr & ":") in dertext
   replace "::" with empty in dertext
   filter dertext with (":*:")
   replace ":" with "::" in dertext--we are done
 end if
 return dertext
end getList

Hope this helps.

Jim Ault
Las Vegas


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: regex/matchtext question SOLVED

2009-02-05 Thread Klaus Major

Hi all,

after carefully reading my own post, I found the answer :-)
Now it works with "[" and "[["!

See below for the solution.


Hi all,

I have a nice matchtext script that extract "placeholders" from a  
text.

Like everything between "<<" and ">>" or "::" or "{" and "}"

This is the function I use, it#s a little script of Ken Ray (thanks  
Ken!)

that I could understand, at least a bit to modify it:-)

## extract placeholder tText,tdelimiter,delimiter2
## tdelimiter = the delimiter of the returned list of placeholders
## derdelimiter2 = the actual "borders" of the placeholders to extract
function platzhalterextrahieren dertext,derdelimiter,derdelimiter2

 if derdelimiter = empty then
   put TAB into derdelimiter
 end if
 if derdelimiter2 = empty then
   put "::" into derdelimiter2
 end if

 switch derdelimiter2
 case "::"
   put "::" into derdelimiter3
   break
 case "<<"
   put ">>" into derdelimiter3
   break
 case "{"
   put "}" into derdelimiter3
   break
 case "["
   put "\[" into derdelimiter2
   put "\]" into derdelimiter3
   break
 end switch

 end switch

 repeat
   get matchText(dertext,"(?s)" & derdelimiter2 & "(.*?)" &  
derdelimiter3,wert)

   if it = false then
 exit repeat
   end if
   put derdelimiter2 & wert & derdelimiter3 into neu

## !!!
replace "\" with "" in neu

   put neu & derdelimiter after neueliste


## Otherwise there was no matching text to replace which ended in an  
eternal repeat loop!


   replace neu with empty in dertext
 end repeat

 delete char -1 of neueliste
 return neueliste
end platzhalterextrahieren


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


regex/matchtext question

2009-02-05 Thread Klaus Major

Hi all,

I have a nice matchtext script that extract "placeholders" from a text.
Like everything between "<<" and ">>" or "::" or "{" and "}"

This is the function I use, it#s a little script of Ken Ray (thanks  
Ken!)

that I could understand, at least a bit to modify it:-)

## extract placeholder tText,tdelimiter,delimiter2
## tdelimiter = the delimiter of the returned list of placeholders
## derdelimiter2 = the actual "borders" of the placeholders to extract
function platzhalterextrahieren dertext,derdelimiter,derdelimiter2

  if derdelimiter = empty then
put TAB into derdelimiter
  end if
  if derdelimiter2 = empty then
put "::" into derdelimiter2
  end if

  switch derdelimiter2
  case "::"
put "::" into derdelimiter3
break
  case "<<"
put ">>" into derdelimiter3
break
  case "{"
put "}" into derdelimiter3
break
  end switch

  repeat
get matchText(dertext,"(?s)" & derdelimiter2 & "(.*?)" &  
derdelimiter3,wert)

if it = false then
  exit repeat
end if
put derdelimiter2 & wert & derdelimiter3 into neu
put neu & derdelimiter after neueliste
replace neu with empty in dertext
  end repeat

  delete char -1 of neueliste
  return neueliste
end platzhalterextrahieren

This results in a list like:
::Anrede_90001::
::Titel_90001::
::Nachname_90001::

Or:
<>
<>

Or:
{Anrede_90001}
{Titel_90001}

You get the picture.

Works fine so far, but now I also wanted to use "[" and "]" and even  
"[[" and "]]"
but I cannot get the script to work. I tried to escape these  
characters like:

...
case "["
put "\[" into derdelimiter2
put "\]" into derdelimiter3
break
...

I need to replace the german decimal delimiter COMMA with a dot before  
I can
finally MERGE the content of the text, and replace it with a COMMA  
after the MERGE.

Know what I mean?

But then I get stuck in an endless repeat loop?!

Is this possible at all with matchtext?
Any hints are highly appreciated!

Thanks a lot in advance!


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: [ANN] RevDoc home page launched

2009-02-04 Thread Klaus Major

Hi all,


Hi Chipp and all,


Andre,
http://andregarzia.com/RevDoc.rev


gives me a corrupt file???


guys, you are spoiled!

Believe it or not, this is infact a REAL website URL and no online  
stack :-D


Point your browser to:
http://andregarzia.com/revdoc/


DAMN! So embarrassing!
Sorry, I mixed this up somehow...

Of course that is an online stack:
http://andregarzia.com/RevDoc.rev

And this is the website:
http://andregarzia.com/revdoc/


Best

Klaus

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


Re: [ANN] RevDoc home page launched

2009-02-04 Thread Klaus Major

Hi Chipp and all,


Andre,
http://andregarzia.com/RevDoc.rev

gives me a corrupt file???


guys, you are spoiled!

Believe it or not, this is infact a REAL website URL and no online  
stack :-D


Point your browser to:
http://andregarzia.com/revdoc/


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de



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


Re: How to test if a field does not contain anything else than returns or tab ?

2009-02-03 Thread Klaus Major

Bonjour Andre,


Bonjour,

I need to test if a given list field in a stack contains some values  
or if it is empty.
Well, by "empty" I mean that the field contains not any word or  
number. But it happens that it may include carriage returns and/or  
tabs.

In such cases :
field "thisField" is empty
return false.

If there were only carriage returns, I could test if each line of  
the field is empty;

indeed :
line x of fld "thisField" is empty
returns true if the only character in the line is cr
but returns false if there is at least one tab in the line.

I just tried :
if last char of fld "thisField" is empty  ;-))

that seems working well ! but a bit strange and might be not  
reliable ?


Is there a better trick ?


I would go like this:
...
put fld "Your field here" into Field_content
replace CR with "" in Field_content
replace TAB with "" in Field_content
## replace anything else that might be necessary

if Field_content = empty then
## do your stuff...
end if
...

Hope that helps.


Thanks for any idea

Best regards from Grenoble
André


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: Big issue with Rev

2009-02-03 Thread Klaus Major

Hi Craig,


In a message dated 2/2/09 6:32:57 PM, mwie...@ahsoftware.net writes:


By "its stack script is in use" do you mean you're using it as a
library stack, frontscript or backscript? In that case you're  
probably

getting duelling openCard handlers.



I have not put any scripts "into back". Or front. I only start using  
the
utility stack, so I guess that makes it a library. My Rev world is  
not very big; I

have only four stacks.

But before I become more conversant with these, why would they  
conflict? Can
you not send messages all over the hierarchy at will? And what is  
writing that

cryptic message to a field, the same each session?

Thanks Jacque, but my stacks are named "home" and "wizard", just  
like in HC.
I thought I would learn rev by reproducing my HC development tools.  
I am

stopped dead at the very earliest stages...


Sorry, missed your original post, but "home" is already used by Rev  
for the stack that

keeps you registration serial number etc.!

You should rename your stack to avoid any possible conflicts.


Craig newman


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: OT: what are the components of a standard Mac install?

2009-02-03 Thread Klaus Major

Hi Tiemo,


Hello,

coming from the windows world, I am not really aware, what a  
"standard"
setup on a Mac has to do. I know, there are tools like PackageMaker,  
but I
would like to know, what a Mac User usually expects, when he inserts  
a CD -

and what of that PackerMacker would provide and what not. What does a
installer like PackageMaker do anything else, than just copying the  
whole CD

on HD? How does a Mac User deinstalls his progs, I havn't seen yet a
deinstall of any prog?

Perhaps someone could point me to a link to the necessaries of a Mac  
install

/deinstall.

Thanks for any hint


the average Mac user exspects a ZIP file or a DMG file with just the  
application bundle in it,
then she/he will copy this app into the "Applications" folder all by  
himself :-)


That's the meaning of an application bundle, which is indeed a folder:
Everything that is necessary for the app to run, like images, videos,  
audio files etc.
resides INSIDE of this folder, so it appears just like one (big) file  
to the user.


Same for "de-installing", she/he will just put the application bundle  
to the trash, that's it.


If you really have to install lots of files somewhere on the users  
hard-disk or even into the system folder,

then a dedicated "installer" application might be necessary.

In that case you should take a look at the Apple Developer tools, that  
also include an installer:

http://developer.apple.com/mac/

You will have to create a free account and then you can load the free  
developer tools there.

Watch out, that's about 1 GB ;-)


Tiemo


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: OT: How to recognize a double layer drive?

2009-02-03 Thread Klaus Major

Hi Tiemo,


...
I'm not an expert, but I guess all DVD drives can do this since the  
"beginning".


All of the DVD drives I have met (Mac and Win) in the last 5 years  
were able to
playback Video DVDs and these are in fact double-layer disc without  
exception :-)


I forgot the important conclusion:
If the drive can playback Video DVDs then its a DL drive!


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


Re: OT: How to recognize a double layer drive?

2009-02-03 Thread Klaus Major

Hi Tiemo,


Hello,

I am to publish an app on a double layer DVD-ROM. Now I came to the  
question

of the system requirements. Does anybody know how to recognize, if my
DVD-drive can play DL discs? Or can all DVD-drives play DL discs  
since the
"beginning". I really don't know, but would like to tell my  
customers if not

and how they can check, if they have a compatible drive.

Any experiences with this? Win/Mac


I'm not an expert, but I guess all DVD drives can do this since the  
"beginning".


All of the DVD drives I have met (Mac and Win) in the last 5 years  
were able to
playback Video DVDs and these are in fact double-layer disc without  
exception :-)



Thanks for any idea

Tiemo


Best

Klaus

--
Klaus Major
kl...@major-k.de
http://www.major-k.de

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


  1   2   3   4   5   6   7   8   9   10   >