LC 8, new pushbuttons

Klaus major-k klaus at major-k.de
Mon Feb 1 05:20:19 EST 2016


Hi Bernd,

> Am 01.02.2016 um 00:36 schrieb BNig <bernd.niggemann at uni-wh.de>:
> 
> Hi Klaus,
> 
> I don't see a way for the push button,

maybe they will add this later, if I fill out an enhancement request!?

> but maybe you could use a navigation
> bar with just one item.
> It fires on mouseDown though and you have to fake the hilite/unhilite
> because it does not unhilite.
> 
> You could use this script to experiment in the script of the navigation bar
> widget called "nBar", 
> ----------------------------------
> local sNavHiliteColor = "0,121,255"
> 
> on navigate
>   set the navHiliteColor of widget "nBar" to sNavHiliteColor
>   put "navigate" && the milliseconds into field "fRes"
>   set the selectedItem of widget "nBar" to 2
>   put the navHiliteColor of widget "nBar" into line 2 of field "fRes"
>   send "resetColor" to me in 0 milliseconds
> end navigate
> 
> on resetColor
>   if the mouse is down then
>      send resetColor to me in 30 milliseconds
>   else
>      set the navHiliteColor of widget "nBar" to "120,120,120"
>   end if
> end resetColor
> ———————————————

will try this, thank you very much!

> Kind regards
> Bernd

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list