Re: blendlevel of stack/window

2007-12-18 Thread André.Bisseret

Hi Peter,
In my doc (dictionnary), I read :



Le 7 déc. 07 à 23:46, Peter Brigham a écrit :

I'm experimenting with blendlevels, with some success, but it's  
trial and error, like everything. The docs say that a blendlevel of  
0 is transparent, 100 is opaque,


Here, in the docs of Rev 2.8.1 (Enterprise) it is :

Value:
The blendLevel of an object is an integer between zero and 100.
By default, the blendLevel property of newly created objects is set  
to 0.


Comments:
If an object's blendLevel is zero, the object is fully opaque. If the  
blendLevel is 100, the object is fully transparent. Values between  
zero and 100 indicate levels of partial translucency.


and this is true for images and other objects (nifty effects!), but  
for stacks it's the opposite -- when I set the blendlevel of a  
stack to 100 it's transparent, and 0 is opaque. I'm fading a splash  
stack into view with a repeat loop in an openstack handler on card  
1, and I have to go back down from 100 rather than up from 0 as I  
expected for a fade-in. This seems like a bug, no? Mac iBook G4,  
OSX 10.4.1, Studio 2.8.1 build 471.



The following handler (in the script of the splash stack)  works here :

ON openStack
  set the blendlevel of stack "SpashStack" to "0"
  show stack "SpashStack"
  wait 2 sec
  REPEAT while the blendlevel of stack "SpashStack" < 100
set the blendlevel of stack "SpashStack" to (the blendlevel of  
stack "SpashStack" + 1)

wait FOR 1 ticks
  END repeat
 open stack "mainStack"
END openStack

Best regards from Grenoble
André
___
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 vScroll movement of a field scrollbar

2007-12-11 Thread André.Bisseret

Hello,
Could be I am wrong (I don’t know what’s your aim with your buttons),  
but one solution could be to replace your buttons with images and use  
the imageSource of characters:


- choose (if possible) a character that is impossible to appear in  
your field (e.g., $, €, £, %, …).

- set the textStyle of this character to link
- past an image in your stack and
- set the imageSource of the char to the ID number of this image.

If the field has its lockText property set to true, then the image is  
clickable.


Then, in the field script, you can have a handler of the following  
type :

ON mouseUp
IF the textstyle of the clicktext is « link » THEN
- - the handler of your current button
END IF
END mouseUp

Just an idea, don’t know if that could help

Best regards from Grenoble
André


Le 11 déc. 07 à 00:05, James Hurley a écrit :


I have a field with button superimposed on the text.

I would like the buttons to scroll with the field.

I set the field script to:

local tStart

on mouseDown
   put the vScroll of me into tStart
end mouseDown


on scrollbarDrag newValue
  put tStart & comma &  newValue into msg box
end scrollbarDrag

The idea was to get the vertical movement of the scrollbar and move  
the buttons accordingly.


But the field's scrollbar does not appear to get the  mouseDown  
message and so I don't get the  tStart variable


How do I get the initial position  of the scrollbar?

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

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




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


Re: how to use revMail with texts including accents (ex : in French)

2007-10-19 Thread André.Bisseret

Andre,
Thank you very much for this very quick and efficient answer

All is running well now ! (Ouf !)

Thanks to you, I am going to sleep like a baby ;-)))

Best regards
André (with an acute accent ;-


Le 19 oct. 07 à 23:17, Andre Garzia a écrit :


Bon soir André,

the UTF8 part needs to be quoted, that parameter is a string.

it should be:

put unidecode(the unicodeText of fld "tBody","UTF8") into tBody

cheers
andre

On 10/19/07, André.Bisseret <[EMAIL PROTECTED]> wrote:

Hi !
Mac OS X 10.4.10 ; Rev 2.8.1.

For several hours now, I have been trying to use
" revMail address,ccAddress,mailSubject,messageBody"
to allow the user to send a mail from Rev gathering data from fields.

I learned from a post on this list from Klaus Major (answering a
question about umlaut) that I should use :

put unidecode(the unicodeText of fld "tBody",UTF8) into tBody

So I use that (a bit like a magic I must confess !)
For a while I got an error from GLX2 when compiling ; (magic again
(for me), I declared "UTF8" as a global and then it compile without
any error message

Well, that  works but only when I have not any accent (acute, grave,
circumflex, umlaut etc.) or quote ... in my texts.
  As soon as, at least, one accent, (or quote...)  is in the fields
that are used to complete  the "Subject" or the "Body" of the
message, I get an empty message (only the mail address).

Any idea on what I am missing ? (some setting in Rev, or Mac, ??)

Thanks a lot in advance

Best regards from Grenoble
André



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

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


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

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





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


how to use revMail with texts including accents (ex : in French)

2007-10-19 Thread André.Bisseret

Hi !
Mac OS X 10.4.10 ; Rev 2.8.1.

For several hours now, I have been trying to use
" revMail address,ccAddress,mailSubject,messageBody"
to allow the user to send a mail from Rev gathering data from fields.

I learned from a post on this list from Klaus Major (answering a  
question about umlaut) that I should use :


put unidecode(the unicodeText of fld "tBody",UTF8) into tBody

So I use that (a bit like a magic I must confess !)
For a while I got an error from GLX2 when compiling ; (magic again  
(for me), I declared "UTF8" as a global and then it compile without  
any error message


Well, that  works but only when I have not any accent (acute, grave,  
circumflex, umlaut etc.) or quote ... in my texts.
 As soon as, at least, one accent, (or quote...)  is in the fields  
that are used to complete  the "Subject" or the "Body" of the  
message, I get an empty message (only the mail address).


Any idea on what I am missing ? (some setting in Rev, or Mac, ??)

Thanks a lot in advance

Best regards from Grenoble
André



___
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: Splash Screen Launcher

2007-10-10 Thread André.Bisseret


Le 10 oct. 07 à 00:12, John Tregea a écrit :


Hi Guys,
To the suggested script

on startUp
go stack "thatOtherStack"
set the visible of me to FALSE
end startUp

Maybe it would be worth adding

on startUp
wait 2 seconds -- so users can admire my beautiful splash screen
go stack "thatOtherStack"
set the visible of me to FALSE
end startUp


: )


Hi,
And you might want to have your" splash stack" vanishing smoothly ;
So, you could wirte something like :

set the blendLevel of stack "splash stack" to "0"
  show stack "splash stack"
  wait 2 sec
  repeat while the blendlevel of stack "manoaciel" < 100
set the blendlevel of stack "manoaciel" to (the blendlevel of  
stack "manoaciel" + 1)

wait for 1 ticks
  end repeat
 go to stack "thatOtherStack"


Best regards from Grenoble
André


___
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: Why isn't this a date?

2007-09-25 Thread André.Bisseret


Le 25 sept. 07 à 15:13, Mikey a écrit :


All,
I just did the following:
fire up RunRev
Open the message box
switch to multi-line

set the useSystemDate to false
put "04/25/68" into someDate
put someDate is a date

The result is false

I have also tried making someDate a global, just for the hell of it.
___


Hi,
Here I get "true" (Mac OS X 10.4.10 ; Rev 2.8.1

Best regards from Grenoble
André
___
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: rawKeyDown and key codes

2007-09-24 Thread André.Bisseret

Hi Paul,
Here (Mac 10.4.10 ; Rev 2.8.1)  the script from Ken is working well :  
for example, when typing the comma I get 44 (in the message box)


Best regards from Grenoble
André


Le 23 sept. 07 à 23:52, Paul Gabel a écrit :


Hi Ken:

Thanks for your suggestion, but unfortunately it doesn't work. When  
I type anything in the field, nothing shows up. Any other thoughts?


Paul Gabel
---
On Sep 23, 2007, at 2:08 PM, Ken Ray wrote:


On Sun, 23 Sep 2007 13:15:21 -0700, Paul Gabel wrote:


Hello everybody:

In the Docs under rawKeyDown I find this sample script ...

  on rawKeyDown theKeyNumber
if theKeyNumber is 65308 then increaseScroll -- mouse wheel down
else if theKeyNumber is 65309 then decreaseScroll -- mouse  
wheel up

else pass rawKeyDown -- don't forget this!
  end rawKeyDown

... but I can't figure out how to get theKeyNumber in the first
place. I know it's just a rawKeyDown parameter here, but how  
would I,

for example, determine "theKeyNumber" for a comma so that I can trap
for it? Is there a list some place? Thanks.


You can always create a dummy field with  the script:

on rawKeyDown pKey
  put pKey
end rawKeyDown

Then type the comma in the field and you'll get your result.


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

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


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

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




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


Re: How to copy-paste text from one field to another, changing Font and Size

2007-08-24 Thread André.Bisseret

Guten tag Klaus, Bonjour Éric,
Thanks a lot to both of you ;  my problem is solved :-))
The two solutions are working nicely.

Merci, Denke

André


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


How to copy-paste text from one field to another, changing Font and Size

2007-08-24 Thread André.Bisseret

I have a stack 1, including a field (field1) with lines of text.
The textFont of this field is « verdana »
The textSize of this field is « 10 »

and a stack 2 including an empty field (field2)
The textFont of this field is « Times »
The textSize of this field is « 12 »

I want to copy such line of field 1 in order to paste it in field 2

If I proceed manually (using the Edit menu or ctrl C and ctrl V) all  
is running as expected :
the copied line of field 1 (in Verdana 10) is paste in Times 12 in  
field 2.


But  when scripting, if, in stack 1, I
-   put such line of field 1 in lVar
-   set the clipBoardData[« text »] to lVar
-   go to stack 2
-click a button whose mouseUp’ script is « paste »

then, the text is pasted in Verdana (it keeps the font of field 1) :-((
and more surprising, the textSize is 12 (the textSize expected, those  
of field 2).


What am I doing wrong ?

By the way, is it possible to change Font, size, style etc. of text  
in the clipBoard ?


Thanks a lot for any help

Best regards from Grenoble
André
 
___

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 when filling first line of a field with a text variable

2007-07-10 Thread André.Bisseret

Thanks Jim,
Okaay ! I better understand now
Something I did not know (among a lot of things).
I thought I had made a "revolutionary" discovery  ;-)))

André


Le 10 juil. 07 à 19:25, Jim Ault a écrit :



On 7/10/07 8:22 AM, "André.Bisseret" <[EMAIL PROTECTED]> wrote:

Nevertheless, I did not waste my time completely : when searching my
error, I tried by chance to put my var in line 0 of the field and I
discovered that actually, a field has a line 0 
In fact,  it seems to be quasi synonymous of line 1


--The use of  
line 0 of fld "textLines"

--is the same as
before line 1 of fld "textLines"
--or  
before fld "textLines"


thus

put "preamble" into line 0 of fld "textLines"
put cr into line 0 of fld "textLines"
put "this is a separate line now" before fld "textLines"
put "NOTE:" before line 1 of fld "textLines"

Jim Ault
Las Vegas


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

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





___
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 when filling first line of a field with a text variable

2007-07-10 Thread André.Bisseret

Malte, Éric,  Jim, and Ralf,

I found my mistake (too diffiicult to explain and not interesting ;   
by and large, I was simpy writing twice the same text into line 1,  
and as I emptied the var meanwhile, line 1 was empty while line 2, 3  
etc. were remaining)

