Re: Rev in CGI

2005-02-27 Thread de Mare
In my case, I know several other languages to be used for CGI-alike 
things. I have done things in ASP, PHP, Perl and some less known 
languages, but none of them make enough sense to compete with Rev CGIs 
since I discovered that.

About session globals, there are a lot of techniques to workaround 
this. Cookies can be used, although I have to investigate how. I often 
use hidden inputs in HTML-forms and encoded parameters in URLs (like: 
form.cgi?stack=test&cmd=todo&login=terry&pass=secret)

Terry
Op 27-feb-05 om 20:11 heeft Sivakatirswami het volgende geschreven:
Confirmed... we have *only* revolution for *all* CGIs on on all our 
domains. reason? I don't know any other language. I have yet to find 
something I can't do... though PHP's session globals would be nice.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: RIP Jef Raskin

2005-02-27 Thread James Cass
Mark -
This is indeed a sad passing 
(http://jef.raskincenter.org/home/index.html).  I have to comment 
though, when I saw Raskin speak with the other original Apple/Macintosh 
pioneers at MacWorld EXPO Boston (2004), Raskin came across to everyone 
as a very bitter man.  It was actually kind of sad.  He was in total 
disagreement with the direction that Apple has taken the idea of an 
operating system with MacOSX.  He was especially almost angry that 
MacOSX has brought back the command line.  He felt that evolution of 
the operating system has been put in reverse -- that the "operating 
system" in general should be much smarter than current OS's.  That's 
why he was developing a better user inteface 
(http://jef.raskincenter.org/home/index.html).

Anyway, it was very cool seeing all those original pioneers all on the 
stage telling stories about the beginnings of the Macintosh.

-James
On Feb 27, 2005, at 6:45 PM, Mark Wieder wrote:
http://www.digitaldivide.net/blog/dwarlick/view?PostID=2226
http://www.macintouch.com/
--
-Mark Wieder
 [EMAIL PROTECTED]
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: show menu

2005-02-27 Thread Alejandro Tejada
on Sun, 27 Feb 2005
Martin Blackman wrote:

> Dwayne
> You could have something like the following in a
card 
> or stack script.
[snip code]
> The button "Context" must be a popup menu button 
> and be sure to set its menumousebutton property 
> to 0 to prevent strange behaviour.  Put it 
> somewhere on the card and set its visible to false. 

Excellent example, Martin!!!  :-)

You will put the button in a group and reuse it
in every card where you need it.
The group needs a name (like "sharedResources")
and have set to true their "backgroundbehavior"
property. If you wish, hide the group or place
out of the visible screen locations.

-- Martin Blackman code, with button inside a group

on preopencard
if there is a button "Context" then
set the traversalon of btn "Context" to false
 -- prevents losing selection
else
place bg "sharedResources" onto this card
end if
end preopencard

on mouseDown theButton
if (theButton is 3) and (word 1 of the target =
"field") then
-- prepare the menu if desired, eg:
-- set the enabled of menuitem 2 of btn "Context" to
-- the cAcceptPaste of the target
popup button "Context"
-- you could popup a stack too, if you wish.
-- See the documentation about "popup"
end if
end mouseDown

I'm sure these additions could be rewritten
with more elegance, but you get the idea!

Keep up your good code!!!

al


=
Visit my site:
http://www.geocities.com/capellan2000/



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Passing UTF-8 through variables

2005-02-27 Thread Dar Scott
On Feb 27, 2005, at 7:11 PM, Sivakatirswami wrote:
I am *way* out of my depth here..
Does this fix the file?
on mouseUp
  put "/Volumes/Varuna/Books/LWS Pocketbook/lws_pocket_book utf-8.xml" 
into oldFile
  put "/Volumes/Varuna/Books/LWS Pocketbook/test utf-8.xml" into newFile
  put URL ("binfile:" & oldFile) into oldData
  put unidecode(uniencode(oldData), "UTF8") into newData
  put newData into URL ("binfile:" & newFile)
end mouseUp

I just typed it up off the top of my head, so you may have to fiddle 
with it.

If it works, that should give you a clue as to what to do in output in 
the index app.

Dar
--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Older OSes still in use

2005-02-27 Thread Dan Shafer
Yeah, I commented on this on my blog today  
(http://www.eclecticity.com). I think this bodes ill for Apple.

Dan
On Feb 27, 2005, at 6:58 PM, Richard Gaskin wrote:
Interesting read about remaining marketshare of older OSes:


--
 Richard Gaskin
 Fourth World Media Corporation
 __
 Rev tools and more: http://www.fourthworld.com/rev
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


how to remove blank lines from table

2005-02-27 Thread Rich Lague
How do you get rid of extra lines at the end of a list when that list 
comes from a table field?

I’m working on an app where the user puts a bunch of stuff in a table 
field. The list that is generated is then used in a variety of ways, 
and to make it very readable I have a script that puts a dash inbetween 
 the items from each of the table fields. So you get this kind of thing:

thing1-thing2-thing3
Everything worked but at the end of my list I got many lines of:
- - - -
- - - -
- - - -
So, it appeared that I had a bunch of extra lines after my list that 
were coming from my table field.

First I tried this on the table field:
  filter field “tTable” with "?*"
That didn’t work. So, next I tried putting the table field into a 
varible:

put fld "daTable" into tList
Then I tried the filter trick on that:
filter tList with "?*"
Again, it did not work.
The “filter with “?*” works on other containers, why not table fields? 
What is the correct way to remove blank lines, (particularly at the 
end,) of table fields?
	
Thanks!

Rich Lague___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Passing UTF-8 through variables

2005-02-27 Thread Dar Scott
On Feb 27, 2005, at 7:11 PM, Sivakatirswami wrote:
Ok, I have a text transformation challenge: One member of our team is 
working on an index for a book that has diacritical fonts, in plain 
ascii,
There are no diacritical marks in plain ASCII.
set to "any old font" like Geneva, Arial or Verdana, which are the 
defaults for her processing environment (a RAD tool built with 
Revolution) the end result of her work flow prior to importing into 
InDesign CS  is a very simple XML file... where a single entry looks 
like this:
Is this using an 8-bit encoding that contains ASCII in the lower half?  
Which?

Or is is a UTF-8 file?
If it is UTF-8, some characters will be represented by multiple bytes.

Å∫ava mârga: youth 
susceptibility, 394

Now, in Quark Express, if we simply passed this text to a type box, 
selected it (or set the font in a style sheet, and applied the style 
sheet) to "MinionD" (a diacritical font) we get all the proper 
international standards marks: dash over the top of long vowels, dot 
underneath retroflex consonants etc. very smooth and predicatable.

But, not so with Adobe's InDesign CS. When we import the file are 
getting weird strings for certain ones...
Does InDesign know what the encoding is for the input file?
If we set a BBEdit file to UTF-8, and the encoding for the XML file to 
UTF-8... these strings appear on screen as singular glyphs and a   few 
black squares (meaning BBEdit can't display it).
Looks like InDesign is expecting one encoding and is getting some other 
encoding.

Since BBEdit at UTF-8 is seeing a similar problem, then I would suspect 
that InDesign is expecting UTF-8 and is getting something else.

OK so one of our team here identified those characters where were 
"bad" i.e. not transforming as expected into the expect characters.. 
and he gave me a small array consisting of 16 lines, as follows (I 
have no idea how this will show in email)  ... some characters are not 
even passed to email!

...
  # create an array from the conversion file
  split tConversionArray with cr and tab
You can't do that with UTF-8.  The bytes for cr and tab might show up 
in the additional bytes per character.


I am *way* out of my depth here.. any clues from anyone? What are 
these multi-byte strings..and how to we make them back to the char 
(129-255) set? (which is where they appear on the font map for 
MinionD)
Look at the Revolution uniEncode() and uniDecode() functions.
If you are expecting the indexing application to output UTF-8, you can 
use these functions to convert to that before saving the file.

This might help:
   http://www.cs.tut.fi/~jkorpela/chars.html
You need to decide what encoding to use and stick with that when you 
can.

--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


[OT] Older OSes still in use

2005-02-27 Thread Richard Gaskin
Interesting read about remaining marketshare of older OSes:

--
 Richard Gaskin
 Fourth World Media Corporation
 __
 Rev tools and more: http://www.fourthworld.com/rev
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to safely set the icon of a button ?

2005-02-27 Thread J. Landman Gay
On 2/27/05 5:25 PM, Dar Scott wrote:
On Feb 27, 2005, at 4:20 PM, Alex Tweedly wrote:
I'm thinking this should be logged as a bug, and the IDE should stick 
to the reserved ranges; what do you think ?

I think every image in the galaxy should have a unique ID.  But, I guess 
that might break some scripts.
That will only work until we get to the next galaxy. It's an open-ended 
problem. :)

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


Passing UTF-8 through variables

2005-02-27 Thread Sivakatirswami
Ok, I have a text transformation challenge: One member of our team is 
working on an index for a book that has diacritical fonts, in plain 
ascii, set to "any old font" like Geneva, Arial or Verdana, which are 
the defaults for her processing environment (a RAD tool built with 
Revolution) the end result of her work flow prior to importing into 
InDesign CS  is a very simple XML file... where a single entry looks 
like this:

Ãâava mÃrga: youth 
susceptibility, 394

Now, in Quark Express, if we simply passed this text to a type box, 
selected it (or set the font in a style sheet, and applied the style 
sheet) to "MinionD" (a diacritical font) we get all the proper 
international standards marks: dash over the top of long vowels, dot 
underneath retroflex consonants etc. very smooth and predicatable.

But, not so with Adobe's InDesign CS. When we import the file are 
getting weird strings for certain ones... If we set a BBEdit file to 
UTF-8, and the encoding for the XML file to UTF-8... these strings 
appear on screen as singular glyphs and a   few black squares (meaning 
BBEdit can't display it).

OK so one of our team here identified those characters where were "bad" 
i.e. not transforming as expected into the expect characters.. and he 
gave me a small array consisting of 16 lines, as follows (I have no 
idea how this will show in email)  ... some characters are not even 
passed to email!

à  â
à fi
  Ã
  Ã
  Ã
  Â
à  Ë
  Ã
  â
  â
  â
à  Ë
  Ã
  Ã
  Ã
à  Ã
So, I wrote the following simple script.
on mouseUp
  # set up paths to source files
  put "/Volumes/Varuna/Books/LWS Pocketbook/lws_pocket_book utf-8.xml" 
into tSourceTxt
  put "/Volumes/Varuna/Books/LWS Pocketbook/Bad diacriticals UTF-8" 
into tConversionTxt

  # load the source file and the conversion files
  put url ("binfile:"&tSourceTxt) into tOldFile
  put url ("binfile:"&tConversionTxt) into tConversionArray
  # create an array from the conversion file
  split tConversionArray with cr and tab
  # let's take a look at what we are getting...
  # the "keys" of the array should be the initial char on each line
  # of Bad diacriticals UTF-8
  put the keys of tConversionArray
  repeat for each char x in tOldFile
if tConversionArray[x] is not empty then
  put tConversionArray[x] into x
end if
put x after tOutPut
  end repeat
  set the itemdel to "."
  put "-g2" after item 1 of tSourceTxt
 put tOutput into url ("binfile:" & tSourceTxt)
end mouseUp
I get the following strange results for the keys of the array created 
from the UTF-8 file:

ÂÃ
ÃÂÃâÃ
ââ
Ââ
ÂÃ
ââ
ââ
ÂÃ
Ââ
ÂÃ
ÂÃ
âÃ
ÂÂ
ÂÃ
Ââ
But, these are not actually to be found in the source file. and so the 
script make no changes...

I am *way* out of my depth here.. any clues from anyone? What are these 
multi-byte strings..and how to we make them back to the char (129-255) 
set? (which is where they appear on the font map for MinionD)

TIA
Sivakatirswami
Himalayan Academy Publications
at Kauai's Hindu Monastery
[EMAIL PROTECTED]
www.HimalayanAcademy.com,
www.HinduismToday.com
www.Gurudeva.org
www.Hindu.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RIP Jef Raskin

2005-02-27 Thread Mark Wieder

http://www.digitaldivide.net/blog/dwarlick/view?PostID=2226
http://www.macintouch.com/

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to safely set the icon of a button ?

2005-02-27 Thread Dar Scott
On Feb 27, 2005, at 4:20 PM, Alex Tweedly wrote:
I'm thinking this should be logged as a bug, and the IDE should stick 
to the reserved ranges; what do you think ?
I think every image in the galaxy should have a unique ID.  But, I 
guess that might break some scripts.

Dar
--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to safely set the icon of a button ?

2005-02-27 Thread Alex Tweedly
J. Landman Gay wrote:
Even if you use an image's short name as an icon reference, the engine 
will try to resolve that into an image ID number. Under the hood, only 
ID numbers can be assigned as icons. So I'm guessing your image IDs 
duplicate some of those in the Rev IDE. Since it is possible to assign 
an ID to an image (they are the only controls that allow this, and it 
is for this exact reason) just assign a different ID to the images 
that conflict.
Thanks - I did that and it now works - for now (but leaves me a bit 
worried).

That prompted me to go back and re-read the docs page for "ID" again, 
more carefully.

It says
You can set the ID of an image. Be careful not to set an image ID to a 
number that's the ID of another object in the same stack:  
I can (and have) avoided numbers used in my stacks.
since Revolution uses IDs to keep track of objects, a conflict may 
prevent Revolution from being able to access one or both objects. The 
following ID numbers are reserved and should not be used for image IDs:

* 1-100: reserved for built-in cursors
* 101-135: reserved for built-in brush shapes
* 236-300: reserved for built-in patterns
* 301-1000: reserved for built-in icons
* 101,000-103,000: reserved
* 200,000-299,999: reserved for application use
Images in the Rev IDE should use IDs from the reserved ranges - 
otherwise there's
-  no way to avoid conflicts
-  no way to tell if they happen other than viewing every image
 - and even that's no guarantee since a later version of Rev IDE 
may change which image numbers it uses
 - or the stacks may load in a different order and make the 
conflict visible
- and no way to guess which ID values are safe.

I'm thinking this should be logged as a bug, and the IDE should stick to 
the reserved ranges; what do you think ?

--
Alex Tweedly   http://www.tweedly.net

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 25/02/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to safely set the icon of a button ?

2005-02-27 Thread Alex Tweedly
Ken Ray wrote:
On 2/27/05 1:26 PM, "Alex Tweedly" <[EMAIL PROTECTED]> wrote:
 

The icon is the short ID or short name of the image to use for the
current application's dock icon. The icon of a button or stack is also
a short name or ID of an image.
 

 

Note - it's the *SHORT* name - so in my case the one that goes wrong is
image "s1" (for Dreamcard 2.5), or "hq" (for Rev 2.2)
It seems unlikely that any Rev stack has images called "s1" and "hq" -
though it might be possible.
Any suggestions for how I can tell what's happening ?
   

My understanding is that the icon *has* to be identified by ID (i.e. it is
stored that way). Although it seems you can set it using a name, I've never
done that before. I'm sure what you have is an ID conflict. What ID number
does the button use for itms image?
 

When I set it to "s1", and look in the inspector, .
If I do it in the app it has 1531 - and displays the Dreamcard splash.
If I do this *in* the library stack, it has 1531, and displays as my image.
If I do it in the app in Rev 2.2.1 it also has 1531, and it works (i.e. 
displays my image).

If I do this all in Rev 2.2.1, and set it to "hq", the inspector shows 
1528 and it displays the Rev image.
Again, doing this *in* the library stack in Rev 2.2.1 also shows 1528, 
and displays my image.

--
Alex Tweedly   http://www.tweedly.net
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 25/02/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


ANN: Update of "Topsearch" for XML-files

2005-02-27 Thread Wilhelm Sanke
I am in the course of updating my "Topsearch" tool for text search in 
stacks and the Rev documentation to be able to search the new XML-format 
of the help docs. I plan to make it available in about two weeks.

Screenshots can be viewed on my website 


The basic feature to search all text fields of a Revolution or Metacard 
stack remains unchanged.

The "Dictionary"-, "Faq"-, "Topics"- and "Glossary"-folders can be 
searched. The results are displayed in the field on the right with the 
searchstring colored and the XML-file addresses inserted as links. 
Clicking on such a file link displays the complete article in the left 
field - again with the searchstring colored. If the article itself 
contains links these are displayed for further reference.

The Rev Help XML-files can also be searched from inside the Metacard IDE.
While working on how to parse the XML-files for my specific needs, I 
found some "inconsistencies" in the "Topics" files, where closing tags 
are missing,; I took care of that in my scripts, but I think these 
glitches are so minor - although they affect the display of the files in 
question - as not to warrant a Bugzilla entry.

(replace "The special descriptor this" with "The 
special descriptor this"
 # above for: file "object_types_and_object_ref.xml"
 replace ">Unix systems)" with ">Unix 
systems)"
 # above for: file "properties and property profiles.xml")

Regards,
Wilhelm Sanke

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: News of Shafer eBook Publication Plans

2005-02-27 Thread Dan Shafer
Judy.
LOL.
Yeah, as far as that remark goes, you're right.
I mean, I'd really like to understand: (a) how an index on a 
full-text-searchable document adds enough real value to make it worth 
the time and cost of compiling it; and (b) how such an index should 
differ, if at all, from an index for a printed book. Maybe there's some 
happy middle ground here.

Dan
On Feb 26, 2005, at 11:06 PM, Judy Perry wrote:
Dan,
Basically, what you're saying is that anything done crappily is crap 
and
anything done well is good.

That's true.
More l8r when I'm in a better mood ;-) :-/
Judy
On Sat, 26 Feb 2005, Dan Shafer wrote:
Judy.
Strong opinion. I disagree. I know you come from an education
perspective and perhaps that's shaping some of what you are feeling 
but
my experience says:

1. Creating indexes is subjective at best. A great index can help make
the contents of a printed work more accessible; a poorly done one
(which 90% are) gets in the way because it sets up a false expectation
about what is and isn't covered in the book.
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Audio integration tutorial

2005-02-27 Thread Mark Swindell
Hi Dan,
Questions that I have would involve:
Audio formats:
What's the best for working with Rev under different circumstances?  
MP3, MP4, AIFF (huge files), M4B, etc.   What are the trade offs in 
terms of fidelity, file size, ease of manipulation, compatibility.

Benefits/drawbacks of the different formats:
X-platform issues, standards that can succeed across them?  Example: 
Books on tape use the m4b format which apparently includes striping of 
some sort which allows a user to resume listening at a place he left 
off.  It may not to be compatible with Rev; at least when I tried to 
import such a file into a stack it was howlie garbage.

Audio/text synchronization:
How can I synchronize a longer audio file with real-time text hiliting 
features?  Example: I want to have the narration/reading (real recorded 
voice, not text-to-speech) of a book playing while corresponding text 
is hilited on screen.  Not word by word, necessarily, but at least 
paragraph by paragraph. How might the audio drive the hilite feature in 
a text field (and vice versa)?  Can audio files somehow be tagged so as 
to trigger corresponding text events, call handlers that would import 
new text, scroll fields, etc.  Or would this have to occur in reverse.  
It would be nice if audio could have markers that would be linked to 
text lines and trigger handlers.  But that may be fanstasy.

Playback of multiple streams:  Can more than one audio event play back 
at once?  Music synched with voiceover located in different files?

Audio File Storage/retrieval/loading:
How would one anticipate and pre-load audio audio files so that there 
is seamless playback from file to file?  Where are the files kept, and 
how can they be queued so that the user hears no gaps or clicks, etc.?

Memory requirements:
How much memory needs to be allocated to achieve a seamless integration 
of on screen visuals and supplemental audio?  How would this happen?

These are just some ideas that pop up off the top of my head.  The m4b 
format seems like it might have great benefits if Rev knew how to read 
the files and somehow access the markers via script.

All this said, I am fully aware of  being 99% ignorant of any of this, 
and that's why I need help and education.

Thanks,
Mark
On Feb 26, 2005, at 7:16 PM, Dan Shafer wrote:
Mark
As far as I know, nothing like this exists. Maybe this should be the 
next chapter I release. I've been doing a bit with sound lately and 
there are a couple of serious experts on this list. Maybe we can put 
something together.

Why don't you see how many specific questions you can frame and email 
them to me off-list. That'll give me a place to start seeing if this 
topic is ready for prime time in my training and experience yet.

Dan
On Feb 26, 2005, at 7:41 AM, Mark Swindell wrote:
Is there a tutorial anywhere that covers this topic in some depth?  
Is this subject covered in Software at the Speed of Thought?

I need some serious education, as I'm trying to set up an ebook with 
extensive use of audio and need help in the areas of design and 
organization of files, file types and features (m4b, mp3, etc), and 
how to to most efficiently store them, access them, buffer them, call 
them, etc.

Looking around the Rev documentation I find fragmented bits of 
information regarding audio integration, but nothing comprehensive.
Thanks
Mark
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: translation ready, more questions

2005-02-27 Thread Rob Meijer
At 21:15 27/2/2005, Robert Brenstein wrote:
In the first case, you insert a single line but in the latter case you 
inser two lines (one empty) but you delete only one of them.

of course
Rob
[EMAIL PROTECTED]
www.japrosoft.com
no more spam: Mailwasher Pro
http://www.firetrust.com/products/pro/
and please mention my emailaddress...  
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: translation ready, more questions

2005-02-27 Thread Robert Brenstein
It sounds to me like you might have an additional trailing return after the
text. The reason I say this is that in my simple test, it works as expected.
if I write:
put return &"blahblahblah" after field 1
and later
delete  last line of fld 1
a new last line comes on the same place as the deleted one.
put return & return & "blahblahblah" after field 1
and later
delete  last line of fld 1
a new last line comes 1 line lower as the deleted one.
In the first case, you insert a single line but in the latter case 
you inser two lines (one empty) but you delete only one of them.

Robert
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: CGI access to PostGreSQL

2005-02-27 Thread Jan Schenkel
--- Sivakatirswami <[EMAIL PROTECTED]> wrote:
> Aloha, Mark:
> 
> Still no go on Linux as a CGI...--
> 

I noticed tht you're pointing straight to the file in
your call to revSetDatabaseDriverPath -- it doesn't
expect the full name, it wants the directory where the
database driver resides.

Hope this helped,

Jan Schenkel.

=
Quartam - Tools for Revolution


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



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Windows question

2005-02-27 Thread Martin Baxter
>Lars Brehmer wrote:
>
>> Greetings all!
>>
>> I have no experience with Windows whatsoever and have what is
>> hopefully a real easy, dopey question:
>>
>> I build a standalone for Windows (the splash screen is the actual
>> standalone, the Main Stack and substacks are rev files) and it works
>> just fine, but there's one little thing I don't get.  In OSX, it's the
>> icon of the standalone that appears in the dock, but in Windows (XP in
>> this case) each of the open stacks, whether visible or not, has a
>> thingy in the task bar thing, so as stacks open and close, the taskbar
>> thingies multiply and disappear.
>>
>> Am I doing something wrong here? Or is it always this way in Windows?
>> Is there a way to get just the app in the taskbar and not the
>> individual rev stacks?
>
>Windows programs typically show a task-bar item per "main window" - with
>varying interpretations of what should be considered to be a "main window".
>
>In general Rev shows a task-bar item for each stack.
>However, there are exceptions - for instance, in the IDE, script editor
>windows don't appear in the task-bar - so there must be some control
>over this. (Sorry - I've never looked into it, so I don't know any more
>off-hand - if no-one else chimes in, I'll look around the settings on
>the script editor stacks and see if I can figure out how they avoid
>appearing in the list).

It's because the IDE windows are generally modeless.

Martin Baxter


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: translation ready, more questions

2005-02-27 Thread Robert Brenstein
I have no idea what to do with a substack: can I declare the 
mainstack as card 1 and use the substack for the other pages
with different size and how do you stick them together?  Is there 
something to read about it online?
If you need to support multiple views of your data, it is usually a 
good idea to separate storage and display. You can, for example, keep 
data in custom properties or in a data stack (or external text or 
database file) and use substacks (they are just normal stacks except 
that they are in the same file as a mainstack -- read about this in 
docs -- to have only a single file to handle) to display the data. If 
your data is a database-type data, you could have one stack to 
display columnar report and another to view one record at a time.

I think I explained it not clear enough: Sometimes while working 
there is such a mass, that I want to reopen to go back to the last 
save.
So I do an exit with "don't save".
But when I reopen I see the same mass
It is still the same. Try quiting Rev to prove it to yourself. Altuit 
has a plugin that makes versioning (and thus rolling back) easy.

Right; but after "Delete last line of field "xxx" " the line 
disappearesd, but not the space between text and place of the 
deleted line;
because after a new "put return & textline after field "xxx", the 
new line is positioned under the position of the disappeared line .
that's why I wrote I want the cursor back behind the org. text.
Sounds like field's scroll is not updated if there is really nothing 
funky about the field content. I would first check for invisible 
characters, then try to reset scroll.

I mean I want all textlines left, no automatic block identation.
From there I want to do block indentations manually:
In TB we use for that + for indent right of a selected block
or ++ for indent left. No such way in RunRev?
Not that I know of. What's wrong with automatic indentation? It seems 
to work fine.

Robert
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: translation ready, more questions

2005-02-27 Thread Rob Meijer
Ken,
At 16:39 27/2/2005, Ken Ray wrote:
It sounds to me like you might have an additional trailing return after the
text. The reason I say this is that in my simple test, it works as expected.
if I write:
put return &"blahblahblah" after field 1
and later
delete  last line of fld 1
a new last line comes on the same place as the deleted one.
put return & return & "blahblahblah" after field 1
and later
delete  last line of fld 1
a new last line comes 1 line lower as the deleted one.

Sorry, Revolution automatically indents code and you can't easily override
it. (The reason I say "easily" is that the Revolution IDE is written in
Revolution, so when you become proficient you can edit the script of the
Script Editor and change it to your heart's content.)
I'll have to wait for that
My question would be though - what is it about Rev's indentation that
doesn't work for you?
It works, but the script is a bit disorderly .
Thanks for all your help.
I had a very interesting 20 days, studying RunRev. It is remarkable
quick and has no memorylimitations. Many statements make work shorter
and faster than in TB.
As I wrote for the Toolbook-list: If I had to leave Toolbook, RunRev would 
be my first choice.

Rob

[EMAIL PROTECTED]
www.japrosoft.com
no more spam: Mailwasher Pro
http://www.firetrust.com/products/pro/
and please mention my emailaddress...  
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to safely set the icon of a button ?

2005-02-27 Thread Ken Ray
On 2/27/05 1:26 PM, "Alex Tweedly" <[EMAIL PROTECTED]> wrote:

>> The icon is the short ID or short name of the image to use for the
>> current application's dock icon. The icon of a button or stack is also
>> a short name or ID of an image.

> Note - it's the *SHORT* name - so in my case the one that goes wrong is
> image "s1" (for Dreamcard 2.5), or "hq" (for Rev 2.2)
> 
> It seems unlikely that any Rev stack has images called "s1" and "hq" -
> though it might be possible.
> 
> Any suggestions for how I can tell what's happening ?

My understanding is that the icon *has* to be identified by ID (i.e. it is
stored that way). Although it seems you can set it using a name, I've never
done that before. I'm sure what you have is an ID conflict. What ID number
does the button use for itms image?



Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]



___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to safely set the icon of a button ?

2005-02-27 Thread J. Landman Gay
Even if you use an image's short name as an icon reference, the engine 
will try to resolve that into an image ID number. Under the hood, only 
ID numbers can be assigned as icons. So I'm guessing your image IDs 
duplicate some of those in the Rev IDE. Since it is possible to assign 
an ID to an image (they are the only controls that allow this, and it is 
for this exact reason) just assign a different ID to the images that 
conflict.

On 2/27/05 1:26 PM, Alex Tweedly wrote:
I have a stack (intended to be a "library" stack), which contains a 
number of images.

The application stack that uses this library sets the icon of its 
buttons to one of the images (it uses a function in the library to do it).

The problem is that one (and only one) of the images comes up wrong; 
instead of showing my images, it shows the Dreamcard splash screen. If I 
look at it with the inspector, it only shows the id of the icon - which 
is the correct number to be mine (but see the extract from the docs below).
If I load the stack(s) into Rev 2.2.1, then again exactly one button 
gets the wrong image (it's a different one), this time showing the image 
from the Revolution splashcard.

The docs say
Value:
The icon is the short ID or short name of the image to use for the 
current application's dock icon. The icon of a button or stack is also 
a short name or ID of an image.

By default, the icon property is set to zero (no icon). The icon of 
newly created buttons and stacks is set to zero (no icon) by default.

Comments:
Revolution looks for the specified image first in the current stack, 
then in other open stacks.

Note - it's the *SHORT* name - so in my case the one that goes wrong is 
image "s1" (for Dreamcard 2.5), or "hq" (for Rev 2.2)

It seems unlikely that any Rev stack has images called "s1" and "hq" - 
though it might be possible.

Any suggestions for how I can tell what's happening ?
I managed to build a tiny app to demo the problem - this works fine in 
2.2 but shows the Dreamcard splashscreen on DC2.5
Here's the (only) script from my test app ... on a button

global  gHeapId
on mouseUp
  local tPath
 
  put the filename of this stack into tPath
  set the itemDel to "/"
  put "Playing Cards.rev" into  item -1 of tPath
  start using stack tPath
 
  put the long ID of button "Heap" into gHeapID
  set the width of button "Heap" to 71
  set the height of button "Heap" to 96
  set the cRemaining of button "Heap" to empty
  set the visible of button "Heap" to true
 
 
  if the label of me = "Show it" then
set the icon of button "Heap" to 0
set the label of me to "Hide it"
  else
set the icon of button "Heap" to "s1"
set the label of me to "Show it"
  end if
 
end mouseUp


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


How to safely set the icon of a button ?

2005-02-27 Thread Alex Tweedly
I have a stack (intended to be a "library" stack), which contains a 
number of images.

The application stack that uses this library sets the icon of its 
buttons to one of the images (it uses a function in the library to do it).

The problem is that one (and only one) of the images comes up wrong; 
instead of showing my images, it shows the Dreamcard splash screen. If I 
look at it with the inspector, it only shows the id of the icon - which 
is the correct number to be mine (but see the extract from the docs 
below). 

If I load the stack(s) into Rev 2.2.1, then again exactly one button 
gets the wrong image (it's a different one), this time showing the image 
from the Revolution splashcard.

The docs say
Value:
The icon is the short ID or short name of the image to use for the 
current application's dock icon. The icon of a button or stack is also 
a short name or ID of an image.

By default, the icon property is set to zero (no icon). The icon of 
newly created buttons and stacks is set to zero (no icon) by default.

Comments:
Revolution looks for the specified image first in the current stack, 
then in other open stacks.

Note - it's the *SHORT* name - so in my case the one that goes wrong is 
image "s1" (for Dreamcard 2.5), or "hq" (for Rev 2.2)

It seems unlikely that any Rev stack has images called "s1" and "hq" - 
though it might be possible.

Any suggestions for how I can tell what's happening ?
I managed to build a tiny app to demo the problem - this works fine in 
2.2 but shows the Dreamcard splashscreen on DC2.5
Here's the (only) script from my test app ... on a button

global  gHeapId
on mouseUp
  local tPath
 
  put the filename of this stack into tPath
  set the itemDel to "/"
  put "Playing Cards.rev" into  item -1 of tPath
  start using stack tPath
 
  put the long ID of button "Heap" into gHeapID
  set the width of button "Heap" to 71
  set the height of button "Heap" to 96
  set the cRemaining of button "Heap" to empty
  set the visible of button "Heap" to true
 
 
  if the label of me = "Show it" then
set the icon of button "Heap" to 0
set the label of me to "Hide it"
  else
set the icon of button "Heap" to "s1"
set the label of me to "Show it"
  end if
 
end mouseUp
--
Alex Tweedly   http://www.tweedly.net

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 25/02/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Windows question

2005-02-27 Thread Alex Tweedly
Lars Brehmer wrote:
Greetings all!
I have no experience with Windows whatsoever and have what is 
hopefully a real easy, dopey question:

I build a standalone for Windows (the splash screen is the actual 
standalone, the Main Stack and substacks are rev files) and it works 
just fine, but there's one little thing I don't get.  In OSX, it's the 
icon of the standalone that appears in the dock, but in Windows (XP in 
this case) each of the open stacks, whether visible or not, has a 
thingy in the task bar thing, so as stacks open and close, the taskbar 
thingies multiply and disappear.

Am I doing something wrong here? Or is it always this way in Windows?  
Is there a way to get just the app in the taskbar and not the 
individual rev stacks?
Windows programs typically show a task-bar item per "main window" - with 
varying interpretations of what should be considered to be a "main window".

In general Rev shows a task-bar item for each stack.
However, there are exceptions - for instance, in the IDE, script editor 
windows don't appear in the task-bar - so there must be some control 
over this. (Sorry - I've never looked into it, so I don't know any more 
off-hand - if no-one else chimes in, I'll look around the settings on 
the script editor stacks and see if I can figure out how they avoid 
appearing in the list).

btw - Palettes also do not appear in the task-bar list.
--
Alex Tweedly   http://www.tweedly.net

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 25/02/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: CGI access to PostGreSQL

2005-02-27 Thread Sivakatirswami
Aloha, Mark:
Still no go on Linux as a CGI...--
fixed the case as you said to:
dbPostgresql.so
one of our team put the file in  
"/usr/local/lib/revolution/dbPostgresql.so "

and tried to run this script from the cmd line shell as root but it  
didn't work

And I also tried putting it in the cgi bin of the virtual site where it  
will eventually be used... still didn't work

I also tried a full path from root to the cgi bin of the virtual site
it still fails.  Not sure how to trouble shoot this one..I mean we  
*can* do it by issuing SQL in shell commands but it would be much  
better if we can use rev's dictionary then I can repurpose code that is  
in thin rev clients for re-use in cgi's.

#!/usr/local/bin/revolution
on startup
 ## revSetDatabaseDriverPath "/usr/local/lib/revolution/dbPostgresql.so"
 ## revSetDatabaseDriverPath  
"/home/virtual/site1/fst/var/www/cgi-bin/dbPostgresql.so"
  revSetDatabaseDriverPath "dbPostgresql.so"
  put  
revOpenDatabase("Postgresql","69.94.64.57","cybertalks","user","password 
") into pConnectionID
  if (pConnectionID) is a number then
    put "Your Cybertalks data base opened successfully with connection  
ID " into tResult
    put pConnectionID after tResult
    put tResult into buffer
  else
    put "Gosh darn, what's up?  The data base connection failed." into  
buffer
end if

  put "Content-Type: text/plain" & cr
  put "Content-Length:" && the length of buffer & cr & cr
  put buffer
end startup
this works fine from inside the IDE on OSX:
 revSetDatabaseDriverPath "dbPostgresql.so"
  put  
revOpenDatabase("Postgresql","69.94.64.57","cybertalks","user","password 
") into pConnectionID
  if (pConnectionID) is a number then
    put "Your Cybertalks data base opened successfully with connection  
ID " into tResult
    put pConnectionID after tResult
    put tResult
  else
    put "Gosh darn, what's up?  The data base connection failed."
end if

We must still be missing something.
Sivakatirswami
On Feb 10, 2005, at 12:05 AM, Mark Waddingham wrote:
The Revolution 2.5 (and up) Linux engine has both revXML and revDB
embedded within it, so the externals are not necessary. However, the
database drivers themselves are not embedded and you need to tell the
engine where to find them by doing:
  revdb_setdriverpath 
  (or revSetDatabaseDriverPath )
Where  is the directory containing the drivers. Also,
Linux paths are case-sensitive so make sure that the value you pass for
the database type looks the same as the driver file:
  i.e. if you pass "mysql" the engine will look for dbmysql.so
   if you pass "MySQL" the engine will look for dbMySQL.so
Warmest Regards,
Mark.
___

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev in CGI

2005-02-27 Thread Sivakatirswami
Confirmed... we have *only* revolution for *all* CGIs on on all our 
domains. reason? I don't know any other language. I have yet to find 
something I can't do... though PHP's session globals would be nice.
Sivakatirswami
Himalayan Academy Publications
at Kauai's Hindu Monastery
[EMAIL PROTECTED]
www.HimalayanAcademy.com,
www.HinduismToday.com
www.Gurudeva.org
www.Hindu.org

On Feb 19, 2005, at 6:37 PM, J. Landman Gay wrote:
On 2/19/05 11:42 AM, Stephen Barncard wrote:
Jackie - this is incredible. Thanks for the great tutorial. I get it 
now. Very useful stuff! I bounce between web and app design all the 
time and this brings it all together.
Thanks, I'm glad it helped. It is good to know that writing it wasn't 
a complete waste of time. ;) I have a number of CGIs on my site, 
mostly to deal with junk mail and check on mailboxes that I don't 
regularly read. Rev CGIs seem to be able to do just about anything and 
they are pretty fast.

sqb
Op 19-feb-05 om 6:25 heeft Paul Salyers het volgende geschreven:
What is needed to tun a Rev program in a CGI folder so anyone can 
access from the web with a web browser?

You should read Jacque's great tutorial on 
http://www.hyperactivesw.com/cgitutorial/index.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Windows question

2005-02-27 Thread Ken Ray
On 2/27/05 12:21 PM, "Lars Brehmer" <[EMAIL PROTECTED]> wrote:

> Greetings all!
> 
> I have no experience with Windows whatsoever and have what is hopefully
> a real easy, dopey question:
> 
> I build a standalone for Windows (the splash screen is the actual
> standalone, the Main Stack and substacks are rev files) and it works
> just fine, but there's one little thing I don't get.  In OSX, it's the
> icon of the standalone that appears in the dock, but in Windows (XP in
> this case) each of the open stacks, whether visible or not, has a
> thingy in the task bar thing, so as stacks open and close, the taskbar
> thingies multiply and disappear.
> 
> Am I doing something wrong here? Or is it always this way in Windows?
> Is there a way to get just the app in the taskbar and not the
> individual rev stacks?

Sorry, Lars... welcome to Windows! This is the way it works. For each
toplevel stack that you open, you get an entry in the TaskBar. If you want
it to not appear, you can choose a style like modeless or palette for your
windows, but that may not work for you or apply in your situation.


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Windows question

2005-02-27 Thread Lars Brehmer
Greetings all!
I have no experience with Windows whatsoever and have what is hopefully 
a real easy, dopey question:

I build a standalone for Windows (the splash screen is the actual 
standalone, the Main Stack and substacks are rev files) and it works 
just fine, but there's one little thing I don't get.  In OSX, it's the 
icon of the standalone that appears in the dock, but in Windows (XP in 
this case) each of the open stacks, whether visible or not, has a 
thingy in the task bar thing, so as stacks open and close, the taskbar 
thingies multiply and disappear.

Am I doing something wrong here? Or is it always this way in Windows?  
Is there a way to get just the app in the taskbar and not the 
individual rev stacks?

Cheers,
Lars
•••
Lars Brehmer
Eestimaa Keeletarkvara
Tallinn, Eesti
Modern foreign language vocabulary
learning software for the Mac and PC

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Win32 standalone

2005-02-27 Thread Roger Amar
Thanks a lot, Xavier, good idea.
I'll try it and report to the list.

Roger
 

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de MisterX
Envoyé : dimanche 27 février 2005 11:14
À : 'How to use Revolution'
Objet : RE: Win32 standalone

No I haven't. But I would make a written log of the operations in the scripts 
that you output to a log file. This way you can find out which is the offending 
command. This beats removing all the scrips until you find the offending call.

local logfile

on reportlog callinghandling,thelogresult
  if logfile is empty then put getlogfilepath() into logfile
  open file logfile for appending
  write thelogresult to file logfile
  close file logfile
end reportlog

function getlogfilepath
  get the effective filepath of this stack
  set the itemdelimiter to "/"
  delete last item of it
  put "/" & the short name of this stack & ".log" after it
  return it
end getlogfilepath

on whatever
  do something
  reportlog whatever,"did something at" && thetime && "with result" && the 
result && etc...
end whatever

cheers
Xavier
--
http://monsieurx.com - just nitrous!

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Roger 
> Amar
> Sent: Sunday, February 27, 2005 10:29
> To: How to use Revolution
> Subject: Win32 standalone
> 
> Hello all,
> 
> I converted a project which is working fine in the IDE, to a
> Win32 standalone.
> When I attempt to launch it, it hangs with the "Windows exception not 
> handled" error, when the startup handler finishes.
> This project is using the Valentina dll.
> 
> Has anyone met this issue before ?
> 
> Thanks for help,
> 
> Roger
> 
> 
> 
> 
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: translation ready, more questions

2005-02-27 Thread Ken Ray
On 2/27/05 9:35 AM, "Rob Meijer" <[EMAIL PROTECTED]> wrote:

>>> 3. I put return & a textline after last line of a field.
>>> I delete last  line of that field.
>>> The line is deleted, not the space between the org. text and that
>>> last line.
>> 
>> when you say 'delete last line of fld xxx' there can't be any space left
>> unless you have multiple returns before the last line or the newlast line
>> has spaces only. Or am I missing something?
> 
> Right; but after "Delete last line of field "xxx" " the line disappearesd,
> but not the space between text and place of the deleted line;
> because after a new "put return & textline after field "xxx", the new line
> is positioned under the position of the disappeared line .
> that's why I wrote I want the cursor back behind the org. text.

It sounds to me like you might have an additional trailing return after the
text. The reason I say this is that in my simple test, it works as expected.
Here's what I did:

1) Create a field
2) Put three lines of text into the field (the last line I did *not* hit a
return after; I typed "Ken"  "Rob"  "Pete"). This gave me:

   Ken
   Rob
   Pete

3) I then opened the message box and typed:

  delete last line of field 1

My field now shows:

   Ken
   Rob

4) I then typed into the message box:

  put return & "Joe" after field 1

and my field now shows:

   Ken
   Rob
   Joe

This is what you're looking for, right? If you're not getting this in your
own field, I think there's an extra return character at the end. You can
check it by typing into the message box:

  put (last char of field 1 = return)

If you get "true", you've got an extra return; if you get "false", you
don't.

>>> How to get the cursor behind the last char of the org. text??
>> 
>> select after text of fld xxx
>> 
>>> 4. is there a way to arrange lines in the scripts with textalignment left
>>> how to make indents right or left in the script
>> 
>> I am not sure I follow what you mean. Script editor uses the left
>> alignment and block indentation automatically. If you refer to the new
>> lines you type, close and reopen the editor.
> 
> I mean I want all textlines left, no automatic block identation.
>  From there I want to do block indentations manually:
> In TB we use for that + for indent right of a selected block
> or ++ for indent left. No such way in RunRev?

Sorry, Revolution automatically indents code and you can't easily override
it. (The reason I say "easily" is that the Revolution IDE is written in
Revolution, so when you become proficient you can edit the script of the
Script Editor and change it to your heart's content.)

My question would be though - what is it about Rev's indentation that
doesn't work for you?

Also, BTW, you don't need to close and reopen the script to see your script
indented; you can type the  key while inside a handler and it will
reformat/reindent the handler.

HTH,


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: translation ready, more questions

2005-02-27 Thread Rob Meijer
At 11:20 27/2/2005, Robert Brenstein wrote:
My translation is ready and above all: it works.
Rest some questions:
1. I want to change the size of card 1, but not the size of other cards. 
Not possible?
Yes and no. All cards in the stack have the same size at any given time. 
One can use preopencard to resize window when opening any card. For 
example, a size of each card can be stored as a custom property of a card, 
which is then used by the preopencard handler to adjust the size. However, 
one normally uses substacks to have them permanently different.
I have no idea what to do with a substack: can I declare the mainstack as 
card 1 and use the substack for the other pages
with different size and how do you stick them together?  Is there something 
to read about it online?


2. if I reopen a stack after close NOT SAVE, everything is saved. Huh?
If you quit Rev and relaunch, you will likely find the unsaved values as 
you expect them. Part of the Rev's performance is that it leaves closed 
stack in memory. This allows it to be reopened super fast. Most people 
simulate multiwindow environment by opening a closing stacksrather than 
hiding them (which requires tracking what is open and what is hidden), so 
this behavior works really well. What you see is a side-effect: the last 
state is preserved so do speak. You can try setting the destroyStack and 
destroyWindows properties to true, although I am not sure whether these 
will help you. Normally, one would use preopencard to fill in the fields 
with the current (expected) values, values themselves kept,for example, in 
custom properties.
I think I explained it not clear enough: Sometimes while working there is 
such a mass, that I want to reopen to go back to the last save.
So I do an exit with "don't save".
But when I reopen I see the same mass


3. I put return & a textline after last line of a field.
I delete last  line of that field.
The line is deleted, not the space between the org. text and that 
last line.
when you say 'delete last line of fld xxx' there can't be any space left 
unless you have multiple returns before the last line or the newlast line 
has spaces only. Or am I missing something?
Right; but after "Delete last line of field "xxx" " the line disappearesd, 
but not the space between text and place of the deleted line;
because after a new "put return & textline after field "xxx", the new line 
is positioned under the position of the disappeared line .
that's why I wrote I want the cursor back behind the org. text.

How to get the cursor behind the last char of the org. text??
select after text of fld xxx
4. is there a way to arrange lines in the scripts with textalignment left
how to make indents right or left in the script
I am not sure I follow what you mean. Script editor uses the left 
alignment and block indentation automatically. If you refer to the new 
lines you type, close and reopen the editor.
I mean I want all textlines left, no automatic block identation.
From there I want to do block indentations manually:
In TB we use for that + for indent right of a selected block
or ++ for indent left. No such way in RunRev?

Robert
[EMAIL PROTECTED]
www.japrosoft.com
no more spam: Mailwasher Pro
http://www.firetrust.com/products/pro/
and please mention my emailaddress...  
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Graphic as buttons and format advice?

2005-02-27 Thread Thomas McGrath III
PNG is by far the best for BOTH compression and cross-platform use AND 
supports transparency layers..

HTH
Tom
On Feb 27, 2005, at 3:19 AM, Scott Rossi wrote:
Which one is best for cross-platform? And which, overall, is the best
quality?
Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


ANN: How to stack #007 (managing "Snap to" scrollbars )

2005-02-27 Thread Éric Chatonet
Hi everyone,
After the thread you might have followed, I found the subject 
interesting: so, I put a little stack on RevOnLine  :-)

This stack shows how to manage a scrollbar with a snap-to behavior (so 
indicator lines up with the ticks)

User name: So Smart Software
Category: Programming
Name: #007 How to manage "Snap to" scrollbars
With best regards,
Eric Chatonet.
---
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
 ---
Web site   http://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Post   24, Bd de Port-Royal 75005 Paris
Phone   (33) 143 317 762
Mobile   (33) 620 745 086
---
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: show menu

2005-02-27 Thread Martin Blackman
Dwayne
You could have something like the following in a card or stack script.
on preopencard
 set the traversalon of btn "Context" to false --prevents losing selection
end preopencard
on mouseDown theButton
 if (theButton is 3) and (word 1 of the target = "field") then
   -- prepare the menu if desired, eg:
   set the enabled of menuitem 2 of btn "Context" to the cAcceptPaste of 
the target
   --
   popup button "Context"
 end if
end mouseDown

The button "Context" must be a popup menu button and be sure to set its 
menumousebutton property to 0 to prevent strange behaviour.  Put it 
somewhere on the card and set its visible to false. You need to script the 
context button with something like the following.

on menupick theitem
 switch theitem
 case "Copy"
   copy
   break
 case "Paste"
   paste
   break
 case "Cut"
   cut
   break
 end switch
end menupick
regds
Martin Blackman
How can I show the menu items of a popup menu when right clicking in a 
field?
Like any text editor would have cut, copy, paste e.t.c
I could always include a menu bar at the top of the field or window but I 
think most people are used to right clicking in an editable field!

 Thanx

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: scale w/ ticks and snap-to

2005-02-27 Thread Jim Hurley
Message: 2
Date: Sat, 26 Feb 2005 15:15:07 -0800
From: Richard Gaskin <[EMAIL PROTECTED]>
Subject: scale w/ ticks and snap-to
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
I'd like to have a scale in a range from 1 to 5 with 5 ticks on it, and
with snap-to behavior so this indicator will line up with the ticks.
Any combination of properties for this, or am I rolling my own?
--
  Richard Gaskin
  Fourth World Media Corporation
  ___
  [EMAIL PROTECTED]   http://www.FourthWorld.com
Richard,
If you are willing to wait for mouseUp to see the snap then maybe 
this would help:

local tNearestInteger
on scrollbarDrag tPos
  set the startvalue of me to 1
  set the endvalue of me to 5
  put round(tPos) into tNearestInteger
  put tNearestInteger into field 1
end scrollbarDrag
on mouseUP
  set the thumbposition of me to tNearestInteger
end mouseUP
Jim
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Shell strangeness

2005-02-27 Thread Mark Smith
Alex Tweedly wrote:
It's (probably) a very old artifact - from the days of teletypes and
similar. Some old Unixes would print man pages using "doubled" letters
in the headers.
Of course! The doubled letters are indeed bolded in the terminal 
window

Thanks,
Mark
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: translation ready, more questions

2005-02-27 Thread Robert Brenstein
My translation is ready and above all: it works.
Rest some questions:
1. I want to change the size of card 1, but not the size of other 
cards. Not possible?
Yes and no. All cards in the stack have the same size at any given 
time. One can use preopencard to resize window when opening any card. 
For example, a size of each card can be stored as a custom property 
of a card, which is then used by the preopencard handler to adjust 
the size. However, one normally uses substacks to have them 
permanently different.

2. if I reopen a stack after close NOT SAVE, everything is saved. Huh?
If you quit Rev and relaunch, you will likely find the unsaved values 
as you expect them. Part of the Rev's performance is that it leaves 
closed stack in memory. This allows it to be reopened super fast. 
Most people simulate multiwindow environment by opening a closing 
stacksrather than hiding them (which requires tracking what is open 
and what is hidden), so this behavior works really well. What you see 
is a side-effect: the last state is preserved so do speak. You can 
try setting the destroyStack and destroyWindows properties to true, 
although I am not sure whether these will help you. Normally, one 
would use preopencard to fill in the fields with the current 
(expected) values, values themselves kept,for example, in custom 
properties.

3. I put return & a textline after last line of a field.
I delete last  line of that field.
The line is deleted, not the space between the org. text and 
that last line.
when you say 'delete last line of fld xxx' there can't be any space 
left unless you have multiple returns before the last line or the 
newlast line has spaces only. Or am I missing something?

How to get the cursor behind the last char of the org. text??
select after text of fld xxx
4. is there a way to arrange lines in the scripts with textalignment left
how to make indents right or left in the script
I am not sure I follow what you mean. Script editor uses the left 
alignment and block indentation automatically. If you refer to the 
new lines you type, close and reopen the editor.

Robert
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: scale w/ ticks and snap-to

2005-02-27 Thread Éric Chatonet
Hi Richard,
Le 27 févr. 05, à 10:18, Richard Gaskin <[EMAIL PROTECTED]> a 
écrit :

I'd like to have a scale in a range from 1 to 5 with 5 ticks on it, and
with snap-to behavior so this indicator will line up with the ticks.
I made a little mistake in my previous post I think you rectified :-)
startValue must be 1
I take advantage to post a more generic code:
just fix the startValue to 1 and the endValue to the range you desire 
and:

on scrollbarDrag pPos
  set the numberFormat of me to "#"
  set the pageInc of me to the endValue of me / (the endValue of me + 1)
end scrollbarDrag
on mouseUp
  set the numberFormat of me to ".#"
  set the thumbPos of me to round(the thumbPos of me)
end mouseUp
Note that (here with Rev 2.5 and Mac OS X) correct display can't be got 
with some end values as 2, 3, 15 and more than 30.
I figure it's a bug :-(

Regards,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Graphic as buttons and format advice?

2005-02-27 Thread yoy

- Original Message - 
From: "Scott Rossi" <[EMAIL PROTECTED]>
To: "How to use Revolution" 
Sent: Sunday, February 27, 2005 3:19 AM
Subject: Re: Graphic as buttons and format advice?


> Recently, yoy  wrote:
>
> > For a major version overhaul, I am creating LOTS of 3D round buttons,
but
> > creating graphics instead of buttons.
> >
> > The option I can save them as are .24-bit .png, 8-bit .png or .jpg.
> >
> > Which one is best for cross-platform? And which, overall, is the best
> > quality?
> >
> > I have 280 graphics (140 "up button" and 140 "down button" graphics).
>
> Any of the formats you mention can work, even GIF.
>
> There are two ways to create buttons that have a smooth non-rectangular
> appearance: 1) 24 bit PNG with transparency, or 2) any supported graphic
> format with the background color or texture included in the rect of the
> button image.
>
> 1) If the buttons will sit on changing or various color backgrounds, then
24
> bit PNG with transparency is a good way to to go since the edges of the
> buttons will always blend with the background.  Note that it is sometimes
> possible to see a slight color shift in PNG images when sitting against
> non-PNG images, so if absolute color accuracy is important then either
make
> all the images in your stacks PNGs, or use a different image format.
>
> 2) You can use 8 bit PNG, JPEG and GIF formats for your images, with the
> only drawback being that must sacrifice either smooth edges or a truly
round
> "live" area (hit region).  You can create button images that *appear*
round
> but are really rectangular, in that the corners of the image include
> whatever background color/texture is present in your stack.
>
> One other thing to keep in mind: make your buttons as efficiently as
> possible.  If your 140 buttons all have the same dimensional
characteristics
> (beveling, shadow, etc) then you might be able to use a single non-colored
> transparent image for the dimensional appearance of all the buttons, and
> assign each button a varying background color or icon.
>
> There are actually many ways to build non-standard buttons in Rev; it
really
> depends on the application.
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design


Scott,

Thanks for your help.

Actually, I don't know how, but I found your website and saw your beautiful
application designs which prompted me to rethink spicing up my stack.

I thought to contact you about redesigning my stack but I couldn't afford
it. My software is freeware anyway. So I'm going to attempt a go at it
myself, being a little design challenged!

Fancy that!

All the best,

Andy Burns
Media, PA


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Win32 standalone

2005-02-27 Thread MisterX
No I haven't. But I would make a written log of the operations in the
scripts that you output to a log file. This way you can find out which is
the offending command. This beats removing all the scrips until you find the
offending call.

local logfile

on reportlog callinghandling,thelogresult
  if logfile is empty then put getlogfilepath() into logfile
  open file logfile for appending
  write thelogresult to file logfile
  close file logfile
end reportlog

function getlogfilepath
  get the effective filepath of this stack
  set the itemdelimiter to "/"
  delete last item of it
  put "/" & the short name of this stack & ".log" after it
  return it
end getlogfilepath

on whatever
  do something
  reportlog whatever,"did something at" && thetime && "with result" && the
result && etc...
end whatever

cheers
Xavier
--
http://monsieurx.com - just nitrous!

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Roger Amar
> Sent: Sunday, February 27, 2005 10:29
> To: How to use Revolution
> Subject: Win32 standalone
> 
> Hello all,
> 
> I converted a project which is working fine in the IDE, to a 
> Win32 standalone.
> When I attempt to launch it, it hangs with the "Windows 
> exception not handled" error, when the startup handler finishes.
> This project is using the Valentina dll.
> 
> Has anyone met this issue before ?
> 
> Thanks for help,
> 
> Roger
> 
> 
> 
> 
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 2 questions

2005-02-27 Thread Rob Meijer
Hi Mark
At 08:24 27/2/2005, Mark Wieder wrote:
If I understand what you're trying to do here, the following will
create a new card at the end of substack "addressdata":
push card -- called from mainstack
go to last card of stack "addressdata"
create card "whatever"
pop card -- return to mainstack
what a funny way to use push and pop.
In TB this means quite something else.
After te card "whatever" is created, can I
use global variables from the main stack
and can I pop all data from the mainstack
into the various fields on that whateverCard?

RM> You may use a viewer to show a (part of) a page,
RM> where you want to see special data: f.i. one user
RM> wanted to see what product was the most lucrative,
RM> so he opens a viewer, showing a part of a page
RM> where that list was placed:
So your page data is larger than the displayable card screen space?
There's been some discussion on this list lately about this, but
personally I prefer to create a different card for each view, populate
the card with info from the source data card, then display the view
card for the user. The lock screen command is very handy for this:
I can give a viewer each dimension I want and I can
place it everywhere on the screen: a childviewer stays in the window,
a popupviewer has no limitationson the screen.
lock screen
go to card "Cost Analysis"   --why not going directly to card whichProduct
put field "unit cost" of card whichProduct into field "unit cost"  ---what 
card "unit cost" is this, samestack?
put field "widgets" of card whichProduct into field "widgets"
unlock screen
So what has happened now?
I am very sorry,but this goes beyond my imagination.
I am not revolutionary enough yet.
The scripting for a viewer is so easy, because every varaible
used in the script keeps its value when you start writing
the viewer part.
Example: in the script of button "store" of the intakeCard of
the main stack, I put all texts of the fields in a textline.
In the routine I showed in my last posting, I cab use the word
textline again !
But be aware that the viewer is for more than just adding a card:
everything you can do in the main stack, you can do in each stack
on your computer.
Rob
[EMAIL PROTECTED]
www.japrosoft.com
no more spam: Mailwasher Pro
http://www.firetrust.com/products/pro/
and please mention my emailaddress...  
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: scale w/ ticks and snap-to

2005-02-27 Thread Éric Chatonet
Hi Richard,
Le 27 févr. 05, à 10:18, Richard Gaskin <[EMAIL PROTECTED]> a 
écrit :

I'd like to have a scale in a range from 1 to 5 with 5 ticks on it, and
with snap-to behavior so this indicator will line up with the ticks.
Scrollbar's properties:
startValue: 0
endValue: 5
showValue: true
and:
on scrollbarDrag pPos
  set the numberFormat of me to "#"
  set the pageInc of me to "0.8"
end scrollbarDrag
on mouseUp
  set the numberFormat of me to ".###"
  set the thumbPos of me to round(the thumbPos of me mod 10)
end mouseUp
Hope this helps.
Regards,
Eric Chatonet.

So Smart Software
Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Web sitehttp://www.sosmartsoftware.com/
Email   [EMAIL PROTECTED]/
Phone   33 (0)1 43 31 77 62
Mobile  33 (0)6 20 74 50 86

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Win32 standalone

2005-02-27 Thread Roger Amar
Hello all,

I converted a project which is working fine in the IDE, to a Win32
standalone.
When I attempt to launch it, it hangs with the "Windows exception not
handled" error, when the startup handler finishes.
This project is using the Valentina dll.

Has anyone met this issue before ?

Thanks for help,

