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

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

Basic4ppc Wishlist Missing any feature?

Image Mouse events

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2007, 11:07 PM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 160
Awards Showcase
Beta Tester 
Total Awards: 1
Default Image Mouse events

I may well have missed something here, but I'd like to be able to trap mouse/stylus events within an image, rather than having to display the graphics on the form.

e.g. Image_mouseUp(x,y) instead of Form1_MouseUp(x,y)
Reply With Quote
  #2 (permalink)  
Old 05-19-2007, 11:24 AM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 614
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I had a similar problem to this but as a work around I drew the image on the ForeLayer of the form, then caught the colour of the Forelayer that was not occupied by the image. Each time the MouseDown event was triggered I use the FGetPixel command to test the colour at that point and if it is different to the colour of the ForeLayer then I know that the image has been clicked

Hope this little work around helps.

Regards,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
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
textBox : add TextChanged events or other events abys Code Samples & Tips 1 09-01-2008 07:41 PM
Diff GPS values without moving GPS mouse Georg Questions (Windows Mobile) 1 04-22-2008 07:58 AM
How catch a selected treeview item information by mouse ? dan kabestan Questions (Windows Mobile) 2 01-08-2008 07:30 PM
more events Sven Kommers Basic4ppc Wishlist 3 06-08-2007 10:53 AM
GPS Mouse dynamic platform setting lucifer1 Share Your Creations 0 06-03-2007 08:14 PM


All times are GMT. The time now is 10:16 PM.


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