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 > Additional Libraries
Documentation Wiki Register Members List B4P 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, 03:31 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 04:04 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 10:08 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 768
Send a message via Skype™ to alfcen
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, 10:50 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 768
Send a message via Skype™ to alfcen
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, 92 views)
Reply With Quote
  #15 (permalink)  
Old 03-24-2008, 01:34 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 01:54 PM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 768
Send a message via Skype™ to alfcen
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, 02:44 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 03:29 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 08:06 PM
Standa's Avatar
Junior Member
 
Join Date: May 2007
Location: Czech Republic
Posts: 38
Send a message via MSN to Standa
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 http://www.basic4ppc.com/forum/addit...e-library.html There is a bug with events in the original version
Yes, I use ControlsExDevice library. Thank you, this is exactly, what I need
__________________
BlackBerry 8900, Dell Streak, SE MBW-150
Reply With Quote
  #20 (permalink)  
Old 05-22-2008, 11:02 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
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 - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
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
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 12:23 PM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 10:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 08:46 PM


All times are GMT. The time now is 03:12 AM.


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