Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) 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: 2,313
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 - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 07-07-2008, 07:11 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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 Off
Pingbacks are Off
Refbacks are On

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


All times are GMT. The time now is 09:54 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0