little arrows Increase/decrease a field value
rev at armbase.com
rev at armbase.com
Sat Oct 8 08:26:04 EDT 2005
Quoting rev at armbase.com:
Oh yeah. I'm in Homer Simpson mode today.... :-)
Helps if I get the names right. I forgot the t before the name.
Brackets not needed. Both work
on scrollbarLineDec
Put field ButtonWidth into tBtnWidth
put tBtnWidth + 1 into BtnWidth
Put BtnWidth into field ButtonWidth
end scrollbarLineDec
on scrollbarLineInc
Put field ButtonWidth into tBtnWidth
put (tBtnWidth -1) into BtnWidth
Put BtnWidth into field ButtonWidth
end scrollbarLineInc
> Hi All
>
> i've searched the docs on the little arrows (in the tools). I wanty
> to increase
> the numeric value of a field using the little arrows at the side
>
> It seems that they are Scrollbars and A search for scrollbars says
> use something
> like this.
> on scrollbarLineDec
> Put field ButtonWidth into tBtnWidth
> put (BtnWidth + 1) into BtnWidth
> Put BtnWidth into field ButtonWidth
> end scrollbarLineDec
>
> on scrollbarLineInc
> Put field ButtonWidth into tBtnWidth
> put (BtnWidth -1) into BtnWidth
> Put BtnWidth into field ButtonWidth
> end scrollbarLineInc
>
> These both fail (when the () are removed the don't work either)
>
> I would have thought that something as simple as this and in the tools would
> have a section in the docs?
>
> Heeeelp. :-)
>
> Cheers
> Bob
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list