Borland C++ Builder 5 Right Click Event?

Hi!

I want a user to be able to 'hide' a button by right-clicking it. How do I program this event?
Obviously I have to state Button1->visible = false;
but... is there such a thing as a OnRightClick event? I see only a leftclick event and a double click event?
I tried looking for it in the manual, but I can't seem to find it.....

Hope someone can help me,
Thanks,

Joost.

Comments

  • [green]
    Event is like this :
    [code]
    void __fastcall TfrmMain::reMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y)
    [code]

    When Button parameter == mbRight, the right mouse button was pressed.

    Since you need it OnRightCLICK, use the mouseup() event...

    [/green]

    [size=2][red]

    [b]Bikram[/b][/red]
    [blue]http://www.geocities.com/nv5050[/blue]
    [red]**************************************[/red][/size]

  • : Event is like this :
    : void __fastcall TfrmMain::reMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y)
    : When Button parameter == mbRight, the right mouse button was pressed.
    : Since you need it OnRightCLICK, use the mouseup() event...

    Thanks,

    I just tried it and it works fine for me!

    Joost.



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories