Announcement

Collapse
No announcement yet.

RButtonDown

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

  • RButtonDown

    Greetings,
    Whenever I use the OnRButtonDown or OnRButtonDblClk commands in my EFS program, a drop-down menu also appears on my chart. Is there any way to disable the drop-down menu and avoid this irritation?? Otherwise, the commands are working fine.
    Thanks,
    Dave

  • #2
    Stowaway,

    I would not classify this as an irritiation, merely an aspect of its functionality.

    Please check out this link where there are several efs's. Check out the button example efs. You will see that the right click functionality will work as expected when clicking buttons. While not contained in this efs, I believe the the right button up event works as well. The right button doubleclick event is not functional to my knowledge.

    I hope this is of some help.

    Here is the efs from the help file which I believe contains all of the button events. As this efs works addresses all the events, and works on the events a bit differently than the other efs, it may help loading them both.
    PHP Code:
    function preMain() {
     
    setPriceStudy(true);
     
    setStudyTitle("Mouse Button Clicks");
     
    setShowCursorLabel(false);
    }
    function 
    main() {
    }
    function 
    onLButtonDownbarIndexyValue) {
     
    debugPrintln("LeftDown: " barIndex ", " yValue);
     
    updateClickInfo(barIndexyValue);
    }
    function 
    onLButtonUpbarIndexyValue) {
     
    debugPrintln("LeftUp: " barIndex ", " yValue);
     
    updateClickInfo(barIndexyValue);
    }
    function 
    onRButtonDownbarIndexyValue) {
     
    debugPrintln("RightDown: " barIndex ", " yValue);
     
    updateClickInfo(barIndexyValue);
    }
    function 
    onRButtonUpbarIndexyValue) {
     
    debugPrintln("RightUp: " barIndex ", " yValue);
     
    updateClickInfo(barIndexyValue);
    }
    function 
    onLButtonDblClkbarIndexyValue) {
     
    debugPrintln("LeftDblClk: " barIndex ", " yValue);
     
    updateDblClickInfo(barIndexyValue);
    }
    function 
    onRButtonDblClkbarIndexyValue) {
     
    debugPrintln("RightDblClk: " barIndex ", " yValue);
     
    updateDblClickInfo(barIndexyValue);
    }
    function 
    updateClickInfo(barIndexyValue) {
     
    drawTextAbsolute(515"Clicked bar " barIndex " at " yValue.toFixed(2),
     
    Color.whiteColor.navyText.RELATIVETOLEFT|Text.RELATIVETOBOTTOM|Text.BOLDnull14"ClickInfo");
    }
    function 
    updateDblClickInfo(barIndexyValue) {
     
    drawTextAbsolute(535"Double Clicked bar " barIndex " at " yValue.toFixed(2), 
     
    Color.whiteColor.navyText.RELATIVETOLEFT|Text.RELATIVETOBOTTOM|Text.BOLDnull14"DblClickInfo");

    Comment

    Working...
    X