Oakes,

Sorry, I should have described that more clearly, I was referring to the tabstops property of fields. See tabstops in the docs.

It is a list of the form: 24,48,90,178

The numbers are distance in pixels from the left of the field. The property governs where column boundaries are located. Any tabs in your text will align to them. you can have gridlines drawn where they occur if you want or none if you don't.

You can set the tabstops in the inspector for a field or in the message box or a script like in this example:

set the tabstops of field "myfield" to "24,48,90,178,309"

Useful property

Martin


Xeubie Tsu wrote:
Martin,

What do you mean by "tab stop"? Do you have any sample code or app that incorporates this idea?

Thanks,
Oakes


From: Martin Baxter <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED],How to use Revolution <[email protected]>
To: How to use Revolution <[email protected]>
Subject: Re: hierarchical lists with collapsing arrows
Date: Thu, 13 Apr 2006 07:20:32 +0100

Xeubie Tsu wrote:
Well, I would still like it to act as a list - i.e., I want to be able to highlight items in blue. It's just that I don't want the arrow to collapse unless I click the arrow.

I'll try that workaround...not to familiar with "the clickChar," but I'll look it up. Thanks.

Oakes


From: Brian Yennie <[EMAIL PROTECTED]>
Reply-To: How to use Revolution <[email protected]>
To: How to use Revolution <[email protected]>
Subject: Re: hierarchical lists with collapsing arrows
Date: Wed, 12 Apr 2006 16:05:51 -0700

Xeubie,

What happens when you turn off the "list behavior" of that field?
It looks like this only happens with list behavior turned on - dunno if anyone else has deeper insights!

One workaround would be to use "the clickChar" to determine what exact character they actually clicked on - and make sure it was the arrow.

HTH,

- Brian

I forgot to mention, here's the code in my list field:

on linkClicked
 if the angle of image arrow.gif = 0 then
   set the angle of image arrow.gif to -90
 else
   set the angle of image arrow.gif to 0
 end if
end linkClicked

Like I said, it treats the whole list item as a link, so the arrow changes direction even if I click on the text next to the arrow. For an idea of what it looks like, I took a snapshot and attached it to this message.


From: Jim Lyons <[EMAIL PROTECTED]>
Reply-To: How to use Revolution <[email protected]>
To: How to use Revolution <[email protected]>
Subject: Re: hierarchical lists with collapsing arrows
Date: Wed, 12 Apr 2006 12:04:48 -0400

On Apr 12, 2006, at 11:11 AM, Xeubie Tsu wrote:

I'm attempting to make a list field that can organize context into "folders." I want an arrow icon next to folder names that you can click to collapse the folder. One way to get the arrow icon next to the text is to use "imagesource," but doing so makes it PART of the list field itself so you can't click on it (you can only click the whole list item).

Does anyone know an easy way to do this?

Make the first character with its imagesource set to the arrow icon also link text (ie set its text style to link) and use the linkClicked message in the field script to handle it.

Jim Lyons

What I do is perhaps not exactly simple, but I set a tab stop so that all the disclosure graphics are effectively in a table column of their own. Each line has a leading character (with or without an imagesource) followed by a tab. Then when a line is clicked, I check the horizontal mouse co-ordinate (minus the left co-ordinate of the field) to see if it is within the first column as defined by the tabstops property, and if so I treat it as a potential expand/collapse event.

I like this because it allows for some latitude in click accuracy, and lets me do entirely different things when the remainder of the line is clicked or double-clicked.

Martin Baxter
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to