Basic4ppc - Windows Mobile Development  

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

Code Samples & Tips Share your recent discoveries and ideas with other users.


HOTSPOT controls


Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 05-01-2008, 11:14 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 699
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

There is an update of the ControlInfo program in post 19
Added some controls.

Best regards
__________________
Klaus
Switzerland
Reply With Quote
  #22 (permalink)  
Old 05-22-2008, 04:47 PM
Newbie
 
Join Date: Jul 2007
Posts: 3
Default Mine Doesn't Work

Quote:
Originally Posted by agraham View Post
A simple Hotspot control using an Image control and the Door library takes very little code as long as you are happy with square hotspots. You would have to set up the co-ordinates of the hotspots anyway so the actual code is pretty minimal.
Hi Agraham:
I am doing a workaround for another problem and your HotSpots solution was just what I needed. However, even though your program works great on the PC, when compiled to PPC your program errors out for me. When compiled with nonoptimized I get the error "Error loading program ... Door.dll". When I compile With optimized I get the error "An error occured on sub_app_start ... NullReferenceException". In both cases I have the door.dll and hotspots.jpg in the application directory. I haven't had any compatibility problems with my Ipaq ppc before. Do you have any suggestion what my problem is?
Thank you.
Reply With Quote
  #23 (permalink)  
Old 05-22-2008, 05:21 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,752
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

There is no "MouseClick" event in the Compact Framework so change it to "MouseDown" (carefully note the case) at line 24. This should now work both optimised and non-optimised. The "splodge" test always misses (on my Axim X30 anyway) - probably because the RGB value returned on the device don't match the cRED constant. This is a known "feature" of devices as they have a limited colour palette for their displays, you will have to work that one through yourself.


Quote:
Originally Posted by Tinkerbell View Post
When compiled with nonoptimized I get the error "Error loading program ... Door.dll".
If this persists I have no idea why. It works fine on my device, both legacy compiled and IDE, with that single change
Reply With Quote
  #24 (permalink)  
Old 05-30-2008, 02:42 PM
Newbie
 
Join Date: Jul 2007
Posts: 3
Default

That change made all the difference. It works great now on the PPC as well.
Thank you.
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
Drag controls (name) to the IDE Mr_Gee Basic4ppc Wishlist 2 07-21-2008 09:35 PM
COM controls lairdre Questions & Help Needed 3 02-28-2008 09:53 AM
Disposing Controls RandomCoder Questions & Help Needed 7 02-19-2008 10:26 AM
Controls name PepSoft Questions & Help Needed 4 12-17-2007 03:49 PM
Tab Order for Controls BPak Questions & Help Needed 2 05-06-2007 06:58 AM


All times are GMT. The time now is 07:06 PM.


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