I am feeling ridiculous :-((

I am ashamed and I apologize for the disturbance

Nevertheless, I did not waste my time completely : when searching my  
error, I tried by chance to put my var in line 0 of the field and I  
discovered that actually, a field has a line 0 

In fact,  it seems to be quasi synonymous of line 1
-
put "Hi" into line 0 of fld "trial"
put "Hello" into line 1 of fld "trial"
--
--> the field  "trial" contains Hello (Hello replaces Hi)

but
--
put "Hi" into line 1 of fld "trial"
put "Hello" into line 0 of fld "trial"
--
--> the field  "trial" contains HelloHi (Hello is put before Hi)

"Comme c'est étrange" ;-)) (strange isn'it)

Anyway, thanks to you all for your answers

Best regards from Grenoble
André
___
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 when filling first line of a field with a text variable

2007-07-10 Thread André.Bisseret

Ken,
Actually it was a dummy mistake I made as I explain in my precedent  
post (I was rewriting twice the same thing in line 1).
I did not see it for a long time as I was too much polarized on other  
trails !


I am very sorry, please excuse me.

Thanks a lot for you answer

Best regards from Grenoble, where it is very cold; fall in advance :-(

André



Le 10 juil. 07 à 17:11, Ken Ray a écrit :


On Tue, 10 Jul 2007 14:05:41 +0200, "André.Bisseret" wrote:


and I know that it goes there ; the fleld of stack "stackTwo" is

actually filled, but infortunately without line 1 of the text I put
in the variable.


Do you have a field of the same name on the stack you're starting  
from?
If so, is it possible that this is "old data" left over in the  
field on
StackTwo and that what's really happening is that it's putting the  
data

into the StackOne's field and not touching StackTwo?

If you're answer is "no", does it work if you are explicit:

  put thisText into line 1 of fld "thisField" of stack vStackTwo

And if you get the same result, is it possible that it's something
simple like the first line of text is scrolled out of sight?  
Believe it

or not, you can set the scroll of a non-scrolling field and it will
move the text as if it had a scrollbar. In that instance, you wouldn't
be able to see what was scrolled out of sight, nor would you know it
had done so. So I'd recommend manually going to stack vStackTwo, and
setting the vScroll of the field you're putting the text into to 0.

And if *that* doesn't work... after you run your code, use the message
box to "put" the contents of the field that's on vStackTwo into the
message box and compare to see if what you're seeing in the field on
the card is the same as that put into the message box.


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

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





___
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 when filling first line of a field with a text variable

2007-07-10 Thread André.Bisseret

Thanks to Malte, Éric and Jim for their answers.

To Malte :

does

put thisText into line 1 of fld “thisField” of stack "stackTwo"

work instead of going there?


No, this works not better.

To Éric and Jim :
Sorry, my message was not enough precise : In my script, actually, I  
have the correct syntax :  go to stack "stackTwo"
More precisely, the name "stackTwo" is in a variable (say vstackTwo),  
so that I write : go to stack vStackTwo


and I know that it goes there ; the fleld of stack "stackTwo" is  
actually filled, but infortunately without line 1 of the text I put  
in the variable.


My feeling is that I have made this a lot of times without any  
problem, so I am completely lost facing such an issue.
I am sure I am on the right stack when I ask to put the variable in  
the field
I am sure the complete text is in the variable theText as I test it  
just before with "put thisText" that returns the complete text in the  
message box


But anyway, the field is filled by the text without its first line !

If I do exactly the same thing (in the same stack, the same field  
etc.) via the message box, it works normally !


I am loosing hope (first time I encounter such an enigma)

Best regards from Grenoble
André

Le 10 juil. 07 à 12:15, Eric Chatonet a écrit :


Bonjour André,

I tried the following:

on mouseUp
  local ThisText
  -
  put "a,b,c" into ThisText
  replace comma with cr in ThisText
Well, the lineDel is already cr in the text I am putting in my  
variable thisText

  go to stack "StackTwo"
  put ThisText into line 1 of fld "ThisField"
end mouseUp

And it worked as expected.
The only thing I notice in your script is that you write:
go to StackTwo
And that's not correct syntax :-)

As for that, my post was not correct, not my script ; I apologise


Le 10 juil. 07 à 11:56, André.Bisseret a écrit :


Hi,
After hours of unsuccessfull trials to understand where I am  
making a mistake I make up my mind to ask for help


If I summarize my script :
I have two stacks : stackOne and stackTwo
In the script of a button in stackOne

I put a text of several lines in a variable, say, thisText

then the script continues with :

go to stackTwo --where I have a field “thisField”
put thisText -- to confirm the text is in the variable
put thisText into line 1 of fld “thisField”

Invariably, I get the full text thisText in the message box – as  
expected
but, in fld “thisField” , unexpectedly, the first line of thisText  
is not written in the fld thisField ; the first line of thisField  
is empty,

only the following lines (2, 3 etc.) are visible

After a lot of hypotheses and checkings I am out of ideas

Please, any assumption on what am I missing ?
Thanks a lot in advance

Best regards from Grenoble
André


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



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

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





___
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


Problem when filling first line of a field with a text variable

2007-07-10 Thread André.Bisseret

Hi,
After hours of unsuccessfull trials to understand where I am making a  
mistake I make up my mind to ask for help


If I summarize my script :
I have two stacks : stackOne and stackTwo
In the script of a button in stackOne

I put a text of several lines in a variable, say, thisText

then the script continues with :

go to stackTwo --where I have a field “thisField”
put thisText -- to confirm the text is in the variable
put thisText into line 1 of fld “thisField”

Invariably, I get the full text thisText in the message box – as  
expected
but, in fld “thisField” , unexpectedly, the first line of thisText is  
not written in the fld thisField ; the first line of thisField is empty,

only the following lines (2, 3 etc.) are visible

After a lot of hypotheses and checkings I am out of ideas

Please, any assumption on what am I missing ?
Thanks a lot in advance

Best regards from Grenoble
André
___
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: "share text" behavior of a pop-Up menu included in a background

2007-06-15 Thread André.Bisseret

Bonjour Éric,
Merci, for your answer and this nice idea ; I must confess that I am  
very naive about using custom properties.

So I never think to use them !
I like your solution.
Nevertheless, as I have several such pop-Up button in the background  
of the cards, I think it is as simple for me (could be I am wrong)   
to keep  the solution I adopted : a field into which I put theItem of  
the button.
On the left of each of my pop-Up buttons, I had a label-field  
indicating what it was about (the title).
Now, the pop-Up button (with showName set to true) replaces the label  
field and I put theItem of the button in a field at its right side.


Thanks again (I should decide to adopt custom properties ;-)

Best regards from Grenoble (terribly rainy this morning but nicely  
sunny this afternoon)


André


Le 15 juin 07 à 10:30, Eric Chatonet a écrit :


Bonjour André,

Le 15 juin 07 à 10:24, André.Bisseret a écrit :

In my case, I dont think that solves the problem : I think I did  
not explain it well

The text of my pop-Up button is
Monsieur
Madame
Mademoiselle
in order to put the right one of these 3 items before the Name and  
ForeName on each card (each card represents a different person).
So it is the same set of items on each card, but the item should  
differ on each card.
Currently, my problem is that using the pop-Up button (included in  
the background), if I select "Monsieur" on the first card, all the  
following cards are set to "Monsieur" :-((


You could store the menuHistory of the option button in a custom  
property and set it at preOpencard:


on menuPick -- menu button
  set the uTitle of this cd to the menuHistory of me
end menuPick

on preOpenCard -- in stack's script
  if the uTitle of this cd is an integer then set the menuHistory  
of btn "Title" to the uTitle of this cd

end preOpenCard

Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



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

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





___
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: "share text" behavior of a pop-Up menu included in a background

2007-06-15 Thread André.Bisseret

Hi David,
Thank you very much for your answer.
In my case, I dont think that solves the problem : I think I did not  
explain it well

The text of my pop-Up button is
Monsieur
Madame
Mademoiselle
in order to put the right one of these 3 items before the Name and  
ForeName on each card (each card represents a different person).
So it is the same set of items on each card, but the item should  
differ on each card.
Currently, my problem is that using the pop-Up button (included in  
the background), if I select "Monsieur" on the first card, all the  
following cards are set to "Monsieur" :-((


To get rid of that, I am going to create a special field (with  
sharedText set to false) where I will "put the selected item from the  
pop-Up button.


Best regards from Grenoble
André

Le 14 juin 07 à 13:30, David Bovill a écrit :

Yes - there is but you have to include a very simple script in the  
popup
menu to dynamically create the menu. Mac people call them context  
menus:


on mouseDown
 put the text of fld 1 into menuText# I prefer to use custom  
properties

of the card
 set the text of me to menuText
 pass mouseDown
end mouseDown

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

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




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


"share text" behavior of a pop-Up menu included in a background

2007-06-14 Thread André.Bisseret

Hi,
In a stack, I have a group (with background behavior set to true)  
including a pop-up menu button.
Contrarily to what I thought (probably it’s the first time I am  
including a pop-Up menu in a background), I just discovered that the  
behavior of such a button is similar to those of a « ‘share text  
field ».
If I set the label of the button to such Item on one card, this same  
label is displayed on all cards with the background.


I suppose I have to use a field (with don’t share text) instead,  
unless there is a mean to get a « non Share Label pop-Up menu" in a  
background ??


Thanks a lot in advance for any comment, idea, solution

Best regards from Grenoble
André
___
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: shift from one stack to another visible despite lock Screen

2007-06-10 Thread André.Bisseret


Le 10 juin 07 à 14:54, Björnke von Gierke a écrit :

You say that the mainstack appears, but not in what circumstances.  
Is it on startup of an application, or on openstack? Maybe it's  
just when you press a button on a third, unmentioned stack?
Also, do you create the "name forename" stack, or do you just  
rename it or setting of the label?


Said that, here are some general hints:
For stacks not to show up, it's always best to have them hidden  
(set the visible of stack x to false), then saved. that way the  
stack never shows up on screen.
If you need to show the stack, but do not want to show it while a  
handler runs in another stack, lock screen will not be very useful.  
Lock screen most often only affects the current stack.
Also of note is that style and mode changes sometimes make stacks  
flicker.


have fun
Björnke



Thank you very much, Bjömke, for your answer ; I learned from it that  
lock screen only affects the current stack :-)


Anyway, I found my error ; I had kept a handler that overtook another  
one !!! I have just suppress it and all is OK now.

Sorry for disturbance, and thanks again

all the best
André



___
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


shift from one stack to another visible despite lock Screen

2007-06-10 Thread André.Bisseret

Hi,
I have a main stack from which I can create a new stack (not a  
substack).
I created a modal styled stack where the user can enter a name and a  
forename in two fields.

so that the name of the new stack could be  set to « name forename ».
The main part of the handlers is in the script of a button on the  
modal stack..


Well, when this new stack has been created it should be on top of the  
screen.
In several places in the handlers (specially at the end), I put « go  
to stack « name forename » AND in several places also « lock screen »  
bu anyway, the main stack is always appearing (for a short while  
indeed, but visibly) before, finally, the new stack be visible on top..


For about two hours now I made a lot of trials and I searched the  
doc  without any success.


What am I missing or doing wrong ?

Thanks a lot in advance for any advice or idea

Best regards from Grenoble
André
___
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: Moving an Object into a Group

2007-06-08 Thread André.Bisseret

Hi Gregory,
That works here on MacPro Intel, 10.4.9 and Rev 2.8.1

Best regards from Grenoble
André

Le 8 juin 07 à 21:58, Gregory Lypny a écrit :


Hello everyone,

This is an old problem that I'm surprised to find in 2.8.1.  I  
create a field outside of a group.  Later I decide that I want that  
field to be part of the group, but when I cut or copy the field and  
then edit the group, pasting does nothing.  How can I move an  
existing object into a group?


Regards,

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

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




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


Re: [ANN] StackRunner 1.7 Released

2007-06-02 Thread André.Bisseret

Thanks a lot Ken,
This release of StackRunner solves the problem I encountered with  
Revolution Player, when using  "command ..." instead of "on ...").


Best regards from Grenoble
André

Le 2 juin 07 à 01:04, Ken Ray a écrit :


Just a quick note to let you all know that StackRunner 1.7 has been
released based on the 2.8.1 engine and includes the revBrowser and
revFont externals in the package. For more info or to download, go to:


http://www.sonsothunder.com/devres/revolution/downloads/ 
StackRunner.htm


Enjoy!


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

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

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




___
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


(info) "command" instead of "on" doesn't work yet on Revolution Player

2007-06-01 Thread André.Bisseret

Hello,

I am beginning to use "command suchName" instead of "on suchName".
I used this new form in a small stack I am developping ; all worked  
well in Rev but not in Revolution Player.


After a while, I only replaced "command" by "on" and all is OK now.

This post just to inform those who could be in my case : Revolution  
Player does not accept "command" yet.


Hoping this might help,

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


Re: Is it possible to clone a stack and the user does not see anything ?

2007-05-31 Thread André.Bisseret

Bonjour Éric et merci ;
This version is working nicely :-))

André


Le 31 mai 07 à 13:59, Eric Chatonet a écrit :


Re,

Here is a simpler version of Sarah method that might help you:
In the card/stack script of the template stack, just insert:

on preopenStack
  if "copy" is in the short name of this stack then
go invisible to this stack
  else

  end if
end preopenStack

Hope this helps.




___
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


Is it possible to clone a stack and the user does not see anything ?

2007-05-31 Thread André.Bisseret

Hi,
In a handler I am cloning a stack, say, « substackModel »
Something like :
--
lock screen
clone stack "subStackModel"
  close stack "copy of subStackModel" -- to minimize the time it is  
visible

  set the name of stack "copy of subStackModel" to suchName
  set the mainStack of stack suchName to «thisMainStack »
  etc ...
---
Despites the « lock screen » and the second line which close the new  
stack as soon as it has been created, the new created stack appears  
for a while.


Is it possible to do that invisibly  ?

Any advice ?
Thanks a lot in advance

Best regards from Grenoble (surrounded by white moutains for two days  
now !! :-)))

André
___
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: Are any possible commands on data in a field also possible in a variable ?

2007-05-18 Thread André.Bisseret
Ok, thanks a lot Éric for this  good practice advices that I was not  
applying enough up to now. I think it is the first time I have a  
handler that takes so much time (several seconds !)



Cordiales salutations de Grenoble

André

Le 18 mai 07 à 16:53, Eric Chatonet a écrit :


Hi André,

BTW working with variables is much faster because, mainly, the  
screen is refreshed only once :-)


As for this point, what about an invisible field (getting visible  
only when all is done) ? does this remain slower than with a  
variable ?


Good practice could be:

1. If you can, always use variables:

local tData
-
put field "Data" into tData
< data processing>
put tData into field "Data"

2. If using variables does not appear possible, always think of  
locking and unlocking the screen appropriately:


lock screen
  repeat 100
 CreateNewField -- custom handler
  end repeat
unlock screen

Best regards from Paris,
Eric Chatonet.

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



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

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





___
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: Are any possible commands on data in a field also possible in a variable ?

2007-05-18 Thread André.Bisseret


Le 18 mai 07 à 16:18, Eric Chatonet a écrit :


Bonjour André,

Le 18 mai 07 à 15:59, André.Bisseret a écrit :



My question is : are there commands that work on data in a field  
but not on data in a variable ? Specifically, does « find » works  
in a variable as well as in a field ?

Am I missing something evident ?

Thanks a lot in advance

Best regards from Grenoble
André


In variables, Put will work as you expect it but Find will not:
Use instead, combined with wholeMatches and caseSensitive if  
needed, itemOffset and/or lineOffset:


'find such item in table2' will become something like 'put value> into item itemOffset(< such item>,) of  var>'
When all calculation will be done, just 'put  into fld  
"Table2"


Bonjour Éric et merci beaucoup for your quick answer :-)
I am going to apply your advice.

BTW working with variables is much faster because, mainly, the  
screen is refreshed only once :-)


As for this point, what about an invisible field (getting visible  
only when all is done) ? does this remain slower than with a variable ?


Bonne soirée
André
___
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


Are any possible commands on data in a field also possible in a variable ?

2007-05-18 Thread André.Bisseret

Hi,
I have a handler that transforms a table1 (that is placed in a  
variable) in another one, say table2 (that has to be placed in a field)


My aim is to convey the data of table1 into table2,  but displayed in  
another order.


The handler that transforms table1 into table2 involves (mainly)  2  
types of commands :
- a number of « put such item of such line of table1 into such item  
of such line of table2

- and, a « find such item in table2 »
(all that in several repeat loops).

My handler works well when I use a field as a container for table2  
when conveying data from table1 to table2. But it is quite time  
consuming.
So, in order to gain millisecs (in fact seconds !), I tried to work  
with a variable as a container in which to install the data coming  
from table1 before to, at the end, put this variable into the field  
(that should be the final product of the handler).


In my handler, I only replace « fld « thisfld » with a variable «  
thisVar » ; nothing else.

But when I do so, my handler does not works properly.

I hope I am not too unclear ! ?

My question is : are there commands that work on data in a field but  
not on data in a variable ? Specifically, does « find » works in a  
variable as well as in a field ?

Am I missing something evident ?

Thanks a lot in advance

Best regards from Grenoble
André 
___

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: Making OS-Specific Standalones

2007-05-09 Thread André.Bisseret

