At 12:27 PM +0100 5/31/00, Peter Reid wrote:
>I'm using a number of paired fields as tables with a thin field
>acting as the table headings and a body field holding the main
>content of a given table. Most of the tables only need vertical
>scrolling. However, some of these have content that is too wide for
>the available window space. Therefor I'm grouping such a pair of
>fields and making the "titles" field scroll sideways whenever the
>main field is horizontally scrolled by the user.
>
>The body field ("Table" say) uses the following key handler:
>
>on scrollbarDrag
> set the hScroll of field (short name of me & "Title") to the hScroll of me
>end scrollbarDrag
>
>The titles field ("TableTitle" say) uses the following key handler:
>
>on mouseUp
> lock screen
> set the hScroll of field replaceText(short name of me,"Title","") \
> to the hScroll of me
> unlock screen
>end mouseUp
>
>Both fields have identical tab stop settings and set to use
>horizontal scrollbars. The body field overlays the scrollbar of the
>title field so it looks like a traditional table.
>
>The problem I'm having is that if I have "columns" off to the right
>(outside the current visible area) and scroll the body field, it
>doesn't always scroll the title field which behaves as if it doesn't
>have entries for the missing columns. It only seem to work fully
>when the currently visible columns exactly align with the right hand
>edge of the field.
>
>I'm using MC2.3 (the released version not the beta) on the Mac & Win
>by the way.
>
>Any ideas or suggestions please?!
Are you using the field's scrollbars and not the the group's
scrollbars? If so, I think the different formattedWidth of each field
will screw up the scrolling. i.e. if the body field text extends
beyond the width of the text of the title field, then the maximum
scroll values of the fields won't match.
Instead of using the field's horizontal scrollbars, couldn't you use
the group's horizontal scrollbar instead? Then set the width of each
field to equal the formattedWidth of the widest of the two fields.
Does that make any sense? (I think I know what I mean.)
Cheers
Dave Cragg
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.