Re: Getting a Label Field to Scroll with Another Field

2010-03-16 Thread Gregory Lypny
Thank you, Sarah and Bernd,

Padding on the right is the trick then, perhaps even with spaces.  And I like 
your idea, Bernd, of padding a line other then the first.  That way, if the 
title line is copied as headers of an export file, you're getting only the 
original titles and not the padding.

Thanks again,

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


Re: Getting a Label Field to Scroll with Another Field

2010-03-16 Thread Andre.Bisseret

Bonjour,

Gregory, I have several several layouts like yours (one Titles field  
on top of one Table). My titles fields are a text fields, not label  
fields.


I don't think it'is a matter of different formattedWidth of the  
contents of the columns. I have columns where the formattedWidth of  
titles and data is very different (titles longer than data or vice  
versa).


set the hScroll of fld "titles to the hScroll of fld ""table" works  
well.


But actually, what Sarah said is important (as usual ;-))). I missed  
to pinpoint that. You need to get one tab more in the title fields  
than in the data field (the longest data field line in fact).


I Never used label fields before for showing a line of several  
headers. I just tried it and seems OK, but only if the text is left  
aligned.

Learning something each day ;-))

Best regards from Grenoble

André


Le 15 mars 10 à 21:35, Gregory Lypny a écrit :


Hi André,

Thanks.  No problem, I knew what you meant.  Unfortunately, the  
scrolling still does not align the two because, I believe, the title  
field's contents are not as wide as that of the data field.  I think  
I need to pad the title field with spaces to get make it the same  
formattedWidth as the data field.


Thanks again,


Gregory

Montreal

On Mon, Mar 15, 2010, at 3:51 PM, use-revolution-requ...@lists.runrev.com 
 wrote:



Gregory, in my previous post, I wanted to mean "changing the
alignement to "LEFT aligned" for your label field"!!
and actually, by default a label field is right aligned.

Sorry for this mistake!

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: Getting a Label Field to Scroll with Another Field

2010-03-15 Thread BNig

Gregory,
what you could do if you don't mind the redundancy:
put the text of the tablefield into line 5 of the header field.
The idea is that then you have the same formatted width in the title field
as in the header field. But since you probably only show one line in the
title field this would be invisible to the user.
Then your scroll is in sync. You would have to adjust the title field in
case your table field has a vertical scrollbar, just make the title field
that much smaller. And make shure the borderwidth of both fields is the
same. And you dont have to show the horizontal scrollbar in the title field,
you can still set the hscroll from the scrollbar of the table field.
regards
Bernd
-- 
View this message in context: 
http://n4.nabble.com/Getting-a-Label-Field-to-Scroll-with-Another-Field-tp1593534p1594162.html
Sent from the Revolution - User mailing list archive at Nabble.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: Getting a Label Field to Scroll with Another Field

2010-03-15 Thread Sarah Reichelt
I've done this but I had to make sure that the titles field content  
was wider than the data field's. Just add tabs to the headers until  
they are one column longer. Then your scrolling script should work.


Cheers,
Sarah

Sent from my iPhone

On 16/03/2010, at 1:29 AM, Gregory Lypny   
wrote:



Hello Everyone,

I have a list field called Table A.  It has a horizontal scrollbar,  
a vertical grid and tab stops set to 80.  The contents are tab  
delimited, and the formatted width of many of the items in a line,  
particularly the last item, is much greater than 80.  I also have a  
label field called Titles A directly above Table A.  It has column  
titles in it, and so it has the same vertical grid and tab stops as  
Table A.


I'd like those column titles in Titles A to be synchronized with the  
horizontal scrolling of Table A.  As a start, I tried the following.


on scrollBarDrag
  set the hScroll of fld "Titles A" to the hScroll of fld "Table A"
end scrollBarDrag

It didn't work.  The titles scrolled only a little.  I figure that  
is because the content of the lines of Table A is much wider than  
that of Titles A.  I tried inserting some blank titles at the end  
Titles A but that didn't help either.  The content of Table A will  
be changing, so I'd like the synchronized scrolling to handle that.


Any tips would be most appreciated.

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: Getting a Label Field to Scroll with Another Field

2010-03-15 Thread Gregory Lypny
Hi André,

Thanks.  No problem, I knew what you meant.  Unfortunately, the scrolling still 
does not align the two because, I believe, the title field's contents are not 
as wide as that of the data field.  I think I need to pad the title field with 
spaces to get make it the same formattedWidth as the data field.

Thanks again,


Gregory

Montreal

On Mon, Mar 15, 2010, at 3:51 PM, use-revolution-requ...@lists.runrev.com wrote:

> Gregory, in my previous post, I wanted to mean "changing the  
> alignement to "LEFT aligned" for your label field"!!
> and actually, by default a label field is right aligned.
> 
> Sorry for this mistake!
> 
> 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 a Label Field to Scroll with Another Field

2010-03-15 Thread Andre.Bisseret
Gregory, in my previous post, I wanted to mean "changing the  
alignement to "LEFT aligned" for your label field"!!

and actually, by default a label field is right aligned.

Sorry for this mistake!

André


Le 15 mars 10 à 16:29, Gregory Lypny a écrit :


Hello Everyone,

I have a list field called Table A.  It has a horizontal scrollbar,  
a vertical grid and tab stops set to 80.  The contents are tab  
delimited, and the formatted width of many of the items in a line,  
particularly the last item, is much greater than 80.  I also have a  
label field called Titles A directly above Table A.  It has column  
titles in it, and so it has the same vertical grid and tab stops as  
Table A.


I'd like those column titles in Titles A to be synchronized with the  
horizontal scrolling of Table A.  As a start, I tried the following.


on scrollBarDrag
  set the hScroll of fld "Titles A" to the hScroll of fld "Table A"
end scrollBarDrag

It didn't work.  The titles scrolled only a little.  I figure that  
is because the content of the lines of Table A is much wider than  
that of Titles A.  I tried inserting some blank titles at the end  
Titles A but that didn't help either.  The content of Table A will  
be changing, so I'd like the synchronized scrolling to handle that.


Any tips would be most appreciated.

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: Getting a Label Field to Scroll with Another Field

2010-03-15 Thread Andre.Bisseret


Le 15 mars 10 à 16:29, Gregory Lypny a écrit :


Hello Everyone,

I have a list field called Table A.  It has a horizontal scrollbar,  
a vertical grid and tab stops set to 80.  The contents are tab  
delimited, and the formatted width of many of the items in a line,  
particularly the last item, is much greater than 80.  I also have a  
label field called Titles A directly above Table A.  It has column  
titles in it, and so it has the same vertical grid and tab stops as  
Table A.


I'd like those column titles in Titles A to be synchronized with the  
horizontal scrolling of Table A.  As a start, I tried the following.


on scrollBarDrag
  set the hScroll of fld "Titles A" to the hScroll of fld "Table A"
end scrollBarDrag

It didn't work.  The titles scrolled only a little.  I figure that  
is because the content of the lines of Table A is much wider than  
that of Titles A.  I tried inserting some blank titles at the end  
Titles A but that didn't help either.  The content of Table A will  
be changing, so I'd like the synchronized scrolling to handle that.


Bonjour Gregory,

You might try to set your label field "right aligned" (pane Text  
formatting of the inspector).

(By default, a label field is "left aligned").

Not sure that a label field be optimum if you need it scrolling. If  
the change "right align" does not fix your problem, then try a normal  
text field instead for you columns headers, I am pretty sure that your  
"on scrollBarDrag" would works well.


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 a Label Field to Scroll with Another Field

2010-03-15 Thread Jim Lambert
> 
> I'd like those column titles in Titles A to be synchronized with the 
> horizontal scrolling of Table A.


Make sure the tabstops and left & right margins of the title field are the same 
as your table field's.

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


Getting a Label Field to Scroll with Another Field

2010-03-15 Thread Gregory Lypny
Hello Everyone,

I have a list field called Table A.  It has a horizontal scrollbar, a vertical 
grid and tab stops set to 80.  The contents are tab delimited, and the 
formatted width of many of the items in a line, particularly the last item, is 
much greater than 80.  I also have a label field called Titles A directly above 
Table A.  It has column titles in it, and so it has the same vertical grid and 
tab stops as Table A.

I'd like those column titles in Titles A to be synchronized with the horizontal 
scrolling of Table A.  As a start, I tried the following.

on scrollBarDrag
   set the hScroll of fld "Titles A" to the hScroll of fld "Table A"
end scrollBarDrag

It didn't work.  The titles scrolled only a little.  I figure that is because 
the content of the lines of Table A is much wider than that of Titles A.  I 
tried inserting some blank titles at the end Titles A but that didn't help 
either.  The content of Table A will be changing, so I'd like the synchronized 
scrolling to handle that.

Any tips would be most appreciated.

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