Hi,
You might look at the "May 2007 Archives by subject" :
the subject :  "How to tell Type of CPU?"

Hope that help

Best regard from Grenoble
André



Le 10 mai 07 à 02:28, Bridger Maxwell a écrit :


Hey,
 Is there any way to have the Windows standalone saved differently  
from the

OS X standalone?  I would like the Windows standalone to have custom
properties containing the externals to be unpacked, but because OS  
X uses
bundles this is not an issue and I don't want these custom  
properties to be
saved as part of the OS X standalone (no need to use extra  
memory).  I know
I could just build for Windows, clear the externals, and build it  
again for

OS X, but is there an easier way so I don't get mixed up?

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

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




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


Re: fields disappearing when grabing them

2007-05-09 Thread André.Bisseret


Le 9 mai 07 à 21:57, Klaus Major a écrit :


Hi André,


Quick guess:
Are these fields part of a group,

YES they are grouped

that group is "lockloc"ked

NO the loc of the group is not locked

and the group is smaller (height/width)
than the stack/card?

YES the group is smaller that the stack/card


Well, in that case Devin's hint may be your solution:
Make the group the same dimensions as the card (if applicable).

I thanks you for your attention and your quick answer


A votre service monsieur :-)



That's the solution, indeed,

Viele Dank, 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: fields disappearing when grabing them

2007-05-09 Thread André.Bisseret





Quick guess:
Are these fields part of a group, that group is "lockloc"ked and  
the group is smaller (height/width)


I'd bet this is the problem, except the situation is worse than  
that. In my experience, when you're dragging objects in a group,  
the dragged object goes out of sight when you drag outside of the  
group's boundaries, *even if its lockLoc is false*. The only  
workaround I've found is to make the group the size of the card and  
set its lockLoc to true. I don't know if this behavior is a bug or  
a feature.


Devin
OK ! fine, that's working : I increased the size of the group as much  
as I needed (I dont need all the card size)
and set its lockLoc to true, (that''s what I did not think to do when  
I tried before to increase the size of the group : I thought that a  
group was taking the size of the bigger object in it, but it is not  
the case).




Thanks a lot Devin (and again to Klaus)

André





Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




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


Re: fields disappearing when grabing them

2007-05-09 Thread André.Bisseret


Le 9 mai 07 à 21:23, Klaus Major a écrit :


Bon soir André,


Hi,
In a stack, I have groups of fields so that when one is visible  
the others are invisible.
Each field has its "lockText" and "list behavior" properties set  
to true.
The user can edit the visible field by means of buttons (adding or  
deleting a line).
So, the number of lines (the lenght of lines too), can increase or  
decrease ;
When the content is changing, the size of the field is  
automatically adapted (using formattedHeight and formattedWidth).


Consequently, I would like that the user could change at will the  
position of the field in the card.


So I am trying  to use "if command key is down then grab me" in  
the script of each field.


BUT, MY PROBLEM is that, when grabing it, parts of the field   
disappear (and possibly the entire field) as if it was sliding  
under other (invisible) objects !! that, in fact, do not exist  
there (except the invisible other fields of the group)


For a while, I supposed that this was due to the other fields of  
the group (?), so I set all of them to "transparent" (opaque  
property to false). But that does not work.


What am I doing wrong ? could it be a problem of "group boundary" ??
Is there a solution ?

I hope my explanations are not too unclear !

Thanks a lot in advance for any solution or idea to solve this  
problem


Quick guess:




Are these fields part of a group,

YES they are grouped


that group is "lockloc"ked

NO the loc of the group is not locked

and the group is smaller (height/width)
than the stack/card?

YES the group is smaller that the stack/card

I thanks you for your attention and your quick answer
André





Best regards from Grenoble
André


Regards

Klaus Major
[EMAIL PROTECTED]
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





___
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


fields disappearing when grabing them

2007-05-09 Thread André.Bisseret

Hi,
In a stack, I have groups of fields so that when one is visible the  
others are invisible.
Each field has its "lockText" and "list behavior" properties set to  
true.
The user can edit the visible field by means of buttons (adding or  
deleting a line).
So, the number of lines (the lenght of lines too), can increase or  
decrease ;
When the content is changing, the size of the field is automatically  
adapted (using formattedHeight and formattedWidth).


Consequently, I would like that the user could change at will the  
position of the field in the card.


So I am trying  to use "if command key is down then grab me" in the  
script of each field.


BUT, MY PROBLEM is that, when grabing it, parts of the field   
disappear (and possibly the entire field) as if it was sliding under  
other (invisible) objects !! that, in fact, do not exist there  
(except the invisible other fields of the group)


For a while, I supposed that this was due to the other fields of the  
group (?), so I set all of them to "transparent" (opaque property to  
false). But that does not work.


What am I doing wrong ? could it be a problem of "group boundary" ??
Is there a solution ?

I hope my explanations are not too unclear !

Thanks a lot in advance for any solution or idea to solve this problem

Best regards from Grenoble
André



___
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 write a field on a file keeping the text formatting intact

2007-05-07 Thread André.Bisseret


Le 7 mai 07 à 13:56, Mark Smith a écrit :

Ah, I see. I don't think Rev can export directly to Word format,  
but an alternative might be to export as rich text - use the  
RtfText instead of HtmlText - and then I'm pretty sure that Word  
can read the file with formatting intact.


Best,

Mark


Nice ! " write the RTFText of fld…" solves my problem :-))

I thank you very much Mark, for your effective help

Best regards from Grenoble

André







___
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 write a field on a file keeping the text formatting intact

2007-05-07 Thread André.Bisseret


Le 7 mai 07 à 13:30, Mark Smith a écrit :


André, you need to write the htmlText of the field to the file:



set the defaultFolder to specialFolderPath("desktop") & "/IMPORT"  
-- with file "thisFile.doc" in "IMPORT

open file "ThisFile.doc" for write
write the HTMLText of fld "thisField" to file "suchFile.doc"
close file "suchFile.doc"

Best,

Mark


Thanks Marc for your immediate answer ;
I tried what you are suggesting but I did not obtain the formatted  
text ; I obtained something like the following :


Un jour sur ses longs pieds
Allait je ne sais où
Le héron au long bec
Emmanché d'un long cou

	Il côtoyait une rivière
	L'onde était transparente
	Ainsi qu'au plus beau jour
	Ma commère la carpe
	Y FAISAIT MILLE TOURS
Avec le brochet son compère

What I would like is to obtain the formatted text (not the html  
translation)


Any idea ?

Thanks a lot

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


how to write a field on a file keeping the text formatting intact

2007-05-07 Thread André.Bisseret

Hi,
The following handler put the text of a field in a (Word) file  but  
it does not keep the html format :


 set the defaultFolder to specialFolderPath("desktop") & "/IMPORT"  
-- with file "thisFile.doc" in "IMPORT

open file "ThisFile.doc" for write
  write fld "thisField" to file "suchFile.doc"
  close file "suchFile.doc"

I tried to put the fld in a variable and to set the htmlText of this  
variable to the htmlText of the fld

but I got an error "can't set this property".

Is is a way to write the content of a file on a file (in Word)  
keeping the format intact ?


Thanks a lot in advance for any advice

Best regards from Grenoble
André



___
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 converted stacks

2007-04-09 Thread André.Bisseret

Bonjour Francis,
You might want to read the tutorial of HyperActive that is devoted to  
translating stack from HyperCard to Revolution.

I used it and saved time thank to this tutorial.
The address :
http://www.hyperactivesw.com/mctutorial/rrtutorialtoc.html

Best regards from Grenoble
André

Le 9 avr. 07 à 12:58, Francis Nugent Dixon a écrit :


Hi from Paris,

I will be without Classic on my new iMac G5, so I took the much  
delayed plunge, and in one day, converted my many HC stacks to  
Revolution (2.6.1 Build 152). Things seemed to work quite well,  
although I will have to modify many of my scripts, as I leaned  
heavily on external XCMDs and XFCNs (many thanks to Mr. Rinaldi et  
alia). I will end up rebuilding them all entirely, simply because  
Rev stacks can be so much more "jazzy" to look at. But, until then,  
I want to clean up the scripts a little, so that the stacks execute  
to some degree of efficiency.


However, a few problems are bugging me and I don't know how or why  
they occur. When I open a HC converted stack,  Examples :


1 - When I select a field or button with the pointer tool, the  
"up", "down", "left" and "right" arrows on the keybord don't work  
any more. I can't move my fields/buttons step by step.


2 - I get strange errors flagged, such as "Repeat: error in  
statement" for a script command" "repeat forever", and "Handler:  
error in statement" for a script command "go to card 1". I can find  
NO errors in my scripts.


Can anybody shed any light on either of these problems ? Are there  
any important "Do's" and "Don'ts" for those converting stacks from  
HC ?

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

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




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


Re: how to get a list fleld whithout any hilitedLine (before user chooses one)

2007-03-12 Thread André.Bisseret


Le 11 mars 07 à 23:02, Sarah Reichelt a écrit :


If you set the traversalOn of the field to false, this avoids the
problem Phil mentions. It will also stop the field getting a hilite if
the stack is resumed with no other clickable field available.

Cheers,
Sarah


Nice advice, Sarah ; works well;  thank you very much

Best regards
André
___
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 get a list fleld whithout any hilitedLine (before user chooses one)

2007-03-10 Thread André.Bisseret

Hi Phil,
Among a lot of things, I think I tried "put empty into the  
hilitedLines of fld "theField" which did not work


Now, thanks to you, I show the field first and then I "set the  
hilitedLines of fld "theField" to empty

and it works nicely !
Thanks a lot, Phil, I am far more confortable now :-) and I can run  
forward :-))


all the best
André

Le 10 mars 07 à 19:40, Phil Davis a écrit :


Hi André,

Try something like this:

on showField pFieldName
  lock screen
  show fld pFieldName
  set the hilitedLines of fld pFieldName to empty
  unlock screen
end showField

This might not work because showing the field may give the field  
the focus, and that may trigger the hiliting of a line, thus  
undoing what 'set the hilitedLines...' did. But 'set the  
hilitedLines of fld x to empty' does work.


Phil Davis





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


how to get a list fleld whithout any hilitedLine (before user chooses one)

2007-03-10 Thread André.Bisseret

Hello,
I have fields set to «  list behavior ». They are including phrases  
on different topics (one topic per field).
These fields are hidden but the users can call them (one at a time)  
so that they be able to click on phrases to add them to, say, a  
«composing field».


When these list fields appear, one of the lines is hilited.
I am trying, for at least one hour now, to get rid of that without  
any success: I would like that when such a list field is shown, none  
of its lines be hilited.


What’s the way to do that (if there is one) ?
Thanks a lot in advance for any help

Best regards from Grenoble
André
___
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: Click of field

2007-02-08 Thread André.Bisseret


Le 8 févr. 07 à 14:37, Jeff Honken a écrit :

I have a multiline field that I would like to send a click to the  
first
line of it when it gets the focus.  I'm using "focus on fld "ABC""  
to go
to the field and it highlights that first line but I need it to  
click on

it too.  Does anyone have any idea on how to do this?
___


Hi,
The following seems to work :

find line 1 of fld "champ"
click at the foundLoc
find empty--to stay in this field

I created a new stack with a fied "champ" (list behavior , multiLine)  
including several lines of text.

and a button with a mouseUp handler containing  the preceeding 3 lines.

As a test, I set the textStyle of line 1 of fld "champ" to "link" and  
In the script of the field "champ", I put the following handler:


on linkClicked thetext
  if theText is not empty then beep 3 --put cr & theText after fld  
"essai2"

end linkClicked

Well, I get the beeps :-)

Hope this helps

Best regards from Grenoble
André



___
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: Scroll multiple fields together

2007-01-19 Thread André.Bisseret


Le 19 janv. 07 à 00:18, Sarah Reichelt a écrit :


On 1/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi Everyone,

Is there an easy way to keep multiple scrolling fields in  
alignment when they

are scrolled?



In each field, put a scrollBarDrag handler as follows:

on scrollBarDrag pNewValue
 set the vScroll of fld "OtherField" to pNewValue
 set the vScroll of fld "SomeField" to pNewValue
end scrollbarDrag

pNewValue contains the setting for the scroll of the current field, so
just apply that to all the others.

Cheers,
Sarah
___


Hi,
If you want only one of the fld be controlling the others, you could  
use (in the controlling field script) :


set the vScroll of fld "otherField" to the vScroll of me

Best regards from Grenoble
André ___
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: BUG: importing image files crash rev 2.7.5

2007-01-10 Thread André.Bisseret

Hi,
Here :
Mac OS X 10.4.8 ;  RR 2.7.4
Importing (a PNG) does not crash Rev,  either using the menu or CMD >
On the other hand, copy - paste crashes Rev.

Best regards from Grenoble
André


Le 10 janv. 07 à 03:01, Andre Garzia a écrit :


Folks,

can someone confirm that importing JPEG or PNG image files using CMD 
+> crashes Rev?


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

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



___
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: Table Question

2006-12-21 Thread André.Bisseret
I understand you want to put in  a given cell of a table field (say  
"TheTable") the content of another field (dataFld) ; right ?


Then :
set the itemDelimiter to tab
put fld "dataFld" into item n of line m of fld "theTable" -- a line  
is composed of items, one in each cell.


Best regards from Grenoble
André


Le 21 déc. 06 à 06:12, Charles Szasz a écrit :

I have a table with six rows of three numbers each that are tab- 
delimited. The user can enter data directly into the table. My  
question how do you script to insert numbers that comes from data  
entry in a edit field to replace one of the numbers in a row?



Charles Szasz
[EMAIL PROTECTED]



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

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



___
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: Saving stack changes under Player

2006-12-20 Thread André.Bisseret
Yes, I had this problem with a previous version of Revolution  
Player ; It was necessary to set "secure mode" to false.
But with the last version (2.7.1), it is simpler ;  there is no  
possible setting any more and all is working well.


André



Le 20 déc. 06 à 00:42, Mark Swindell a écrit :


Sarah,
It seemed to work without changing modes.  Thanks for the heads up,  
though. I've saved it in the event something comes up.

Mark


On Dec 19, 2006, at 1:25 PM, Sarah Reichelt wrote:


On 12/20/06, Mark Swindell <[EMAIL PROTECTED]> wrote:

