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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips
Documentation Wiki Register Members List B4P 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, 10:14 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

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

Best regards
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #22 (permalink)  
Old 05-22-2008, 03: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, 04:21 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 01: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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tab Order for Controls BPak Questions (Windows Mobile) 3 05-29-2009 01:45 PM
Drag controls (name) to the IDE Mr_Gee Basic4ppc Wishlist 2 07-21-2008 08:35 PM
COM controls lairdre Questions (Windows Mobile) 3 02-28-2008 08:53 AM
Disposing Controls RandomCoder Questions (Windows Mobile) 7 02-19-2008 09:26 AM
Controls name PepSoft Questions (Windows Mobile) 4 12-17-2007 02:49 PM


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


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