Announcement

Collapse
No announcement yet.

Isolating Button Values

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Isolating Button Values

    This is what I have been able to figure out about buttons:
    • " Click Me @URL=EFS:myFunction" in the Text parameter of a drawText function will create a button that says " Click Me " and will call myFunction when clicked passing a numeric value.
    • The value passed will be 1 (BUTTON_LEFT), 2 (BUTTON_RIGHT), or 3 (BUTTON_LEFTDBLCLK).
    • A double-click will first pass a 1 (BUTTON_LEFT) and then change the value to 3 (BUTTON_LEFTDBLCLK).
    Questions:[list=1][*]Is my understanding correct?[*]Are there any other return values? If so, what are their values and constants?[*]Is there some way to isolate the left-click from the double-left-click so that the function executes only on a left-click?[/list=1]
    Thanks

  • #2
    I offer a qualified yes using these functions (specifically onLButtonDown) in conjunction with the other button functions.

    function onLButtonDown( barIndex, yValue) {

    }

    function onLButtonDblClk( barIndex, yValue) {

    }


    if you qualify the button clicks with a range of values (proximity) I think you would be able to distinguish between the two.

    Regards,
    Last edited by ; 03-21-2004, 10:11 AM.

    Comment

    Working...
    X