Is it possible to save changes made to stacks when run under the
Player?  If so, what is the mechanism?  At this point I just want
field text changes to be retained between sessions.  But what about
adding cards and such as that?



I seem to remember hearing about some setting that needed to be
changed first, is it "secureMode"? It prevents file access and stack
saving and I think it may be set to true by default in the player.

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

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



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

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



___
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: Saving stack changes under Player

2006-12-19 Thread André.Bisseret


Le 19 déc. 06 à 17:08, Mark Swindell a écrit :

Is it possible to save changes made to stacks when run under the  
Player?  If so, what is the mechanism?  At this point I just want  
field text changes to be retained between sessions.  But what about  
adding cards and such as that?


Thanks
Mark


Yes it is possible, with a handler in the script of the stack

on saveStack
save this stack (or save stack "suchStack"
end saveStack

and a button (where you want) the script of which  could be :
on mouseUp
saveStack
end mouseUp

If you want you could have a handler to allow the user to choose in  
case he is trying to close ;

something like :

on closeStackRequest
  answer "Save this stack ?" with "Yes" or "No" or "Cancel"
if it is "Yes" then saveStack
if it is "No" then
close this stack
exit closeStackRequest
 end if
 if it is "cancel" then exit closeStackRequest
 pass closeStackRequest
end closeStackRequest

Best regards from Grenoble
André


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

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



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


Re: copy group to new stack

2006-12-18 Thread André.Bisseret

Hi Henk,
I looked a bit further at your stack (I did not look at the scripts  
before). I think I understand what you want to do.


I made some trials with one new stack "'stackOne" with one group on  
it : a button "label" and a fld with a phrase in it (named  
groupToBeCopied)

I put in the script of the field the following simple handler :
on mouseUp
create stack "stackTwo"
go to stack "stackTwo" -- not sure that'is necessary
create cd
copy group "groupToBeCopied" of stack "stackOne" to cd 1 of stack  
"stackTwo"

end mouseUp

Seems that it works, but ONLY if  the" share Text"  property of the  
field is set to true


I don't exactly understand why ?? but I can go further right now
Could be a way toward a solution ?

Best regards from Grenoble
André

Le 18 déc. 06 à 19:38, Henk van der Velden a écrit :

I did some further testing to find out what is the simplest way to  
reproduce this behaviour (I sort of consider it to be a bug).

Essentially it comes down to this:

1. there are two stacks, A and B
2. in stack A a command is issued, consisting of:
2a: create a new card in stack B
2b: copy an editable text field from stack A to stack B

It turns out that the text of the editable text field is not copied  
to stack B, only the (empty) field.
If you skip step 2a, both the editable field and its content are  
copied to stack B.


Any opinions on this?

Henk


Hi André,

The stack is a stripped down version of a print function.

I want to print a number of groups from a stack to different pages.
In the stack all these groups are on one and the same card.
So I create an invisible stack, create the number of cards that is
needed and copy the groups to these cards. Now it turns out that the
contents of certain fields are not copied.

It took me some time to find out why that happened.
I think I have pinpointed the problem to this one factor: if I create
a stack, then create new cards in that stack, and then copy fields to
it, the text is not copied (at least the text of editable fields). If
I create a stack, but don't create new cards in that stack, than the
copying works fine.

Henk

> Hi Henk,
> Not sure to understand precisely your problem ; seems to be that  
you
> should group  your fld "fld_conclusion"  and set it to "behave  
like a

> background". So your fid would be there on the second card.
>
> just one first idea
>
> Best regards from Grenoble
> André
>
> Le 18 déc. 06 à 16:09, Henk van der Velden a écrit :
>
> > Good day all,
> >
> > Here is a link to a stack that creates a new stack, creates an
> > extra card in that stack and then copies a group of text fields
> > into that new card.
> > Something strange happens: the contents of an editable field are
> > not copied.
> >
> > As you can see in this stack, all works OK if you don't create an
> > extra card. But as soon as you create one, the copying fails.
> > Can anyone tell me what's going on here?
> >
> > The stack can be downloaded here:
> http://www.iglow-media.nl/xchange/CopyToNewStack.zip
> >
>


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

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




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


Re: Copy group to new stack

2006-12-18 Thread André.Bisseret

Hi Henk,
Not sure to understand precisely your problem ; seems to be that you  
should group  your fld "fld_conclusion"  and set it to "behave like a  
background". So your fid would be there on the second card.


just one first idea

Best regards from Grenoble
André

Le 18 déc. 06 à 16:09, Henk van der Velden a écrit :


Good day all,

Here is a link to a stack that creates a new stack, creates an  
extra card in that stack and then copies a group of text fields  
into that new card.
Something strange happens: the contents of an editable field are  
not copied.


As you can see in this stack, all works OK if you don't create an  
extra card. But as soon as you create one, the copying fails.

Can anyone tell me what's going on here?

The stack can be downloaded here: http://www.iglow-media.nl/xchange/ 
CopyToNewStack.zip


Kind regards,

Henk
--
Henk v.d. Velden
iGlow Media
Magda Janssenslaan 36
3584 GR  UTRECHT
Netherlands

0031 (0)6 16 024 337
www.iglow-media.nl



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

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



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


Re: how to transfer icon from "metaCard comptatible icons" to "this stack"

2006-12-15 Thread André.Bisseret

Yeaah ! very nice :-)
Éric and you make me feel that actually I should spend time exploring  
Rev more systematically !
But, you know,  I tend to learn only when I get problems ! That's why  
this list is really vital for "amateurs" like me !


Thanks a lot Devin

Best regards from Grenoble
André


Le 14 déc. 06 à 20:49, Devin Asay a écrit :


André,

You may also do the following:

Development Menu > Image Library.

Select the Images tab.

Click on the image you want in your stack.

Click the Place Image button.

Devin

On Dec 14, 2006, at 6:34 AM, Eric Chatonet wrote:


Bonjour André,

1. Show UI elements in lists
2. Go to the App browseer
3. Locate the revIcons stack that has a lot of substacks.
4. Copy in your stack the ones you use from revCompatibilityIcons 1

:-)

Le 14 déc. 06 à 14:07, André.Bisseret a écrit :


Hi,
For navigation buttons in a stack I chose icons (arrows etc) in  
the inspector pane  "MetaCard Compatible icons". All is OK with  
Runrev.


But, the icons do not appear when I run the stack with Revolution  
player or StackRunner (and I suppose it would be the same with a  
standalone).


I suppose the solution is to get these icon in the "This stack"  
pane, in order to be able to choose it from there, but I don't  
know how to export  from "MetaCard Compatible icons" pane to  the  
"This stack" pane.


I thougt I just had to use copy and paste, but infortunately it  
seems not possible to select an icon in order to copy it ; the  
pane disappears as soon as I click on any icon (and the icon of  
the btn is set to it).


How could I import icons from the metacard compatible icons (or  
standard icons) in the stack pane ?


I searched the list' archives but I did not find any precise answer

Thanks a lot in advance for a solution

Best regards from Grenoble
André
___
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




Best Regards from Paris,
Eric Chatonet
- 
-

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


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

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



Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

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




___
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 transfer icon from "metaCard comptatible icons" to "this stack"

2006-12-14 Thread André.Bisseret

Bonjour Éric,
Magnifique !
My knowledge of Rev is still too much about the surface layers.
Appears to be a lot of nice ressources deeply  ("sous les pavés, la  
plage")

Thank you very much for your always efficient and effective assistance.

Best regards from Grenoble
André

Le 14 déc. 06 à 14:34, Eric Chatonet a écrit :


Bonjour André,

1. Show UI elements in lists
2. Go to the App browseer
3. Locate the revIcons stack that has a lot of substacks.
4. Copy in your stack the ones you use from revCompatibilityIcons 1

:-)

Le 14 déc. 06 à 14:07, André.Bisseret a écrit :


Hi,
For navigation buttons in a stack I chose icons (arrows etc) in  
the inspector pane  "MetaCard Compatible icons". All is OK with  
Runrev.


But, the icons do not appear when I run the stack with Revolution  
player or StackRunner (and I suppose it would be the same with a  
standalone).


I suppose the solution is to get these icon in the "This stack"  
pane, in order to be able to choose it from there, but I don't  
know how to export  from "MetaCard Compatible icons" pane to  the  
"This stack" pane.


I thougt I just had to use copy and paste, but infortunately it  
seems not possible to select an icon in order to copy it ; the  
pane disappears as soon as I click on any icon (and the icon of  
the btn is set to it).


How could I import icons from the metacard compatible icons (or  
standard icons) in the stack pane ?


I searched the list' archives but I did not find any precise answer

Thanks a lot in advance for a solution

Best regards from Grenoble
André
___
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




Best Regards from Paris,
Eric Chatonet
-- 


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


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

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




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


how to transfer icon from "metaCard comptatible icons" to "this stack"

2006-12-14 Thread André.Bisseret

Hi,
For navigation buttons in a stack I chose icons (arrows etc) in the  
inspector pane  "MetaCard Compatible icons". All is OK with Runrev.


But, the icons do not appear when I run the stack with Revolution  
player or StackRunner (and I suppose it would be the same with a  
standalone).


I suppose the solution is to get these icon in the "This stack" pane,  
in order to be able to choose it from there, but I don't know how to  
export  from "MetaCard Compatible icons" pane to  the "This stack" pane.


I thougt I just had to use copy and paste, but infortunately it seems  
not possible to select an icon in order to copy it ; the pane  
disappears as soon as I click on any icon (and the icon of the btn is  
set to it).


How could I import icons from the metacard compatible icons (or  
standard icons) in the stack pane ?


I searched the list' archives but I did not find any precise answer

Thanks a lot in advance for a solution

Best regards from Grenoble
André
___
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 master one table field' limits

2006-11-27 Thread André.Bisseret


Le 27 nov. 06 à 09:38, Eric Chatonet a écrit :


Bonjour André,

Le 26 nov. 06 à 17:42, André.Bisseret a écrit :

I got another problem with my table fields : I am trying to master  
the table limits in them. I set xLimit (2) and yLimit (10) and  
tried to use the rawKeyDown handler from your tutorial.


Seems it does not work for me : I mean, the conditon is in the target> seems to be not true in my table field ;


Can't happen if there is no cell currently in editing mode.
At the top of your rawKeyDown handler, just add "put the target" to  
check this.



If I state after it, "beep 4" : beep does not occur ;
If I state , nothing appears in  
the message box.


Anyway, you should get true or false in the message box:
Seems that the rawKeyDown message is not sent?
Where is the focus?
Where is your rawKeyDown handler placed ?
Difficult to tell you more without details...


Bonjour Éric,
 The  rawKeyDown handler was in the field'script; now, I put it in  
the card' script and all is working well :-))
I must confess that I don't understand precisely why it does not work  
if it is in the fld'script.

Thanks a lot for your help.

The only issue that is holding with these table fields is that their  
hight and width must be widely larger than it would be necessary  
given the fixed number of columns and rows; otherwise the fixed  
limits are not respected !?!


But this clearly does not  come from scripting ; seems it'is inherent  
to the current ("rough draft") state of the table field!



By the way, what do you mean when you differentiate between "private  
handler" and "public handler", in your tutorial?


Have a nice day
André___
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 master one table field' limits

2006-11-26 Thread André.Bisseret


Le 26 nov. 06 à 17:58, Jim Ault a écrit :


On 11/26/06 8:42 AM, "André.Bisseret" <[EMAIL PROTECTED]> wrote:


Thanks to your function, I get the comma delimited list ;
  but only if I   ; Actually if I , this long name is put into tTable in the function instead
of its content !
Still a problem with "do" :-)) ?
Well, I am keeping the short name and the function works perfectly ;
thanks again.


For calrity:

put FilledLines(the long name of fld "dataDisplay") into tFilledLines
--will pass the *long id* , not the contents

put FilledLines(fld (the long name of fld "dataDisplay")) into  
tFilledLines

--will pass the *contents* of the field

Jim Ault
Las Vegas


So now, I have 3 solutions :-))
Using 
And, using  "the long name of fld "suchField":
Thanks to Éric "put the text of" (in the function)
and thanks to you (fld (the long name of fld "suchField")).
By the way, I am discovering that it is possible to embedded  
parenthesis ; nice :-))


Thanks a lot, JIm

Best regards from Grenoble
André___
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 master one table field' limits

2006-11-26 Thread André.Bisseret


Le 26 nov. 06 à 18:01, Eric Chatonet a écrit :


Bon dimanche André,

Sorry.
Try: put the text of pFld into tTable :-)
I have to apologize: probably I made you wasting your time :-(
I'm really sorry.
To be frank, when things appear easy and I'm busy, I sometimes  
write directly the code in my email without testing it.

I understand that very well :-)

I should not. Lesson drawn :-)


Merci beaucoup Éric pour votre réponse.
Don't apologize ! First, I did not waste time ! Thanks to one of your  
previous replies (with the "do"  solution :-)), I immediately thought  
to the possibility of the long name being put instead of content. So  
I immediately tried  instead of the long name.

And secondly, remember that I am retired ; I am not in a hurry ;-))

Merci beaucoup pour votre gentillesse :-))

With "the long name of ",  works  
perfectly.


As for your question: I'll be frank once more time:
This guy wrote obviously this tutorial many months ago and forgot  
it completely...

He has to dig in to answer you but can't at the moment :-)
Tomorrow probably.

No problem ; again, it is very kind of you

Best regards from Grenoble

André


Best Regards from Paris,
Eric Chatonet

Le 26 nov. 06 à 17:42, André.Bisseret a écrit :



Le 25 nov. 06 à 12:34, Eric Chatonet a écrit :


Bonjour André,

That's normal behavior since when you click in cell 3 of line 4  
without typing anything, line 4 will contain 2 tabs :-)

So use a tiny function:

function FilledLines pFld
  local tTable, tList
  -
  put pFld into tTable
  replace tab with empty into tTable
  repeat with i = 1 to the number of lines of tTable
  if line i of tTable <> empty then put i & comma after tList
  end repeat
  delete char -1 of tList
  return tList
end FilledLines

And:

put FilledLines(the long name of fld "TheTable") into tFilledLines

You'll get a comma delimited list like "1,3,8,9": the number of  
the lines that are not empty as you wished it.
Note that I use the long name of fld "TheTable" as param: it's  
more secure and allows to write directly: put pFld into tTable  
(without using do this time ;-)



Bonsoir Éric,

Thanks to your function, I get the comma delimited list ;
 but only if I  tFilledLines> ; Actually if I fld "TheTable>, this long name is put into tTable in the function  
instead of its content !

Still a problem with "do" :-)) ?
Well, I am keeping the short name and the function works  
perfectly ; thanks again.



I got another problem with my table fields : I am trying to master  
the table limits in them. I set xLimit (2) and yLimit (10) and  
tried to use the rawKeyDown handler from your tutorial.


Seems it does not work for me : I mean, the conditon is in the target> seems to be not true in my table field ;

If I state after it, "beep 4" : beep does not occur ;
If I state , nothing appears in  
the message box.


I suppose I am doing something wrong, or not doing something I  
should do ?


Best regards from Grenoble
André



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


How to master one table field' limits

2006-11-26 Thread André.Bisseret


Le 25 nov. 06 à 12:34, Eric Chatonet a écrit :


Bonjour André,

That's normal behavior since when you click in cell 3 of line 4  
without typing anything, line 4 will contain 2 tabs :-)

So use a tiny function:

function FilledLines pFld
  local tTable, tList
  -
  put pFld into tTable
  replace tab with empty into tTable
  repeat with i = 1 to the number of lines of tTable
  if line i of tTable <> empty then put i & comma after tList
  end repeat
  delete char -1 of tList
  return tList
end FilledLines

And:

put FilledLines(the long name of fld "TheTable") into tFilledLines

You'll get a comma delimited list like "1,3,8,9": the number of the  
lines that are not empty as you wished it.
Note that I use the long name of fld "TheTable" as param: it's more  
secure and allows to write directly: put pFld into tTable (without  
using do this time ;-)



Bonsoir Éric,

Thanks to your function, I get the comma delimited list ;
 but only if I  tFilledLines> ; Actually if I "TheTable>, this long name is put into tTable in the function instead  
of its content !

Still a problem with "do" :-)) ?
Well, I am keeping the short name and the function works perfectly ;  
thanks again.



I got another problem with my table fields : I am trying to master  
the table limits in them. I set xLimit (2) and yLimit (10) and tried  
to use the rawKeyDown handler from your tutorial.


Seems it does not work for me : I mean, the conditon in the target> seems to be not true in my table field ;

If I state after it, "beep 4" : beep does not occur ;
If I state , nothing appears in the  
message box.


I suppose I am doing something wrong, or not doing something I should  
do ?


Best regards from Grenoble
André



Best Regards from Paris,
Eric Chatonet

Le 25 nov. 06 à 12:16, André.Bisseret a écrit :


Hi,
On one card, I have several fields where the users will write  
textual data.

a

For each field, I need to check for each line if it is empty or not.
(I would like that, if a line is not empty then a small check box   
be shown so that the user could check it ; then the checked lines  
would be copied and then pasted elsewhere as a whole. )

One of the fields is a normal field ; all is working well with it.

But another field is a  table field (say, "theTable") with two  
editable columns and 9 editable lines.

Now,
First, I put empty into field theTable
Then, if I write something only in the top-left cell
when I test the lines, I get :
- line 1 not empty as expected;
- lines 2, 3 and 4 are empty as expected;
but, it happens that lines 5, 6,7,8 and 9 are not empty (seems  
they contains  one tab space).


Well, before sending this message, this time I did not forget to  
read again the tutorial from Éric Chatonet on "How to manage table  
fields". Thanks to it,  I used the "clearTable pFieldName" handler  
(instead of only putting empty into the field°

But this does not solve my problem.

Again, if I select some cells in the field (even if I dont write  
anything), lines  are becoming "not empty" (seems it is randomly).  
So that check boxes appear for lines in which there are no text;  
but something anyway :-((
It seems that some lines get "something" in them, not only while  
nothing has been written in them, but even while they have'nt been  
selected.


So the only solution I think about now, is to keep visible all  
check boxes of all lines of the field, even if they dont contain  
any text. But of course, it is not so good from an ergonomic point  
of view.


Is there a way to figure out this issue ?

Thanks for any help

Best regards from Grenoble
André


-- 


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


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

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




___
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: In a table field, cells getting "not empty" while no text in them

2006-11-25 Thread André.Bisseret

Bonjour Éric,


Le 25 nov. 06 à 12:34, Eric Chatonet a écrit :


Bonjour André,

That's normal behavior since when you click in cell 3 of line 4  
without typing anything, line 4 will contain 2 tabs :-)


Ah ! d'accord ! That is  what I was not conscious of ! Now, I  
understand !


And thank you very much for the function; I am going to do what I was  
aiming for.


Always learning a lot thanks to you :-))

Best regards from Grenoble
André



So use a tiny function:

function FilledLines pFld
  local tTable, tList
  -
  put pFld into tTable
  replace tab with empty into tTable
  repeat with i = 1 to the number of lines of tTable
  if line i of tTable <> empty then put i & comma after tList
  end repeat
  delete char -1 of tList
  return tList
end FilledLines

And:

put FilledLines(the long name of fld "TheTable") into tFilledLines

You'll get a comma delimited list like "1,3,8,9": the number of the  
lines that are not empty as you wished it.
Note that I use the long name of fld "TheTable" as param: it's more  
secure and allows to write directly: put pFld into tTable (without  
using do this time ;-)


Best Regards from Paris,
Eric Chatonet

Le 25 nov. 06 à 12:16, André.Bisseret a écrit :


Hi,
On one card, I have several fields where the users will write  
textual data.

a

For each field, I need to check for each line if it is empty or not.
(I would like that, if a line is not empty then a small check box   
be shown so that the user could check it ; then the checked lines  
would be copied and then pasted elsewhere as a whole. )

One of the fields is a normal field ; all is working well with it.

But another field is a  table field (say, "theTable") with two  
editable columns and 9 editable lines.

Now,
First, I put empty into field theTable
Then, if I write something only in the top-left cell
when I test the lines, I get :
- line 1 not empty as expected;
- lines 2, 3 and 4 are empty as expected;
but, it happens that lines 5, 6,7,8 and 9 are not empty (seems  
they contains  one tab space).


Well, before sending this message, this time I did not forget to  
read again the tutorial from Éric Chatonet on "How to manage table  
fields". Thanks to it,  I used the "clearTable pFieldName" handler  
(instead of only putting empty into the field°

But this does not solve my problem.

Again, if I select some cells in the field (even if I dont write  
anything), lines  are becoming "not empty" (seems it is randomly).  
So that check boxes appear for lines in which there are no text;  
but something anyway :-((
It seems that some lines get "something" in them, not only while  
nothing has been written in them, but even while they have'nt been  
selected.


So the only solution I think about now, is to keep visible all  
check boxes of all lines of the field, even if they dont contain  
any text. But of course, it is not so good from an ergonomic point  
of view.


Is there a way to figure out this issue ?

Thanks for any help

Best regards from Grenoble
André


-- 


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


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

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




___
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: location of open drawer

2006-11-25 Thread André.Bisseret
On a card I had a button that (among other things) opened a drawered  
stack (drawer stack "suchStack" at right).
Then I could move the parent stack, the drawer was following as  
expected.
But,  when I close the parent stack, the drawer was closed too ; Now,  
when I open the parent stack again, the drawer was also opened but,  
this time, it was not dependant of the parent stack any more.


So to fix this, now when I close the parent stack, I close the drawer  
too (in the on closeStack handler, in the parent stack script).
Then, when I open the parent stack, it is opened without the drawer.  
My button open it when needed.
If it was necessary as soon as the parent stack is opened, then I  
would «drawer stack « suchStack » in the " open stack" handler of the  
parent stack.


Hope I am not too unclear ;-))

Best regards from Grenoble
André

Le 25 nov. 06 à 02:44, Scott Morrow a écrit :

The rect of a drawered stack doesn't seem to be updated when the  
parent stack is moved.  I can amend my own code in order to  
calculate the rect of an open drawer but I was wondering if anyone  
knew of a cheap method for doing this.


-Scott Morrow

Elementary Software
(Now with 20% less chalk dust !)
web http://elementarysoftware.com/
email   [EMAIL PROTECTED]

-

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

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



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


Re: Is it possible to script the choice of a tab in a tabbed button ?

2006-11-24 Thread André.Bisseret


Le 23 nov. 06 à 21:17, Eric Chatonet a écrit :


Bonjour André,


Bonjour Éric,


You have got right replies yet from John.
But you have to know that a tabbed button is like a menu button.
So you may use: "set the menuHistory of btn  to  



Yes, that's what Shao Sean answered to me ; So I got the two solutions.

About tabbed buttons, The "How to manage tabbed buttons" tutorial  
might help you:
How to manage tabbed buttons with 2 methods: Multiple cards method  
(each tab is a card) and Groups method (show/hide groups based on  
tab selection).
And, by script, how to set the tabs names, how to select a tab, how  
to disable or enable a tab, etc.
I am using regularly your tutorials (Tutorial Picker is in due place  
in my environment) ; they are in the same time very concise and  
accurate.  But yesterday, I don't know why, I did'not think about  
checking there.


This morning I red  your "How to manage tabbed buttons" tutorial, and  
"voyons ! mais c'est bien sûr !" I would not have to ask the list if  
I had read it yesterday ! :-))


Thanks a lot Éric for your reply
have a nice day

André



As you know it :-)  you will access this tutorial through  
"Tutorials Picker" a free plugin that interfaces with the So Smart  
Software website in order to display all available tutorials stacks  
directly from the web.

You will find it by going to http://www.sosmartsoftware.com/.
Revolution/Plugins or Tutorials section.

Best Regards from Paris,
Eric Chatonet

Le 23 nov. 06 à 18:24, André.Bisseret a écrit :


Hi,
On a card, I have a tabbed button with four groups. One of these  
groups only (say, group1)  is a field with share text property  
and  background behavior so that  another card could have this  
share text field on it.
So, when I open this second card, I must be sure that the tabbed  
button is set to group1, otherwise this group1 doesnt appear on  
the second card.


Is there a way to choose a tab in a tabbed button, from a handler  
(not manually) ?


-- 


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


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

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




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


Re: Is it possible to script the choice of a tab in a tabbed button

2006-11-23 Thread André.Bisseret

Thanks a lot Shao and John for replies.
So I got two solutions ; the two are working well if I put them in a  
handler closeCard of the card where the tabbed btn is staying ;
Otherwise, if I put them in a preOpenCard handler in the script of  
the second card, the tab is changed actually, but I get an error ; I  
think that  the engine does not find the  "the grp old" when trying  
to hide it.


Anyway, I am happy now and thanks again to the two of you


Best regards from Grenoble
André

Le 23 nov. 06 à 18:38, Shao Sean a écrit :


Look at the "menuHistory" dictionary term.

on preOpenCard
  set the menuHistory of btn "tabs" to 1
end preOpenCard

btn "tabs"  -- replace that with the actual name of your tab buttons
1  -- replace that with the actual number of the tab (in the  
Property Inspector the line number of the text equals the menuHistory)


( red | green | blue )<-- really bad Mac OS X tabs ;-)

red = set the menuHistory to 1
green = set the menuHistory to 2
blue = set the menuHistory to 3

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

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



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


Is it possible to script the choice of a tab in a tabbed button ?

2006-11-23 Thread André.Bisseret

Hi,
On a card, I have a tabbed button with four groups. One of these  
groups only (say, group1)  is a field with share text property and   
background behavior so that  another card could have this share text  
field on it.
So, when I open this second card, I must be sure that the tabbed  
button is set to group1, otherwise this group1 doesnt appear on the  
second card.


Is there a way to choose a tab in a tabbed button, from a handler  
(not manually) ?


Thanks for help

Best regards from Grenoble
André___
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 transfert of data from one substack to another one

2006-11-22 Thread André.Bisseret


Thanks Éric, John and Mark for your answers.


The solution from Éric and John is working nicely now : Merci  
beaucoup and thanks a lot :-)))


Actually I was putting theItem into the global variable, instead of  
the field "duration"
As Éric said, I should have test the content of gTheTarget at the end  
of the menuPick handler ;
but I kept stuck believing that gTheTarget was containing the name of  
the targeted  field :-)


Sure I will remember this use of do command !

Best regards from Grenoble
André

Le 22 nov. 06 à 19:11, Eric Chatonet a écrit :


Bonjour André,

When you write "put theItem into gTheTarget", the engine  
understands that you want to put the parameter theItem into the  
global variable gTheTarget.
If you add at the end of your menuPick handler "put gTheTarget" you  
will check this.

But...
if you write do "put theItem into" && gTheTarget, the engine will  
substitute the value of gTheTarget and put the value in the field.

And I assume it's what you want :-)

Check the do command in the docs: it's an invaluable command even  
if you have to know that using do can slow down code execution.

But in this case it will be always unnoticeable.

Best Regards from Paris,
Eric Chatonet

Le 22 nov. 06 à 18:23, André.Bisseret a écrit :


Hi,

On a card, in a substack I have a field « duration » to be filled  
in with possible lenghts of time.
On the card of another substack named « theTools » I have a pop Up  
button (say « PossibleDurations ») with a list of menu items such  
as « one day »,… « three days »,…, « one week », …, « three weeks  
»,…, « one month », …, « three months »,…


In the first substack, the script of the field « duration » is  :

on mouseUp
  global gTheTarget,
  ---
  put the long name of me into gTheTarget
  open stack "theTools"
end mouseUp

In the substack « theTools », the script of the  button «  
possibleDurations » is :


on menuPick theItem
  global gtheTarget,

  put theItem – in msg
  put cr & gLaCible after msg
  put theItem into gTheTarget
end menuPick

In the message box, theItem and gLaCible are right

But the line « put theItem into gTheTarget » does works ; nothing  
happens, no error message.


