little arrows Increase/decrease a field value
rev at armbase.com
rev at armbase.com
Sat Oct 8 08:07:40 EDT 2005
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
More information about the use-livecode
mailing list