are you sure you have the same number of columns in the two fields? ;)

I used the MetaCard example to create a vertical scrollbar yesterday and
got that behaviour when I (by mistake) happened to have one row too many
in one of the fields.

By the way, I noticed that if the multiple field already have one
scrollbar one has to alter the scripts slightly (in your case that would
be if your fields already have a vertical scrollbar). I haven't figured
out yet exactly how to get the width (or height if it is a horizontal
scrollbar) of the scrollbar (always 16?) and exactly how one should
alter the script.

I don't quite follow your mouseUp script below. Wouldn't it be better to
have it as a opencard script, i.e. initializing the scrollbar every time
the card is opened? That works fine for me with my vertical scrollbars-I
have two field in the background and then different text on each card.
Where do you put your script?


/mattias


Gregory Lypny wrote:
> 
> Hi Everyone,
> 
>      I'm trying to create a handler to synchronize the horizontal
> scrolling of two fields.  I've written the following handler based on the
> online example to initialize the scrollbar.  This works right up to the
> far right (end of the scrollbar) where the last "column" of data in the
> two fields is out of alignment.  Any thoughts?
> 
> on mouseUp
>   set the endValue of scrollbar "X" to the formattedWidth of fld "Y"
>   set the thumbSize of scrollbar "X" to the width of fld "Y"
>   set the lineInc of scrollbar "X" to the effective width of fld "Y"
>   set the pageInc of scrollbar "X" to the effective width of fld "Y"
>   set the thumbPos of scrollbar "X" to 0
> end mouseUp
> 
>      Regards,
> s

Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to