Now I have spent a couple of hours trying to find why, I am  
completely lost :-((


Could somebody tell me what I am doing wrong ?

Thanks a lot for any help

Best regards from Grenoble
André


-- 


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


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

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




___
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


problem with transfert of data from one substack to another one

2006-11-22 Thread André.Bisseret

Hi,

On a card, in a substack I have a field « duration » to be filled in  
with possible lenghts of time.
On the card of another substack named « theTools » I have a pop Up  
button (say « PossibleDurations ») with a list of menu items such as  
« one day »,… « three days »,…, « one week », …, « three weeks »,…, «  
one month », …, « three months »,…


In the first substack, the script of the field « duration » is  :

on mouseUp
  global gTheTarget,
  ---
  put the long name of me into gTheTarget
  open stack "theTools"
end mouseUp

In the substack « theTools », the script of the  button «  
possibleDurations » is :


on menuPick theItem
  global gtheTarget,

  put theItem – in msg
  put cr & gLaCible after msg
  put theItem into gTheTarget
end menuPick

In the message box, theItem and gLaCible are right

But the line « put theItem into gTheTarget » does works ; nothing  
happens, no error message.


Now I have spent a couple of hours trying to find why, I am  
completely lost :-((


Could somebody tell me what I am doing wrong ?

Thanks a lot for any help

Best regards from Grenoble
André___
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: Linking fields

2006-11-15 Thread André.Bisseret


Le 15 nov. 06 à 17:57, Ted Mills a écrit :

Does anyone know if it is possible to use a set or put statement to  
place a

fields text into another field?

put field "thisField" into fleld "thatField"
or
set the text of fld "thatField" to fld "thisField"




Also is this possible from another card. I
have a combo box that sets the text of a field to a certain value  
and I need
a field on another card to show that same value but I am not having  
any luck

finding the answer within the help.

put fld "thisField" into fld "thatField of cd 2
or
set the text of fld "thatField" of cd 2 to fld "thisField"

Best regards from Grenoble
André___
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: switch case question

2006-11-04 Thread André.Bisseret


Le 3 nov. 06 à 21:01, Mark Swindell a écrit :


H.  What do you do to amuse yourself while you're waiting?
Mark


I catch a glance to the sky:
Running your tests, with "if then else" I saw 2 shooting stars; with  
the "switch", only 1 ;-))

(well, I mean with the fixed scripts !).

André



On Nov 3, 2006, at 11:46 AM, André.Bisseret wrote:


Hi Mark,

On Mac pro  OS X  10.4.8 (2.16 GHz Intel Core Duo)
I get :
for "if then else" : 95-96 milliseconds
for "switch" : 12-13 milliseconds

Actually, 50-52 (see my prev msg :)


Best regards from Grenoble
André


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

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




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


Re: switch case question

2006-11-04 Thread André.Bisseret

Hi,
I apologize !  Yesterday I was wrong about the time for "switch" ; I  
copied your script but did not uncomment it  :-O)

So, my result " 12-13" millisec was not the right one. I am sorry !

After fixing, actually,  here
– for "If then else" : 94-96
– for "switch" : 50-52.

As far as the tests of Kay are concerned, my results are :
– for "if then else" : 83-88
– for "switch" : 175-180

!??

Best regards from Grenoble
André

Le 3 nov. 06 à 21:04, Mark Smith a écrit :


Like me, he runs other benchmarks on another computer, of course! :)

Mark

On 3 Nov 2006, at 21:01, Mark Swindell wrote:


H.  What do you do to amuse yourself while you're waiting?
Mark

On Nov 3, 2006, at 11:46 AM, André.Bisseret wrote:


Hi Mark,

On Mac pro  OS X  10.4.8 (2.16 GHz Intel Core Duo)
I get :
for "if then else" : 95-96 milliseconds
for "switch" : 12-13 milliseconds

Best regards from Grenoble
André


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

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


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

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




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


Re: switch case question

2006-11-03 Thread André.Bisseret

Hi Mark,

On Mac pro  OS X  10.4.8 (2.16 GHz Intel Core Duo)
I get :
for "if then else" : 95-96 milliseconds
for "switch" : 12-13 milliseconds

Best regards from Grenoble
André

Le 3 nov. 06 à 20:14, Mark Smith a écrit :

Kay, I meant to check this out when I saw your post, but it's taken  
me a little time to get to it. I'm pretty sure that for multiple  
choice situations, a switch structure seems more efficient (ie.  
faster) than an equivalent multi-way if-then-else structure.


I'd be interested to see if you get similar results to mine if you  
paste the following into a button:


on mouseUp
  repeat 10
put random(6) & cr after rList
  end repeat

  put the millisecs into st

  repeat for each line L in rList
if L = 1 then
  get 1
else if L = 2 then
  get 2
else if L = 3 then
  get 3
else if L = 4 then
  get 4
else if L = 5 then
  get 5
else if L = 6 then
  get 6
end if

--switch L
--case 1
--  get 1
--  break
--case 2
--  get 2
--  break
--case 3
--  get 3
--  break
--case 4
--  get 4
--  break
--case 5
--  get 5
--  break
--case 6
--  get 6
--  break
--end switch
  end repeat

  put the millisecs - st
end mouseUp

When I do this, (Mac 1.5Mhz G4 laptop), the if-then-else version  
takes 180-ish milliseconds, whereas the switch-case version takes  
70-ish ms.
Admittedly, this isn't the difference between unusably slow and  
blisteringly fast, but it's always worth knowing your options


Best,

Mark

On 31 Oct 2006, at 11:22, Kay C Lan wrote:


I've come into this a little late, no internet for a week or so, but
be aware that switch is slower than if-then-else-end if, no matter  
who

many nested ifs are required to do 'the same' as a mult-case switch
statement. It's only a couple of milliseconds over 1000 executions,
but it is slower.


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

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



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


Re: Link text style -- bug or feature ?

2006-11-03 Thread André.Bisseret

Hi,
As far as I am concerned, I have fields whose textStyle is set to  
link, but I am using the mouseUp however.
The reason why I am using the link textStyle for some fields is that  
I think the user understand immediately that the lines are clickable.


Up to now, I did not notice that there was a linkClicked  
message :-))). Always learning;  thanks !


So one can have :
- some fields whose the textStyle is set to link and use either  
"linkclicked" or mouseUp message
- and of course, other fields where only certain groups of chars are  
set to link and then use "linkclicked" message (well, now I will use  
it :-))


Best regards from Grenoble
André

Le 3 nov. 06 à 00:34, Mark Schonewille a écrit :


Hi,

First of all, I wonder why one would set the textStyle of an entire  
field to link? I would handle the mouseUp message instead. This may  
be my own personal view, but it is easier because you can modify a  
smaller amount of properties to make it work, it also gives you  
more freedom to alter something afterwards.


The docs say about linkClicked: "Sent when the user clicks grouped  
text." If you set the style of a field to "bold" and enter text,  
the text looks bold, but it isn't. If you request for its style by  
entering "put the textStyle of char 1 of fld 1" in the message box,  
you should get an empty value returned.


When you click on a text, Revolution doesn't check the textStyle of  
the field but the textStyle of the text. Since the textStyle is  
empty, the linkClicked message is not sent.


I understand that everybody who doesn't agree will say it is far- 
fetched, but I think this is a valid explantion and thus I doubt  
this is a bug. Then again, I probably wouldn't mind if this  
behaviour were changed, because I won't set the textStyle of a  
field to link anyway.


Best regards,

Mark

--

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

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



 ---Original Message---  From: Timothy Miller Date:  
11/02/06 21:42:05 To: How to use Revolution Subject: Link text  
style -- bug or feature ?  This arises from a question I asked on  
the forum, then solved on my own, by trial and error.  If I set  
the textstyle of a field to "link," by script or manually, text  
entered into that field looks like a link. It's blue and  
underlined. However, it doesn't act like a link. When clicked it  
sends a mouseUp, not a linkClicked. If I select the text, the  
"text" menu has a checkmark by "Plain," not by "Link"  Maybe it's  
a bug.  If not, I don't understand the point of being able to set  
the textstyle of a field to "link" and make the text look  
misleadingly like a link, if it's not a link.  The field  
inspector is ambiguous in this regard. The button that sets the  
style to "link" is marked with a "G" presumably for group. The  
tool tip says "Link text" That's ambiguous, too. Does it mean  
"set the style of text in this field to 'link'"? or does it mean  
"Link the text in this field"?  Maybe linking in this way affects  
the mousechunk function, and is intended for use with a mouseUp,  
not with a linkClicked. I haven't investigated that possibility  
yet.  The user dictionary doesn't really settle the matter  
either. As things stand, it seems that "link" is a textStyle in  
one context -- if you select text and set the style of the text  
to link, but not in another -- if you set the textstyle of the  
field to "link"  I alread BZ'd this. I probably should'a asked  
here first.  Comments welcome.  Tim

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

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



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


Re: The fileName: When using it in scripts, how to avoid modifiying it for each user ?

2006-11-02 Thread André.Bisseret

Hi Jim,
Thanks to your advices, my app is working nicely now (at least on  
this point :-))
Changes in "userName" and location of the app'file on his/her disk  
are taken into account automatically when setting the fileName(s) by  
script.


I thank you very much

Best regards from Grenoble
André


Le 1 nov. 06 à 17:08, Jim Ault a écrit :



On 11/1/06 9:30 AM, "André.Bisseret" <[EMAIL PROTECTED]> wrote:


Hi,
I have an app a substack of which is a model. This model is clone in
ordre to create other stacks. These created stacks  are main stacks
(not substacks) because they are populated with data which have to be
saved. They are accumulated in a folder (say « theFolder »).

So, for each created stack, I must set its fileName in order to place
it into « theFolder » ; also I must use the fileName in order to be
able to re-open on such stack from «theFolder ». (in each of these
cases, if I simpy use the stack name, that does not work).

Ex : stack « /Users/user’name/desktop/theFolder/oneStackName »

My problem arises when I want to give my app to another user who will
use it with stackRunner (or as a standalone if I save it under this
form) :
then, in several scripts I must change the fileName ; specifically ,
the « user’name ». But also, possibly the destination (« theFolder »
or even « desktop/theFolder », depending on where the user want to
put this folder).

If I want several users get my app., this change becomes
unacceptable (even not possible).

Is it a way to get rid of this constraint ?



First,
the stack filename contains the path to its location.  Use that as the
'home' or 'root' folder name.

Second, on starting the app, get a list of the folders in that same  
folder
your stack is currently in.  If there are none, then ask the user  
for a

folder name (or create a "defaultHome" folder)(or
set the itemdel to "/"
put item 3 of the filename of this stack into tUser
creae folder tUser&"Data"

Third, use the defaultHome folder until the user chooses to do it
differently and names the folder to his liking.  At this time, move  
all of

the files from the defaultHome to the new folder, then delete the old
defaultHome folder.  On start, this will be the only folder that  
contains
the dataFile you need.  Now your stack startup routine will get a  
list of
folders, then look inside until it finds the 'userData.txt file you  
saved

previously.

Fourth, in your defaultFolder, save a text file with the names of  
the stacks
the user may choose in the future, but use default names in case  
they don't

make the effort.

Hope this helps.

Jim Ault
Las Vegas



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

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




___
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 fileName: When using it in scripts, how to avoid modifiying it for each user ?

2006-11-01 Thread André.Bisseret

Hello Jim,
and thanks a lot for your answer ;
I roughly understand the solution ; but I must study it more deeply  
and make trials ;
I will do that tomorrow ; now, it is a bit late here (for my old  
brain) ;-))


André

Le 1 nov. 06 à 17:08, Jim Ault a écrit :



On 11/1/06 9:30 AM, "André.Bisseret" <[EMAIL PROTECTED]> wrote:


Hi,
I have an app a substack of which is a model. This model is clone in
ordre to create other stacks. These created stacks  are main stacks
(not substacks) because they are populated with data which have to be
saved. They are accumulated in a folder (say « theFolder »).

So, for each created stack, I must set its fileName in order to place
it into « theFolder » ; also I must use the fileName in order to be
able to re-open on such stack from «theFolder ». (in each of these
cases, if I simpy use the stack name, that does not work).

Ex : stack « /Users/user’name/desktop/theFolder/oneStackName »

My problem arises when I want to give my app to another user who will
use it with stackRunner (or as a standalone if I save it under this
form) :
then, in several scripts I must change the fileName ; specifically ,
the « user’name ». But also, possibly the destination (« theFolder »
or even « desktop/theFolder », depending on where the user want to
put this folder).

If I want several users get my app., this change becomes
unacceptable (even not possible).

Is it a way to get rid of this constraint ?



First,
the stack filename contains the path to its location.  Use that as the
'home' or 'root' folder name.

Second, on starting the app, get a list of the folders in that same  
folder
your stack is currently in.  If there are none, then ask the user  
for a

folder name (or create a "defaultHome" folder)(or
set the itemdel to "/"
put item 3 of the filename of this stack into tUser
creae folder tUser&"Data"

Third, use the defaultHome folder until the user chooses to do it
differently and names the folder to his liking.  At this time, move  
all of

the files from the defaultHome to the new folder, then delete the old
defaultHome folder.  On start, this will be the only folder that  
contains
the dataFile you need.  Now your stack startup routine will get a  
list of
folders, then look inside until it finds the 'userData.txt file you  
saved

previously.

Fourth, in your defaultFolder, save a text file with the names of  
the stacks
the user may choose in the future, but use default names in case  
they don't

make the effort.

Hope this helps.

Jim Ault
Las Vegas



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

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




___
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


The fileName: When using it in scripts, how to avoid modifiying it for each user ?

2006-11-01 Thread André.Bisseret

Hi,
I have an app a substack of which is a model. This model is clone in  
ordre to create other stacks. These created stacks  are main stacks  
(not substacks) because they are populated with data which have to be  
saved. They are accumulated in a folder (say « theFolder »).


So, for each created stack, I must set its fileName in order to place  
it into « theFolder » ; also I must use the fileName in order to be  
able to re-open on such stack from «theFolder ». (in each of these  
cases, if I simpy use the stack name, that does not work).


Ex : stack « /Users/user’name/desktop/theFolder/oneStackName »

My problem arises when I want to give my app to another user who will  
use it with stackRunner (or as a standalone if I save it under this  
form) :
then, in several scripts I must change the fileName ; specifically ,  
the « user’name ». But also, possibly the destination (« theFolder »  
or even « desktop/theFolder », depending on where the user want to  
put this folder).


If I want several users get my app., this change becomes   
unacceptable (even not possible).


Is it a way to get rid of this constraint ?

Thanks for any help

Best regards from Grenoble
André___
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: Saving, when I click on "Don't save" !

2006-10-29 Thread André.Bisseret

Bonsoir Éric,
Nice advice ! very useful indeed in the case of the app. I am  
developing.


Merci Éric

amitiés de Grenoble
André


Le 29 oct. 06 à 18:22, Eric Chatonet a écrit :


Hi Andre,

You might be interested in checking the corresponding preference in  
the "Files and memory" pane in the preferences:

Nothing to think of later :-)

Le 29 oct. 06 à 15:09, André.Bisseret a écrit :


Best Regards from Paris,
Eric Chatonet
-- 


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



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


Re: Saving, when I click on "Don't save" !

2006-10-29 Thread André.Bisseret

Hi Malte
I was just about discovering that when I received your message ! I  
was beginning to experiment with and without destroyStack property


Very nice, and Thanks a lot ! :-)))

That 's the solution : for what I need, I must set the destroyStack  
to true
I think, actually, I never (or very rarely) used "don't save" up to  
now (or I did not open again the stack after during a Rev session),  
so I was not conscious of the fact that "don't save" is effective  
only when the stack is out of memory.


Thanks again, you help me saving time (and hairs !)

Best regards

André

Le 29 oct. 06 à 12:58, Malte Brill a écrit :


Hi Andre,

did you remove the stack from memory before reopening? Check the  
destroyStack property of the stack. If it is false it will remain  
in memory when closed.



I suppose I have got a wrong inadvertent setting somewhere ??


All the best,

Malte

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

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



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


Saving, when I click on "Don't save" !

2006-10-29 Thread André.Bisseret

Hello,
Since yesterday evening, when I am closing a stack (small red button  
top left), if I click on "don't save", the modifications I made are  
saved however  ! :-((


I spent hours trying to find what's happening, but without any success.

I suppose I have got a wrong inadvertent setting somewhere ??

Please, could someone help me ?

Thanks in advance

Best regards from Grenoble
André___
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 delete trailing spaces in a line

2006-10-24 Thread André.Bisseret
OK, I am not at ease with regEx, so, might be less elegant, but  this  
works too :


  repeat with x = 1 to the number of lines of fld "theText"
repeat until last char line x of fld "theText" is not space
  delete last char of line x of fld "theText"
end repeat
  end repeat

:-)

Best regards from Grenoble
André


Le 24 oct. 06 à 21:50, Jim Ault a écrit :

I believe the original question by Mark Powell was asking about  
removing
spaces at the end of every line in a multi-line container, then  
later the he
described trying to use replaceText and a regular expression to do  
the job,

which it can do.  See my earlier post with one way of doing this.

Jim Ault
Las Vegas


On 10/24/06 11:46 AM, "André.Bisseret" <[EMAIL PROTECTED]>  
wrote:



I don't claim that it is the best way, but, in order to delete all
spaces at the end of a field  I am using :

repeat until last char of fld "leTexte" is not space
 delete last char of fld "leTexte"
   end repeat

which works for a line as well (I just tried it).

Best regards from Grenoble
André


Le 24 oct. 06 à 17:10, Mark Powell a écrit :


I want to delete all spaces at the end of a line, be they a single
space
or a couple dozen.  What is the best way to do this?

Mark Powell



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

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




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


Re: How to delete trailing spaces in a line

2006-10-24 Thread André.Bisseret
I don't claim that it is the best way, but, in order to delete all  
spaces at the end of a field  I am using :


repeat until last char of fld "leTexte" is not space
delete last char of fld "leTexte"
  end repeat

which works for a line as well (I just tried it).

Best regards from Grenoble
André


Le 24 oct. 06 à 17:10, Mark Powell a écrit :

I want to delete all spaces at the end of a line, be they a single  
space

or a couple dozen.  What is the best way to do this?

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

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




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


Re: explicitvariables weirdness

2006-10-24 Thread André.Bisseret


I had the same problem a while ago.
When you are in the script editor, have a look to menu "Script" :  
item "Variable checking" could be checked. Uncheck it and you should  
not get this error  message anymore.


Best regards from Grenoble
André


Le 24 oct. 06 à 06:50, Mark Swindell a écrit :

Over the past couple days I've been encountering a frustrating  
behavior in that when I go to save a stack script, I'm greeted with  
the following error message:


Type	Chunk: can't create a variable with that name  
(explicitVariables?)

Object  FF Stack
Line		put "multiplication addition division subtraction" into  
theCardsToChange

HinttheCardsToChange

explicitvariables is set to false, but I still get this error  
message.  I've saved the script hundreds of times before without  
issue... only in the past couple of days has this come up.  If I  
dismiss this error, another local variable error comes up in its  
place. Any ideas?


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

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



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


Re: cards of a bg not recognized !?

2006-10-14 Thread André.Bisseret

Dar,
Thank you very much, your guess was good :-)
I pasted a new card without any objects on it, and I discovered in  
the Place menu items that I had 2 groups with the same name "frame2" !
I deleted one and now it works nicely, just as it works with my  
"frame1".


Éric, thanks again for your answer ; I am noting the idea of  a  
workaround you suggested in my personal doc. ; I don't resort enough  
to "mark card"


Best regards from Grenoble
André


Le 13 oct. 06 à 19:58, Dar Scott a écrit :



On Oct 13, 2006, at 3:33 AM, André.Bisseret wrote:


In the message box if I ask :
there is bg "frame2"
--I get  "true"
If I ask :
there is last cd of bg "frame2"
--I get "false"
If I ask :
the number of cd of bg "frame2"
-- I get "0" ; In fact I have more than a hundred cd with this bg ?


This is a wild guess.

Maybe those more-than-a-hundred-cards have a background with a  
slightly different name.  The other name "frame2" might apply to a  
background that still exists in the stack if the last one on a card  
was removed instead of deleted.  (Backgrounds belong to the stack.)


Move to a card with no groups and look at the names on the Place  
menu item and see if a different one shows up.  Or check the name  
of your group with the property inspector.


Dar

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

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




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


Re: cards of a bg not recognized !?

2006-10-13 Thread André.Bisseret



Le 13 oct. 06 à 16:08, Eric Chatonet a écrit :


Bonjour André,

You think as an HyperCard man ;-)
Backgrounds act slightly differently with Revolution:
Regarding to coding, a background is placed, as it was with HC,  
between the card and the stack in the message path.
But, as you know it, you can place multiples backgrounds (groups)  
on the same card.
So, regarding to objects relations, you can't say last cd of bg  
"frame2"
But only group "frame2" of last cd (or any card where this group is  
placed)


I assume you want to go to the last card where a group has been  
placed?

Here is a fast workaround:

  unmarl all cds
  mark cds where there is a grp "frame2"
  go last marked cd

But actually, I think you should probably revise your architecture  
to be more "Rev" compliant ;-)


Bonjour Éric et merci for the "workaround" ; but
In fact, I want to add new cards to two different sets of cards ; in  
the first set the cards share a group ( with behavior bg) say  
"frame1" and in the second set the cards share another group (set to  
bg too) say "frame2".


What I don't understand is that it works nicely with" frame1" and not  
with "frame2" !?

 When I script :
go to last cd of bg "frame1"
create cd
etc.
it works well, from any cd in the stack, BUT
go to last cd of bg "frame2"
does not wor'k

I can't imagine why ?
I would appreciate a lot any explanation

Best regards from Grenoble
André

P.S. Another possible workaround : When I am on a cd having "frame2"  
on it, then "go to last cd of this bg" works, then I could go to such  
a cd (the first one).


Best Regards from Paris,
Eric Chatonet

Le 13 oct. 06 à 11:33, André.Bisseret a écrit :


Hello,
In a stack I have two groups behaving like backgrounds.
For one of them, if I script "go to last cd of bg "frame2" nothing  
happens.


In the message box if I ask :
there is bg "frame2"
--I get  "true"
If I ask :
there is last cd of bg "frame2"
--I get "false"
If I ask :
the number of cd of bg "frame2"
-- I get "0" ; In fact I have more than a hundred cd with this bg ?

(for the first bg all is OK)

I am lost ; please, could someone help me

Best regards from Grenoble
André


-- 


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


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

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




___
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


cards of a bg not recognized !?

2006-10-13 Thread André.Bisseret

Hello,
In a stack I have two groups behaving like backgrounds.
For one of them, if I script "go to last cd of bg "frame2" nothing  
happens.


In the message box if I ask :
there is bg "frame2"
--I get  "true"
If I ask :
there is last cd of bg "frame2"
--I get "false"
If I ask :
the number of cd of bg "frame2"
-- I get "0" ; In fact I have more than a hundred cd with this bg ?

(for the first bg all is OK)

I am lost ; please, could someone help me

Best regards from Grenoble
André



___
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: Resizestack: sending and passing problem

2006-10-12 Thread André.Bisseret


Le 11 oct. 06 à 23:57, David Bovill a écrit :


Spent hours trying to track this down...

 send "resizeStack" to card 1

Could not get it to work.

Then tried this. Create a blank stack - on the card script add:

on mouseUp
   beep
   pass mouseUp
end mouseUp

And put an empty button on a card. Clicking on the button gives you  
a very

pleasing beep. But put this script in the button:

on mouseUp
   send "mouseUp" to card 1
end mouseUp

And you get an error!


Hello,

I tried what you asked and I did not get any error !?
Mac Pro OS X 10.4.8 Rev 2.7.4

Best regards from Grenoble
André


Remove the "pass mouseUp" from the card script and
everything works.

OK - so my problem is how do you send "resizeStack" messages. I  
don"t want

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

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



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


Re: Focus and Text Fields

2006-10-08 Thread André.Bisseret

Hello Richmond,
My answer was not delivered (due to the incident on this list, I  
suppose) so I send it again


Le 6 oct. 06 à 09:45, Richmond Mathewson a écrit :


I have the following script in a Card:

on openCard
  put "We" into fld "F1"
  focus on fld "F1"
end openCard

now what this does is:

it puts "We" into the field "F1"

and then

puts the cursor BEFORE "We" in the field "F1"

(nothing terribly remarkable there!)

HOWEVER,

I would like it so that when the FOCUS is set to field
"F1" the
cursor is set after the letters "We"


Hello,

What about "select after fld "F1" ?

on openCard
put "We" into fld "F1"
-- focus on fld "F1"  -- redondant in fact because "select after fld  
"F1" is focusing on fld "F1"

select after fld "F1"
end openCard



AND - - -

directions for how to put a cursor anywhere in a
string inside a field:

e.g. Between "I" and "a drink"

in "I a drink"


  get offset("I", fld "F1")
  select after char it of fld "F1"
or
find "I" in fld "F1"
select after the foundText
find empty

hope that helps

Best regards from Grenoble
André



--

Of course this question has a general application.

I would be very grateful for any help.

sincerely, Richmond Mathewson



"Philosophical problems are confusions arising owing to the  
fluidity of meanings users attach to words and phrases."

   Mathewson, 2006






___
All new Yahoo! Mail "The new Interface is stunning in its  
simplicity and ease of use." - PC Magazine

http://uk.docs.yahoo.com/nowyoucan.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

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



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


Re: Help with table fields and cell editing

2006-10-05 Thread André.Bisseret

Hello !
I am interested in using table fields but I tried twice spending  
hours to find how to use them and twice I gave up !
I think I wanted too much, given the poor current state of this type  
of fields.


But I never observe what you describe
So I just tried to replicate  what you are going through.
On a Mac Pro Intel OS X 10.4.8 and Runrev  2.7.4 (build 291).

Le 4 oct. 06 à 18:29, Walton Sumner a écrit :


Help!

I have a Rev 2.7.4 (build 291) PC interface for database editing  
that is in
great shape except for one feature, directly editing a list of  
points. It
seems to me that this should be a natural table field & cell  
editing task,

but I can not see how to make it work.

I have a group that contains a table field. The table field is not  
locked,
the "Table object" setting is checked, the "cREVTable(celle" box is  
checked
(cell editing), and the maximum editable column is set to 2. The  
tab stop is
less than half the width of the field, after subtracting the width  
of the
vertical scroll bar. Problems persist with or without a horizontal  
scroll

bar.

I created a new stack with this same settings


The field has the following odd behaviors when it is populated with  
data:
1. A mouseup event within a cell temporarily erases the data in the  
cell

rather than selecting the data in the cell,

not here for me : the data are not erased , they are selected

even if I drag over the cell
contents and manage to select them before releasing the mouse. If the
mouseup occurs outside of the cell, the contents of the cell remain
selected.

Yes I get the same, but is it a real problem ?


Clicking in a cell also causes the erasing mouseup event.
I don't see what you mean exactly here ? what's "the erasing mouseup  
event" ?

These
are incorrect behaviors, IMO - the end user should be able to click  
or drag

in the cell and insert or change one or a few digits.

I am able to click, drag, insert or change one or a few digits

After clicking in a cell in the first column, clicking a different  
cell in

the first column causes the first cell's contents to reappear (correct
behavior)

well, here it did not disappear


2. Clicking any cell in the second column erases the entire field's
contents. The field does not recover when the cell is deselected.

this does not happen here; the entire field's contents remain unaffected


3. Clicking any cell in the second column selects the cell, but  
scrolls the
field horizontally so that the cell's left edge abuts the left edge  
of the
field, displaying the out-of-bounds third column and totally  
obscuring the

first column.

does not happen here


This is also incorrect behavior, IMO. The selected cell will
accept new text, let's say "ABC", after turning off the keydown  
handler that

screened for digits.

4. Tabbing from cell to cell has the same effect as clicking on a  
cell in

the second column.

here tabbing from cell to cell selects each cell successively, normally


5. After reloading the table contents from the database, clicking  
on any
cell in the second column erases everything but restores the "ABC"  
that I

entered in #3.


I only populated the table manually ; so I can't say anything here




So, I'm guessing that the table field is not updating its global  
descriptors
correctly, as reported in the archives from 2003 and 2004, but I  
can't see
that anyone else has these problems currently. In fact, there are  
messages
that talk about letting Rev handle tabs and arrows and the like, as  
if my
current problems are not reproducible at all. Also, I thought until  
now that

Rev's field issues had been resolved.

So is there some special combination of settings that makes the  
table work?
I don't understand the difference between our respective results ? I  
had the same settings you described.


One strange behaviour here :  it is working when the table is set to  
"lock text" or "unlock text" as well !


Waiting for much better table fields, I am using  adjacent fields  
that work as columns ;  the script of the last one coordinates the  
behavior of the all including a handler on mouseWithin set the  
vScroll of fld "suchfld" to the vScroll of me.


Best regards from Grenoble
André

Meanwhile, I'll be scripting a redundant interface to achieve point  
editing

with tab keys and no mouseclicks.

I can post to bugzilla if this the problem is not unique to me.

Thanks in advance.

Walton Sumner



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

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



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


Re: how to validate fields

2006-09-29 Thread André.Bisseret

Hello,
Èric Chatonet has recently add a new tutorial on his site "So Smart  
Softare" that might be of interest to you.

You will find it at this address :
http://www.sosmartsoftware.com/?r=revolution_index&l=en
It is named : "How to master users data in entry boxes"

I think it answers your question.

hope that helps

Best regards from Grenoble
André

Le 28 sept. 06 à 21:31, Alvaro Abril - Tecnologia a écrit :


Dear Sirs:

I need to validate fields.. for example.. only enter numbers in some
fields.. i need for example fields with format for example Q1.000.50
How i can to put these automatic conditions in a field?

Cordialmente,
Alvaro Abril
Tecnología
Divertia S.A.
www.fantasticguatemala.com
Tel. 502 2410 4600
Fax.502 2410 4646
Guatemala


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

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




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


Re: OpenStack

2006-09-26 Thread André.Bisseret

Hi Éric,
No I don't use Galaxy nor tmAlign as plugins.

best regards
André

Le 26 sept. 06 à 20:12, Éric Miclo a écrit :


Hello,

BTW, do you use Galaxy or tmAlign as plugins (I'm trying to find  
out witch tool could interact with Revolution)?


Thanks, best,

ÉrIC

Le 26 sept. 06 à 13:48, André.Bisseret a écrit :


Hello,
I just tried this stack (included in bug #3816): it works fine.   
With the two versions 2.7.3 and 2.7.4, the "second Main stack" is  
opened (2 seconds after le first one as scripted). This works  
under the 2 versions, in the 3 cases :

- Revolution already opened
- or Revolution not opened and double click on the icon of "First  
Main Stack" (lauching Rev).
- or Revolution not opened and dragging the stack' icon onto the  
Rev' icon (launching Rev).


Best regards from Grenoble
André

Le 26 sept. 06 à 12:13, Éric Miclo a écrit :


Hello,

Could you give a try to the stack that is included to the  
submitted bug #3816?
It's a stack that calls a substack in the openStack handler and  
with versions 2.7.3 & 2.7.4 the substack is not opened as it is  
with versions before.


Best,

ÉrIC



___
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 visualization of a big network

2006-09-26 Thread André.Bisseret

Hi,
You might have a look at the (very useful) site of Éric Chatonet
http://www.sosmartsoftware.com/?r=revolution_index&l=en
You will find there a tutorial named "How to magnify images and only  
images" that might give you ideas about how to be able to  explore  
different parts of a big image.

Hth

Best regards from Grenoble
André

Le 26 sept. 06 à 14:55, KALANGI Vijay BABU a écrit :


Hi all,



I'm developing an application "Network Editor" wherein there are  
nearly

50-75 nodes representing people on a single card...



Here each node is a button of size 30 * 40 and with links (graphics of
style line) between them the network becomes very big.



The user will also be able to drag the nodes in the network.



Problem:

With such a big network , all nodes get clustered on a card of size  
800
* 600 .So is there any way for proper visualization like in Google  
earth

or maps where in we can move the screen and view the network or some
other way so that the network can be seen properly.





Thanks in advance,

Vijay Babu Kalangi

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

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




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


Re: OpenStack

2006-09-26 Thread André.Bisseret

Hello,
I just tried this stack (included in bug #3816): it works fine.  With  
the two versions 2.7.3 and 2.7.4, the "second Main stack" is opened  
(2 seconds after le first one as scripted). This works under the 2  
versions, in the 3 cases :

- Revolution already opened
- or Revolution not opened and double click on the icon of "First  
Main Stack" (lauching Rev).
- or Revolution not opened and dragging the stack' icon onto the Rev'  
icon (launching Rev).


Best regards from Grenoble
André

Le 26 sept. 06 à 12:13, Éric Miclo a écrit :


Hello,

Could you give a try to the stack that is included to the submitted  
bug #3816?
It's a stack that calls a substack in the openStack handler and  
with versions 2.7.3 & 2.7.4 the substack is not opened as it is  
with versions before.


Best,

ÉrIC

Le 26 sept. 06 à 11:17, André.Bisseret a écrit :


Hi,
Here on Mac OS X 10.4.7, openStack' and openCard' handlers work  
normally with RunRev v2.7.3 and v2.7.4 as well



Best regards from Grenoble
André


Le 25 sept. 06 à 21:44, [EMAIL PROTECTED] a écrit :


Hi Everyone,

I just upgraded to v2.7.4 on my Mac OSX computer. I know the  
definition of a
new version is "Out with the old bugs and in with the new ones"  
but this is

ridiculous.

When I open my stack it doesn't see the OpenStack or the openCard  
handler

now. It did that with no problem in v2.7.1. What changed?

Joe
Orlando
___


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

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




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


Re: about Galaxy

2006-09-26 Thread André.Bisseret

Hi,
I can't say anything about Galaxy as I don't use it yet, but I must  
say that I never noticed any problem with "cmd - v" since I bought  
runRev (it was v 2.6.1).
On my Mac OS X 10.4.7, I just maid some new trials with runRev  
v2.7.4: "cmd - v" regularly works well, with text in flds, objects,  
and text in script editor as well.


Best regards from Grenoble
André


Le 26 sept. 06 à 05:42, Kay C Lan a écrit :


On 9/26/06, Sivakatirswami <[EMAIL PROTECTED]> wrote:



4) interactivity: write and debug scripts.



I'm a 'off-and-on' Galaxy user. It's me, my style, NOT Galaxy -  
which is a
great product. One of the reasons I keep checking out the latest  
Galaxy is
because the simple act of 'cmd - v' (which on the Mac has always  
pasted
since the days of Noah) regularly doesn't work in the Rev IDE - it  
always

works in Galaxy.

A product that has trouble handling 'cmd - v' has got to raise the  
eyebrows

of anyone who's taking it for a test spin.

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

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



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


Re: OpenStack

2006-09-26 Thread André.Bisseret

Hi,
Here on Mac OS X 10.4.7, openStack' and openCard' handlers work  
normally with RunRev v2.7.3 and v2.7.4 as well



Best regards from Grenoble
André


Le 25 sept. 06 à 21:44, [EMAIL PROTECTED] a écrit :


Hi Everyone,

I just upgraded to v2.7.4 on my Mac OSX computer. I know the  
definition of a
new version is "Out with the old bugs and in with the new ones" but  
this is

ridiculous.

When I open my stack it doesn't see the OpenStack or the openCard  
handler

now. It did that with no problem in v2.7.1. What changed?

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

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



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


Re: Line numbers in scripteditor?

2006-08-18 Thread André.Bisseret

Bonjour Éric,
I am very happy to read you again here !
Nice weather on this list to day :-))), thanks to William
I hope others will post questions that you will not resist to answer  
to ;-))



Best regards from Grenoble
André


Le 18 août 06 à 09:13, Eric Chatonet a écrit :


Hi all,

I could not resist: there is a very simple solution:

on selectionChanged
  if the short name of the owner of the target = "revScript" \
and the short name of the selectedfield = "script" then
put word 2 of the selectedLine into fld "GoLine"
  end if
  pass selectionChanged
end selectionChanged

Paste this handler into the "revCommon" back script and save it.
The "Go line" box will be interactive: allowing to go to any line  
or displaying the number of the current clicked line.


Le 17 août 06 à 05:55, Dan Shafer a écrit :


Nope.
You can:

(1) copy-paste and do your script editing in BBEdit on OS X or  
some other

editor on Windows.
(2) switch to Galaxy from Daniels-Mara which, if memory serves,  
does include

this ability.

On 8/16/06, William de Smet <[EMAIL PROTECTED]> wrote:


Hi there,

Is it possible to show line numbers in the scripteditor?
If it is I don't know how to show them.

greetings,

William (from a sunny Holland)
___



Best Regards from Paris,
Eric Chatonet
-- 


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


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

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




___
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: RichText Implementation

2006-08-13 Thread André.Bisseret

I am following attentively your attempt to "simulate" a richtext field.
I have a stack that presents a lot of texts (one text in one main  
field on each card).
Often these texts include lists that normally should be indented  
(often with 2 levels). So I got the same problem as yours.


After unsuccessful trials I gave up and currently all the lines of my  
texts are left aligned. For the (to be normally indented lists) I  
used special characters such as "*" and "-" (but left aligned). So  
that the presentation is not up to standard.


So I am very much interested by any solution you could find.
The main issue I encountered was the following :
When a line had to wrap, I had to type a return and then a tab in  
order to get an indented paragraph.
Then, when for one reason or another, the width of the field was  
reduced, even a little bit, or if I changed the style of the  
characters (font or size), I got a terrible mess !
It happened for example, when I was transferring the content of a  
field in another field that I use as a printing field.


Hav'nt you got this kind of problem ? In your example, I suppose that  
you have a "return" after "You know you". So that if you reduce the  
width of your field, the word "you" will wrap, isolated and left  
aligned (without tab).


Hope my "English-like English" is understandable enough :-))

Thanks a lot for your attempt to turn around this crucial shortcoming  
in Rev.
I hope you will keep informing us about the problems you are  
encountering and your solutions.


Best regards from Grenoble
André

Le 5 août 06 à 14:04, Jan Sælid a écrit :

The scriptwriter needs to know if the user is editing dialogue, a  
character

name, an action etc.
the format of a script looks something like this:

---
TRUMP
You didn't call, Eliza. You know you
won't   get anything if you...

He goes to the desk and snatches the...
---

This format needs three different margins. One for the character  
name, one
for the dialogue and one for the "action" part. One approach I'm  
thinking of
is to use tabstops and have a rawkeyup handler in the field that  
checks what
type of element the writer is editing and puts the cursor at the  
right tab
if the writer e.g. pushes the downkey. The challenge with this  
method is
that I have to store every element in the script in a custom  
property of the
field with the number of tabs for each element. Maybe with a  
reference to
the linenumber. e.g. "The line1 of fld "Script". Am I on the right  
track?


Hope this is understandable. Any ideas are appreciated. In the long  
run it
could be handy to make a library of functions that other revolution  
users

could use.

I Wrote:

I’m really in need of individual paragraphs.


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

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




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


Re: Default card size

2006-07-19 Thread André.Bisseret


Le 18 juil. 06 à 18:20, Robert Sneidar a écrit :

I have a problem that has been plaguing me. When I change the size  
of a card, I want Revolution to remember that when I save the  
stack, but it doesn't! It always reverts to some previous size I  
never even set it to. It makes me crazy! How do I set the default  
size of a card so that it always opens to that size? I already do  
it via scripts, but I would like to avoid that if possible as I am  
going to have a LOT of different card sizes in my app and I don't  
want to script every one of them. Thanks.


Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

You could catch a glance to the very useful site of Éric Chatonet "So  
Smart Software"

http://www.sosmartsoftware.com/?r=revolution_didacticiels&l=en
There you will find a tutorial "How to change card dimensions  
smoothly" (the one before the last in the tutorials list).
There is one script, at the stack level (not on each card), that  
changes the card sizes. But it needs fields that contain, on each  
card, its height and width. This fields can be in the background and   
hidden of course.



hope this could help

Best regards from Grenoble
André___
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: Possible New Book Titles

2006-07-05 Thread André.Bisseret


I much appreciated your book on "Printing" and
I would be very much interested by a book on "Debugging strategies  
and techniques".


Best regards from Grenoble
André

Le 4 juil. 06 à 08:33, Dan Shafer a écrit :

OK, I'm trying to figure out the best next subject on which to  
produce a

SmartEBook eBooklet. The following topics remain on my list and are
candidates based on the relatively small likelihood that  
fundamental changes
in Rev will obsolete them in the next year. I'd be interested in  
votes,

feedback, other suggestions, etc.

* Script-based commands

Edit script, editscript, wait, do, scriptlimits, text/font related
properties, insert script, remove script, start using

* The Message Box

Examination of all panes, properties, uses of the Message Box

* Debugging strategies and techniques

* Parameters, Variables and Values in Transcript

* Building and Deploying Standalones

--
~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"

From http://www.shafermediastore.com/tech_main.html

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

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



___
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 search?

2006-06-26 Thread André.Bisseret

Hi Felix,
I had a similar problem, when programming my last stack, on Mac OS X,  
10.4.6; Rev 2.6.1


In this stack, I search the field of one card for all occurencies of  
a textToFind (one word or phrase), in this card only (in order to  
highlight all these occurencies).

Like you, I don’t want the "find" be skipping to next cards.
I remember that I tried « fld of this cd » but it did not work.

So,  thanks to several members of this list (specially Jacque Landman  
Gay), below is how I proceed.


Hope it helps

Best regards from Grenoble
André

1-ordinarily, all cards in my stack have their dontSearch  
property set to true
2-But for other functions, I need search cards : so I have two  
handlers in the stack script I can call when necessary :

(I translate roughly certains terms from french)

on permitSearch
 put the cardNames of this stack into cardsList
  repeat for each line tCd in cardsList
set the dontSearch of tCd to false
  end repeat
end permitSearch


on resumeDontSearch
  put the cardNames of this stack into cardsList
repeat for each line tCd in cardsList
set the dontSearch of tCd to true
  end repeat
end resumeDontSearch

When on the right card, my handler is :

on highLighting
   repeat
  find whole textToFind
  if the result is "not found" then exit repeat
  set the backgroundColor of the foundText to "Burlywood1"
   end repeat
end hithLighting

In order to be able to execute this handler on the current card only,  
I have 2 other handlers in the stack script :


on preOpenCard
  then set the dontsearch of this cd to false
end preOpencard

on closeCard
  set the dontsearch of this cd to true
end closeCard
 -

Le 26 juin 06 à 10:33, Felix Theissen a écrit :


Hi,

I have a problem, I want to search a shared field for
all occurencies of TextToFind.
But what happens is:
if I search with find chars, after finding all
occurencies of TextToFind in the first card it skips to
the next card and find the same TextToFind places
in the shared field there. Setting the dontsearch propertys
of all cards but the current one to true does not change anything.
How can I achieve my goal to search the shared text field
only in the current card?

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

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



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