Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Right Click ??


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2008, 06:56 PM
Newbie
 
Join Date: Jul 2008
Posts: 2
Default Right Click ??

how to activate the function right click of a mouse?

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

Sub button1_rigt_click

Msgbo(" all ok ")

End Sub

----------------------------------------------
That this wrong, how?
Reply With Quote
  #2 (permalink)  
Old 07-07-2008, 07:00 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

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...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 07-07-2008, 07:11 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,186
Default

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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to generically detect a click anywhere? BurninSun Questions & Help Needed 3 07-19-2008 12:16 AM
Click and drag during runtime J12345T Questions & Help Needed 1 06-24-2008 10:37 AM
Unwanted Click Event Zenerdiode Questions & Help Needed 6 05-06-2008 06:25 AM
Click event during a for loop pmu5757 Questions & Help Needed 7 04-12-2008 04:44 PM
Click function neilnapier Questions & Help Needed 12 11-03-2007 07:51 PM


All times are GMT. The time now is 03:29 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0