Re: Buttons over fields

Scott Raney ((no email))
Mon, 21 Nov 94 13:17:56 MST

>
> Raney wrote:
> > It's possible to simulate overlaying buttons and images on a scrolling
> > text field by creating a separate scrollbar and setting both the
> > "scroll" property of the field and the position of the other object in
> > a scrollbarDrag handler
>
> What is the property of image which I can set?
> When I use separate scrollbar the scroll-property of
> fields works just fine. But what is the property of image
> that moves along the thumb of scrollbar?
>
> Anna L.

Just to prove to myself that this would even work, I've built a stack
that demonstrates how to simulate putting images in fields, including
the scripts you need. It actually works pretty well, though getting
the images to appear in the right place is a real pain. The trick is
to enclose all the objects in a group and to set the lockLocation of
the group to true. This makes the group handle the clipping of the
image/button objects so that they look like they're part of the field.
The lockLocation property is a new feature to 1.4, and this trick
doesn't work without it.

Here's the stack, gzipped and uuencoded. To see it, save this message
to a file (e.g., x.uu), uudecode x.uu, gunzip scrolldemo.gz, then
bring up MetaCard and type "go scrolldemo" into the Message Box:

begin 644 scrolldemo.gz
M'XL("(W[T"X W-C<F]L;&1E;6\ Q5=-;"3%%7[MO[5G9W\![0]_CV&QO=J!
M75N+8#FLXMV-8RMK9<&&:%$44=-3,U-Q=U=O5;7'LX<((G&(. >(Q"$2(A+*
M+?>-HD@<<@8AE$M^CD$A0>*"%(F\JNJ::8^=);>TI?'KJE?O_WVO^LDG+K9$
M=E'W:D_B!C?L.E-M7'KF,FK#XFU:W.IQ[,@DD7V1=5%HS*3!E<WKZ^MH^*YI
M$HN6M-C'OBR2-K8X,NQ*V48C4HY&XAV4A4'9P50J7J_Q71YC&N.Y2]@X]YU&
M#?ZOST3TU&:LR#^\P5/9U(YN$UE;DREOIG&/_M6&D=G@68'7F*(-(V6B:VL\
MR7$]:_-=RTLO-2<GC9T,2^.F++*VIB7M"!*F->MRO"9WAV)N");(KEU"*S'(
M&NK=*HQ4Q*.K.ULLV<:7>(<KGL5\WYG5E1?#VF:1YU*9?2RO<*6%S,+Z31'S
M3-L\!XZP Y, DU]"O1(K@*FYU^ YF'[HH>GI4Z=@YEI"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 5,MI;@+]??*M?@O7]_ $U8I$_\VR1BQB_.#?G_2?S+%?[HD2'_J^/\,_ ?
(P%VP8R<1 #?

end

-- 
***********************************************************************
* Scott Raney  303-447-3936            Remember: the better you look, *
* raney@metacard.com                   the more you'll see -- Lidia   *
***********************************************************************