Roger






___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


R: EuroRev 2005 (provisional)

2005-02-27 Thread carambola
I am  interested in a euro meeting in  Scotland. 
May wuold be great.
Paolo  Mazza  (Italy)




___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


translation ready, more questions

2005-02-27 Thread Rob Meijer
My translation is ready and above all: it works.
Rest some questions:
1. I want to change the size of card 1, but not the size of other cards. 
Not possible?

2. if I reopen a stack after close NOT SAVE, everything is saved. Huh?
3. I put return & a textline after last line of a field.
I delete last  line of that field.
The line is deleted, not the space between the org. text and that last 
line.
How to get the cursor behind the last char of the org. text??

4. is there a way to arrange lines in the scripts with textalignment left
how to make indents right or left in the script
Thanks
Rob
[EMAIL PROTECTED]
www.japrosoft.com
no more spam: Mailwasher Pro
http://www.firetrust.com/products/pro/
and please mention my emailaddress...  
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 2 questions

2005-02-27 Thread Mark Wieder
Rob-

Saturday, February 26, 2005, 9:10:30 PM, you wrote:

RM> But there are handlers you have to execute inside
RM> a module, f.i. (openscript; book=stack, page=card)
RM> In an addressbook each person has his own page and
RM> I have to add a new one:
RM> get page "index" of book "addressdata"
RM> if syserror <> null
RM> open look()to get look;return viewer "look";end
RM> currentpage of look()=last page of book "addressdata"
RM> in look()
RM> send newpage
RM> name of this page="whatever"
RM> blahblahblah
RM> end
RM> close look()

If I understand what you're trying to do here, the following will
create a new card at the end of substack "addressdata":

push card -- called from mainstack
go to last card of stack "addressdata"
create card "whatever"
pop card -- return to mainstack

RM> You may use a viewer to show a (part of) a page,
RM> where you want to see special data: f.i. one user
RM> wanted to see what product was the most lucrative,
RM> so he opens a viewer, showing a part of a page
RM> where that list was placed:

So your page data is larger than the displayable card screen space?
There's been some discussion on this list lately about this, but
personally I prefer to create a different card for each view, populate
the card with info from the source data card, then display the view
card for the user. The lock screen command is very handy for this:

lock screen
go to card "Cost Analysis"
put field "unit cost" of card whichProduct into field "unit cost"
put field "widgets" of card whichProduct into field "widgets"
unlock screen

-- 
-Mark Wieder
 [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Graphic as buttons and format advice?

2005-02-27 Thread Scott Rossi
Recently, yoy  wrote:

> For a major version overhaul, I am creating LOTS of 3D round buttons, but
> creating graphics instead of buttons.
> 
> The option I can save them as are .24-bit .png, 8-bit .png or .jpg.
> 
> Which one is best for cross-platform? And which, overall, is the best
> quality?
> 
> I have 280 graphics (140 "up button" and 140 "down button" graphics).

Any of the formats you mention can work, even GIF.

There are two ways to create buttons that have a smooth non-rectangular
appearance: 1) 24 bit PNG with transparency, or 2) any supported graphic
format with the background color or texture included in the rect of the
button image.

1) If the buttons will sit on changing or various color backgrounds, then 24
bit PNG with transparency is a good way to to go since the edges of the
buttons will always blend with the background.  Note that it is sometimes
possible to see a slight color shift in PNG images when sitting against
non-PNG images, so if absolute color accuracy is important then either make
all the images in your stacks PNGs, or use a different image format.

2) You can use 8 bit PNG, JPEG and GIF formats for your images, with the
only drawback being that must sacrifice either smooth edges or a truly round
"live" area (hit region).  You can create button images that *appear* round
but are really rectangular, in that the corners of the image include
whatever background color/texture is present in your stack.

One other thing to keep in mind: make your buttons as efficiently as
possible.  If your 140 buttons all have the same dimensional characteristics
(beveling, shadow, etc) then you might be able to use a single non-colored
transparent image for the dimensional appearance of all the buttons, and
assign each button a varying background color or icon.

There are actually many ways to build non-standard buttons in Rev; it really
depends on the application.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution