Re: clickline doesn't work with modal stack?

2008-03-29 Thread Bill Marriott
Nicolas,

> Any alternative ways of
> retrieving which line is clicked in a locked
> list field?

Yes, upgrading :) This appears to work properly in Revolution 2.9

- Bill 



___
use-revolution mailing list
use-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: clickline doesn't work with modal stack?

2008-03-29 Thread Nicolas Cueto
Found a solution !


To include empty "open/preOpen/close stack"
handlers in the modal stack.

Cheers,

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


clickline doesn't work with modal stack?

2008-03-29 Thread Nicolas Cueto
Maybe it's because I'm still on Rev 2.6 but, clicking on
a line in a locked field list is returning an empty clickLine. 
But the line does get hilited, and the behaviour works
as expected when the stack is opened not as modal
but with the Rev editor.

BTW, another less urgent unexpected behaviour
possibly related to modal stacks. An image on 
my stack is not being redrawn even after its fileName 
is set to empty. Instead, a kind of hilited blank area 
persists. (Again, this problem disappears when
stack is not opened as modal.)

So, am I right in assuming the modal state is 
the problem? If so, any alternative ways of
retrieving which line is clicked in a locked
list field?

Thanks.

--
Nicolas Cueto
___
use-revolution mailing list
use-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: List Fields and clickLine

2007-06-29 Thread Ken Ray
On Fri, 29 Jun 2007 08:48:52 -0500, Randy Hengst wrote:

> Thanks, I started an account and downloaded it. I'm sure you've 
> heard, but your work on it is very nice. I've read about it when it 
> has been referred to on the list -- now I understand its value.

Thanks!

> I'm afraid it made no difference. The problem is still shown during 
> click and drag.

Ah.. do you're clicking and *dragging*... just so I can replicate what 
you're seeing, in the example you gave before (three lines of data in a 
list field) where are you clicking, and where are you dragging to?


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


Re: List Fields and clickLine

2007-06-29 Thread Randy Hengst

Hi Ken,


On Jun 29, 2007, at 5:32 AM, Ken Ray <[EMAIL PROTECTED]> wrote:


After you get an account, you should download RevZilla for future bug
logging - it's a lot easier to use and works right inside Rev:

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


Thanks, I started an account and downloaded it. I'm sure you've  
heard, but your work on it is very nice. I've read about it when it  
has been referred to on the list -- now I understand its value.



I also tried placing the clickLine in a variable and trapping for it
in the mouseMove, mouseStilldown, or dragMove, but none of them
really eliminates the problem -- the selected line just flickers as
you move up and down the list. I couldn't think of other options. If
you know of something else I could try, please let me know.


Sure - try wrapping the code in a lock screen/unlock screen combo - no
need to use mouseUp:

on mouseDown
lock screen
if the clickline is empty then
set the hilitedlines of me to empty
beep
else
    put the value of the clickline
end if
unlock screen
end mouseDown

That should work...


I'm afraid it made no difference. The problem is still shown during  
click and drag.


take care,
randy hengst


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


Re: List Fields and clickLine

2007-06-28 Thread Ken Ray
On Thu, 28 Jun 2007 08:02:25 -0500, Randy Hengst wrote:

> Ken,
> 
> Thanks for this. I was looking for some sort of deselect line thing 
> and hadn't found hilitedLines. I'll make my first foray into the land 
> of Bugzilla.

After you get an account, you should download RevZilla for future bug 
logging - it's a lot easier to use and works right inside Rev:

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

> With setting hilitedLines to empty I still see a brief flicker when I 
> click and release just below the last line and it is still possible 
> to click in exactly the right spot so that a click and drag will 
> highlight the lines as you move up and down the list. So, I put the 
> hilitedLines to empty in my mouseUp handler, too, so the user knows 
> to try again.

Cool.
 
> I also tried placing the clickLine in a variable and trapping for it 
> in the mouseMove, mouseStilldown, or dragMove, but none of them 
> really eliminates the problem -- the selected line just flickers as 
> you move up and down the list. I couldn't think of other options. If 
> you know of something else I could try, please let me know.

Sure - try wrapping the code in a lock screen/unlock screen combo - no 
need to use mouseUp:

on mouseDown
lock screen
if the clickline is empty then
set the hilitedlines of me to empty
beep
else
put the value of the clickline
end if
unlock screen
end mouseDown

That should work...

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


Re: List Fields and clickLine

2007-06-28 Thread Randy Hengst

Ken,

Thanks for this. I was looking for some sort of deselect line thing  
and hadn't found hilitedLines. I'll make my first foray into the land  
of Bugzilla.


With setting hilitedLines to empty I still see a brief flicker when I  
click and release just below the last line and it is still possible  
to click in exactly the right spot so that a click and drag will  
highlight the lines as you move up and down the list. So, I put the  
hilitedLines to empty in my mouseUp handler, too, so the user knows  
to try again.


I also tried placing the clickLine in a variable and trapping for it  
in the mouseMove, mouseStilldown, or dragMove, but none of them  
really eliminates the problem -- the selected line just flickers as  
you move up and down the list. I couldn't think of other options. If  
you know of something else I could try, please let me know.


take care,
randy hengst
--
On Jun 28, 2007, at 12:32 AM, [EMAIL PROTECTED]  
wrote:



Message: 2
Date: Wed, 27 Jun 2007 12:20:05 -0500
From: Ken Ray <[EMAIL PROTECTED]>
Subject: Re: List Fields and clickLine
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii

On Wed, 27 Jun 2007 11:05:39 -0500, Randy Hengst wrote:


Click to highlight the choices to make sure things work as expected,
then leave choice 1 or 2 highlighted and click in the blank area
below choice 3. Using very small increments, click in the blank space
below choice 3 and move up until it highlights. If choice 3 is put,
try again using smaller increments. There is an area just below the
line where choice 3 will highlight, but the clickline reports empty.


Rev used to have a bug where if you clicked in an area below the
choices, the last choice would automatically highlight, but the
clickLine will still be empty. This has been fixed, but it seems
there's still this bug left over. Because of the earlier bug, I've
always put in an explicit "set the hilitedLines of me to empty"  in my
mouseDown trap when the clickLIne is empty. This is of course a
workaround, and I still think you should log the bug in Bugzilla, but
it works for me:

on mouseDown
  if the clickLine is empty then
set the hilitedLines of me to empty  --<< add this
beep
  else
put the value of the clickLine
  end if
end mouseDown

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


Re: List Fields and clickLine

2007-06-27 Thread Ken Ray
On Wed, 27 Jun 2007 11:05:39 -0500, Randy Hengst wrote:

> Click to highlight the choices to make sure things work as expected, 
> then leave choice 1 or 2 highlighted and click in the blank area 
> below choice 3. Using very small increments, click in the blank space 
> below choice 3 and move up until it highlights. If choice 3 is put, 
> try again using smaller increments. There is an area just below the 
> line where choice 3 will highlight, but the clickline reports empty.

Rev used to have a bug where if you clicked in an area below the 
choices, the last choice would automatically highlight, but the 
clickLine will still be empty. This has been fixed, but it seems 
there's still this bug left over. Because of the earlier bug, I've 
always put in an explicit "set the hilitedLines of me to empty"  in my 
mouseDown trap when the clickLIne is empty. This is of course a 
workaround, and I still think you should log the bug in Bugzilla, but 
it works for me:

on mouseDown
  if the clickLine is empty then
set the hilitedLines of me to empty  --<< add this
beep
  else
put the value of the clickLine
  end if
end mouseDown

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


List Fields and clickLine

2007-06-27 Thread Randy Hengst

Hi All,

I've been lurking on the list for about a year and a half. During  
that time I've been translating stacks I made using HyperStudio --  
which used a logo-based scripting language -- into Rev. I pretty much  
can now create anything in Rev I could have made with HyperStudio.  
I've found (as you know) that Rev is much more powerful.


I've begun playing with list fields this past week and was able to  
create basic drag-lines-within-a-field -- script. With the help up  
Scott Rossi's getInLine stack, Jan Schenkel's dragDropList stack and  
the recent discussion about colorizing lines in a field (thanks to  
Jim Ault for sending his stack to me) I've been able to develop a  
nice working version.


However, I've noticed an anomaly that I thought I was causing be  
adding text and returns and removing characters in my list field.  
However, I've been able to reproduce the problem in a new list field  
with no additions beyond the default three choices.


Here's the problem. In a list field it is possible to highlight the  
last line without the clickline reading any data. I've been able to  
reproduce the problem this way. Create a new stack, create a list  
field, drag the height enough to have room for several blank lines --  
but don't add any lines of text to the default three choices. Use  
this script in the field:


on mouseDown
  if the clickLine is empty then
beep
  else
put the value of the clickLine
  end if
end mouseDown


Click to highlight the choices to make sure things work as expected,  
then leave choice 1 or 2 highlighted and click in the blank area  
below choice 3. Using very small increments, click in the blank space  
below choice 3 and move up until it highlights. If choice 3 is put,  
try again using smaller increments. There is an area just below the  
line where choice 3 will highlight, but the clickline reports empty.


I noticed the problem while using Rev 2.8.1 on a PowerBook G4 with  
OSX 10.4.10. I've also been able to reproduce the problem using Rev  
2.7.4


Any thoughts would be appreciated.

take care,
randy hengst
___
use-revolution mailing list
use-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: ClickLine Solved

2006-02-07 Thread LunchnMeets
Hi Everyone,

Thanks for your suggestions. I solved the problem by putting a space 
character in the last possible line of the field. This way all the lines would 
return 
the expected clickLine.

Joe
Orlando, FL
___
use-revolution mailing list
use-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: ClickLine

2006-02-06 Thread Wally Rodriguez
I recently ran into this.. Depends on what you want. I'm not at the  
system right now, but I just tested for the number of lines in the  
field, if the number of lines was greater than 0 and the clickLine  
returned empty, then the user clicked on the last line. At that time  
you can do what you need with the info. In my case I just said that  
if the total number of lines was higher than 0 and clickLine returned  
empty then I would assume the user wanted to click on the last line.


W.

On Feb 6, 2006, at 4:08 PM, [EMAIL PROTECTED] wrote:


Hi Everyone,

Apparently "the clickLine" returns empty if a line below the last  
line of a
field is clicked. Is there a way to determine which line was  
clicked on in this

case?

Joe
Orlando, FL

___
use-revolution mailing list
use-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: ClickLine

2006-02-06 Thread Eric Chatonet

Hi,

Just make some calculation like:

return item 1 of the clickV - (the top of the target + the topMargin  
of the target) div the textHeight of the target


Not sure it's perfect: i did not test an wrote it on the fly but it  
will give you the idea...


Le 6 févr. 06 à 22:08, [EMAIL PROTECTED] a écrit :

Apparently "the clickLine" returns empty if a line below the last  
line of a
field is clicked. Is there a way to determine which line was  
clicked on in this

case?


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


ClickLine

2006-02-06 Thread LunchnMeets
Hi Everyone,

Apparently "the clickLine" returns empty if a line below the last line of a 
field is clicked. Is there a way to determine which line was clicked on in this 
case?

Joe
Orlando, FL

___
use-revolution mailing list
use-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: clickLine

2006-01-25 Thread Sarah Reichelt
 > set itemdel to tab
>select the clickLine
>put the item 1 of the clickLine into tuserID
>put tuserID into fld "field"
>
> which returns say
>
> line 6 of field 1
>
> I want to find line 6 of field 2
>

It depends on the properties of the field. If it is a list field, you
can get the selectedText as the whole line will have been selected
when you clicked.

Otherwise, I think you can get the value of line 6 of field 2 and
possibly the text of line 6 of field 2

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


clickLine

2006-01-25 Thread liamlambert

I got this to work is this the best Way

 set itemdel to tab
  select the clickLine
  put the item 1 of the clickLine into tuserID
  set itemdel to space
  get item 2 of tuserID
  put it into tlineNO
  select line tlineNo of field "bookinglist"

Liam Lambert
[EMAIL PROTECTED]
IRELAND


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


clickLine

2006-01-25 Thread liamlambert

I have a pice of code

set itemdel to tab
  select the clickLine
  put the item 1 of the clickLine into tuserID
  put tuserID into fld "field"

which returns say

line 6 of field 1

I want to find line 6 of field 2

how


thanks

Liam Lambert
[EMAIL PROTECTED]
IRELAND


___
use-revolution mailing list
use-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: clickLine and field #

2005-12-09 Thread Jeanne A. E. DeVoto

At 6:11 PM -0400 12/9/2005, Steven Fernandez wrote:

I notice that the function clickLine return the line clicked on along
with the field number. What is the "fieldNumber"? I just spent a long
time debugging a script because I could not understand what "field 3"
was when I have no field called by that name. If I look at the stack
inspector is there some way of figuring out which field is #3. I was
expecting "line 3 of field myFieldName" Learning Transcript is a
challenge. I know there is going to come a moment when I'll feel like
I got it. That moment is not here yet.


All objects can be identified by name, ID, or number - they're three 
ways of specifying the same object.


Name you know about already:
   get the text of field "My Field" -- uses the name
You find (and change) the name in the "Basic Properties" pane of the 
property inspector.


ID is assigned by the engine when the object is created, and (except 
for the ID of a stack) never changes:

  get the text of field ID 923 -- does the same thing using the ID
The ID appears in the title bar of the property inspector.

Number is related to the back-to-front layer order of objects on a card:
  get the text of field 3 -- does the same thing again using the number
The number is in the "Size and Position" pane of the property inspector.

If you use "Send to Back", "Move Backward", "Move Forward", or "Bring 
to Front" in the Object menu, the object's number may change because 
its front-to-back ordering is changing. (For cards, the number of the 
card is the order in the stack. When you open a stack, you see card 
number 1. If you "go next card", you go to card number 2, and so on.)


All of these ways of referring to an object have advantages and 
disadvantages, so you may find yourself using different ones 
depending on the circumstances. Using the name makes code easy to 
read ('put x into field "Total Amount"); on the other hand, you can 
change the name, and there can be more than one object with the same 
name, which can cause hard-to-debug problems. The ID is 
incomprehensible but stable and unique. The number is changeable, but 
is good to use if you're looping through all the fields on a card.


You can find more by checking out the name, ID, and number properties 
in the docs.

--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: clickLine and field #

2005-12-09 Thread Jim Ault
On 12/9/05 2:11 PM, "Steven Fernandez" <[EMAIL PROTECTED]> wrote:

>  If I look at the stack
> inspector is there some way of figuring out which field is #3
Yes, as answered before:  In the property inspector. but you might want
to check out
Go to Tools:Application Browser, then locate your stack on the left hand
side,  click the triangles so that you see "card id 100x" and single click
the card icon 

Shows stacks and sub stacks
Nav to each card
Also try *single clicking* on any of the rows displayed in the window

first col of checkmarks = visible  [on off]
2nd col of checkmarks, is selectable [on off]
the rest of the row sets the property inspector to that "control"

*Right click* on the row and see the menu of choices, eg "property
inspector, edit script..."
Beware of the cut, copy, clear choices.

Click on the headers and sort by viz, selectable, layer,
control-name-you-gave-it, number of script lines.

Shows the groups and nested groups (they can confuse most anyone !!)

Hope this helps in your adventures.

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


Re: clickLine and field #

2005-12-09 Thread Mark Swindell
Select your field (double click it to open its property inspector).  Go 
to size and position in its property inspector (this is the object 
inspector, not the stack inspector).

Mark

On Dec 9, 2005, at 2:44 PM, Mark Swindell wrote:


 If I look at the stack
inspector is there some way of figuring out which field is #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


Re: clickLine and field #

2005-12-09 Thread Mark Swindell
Fields are defined by both their name and their vertical position on 
the card.  If you make 3 fields and name them, in the order of 
creation, Bill, Joe and Sally, Bill will be field 1, Joe field 2, and 
Sally field 3.  If you drag one on top of the other, Bill will be on 
the bottom, Joe in the middle, and Sally on top.  If you send Sally to 
the back (Object menu, Send to Back), she becomes field 1, Bill becomes 
field 2, and Joe becomes field three.


When Rev tells you about fields, it does so by position number (field 3 
of cd 1), not by name (field Sally of cd 1).  You can tell Rev about 
your fields either by number or name  (select field 1, select field 
"Sally").


Hope this makes sense.
Mark

On Dec 9, 2005, at 2:11 PM, Steven Fernandez wrote:


I notice that the function clickLine return the line clicked on along
with the field number. What is the "fieldNumber"? I just spent a long
time debugging a script because I could not understand what "field 3"
was when I have no field called by that name. If I look at the stack
inspector is there some way of figuring out which field is #3. I was
expecting "line 3 of field myFieldName" Learning Transcript is a
challenge. I know there is going to come a moment when I'll feel like
I got it. That moment is not here yet.

Thanks

Steve
___
use-revolution mailing list
use-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


clickLine and field #

2005-12-09 Thread Steven Fernandez
I notice that the function clickLine return the line clicked on along
with the field number. What is the "fieldNumber"? I just spent a long
time debugging a script because I could not understand what "field 3"
was when I have no field called by that name. If I look at the stack
inspector is there some way of figuring out which field is #3. I was
expecting "line 3 of field myFieldName" Learning Transcript is a
challenge. I know there is going to come a moment when I'll feel like
I got it. That moment is not here yet.

Thanks

Steve
___
use-revolution mailing list
use-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 select the next clickLine of a scrolling list field

2005-07-25 Thread Ken Ray
On 7/25/05 11:43 AM, "Ban Nguyen" <[EMAIL PROTECTED]> wrote:

> Hello everyone,
> 
> Does anyone know how to select the next line of a scrolling list field?

put the hilitedLines of fld "MyListFld" into tLine
set the hilitedLines of fld "MyListFld" to (tLine+1)

OR (more compact):

set the hilitedLines of fld "MyListFld" to (the hilitedLines of fld
"MyListFld" + 1)

HTH,

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


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


How to select the next clickLine of a scrolling list field

2005-07-25 Thread Ban Nguyen

Hello everyone,

Does anyone know how to select the next line of a scrolling list field?

Thanks
___
use-revolution mailing list
use-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: select previous and next clickline

2005-07-11 Thread Sarah Reichelt
What command do you use to select the previous and next clickline  
in the

scrolling list field.  Thank you


Instead of tracking the clickLine in a global, you might do better to  
have your button get the hilitedLines of the list field. If you allow  
multiple selections, this will be a comma-delimited list of line  
numbers. If you only allow a single line to be selected at a time,  
this will be a single line number.


As well as using this line number to play the current track, you can  
also use it to move up & down the list. Here is an example script for  
a "Previous" button:


on mouseUp
  put the hilitedLine of fld "List" into tLineNum
  if tLineNum > 1 then
set the hilitedLine of fld "List" to tLineNum - 1
-- do whatever you want to do when the previous line is selected
  end if
end mouseUp

This assumes you only allow a single selection at a time.
The "Next" script will be much the same, except it needs to check for  
trying to select more lines than the field holds.


Sarah

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


Re: select previous and next clickline

2005-07-11 Thread SimPLsol

In a message dated 7/11/05 3:02:59 PM, [EMAIL PROTECTED] writes:


> 
> ___
> 

Beware of a clickLine "anomaly"; if you click on an empty line that is below 
non-empty lines; for example: click on line 7 of a field with only 4 lines and 
the clickLine returns 4, instead of 7; clicking in a scrolling field with now 
text returns zero.
Paul Looney
___
use-revolution mailing list
use-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: select previous and next clickline

2005-07-11 Thread Ban Nguyen

Thank you David.  It helps me a lot

By the way.  How can I create a volume control to control a song? And I
would like to create a progress bar for an audio.  You have any idea?
Thank you




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Squance
Sent: Monday, July 11, 2005 2:20 PM
To: How to use Revolution
Subject: Re: select previous and next clickline

Ban Nguyen wrote:

>Hello
>
>What command do you use to select the previous and next clickline in
the
>scrolling list field.  Thank you
>  
>
I think what you're looking for is 'word 2 of the clickline'. When you 
evaluate 'the clickline' (eg type 'put the clickline' so that the msg 
box opens and 'the clickline' appears in it), you will see 'line x of 
field y' where x is the line number and y is the field number. Word 2 of

the click line is the line number, so your mouseup handler would need to

include a global variable to which word 2 of the clickline is assigned. 
Then the previous button would subtract 1 from that variable and do 
whatever to that line. Similarly, the next button would add 1 to the 
variable.

I'm afraid I've lost your last post, so can't put example lines into 
your script to illustrate, but hope this helps.
Dave
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: select previous and next clickline

2005-07-11 Thread David Squance

Ban Nguyen wrote:


Hello

What command do you use to select the previous and next clickline in the
scrolling list field.  Thank you
 

I think what you're looking for is 'word 2 of the clickline'. When you 
evaluate 'the clickline' (eg type 'put the clickline' so that the msg 
box opens and 'the clickline' appears in it), you will see 'line x of 
field y' where x is the line number and y is the field number. Word 2 of 
the click line is the line number, so your mouseup handler would need to 
include a global variable to which word 2 of the clickline is assigned. 
Then the previous button would subtract 1 from that variable and do 
whatever to that line. Similarly, the next button would add 1 to the 
variable.


I'm afraid I've lost your last post, so can't put example lines into 
your script to illustrate, but hope this helps.

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


select previous and next clickline

2005-07-11 Thread Ban Nguyen
Hello

What command do you use to select the previous and next clickline in the
scrolling list field.  Thank you

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


ClickLine woes

2005-06-06 Thread SimPLsol
Jeanne et al.,
One area where I've found the transition from HC to Rev to be difficult is 
the different ways they handle the clickLine.

I have two fields. The one on the left is a label field, shared text which 
appears on all cards. The one on the right contains data that changes from card 
to card. The one on the right is no problem.

With HyperCard, I could trap for Option clicks in the left field, put up an 
Ask dialog that asked the user if they wanted to edit line (word two of the 
clickLine) of the field clicked, and then do some things based on their 
response.

With Rev, the clickLine returns the number of the line clicked only if you 
click on a line with text. For example: if there are two lines of text in the 
field and 
1. you click on line one, word 2 of the clickLine is 1
2. you click on line two, word 2 of the clickLine is 2
3. you click line three (or any higher number), word 2 of the clickLine is 0. 

4. If there is no text in the field, word 2 of the clickLine is 0 - no matter 
where you click.

Different situation: I have third field, a scrolling field that goes to the 
left of the label field described above. This is a locked field used for 
putting checkmarks in front of items that have been completed. I get the same 
clickLine problem - if the user first clicks on line five the checkmark will go 
into 
line 1, if this field is empty. But if a lower line (say, line 9) contains 
text, then the checkmark will go into line 5 (or any other line clicked if it 
is 
lower than 9).

I suppose I could put a space (or X) on line 25,000 of each of these fields 
but the user might get confused to see really tiny proportional scrollbars on 
an empty field.

Is there a better way?

Jeanne, could we document this clickLine behavior? I would have found it very 
helpful just to know what was happening.

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


Re: clickLine

2004-09-18 Thread Yves COPPE
Le 18-sept.-04, à 22:19, Mark Talluto a écrit :
On Sep 18, 2004, at 12:56 PM, Yves COPPE wrote:
Hi list
I have a fld with locktext to true
there are empty lines in the fld
so when the user clicks in the fld :
if there is text in the line, the clickLine returns "line x of fld y"
if there is no text in the line, the clickLine returns empty
How can I know which line has been clicked no matter if there is text 
or not in the line ??

thank you for your help
Is this field something you have control over?  If so, you could write 
a routine that replaced blank lines with a single space.  This could 
be temporary or permanent.  It would depend on your needs.  Then you 
could get a reliable answer from the clickLine.

--
thank you, it works great.
Greetings.
Yves COPPE
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: clickLine

2004-09-18 Thread Mark Talluto
On Sep 18, 2004, at 12:56 PM, Yves COPPE wrote:
Hi list
I have a fld with locktext to true
there are empty lines in the fld
so when the user clicks in the fld :
if there is text in the line, the clickLine returns "line x of fld y"
if there is no text in the line, the clickLine returns empty
How can I know which line has been clicked no matter if there is text 
or not in the line ??

thank you for your help
Is this field something you have control over?  If so, you could write 
a routine that replaced blank lines with a single space.  This could be 
temporary or permanent.  It would depend on your needs.  Then you could 
get a reliable answer from the clickLine.

--
Best regards,
Mark Talluto
http://www.canelasoftware.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


clickLine

2004-09-18 Thread Yves COPPE
Hi list
I have a fld with locktext to true
there are empty lines in the fld
so when the user clicks in the fld :
if there is text in the line, the clickLine returns "line x of fld y"
if there is no text in the line, the clickLine returns empty
How can I know which line has been clicked no matter if there is text 
or not in the line ??

thank you for your help
Greetings.
Yves COPPE
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: the texstyle of the clickline

2004-09-09 Thread Éric Chatonet
Bonjour Leo,
In Revolution, objects inherit some of the properties of their owner.
That is especially true for text attributes, colors, patterns and so on.
When such a property is inherited, asking for it returns empty.
The docs says: Use the effective keyword to get the displayed property 
of an object, regardless of whether the object itself has that property 
set.
So in your handler:

on mouseUp
  if the effective textstyle of the clickline is "plain" then
set the textstyle of the clickline to "bold"
  else
set the textstyle of the clickline to "plain"
  end if
end mouseup
Le 8 sept. 04, à 22:24, [EMAIL PROTECTED] a écrit :
Message: 6
Date: Wed, 8 Sep 2004 18:56:18 +0200
From: [EMAIL PROTECTED]
Subject: the texstyle of the clickline
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Hello,
I have a card with a locked field and many lines of text inside.
The script of this field is :
on mouseup
     if the textstyle of the clickline is "plain" then set the 
textstyle
of the clickline to "bold" else set the textstyle of the clickline to
"plain"
end mouseup

I used this script under Hypertalk with no problem.
Under Revolution, this script don't work correctly.
When the textstyle is "plain", I saw than sometimes the textstyle of
the clickline can be "plain" and sometimes can be empty.
With others textstyles (bold, italic, underline, etc...) there is no
problem.
I rectified this script like this :
on mouseup
   if (the textstyle of the clickline is "plain" or the textstyle of 
the
clickline is empty) then ..
end mouseup

Is there a better solution ?
Thanks
Leo
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe :  33 1 43 31 77 62
Mobile :33 6 20 74 50 89
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: the texstyle of the clickline

2004-09-08 Thread Frank D. Engel, Jr.
Or maybe this:
if the textStyle of the clickline is empty then set the textStyle of 
the clickline to bold
else if "bold" is among the items of the textStyle of the clickline then
  put the textStyle of the clickline into x
  delete item itemOffset("bold", x) of x
  set the textStyle of the clickline to x
else set the textStyle of the clickline to (the textStyle of the 
clickline) & ",bold"


This way, any other styles are not modified by the code.  Of course, 
this only matters if there might be other styles.

In the other case, you might consider this:
if the textStyle of the clickline is bold then set the textStyle of the 
clickline to plain
else set the textStyle of the clickline to bold

On Sep 8, 2004, at 3:49 PM, Björnke von Gierke wrote:
maybe this is what you need?
if the textstyle of the clickline contains "bold" is false then
  set the textstyle of the clickline to "bold"
else
  set the textstyle of the clickline to "plain"
end if
On Sep 08 2004, at 18:56, [EMAIL PROTECTED] wrote:
Hello,
I have a card with a locked field and many lines of text inside.
The script of this field is :
on mouseup
if the textstyle of the clickline is "plain" then set the 
textstyle of the clickline to "bold" else set the textstyle of the 
clickline to "plain"
end mouseup

I used this script under Hypertalk with no problem.
Under Revolution, this script don't work correctly.
When the textstyle is "plain", I saw than sometimes the textstyle of 
the clickline can be "plain" and sometimes can be empty.
With others textstyles (bold, italic, underline, etc...) there is no 
problem.

I rectified this script like this :
on mouseup
  if (the textstyle of the clickline is "plain" or the textstyle of 
the clickline is empty) then ..
end mouseup

Is there a better solution ?
Thanks
Leo
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

---
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>

___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: the texstyle of the clickline

2004-09-08 Thread Björnke von Gierke
maybe this is what you need?
if the textstyle of the clickline contains "bold" is false then
  set the textstyle of the clickline to "bold"
else
  set the textstyle of the clickline to "plain"
end if
On Sep 08 2004, at 18:56, [EMAIL PROTECTED] wrote:
Hello,
I have a card with a locked field and many lines of text inside.
The script of this field is :
on mouseup
if the textstyle of the clickline is "plain" then set the 
textstyle of the clickline to "bold" else set the textstyle of the 
clickline to "plain"
end mouseup

I used this script under Hypertalk with no problem.
Under Revolution, this script don't work correctly.
When the textstyle is "plain", I saw than sometimes the textstyle of 
the clickline can be "plain" and sometimes can be empty.
With others textstyles (bold, italic, underline, etc...) there is no 
problem.

I rectified this script like this :
on mouseup
  if (the textstyle of the clickline is "plain" or the textstyle of 
the clickline is empty) then ..
end mouseup

Is there a better solution ?
Thanks
Leo
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: the texstyle of the clickline

2004-09-08 Thread Jan Schenkel
--- [EMAIL PROTECTED] wrote:
> Hello,
> 
> [snip]
> 
> When the textstyle is "plain", I saw than sometimes
> the textstyle of 
> the clickline can be "plain" and sometimes can be
> empty.
> With others textstyles (bold, italic, underline,
> etc...) there is no 
> problem.
> 
> I rectified this script like this :
> 
> on mouseup
>if (the textstyle of the clickline is "plain" or
> the textstyle of the 
> clickline is empty) then ..
> end mouseup
> 
> Is there a better solution ?
> 
> Thanks
> 
> Leo
> 

Bonjour Leo,

The only thing I can think of is to shorten it to :
--
  if the textStyle of the clickLine is among \
 the items of ",plain" then ...
--

But you're right, it's one of those peculiarities of
Revolution versus HyperCard.

Jan Schenkel.

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



___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


the texstyle of the clickline

2004-09-08 Thread doupsy
Hello,
I have a card with a locked field and many lines of text inside.
The script of this field is :
on mouseup
if the textstyle of the clickline is "plain" then set the textstyle 
of the clickline to "bold" else set the textstyle of the clickline to 
"plain"
end mouseup

I used this script under Hypertalk with no problem.
Under Revolution, this script don't work correctly.
When the textstyle is "plain", I saw than sometimes the textstyle of 
the clickline can be "plain" and sometimes can be empty.
With others textstyles (bold, italic, underline, etc...) there is no 
problem.

I rectified this script like this :
on mouseup
  if (the textstyle of the clickline is "plain" or the textstyle of the 
clickline is empty) then ..
end mouseup

Is there a better solution ?
Thanks
Leo
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing the clickLine

2004-02-04 Thread Ken Norris
Hello Jan,

> Date: Wed, 4 Feb 2004 00:37:35 -0800 (PST)
> From: Jan Schenkel <[EMAIL PROTECTED]>
> Subject: Re: Changing the clickLine

> If you have a lot of lines, this constanht refrssh of
> data can hurt performance, but I've explained aq
> solution to that on the Revolution Documentation WIKI.
> Link :
> <http://www.macitworks.com:8080/revdocs>
---
I'd like to read your explanation, but I'm getting an error -- The specified
server could not be found.

Ken N.



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


Re: Changing the clickLine

2004-02-04 Thread J. Landman Gay
On 2/4/04 1:48 AM, Gardner, Joseph A wrote:

Jacque et. al, I dived into the "selectionChanged" quagmire and the
first thing I found in the docs was "The selectionChanged message is
not sent if the user uses the arrow keys to change the selection."
Oops. The docs are wrong, I'm afraid. SelectionChanged works fine with 
arrow keys.

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


Re: Changing the clickLine

2004-02-04 Thread Richard Gaskin
Jan Schenkel wrote:

> There is a simple way of getting around the built-in
> limitation that the arrowkeys don't trigger the
> selectionChanged handler

I think this is one of those rare cases where my being too lazy to RTFM has
paid off:  I didn't know selectionChanged was documented as not working with
arrow keys so just the other day I built something that uses it -- and it
works.

Perhaps this is a fairly recent change (in my experience it's been very rare
that I've found a mismatch between the documentation and actual behavior),
but it's a welcome one for me.

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

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


Re: Changing the clickLine

2004-02-04 Thread Jan Schenkel
--- "Gardner, Joseph A" <[EMAIL PROTECTED]> wrote:
> Jacque et. al, I dived into the "selectionChanged"
> quagmire and the first thing I found in the docs was
> "The selectionChanged message is not sent if the
> user uses the arrow keys to change the selection."
> Ouch! The weird thing is that the selected line in
> the field does move up and down with the arrows (a
> result of the textKeys being "true"), but no action
> is done on the files so named in the field. So I'm
> now investigating the "rawKeyUp" message in hopes it
> will lead me to the solution I'm looking for.
> 
> OTOH, I've really simplified my code quite a bit
> using "selectionChanged". Richard was right; once I
> unlearned a bit, it actually came easily. Fear not,
> I'm _really_ loving Rev (bugs and all)!
> 
> joe.
> 

Hi Joe,

There is a simple way of getting around the built-in
limitation that the arrowkeys don't trigger the
selectionChanged handler :
--
on arrowKey pDirection
  send "selectionChanged" to me in 10 milliseconds
  pass arrowKey
end arrowKey
--

If you have a lot of lines, this constanht refrssh of
data can hurt performance, but I've explained aq
solution to that on the Revolution Documentation WIKI.
Link :


Hope this helped,

Jan Schenkel.

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

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


Re: Changing the clickLine

2004-02-03 Thread J. Landman Gay
On 2/3/04 9:51 PM, Gardner, Joseph A wrote:

The field I have created has traversalOn set to "true"
and lockText also set to "true". What I really need is to get the
up/down arrow keys to change the clickLine and then simulate a mouse
click at the clickLine location.
The magic word, as Richard mentioned, is "selectionChanged". You get 
that message whether the user clicks in a field or uses the arrow keys 
to navigate it (provided traversalOn is true.) Trap it with a handler. 
Within the handler, check the value of the hilitedline, and you are in.

on selectionChanged
 put line (the hilitedline of me) of me into theTextValue
 -- go from here
end selectionChanged
--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing the clickLine

2004-02-03 Thread Gardner, Joseph A
Erik, this works one way, but how do I do the reverse (i.e., "put tKlikLine into the 
clickLine")? It always seems to put tKlikLine into whatever line in the field was 
specified by the clickLine. I'm hoping I can change the actual _wording_ of the 
clickLine itself rather than just acting on the line specified by the clickLine.

Appreciate your suggestion!

joe.

Erik said:

> I'd like to change 
> "line 1 of field 1" to 
> "line 2 of field 1".

put the clickLine into tKlikLine
put 2 into word 2 of tKlikLine
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing the clickLine

2004-02-03 Thread Thomas McGrath III
Richard,

I just used the 'repeat for each' tonight and was actually very nervous 
because I was not used to it. It was like it didn't make sense to me. 
But actually it was what you said, i had to "unlearn" from how I did it 
before in SC.

Well now that I've used it I love it. And yes custom properties are 
very cool, too. I have a lot of plans for them in a future project.

I have yet to play with selectionChanged. I guess that will be next.

Thank you

Tom

On Feb 3, 2004, at 11:19 PM, Richard Gaskin wrote:

  My favorite example is the "repeat for each"
contruct, but custom property sets are a close second for me.   The
selectionChanged and selectedObjectChanged messages are way up on that 
list
too.

--
 Richard Gaskin
 Fourth World Media Corporation
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing the clickLine

2004-02-03 Thread Scott Rossi
On 2/3/04 7:51 PM, "Gardner, Joseph A" <[EMAIL PROTECTED]> wrote:

> The field I have created has traversalOn set to "true" and lockText also set
> to "true". What I really need is to get the up/down arrow keys to change the
> clickLine and then simulate a mouse click at the clickLine location.

Can you use the hilitedLines property?  It sounds like what you're doing
should not involve a mouseClick at all.

Regards,

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

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


Re: Changing the clickLine

2004-02-03 Thread Richard Gaskin
Gardner, Joseph A wrote:

> Richard said:
> 
>> What I'm trying to do is "navigate" a list field using the up/down arrow
>> keys.
> 
> If you turn on the traversalOn property for the field that behavior happens
> automatically.
>
> Yes, that's true, Richard, but it's quite different from the action of
> clicking a line in the field and performing an action on a file with the name
> of the text that you clicked on (the "value" of the clickLine). The field I
> have created has traversalOn set to "true" and lockText also set to "true".
> What I really need is to get the up/down arrow keys to change the clickLine
> and then simulate a mouse click at the clickLine location.
> 
> Man, this was so easy in Hypercard! :)

Why would the same methods you enjoyed in HyperCard not work in Rev?  You
can work just as hard if you need to. :)

As with HC, in Rev you can trap the arrowkey message and manually set the
hilitedLines, and also trap mouseDown, and then do something with the
selectedText.

Rev just provides a simpler alternative as an "also":  turn on the
traversalOn property, then respond to the selectionChanged message; the
arrowKey response is then automatic, and you get the same selectionChanged
message in response to clicks as well so the scripting should be just a tad
simpler than could be done in HC, where you'd have to handle both the
arrowKey and mouseDown messages separately.


People sometimes joke that Scott Raney (the inventor of the Rev engine)
holds a doctorate in cognitive psychology yet made a very ugly IDE (see the
old MetaCard IDE to see why that's funny).  But truth be told he put his
degree to good use, only his focus was on the engine and it's language
design.

A lot of things can be done differently in Rev than one might do the same
thing in HC or SC, but more often than not the Rev engine offers an
alternative which may take some "unlearning" to get used to but offers
bigger bang for the buck.  My favorite example is the "repeat for each"
contruct, but custom property sets are a close second for me.   The
selectionChanged and selectedObjectChanged messages are way up on that list
too.

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

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


Re: Changing the clickLine

2004-02-03 Thread Gardner, Joseph A
Yes, that's true, Richard, but it's quite different from the action of clicking a line 
in the field and performing an action on a file with the name of the text that you 
clicked on (the "value" of the clickLine). The field I have created has traversalOn 
set to "true" and lockText also set to "true". What I really need is to get the 
up/down arrow keys to change the clickLine and then simulate a mouse click at the 
clickLine location.

Man, this was so easy in Hypercard! :)

joe.


Richard said:

> What I'm trying to do is "navigate" a list field using the up/down arrow keys.

If you turn on the traversalOn property for the field that behavior happens 
automatically.


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


Re: Changing the clickLine

2004-02-03 Thread Richard Gaskin
Gardner, Joseph A wrote:

> What I'm trying to do is "navigate" a list field using the up/down arrow keys.

If you turn on the traversalOn property for the field that behavior happens
automatically.

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

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


Re: Changing the clickLine

2004-02-03 Thread Gardner, Joseph A
Pretty close, Jan. :) What I'm trying to do is "navigate" a list field using the 
up/down arrow keys. This field shows the contents of a folder of text files and when a 
line is clicked the contents of the clickLine file are displayed. To speed up the 
process, I want to be able to display each file simply by pressing the up and down 
arrow keys rather than messing with the mouse. And rather than highlighting the line 
in the field, I've got it so that the text color is changed from red to black when a 
line is clicked (and the file displayed). That way the user knows which files have 
been read. Although this may still count as a highlighted line...

Anyway, I'll take a look at the "hilitedLines" property and see if that can indeed be 
used in conjunction with the clickLine to provide easier navigation.

Thanks as always! Did anyone mention recently that you're a fount of knowledge?

joe.


Jan said:

Let me first make an educated guess : are you trying
to change which line is hilited in a list field ?
If so, have a look at the hilitedLines property :
--
  set the hilitedLines of field "Foobar" to "3"
--
If not, could you explain your goal ?

Hope this helped,

Jan Schenkel.


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


Re: Changing the clickLine

2004-02-03 Thread erik hansen
--- "Gardner, Joseph A" <[EMAIL PROTECTED]>
> wrote:
I'd like to change 
"line 1 of field 1" to 
"line 2 of field 1".

put the clickLine into tKlikLine
put 2 into word 2 of tKlikLine

clickChunk & clickCharChunk
are also useful (thanks Ken).

Erik Hansen

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

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


Re: Changing the clickLine

2004-02-03 Thread Jan Schenkel
--- "Gardner, Joseph A" <[EMAIL PROTECTED]> wrote:
> Hello group. Is there an easy way to change the
> clickLine? For example, I'd like to change "line 1
> of field 1" to "line 2 of field 1". I've tried to
> put 2 into word 2 of the clickLine, but that just
> puts "2" into the field. Any advice on modifying the
> clickLine?
> 
> Many thanks in advance...
> 
> joe.
> 

Hi Joe,

Let me first make an educated guess : are you trying
to change which line is hilited in a list field ?
If so, have a look at the hilitedLines property :
--
  set the hilitedLines of field "Foobar" to "3"
--
If not, could you explain your goal ?

Hope this helped,

Jan Schenkel.

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

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


Changing the clickLine

2004-02-03 Thread Gardner, Joseph A
Hello group. Is there an easy way to change the clickLine? For example, I'd like to 
change "line 1 of field 1" to "line 2 of field 1". I've tried to put 2 into word 2 of 
the clickLine, but that just puts "2" into the field. Any advice on modifying the 
clickLine?

Many thanks in advance...

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


Re: ClickLine

2002-01-13 Thread Shao Sean

> If this is a list field, try
>   set the hilitedLines of field "Whatever" to empty

i put "select empty" in a mouseLeave handler if you're using a standard text
field..

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



Re: ClickLine

2002-01-12 Thread Jeanne A. E. DeVoto

At 2:01 PM -0800 1/11/2002, yves COPPE wrote:
>If the user click a line in a fld with the lockText property set to
>true, the selection stays on the clickedLine.
>I've tried to deselect the fld by writing in a script :
>
>select empty
>
>but it doesn't work

If this is a list field, try

  set the hilitedLines of field "Whatever" to empty

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


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



Re: ClickLine

2002-01-12 Thread yves COPPE

>on 1/11/02 2:01 PM, yves COPPE at [EMAIL PROTECTED] wrote:
>
>>  Hello,
>>
>>  If the user click a line in a fld with the lockText property set to
>>  true, the selection stays on the clickedLine.
>>  I've tried to deselect the fld by writing in a script :
>>
>>  select empty
>>
>>  but it doesn't work
>>
>>  Someone has an idea ???
>>
>--
>Try:
>
>select line 0 of field "whatever"
>
>Best regards,
>Ken N.
>


It doesn't workŠ
another idea ?

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



Re: ClickLine

2002-01-11 Thread Ken Norris (dialup)

on 1/11/02 2:01 PM, yves COPPE at [EMAIL PROTECTED] wrote:

> Hello,
> 
> If the user click a line in a fld with the lockText property set to
> true, the selection stays on the clickedLine.
> I've tried to deselect the fld by writing in a script :
> 
> select empty
> 
> but it doesn't work
> 
> Someone has an idea ???
> 
--
Try:

select line 0 of field "whatever"

Best regards,
Ken N.

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



ClickLine

2002-01-11 Thread yves COPPE

Hello,

If the user click a line in a fld with the lockText property set to 
true, the selection stays on the clickedLine.
I've tried to deselect the fld by writing in a script :

select empty

but it doesn't work

Someone has an idea ???


-- 
Greetings.

Yves COPPE

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