Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Basic4ppc Wishlist
Home Register FAQ Members List 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: 117
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 Veteran
 
Join Date: May 2007
Location: UK
Posts: 485
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
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"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 On
Pingbacks are On
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 & Help Needed 1 04-22-2008 07:58 AM
How catch a selected treeview item information by mouse ? dan kabestan Questions & Help Needed 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 03:25 PM.


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