Basic4ppc - Windows Mobile Development  

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

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.


ControlsExDevice library


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 03-23-2008, 02:31 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,470
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by alfcen View Post
Display.width and height return the form dimensions, not the screen's.
To be pedantic they are the screen dimensions but it is the size of the virtual screen that is being drawn on rather than the physical size that is being returned. I haven't yet found a way to get that.

Quote:
BTW, the help file topics Display and Status Bar have the same contents.
Thanks for pointing that out. I had written them correctly in the Help source but a quirk of the Help Compiler resulted in the same text being shown for two different topics - now corrected in the zip.
Reply With Quote
  #12 (permalink)  
Old 03-23-2008, 03:04 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,470
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by alfcen View Post
Probably, this information is stored in the registry in device vendor specific locations.
Have you poked around HKEY_LOCAL_MACHINE\Drivers\ Display\... The names of the entries may be manufacturer/software driver specific but you are looking for something like "CxScreen" and "CyScreen". They might be virtual or physical sizes - I don't know and don't have access to a vga device to find out.
Reply With Quote
  #13 (permalink)  
Old 03-24-2008, 09:08 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks a lot Andrew, I found it a while ago. The registry key names vary
with the device vendor and/or LCD OEM supplier.
Curiously, the iPAQ h2210 shows 480 x 640 although the screen is physically
QVGA. Standards would be of help here
Reply With Quote
  #14 (permalink)  
Old 03-24-2008, 09:50 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Andrew,
Another undocumented feature. The text property notifier in your awesome
ControlsExDevice library accepts HTML tags by which you can format the notification message. The image tag <img src...> is supported but won't display any image.
The attached screen snap demonstrates the superb performance of your
most recent jewel.
Attached Images
File Type: jpg weather-bubble.jpg (75.9 KB, 47 views)
Reply With Quote
  #15 (permalink)  
Old 03-24-2008, 12:34 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,470
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by alfcen View Post
The image tag <img src...> is supported but won't display any image.
From the .NET documentation
Quote:
The text can be plain text or HTML. The Pocket PC HTML control renders the HTML to be the best of its ability. The following elements are unsupported and ignored:

BGSOUND tag
images
meta tags
script
I chickened out of mentioning the HTML bit in the Help in case it opened a bag of worms in support terms as my knowledge of HTML is c***p I also haven't implemented its ability to respond to links. Also from the MS docs -
Quote:
In addition to plain text, you can create a user notification with HTML content in the message balloon. The HTML is rendered by the Pocket PC HTML control, and you can respond to values in an HTML form by parsing a response string provided by the ResponseSubmittedEventArgs class, through the Response property.

Cmd:2 Identifier
The identifier "cmd:2" has a special purpose in Windows CE and is used to dismiss notifications. If cmd:2 is the name of an HTML button or other element in a message balloon, the ResponseSubmitted event is not raised. The notification is dismissed, but its icon is placed on the title bar to be responded to at a later time.
If anyone understands what that means and thinks it is useful I can implement the event and provide the response string.
Reply With Quote
  #16 (permalink)  
Old 03-24-2008, 12:54 PM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Uggh, I should have sent you a private message regarding the HTML issue

Ability to respond to values in an HTML form would be fine, but is
not essential.

Can you please unveil the link which leads to the .NET documentation
you have quoted? Then, I will be quiet for while
Reply With Quote
  #17 (permalink)  
Old 03-24-2008, 01:44 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,470
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by alfcen View Post
Can you please unveil the link which leads to the .NET documentation you have quoted? )
I quoted from the docs that came with Visual Studio 2005 but this link http://msdn2.microsoft.com/en-us/lib...ification.aspx seems identical.
Reply With Quote
  #18 (permalink)  
Old 03-25-2008, 02:29 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,470
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Version 1.3 posted with updated help and demo app. This now documents the fact that HTML is rendered in the notification ballon and user input is accepted. A new ResponseSubmitted event fires on user selection and a Response property contains the HTML response string.
Reply With Quote
  #19 (permalink)  
Old 05-18-2008, 07:06 PM
Standa's Avatar
Junior Member
 
Join Date: May 2007
Location: Czech Republic
Posts: 25
Awards Showcase
Beta Tester 
Total Awards: 1
Default

From other thread...
Quote:
Originally Posted by agraham View Post
You should use the version in my ControlsExDevice library ControlsExDevice library There is a bug with events in the original version
Yes, I use ControlsExDevice library. Thank you, this is exactly, what I need
__________________
XDA Flame
Reply With Quote
  #20 (permalink)  
Old 05-22-2008, 10:02 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,198
Default

Hi Andrew,

I've been playing a bit with your dll, and found that it is not possible to add the calendar control to a Panel, and since there is no "change Parent" available, it renders the control useless in some applications...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
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
Door library (Beta) - Special library Erel Official Updates 48 07-18-2008 02:33 PM
Merging Outlook library and Phone library Erel Official Updates 2 07-14-2008 03:38 PM


All times are GMT. The time now is 11:31 PM.


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