Right Click ??

Discussion in 'Questions (Windows Mobile)' started by pegamaster, Jul 7, 2008.

  1. pegamaster

    pegamaster New Member

    how to activate the function right click of a mouse?

    ex: ---------------------------------

    Sub button1_rigt_click

    Msgbo(" all ok ")

    End Sub

    ----------------------------------------------
    That this wrong, how?
     
  2. Cableguy

    Cableguy Expert Licensed User

    The rigth click is only available with the context menu, on the controlEx Dll...
    if you don't need the context menu, just use the event...
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    It is possible using the Door library:
    Code:
    Sub Globals
        
    'Declare the global variables here.

    End Sub

    Sub App_Start
        Form1.Show
        AddObject(
    "button1Click","Event")
        AddObject(
    "obj","Object")
        obj.New1(
    false)
        obj.FromControl(
    "button1")
        button1Click.New1(obj.Value,
    "MouseDown")
    End Sub

    Sub Button1Click_NewEvent
        obj.Value = button1Click.Data
        
    Select obj.GetProperty("Button")
            
    Case "Right"
                
    Msgbox("Right button was pressed")
            
    Case "Middle"
                
    Msgbox("Middle button was pressed")
            
    Case "Left"
                
    Msgbox("Left button was pressed")
        
    End Select
    End Sub
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice