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?!

Peter
--------------------------------------------------------
Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
E-mail: [EMAIL PROTECTED]
Web: http://www.reidit.co.uk

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.

Reply via email to