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
  #1 (permalink)  
Old 03-21-2008, 02:27 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,368
Awards Showcase
Forum Contributer 
Total Awards: 1
Default ControlsExDevice library

A very small counterpart to my ControlsExDesktop library. It provides a DateTimePicker control and an InputBox for getting user input. It will also work on the desktop if needed but ControlsExDesktop has both of the included controls now. Needs .NET 2.0 as DateTimePicker is not in .NET 1.0.

Help file and demo included.

EDIT :- updated to version 1.1 - see post below

EDIT :- Desktop dummy library added

EDIT :- Version 1.2 posted - see post below

EDIT :- Version 1.3 posted - see post below

EDIT :- Version 1.4 posted - see post #31

EDIT :- Version 1.5 posted - see post #37

EDIT :- If you haven't already seen it be aware of this pitfall Cs0234
Attached Files
File Type: zip ControlsExDevice1.5.zip (92.9 KB, 59 views)

Last edited by agraham : 08-15-2008 at 08:41 AM.
Reply With Quote
  #2 (permalink)  
Old 03-21-2008, 05:41 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,368
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Rapid update to version 1.1 to include a Notification control as requested by sahoopes. Also includes an IconList to support the Icon property of the Notification control.
Reply With Quote
  #3 (permalink)  
Old 03-21-2008, 06:33 PM
Junior Member
 
Join Date: Feb 2008
Posts: 34
Default

WOW! Can't thank you enough for this!
Reply With Quote
  #4 (permalink)  
Old 03-22-2008, 11:12 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,368
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Version 1.1 of ControlsExDevice will no longer run on the desktop due to the presence of the Notification object. Posted in the first post is a dummy desktop equivalent containing a dummy Notification object to enable development on the desktop.
Reply With Quote
  #5 (permalink)  
Old 03-22-2008, 11:51 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Default

Andrew, you made my days for quite a while
The date/time picker, notification bubble and the input box
are awesome enrichments to B4PPC which truly benefits from
increasing professional look and feel plus shorter code.
Thanks so much for the hard work!
No doubt, the entire forum is celebrating you.
Cheers
Robert
Reply With Quote
  #6 (permalink)  
Old 03-23-2008, 07:31 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Default

Hi Andrew,
Still having lots of fun with your library
Two very minor issues I came across:

1. The input object is not VGA-aware (cosmetic issue)
2. Can't get the time zone displayed
Code:
dtpick.Format=8
    dtpick.CustomFormat="MMM dd, yyyy HH:mm:ss (tt) zzz"
And perhaps a wish if I may,

Is is possible to add Screen.Width and Screen.Height returning the
dimensions of the physical screen, irrespective of form dims and optimized
or legacy compiled applications? The idea is to query the device for VGA
or QVGA displays.

Cheers
Robert
Reply With Quote
  #7 (permalink)  
Old 03-23-2008, 10:46 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,368
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Hi Robert

Quote:
1. The input object is not VGA-aware (cosmetic issue)
I'm afraid that is .NET/OS issue I can do nothing about.

Quote:
2. Can't get the time zone displayed
I copied the Custom Date Format part of the help from my ControlExDesktop help and that in turn I got from the .NET DateTime object custom formatting help. It looks like the DateTimePicker control, for some reason, only implements a sub-set of the formats available. The good news is that, although undocumented, the B4PPC DateFormat() & TimeFormat() functions support most of those formats including time zone (on the desktop at least, I haven't tried the device) because they both use a .NET DateTime object. Actually they are really the same function and both return identical results when given the same format strings. DateFormat() is not restricted to date formats and TimeFormat() is not restricted to time formats! Have a play

Quote:
Is is possible to add Screen.Width and Screen.Height returning the
dimensions of the physical screen, irrespective of form dims and optimized
or legacy compiled applications? The idea is to query the device for VGA
or QVGA displays.
Yes, I was going to polish the library a bit so I will add this.
Reply With Quote
  #8 (permalink)  
Old 03-23-2008, 12:04 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,368
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Version 1.2 posted in first post.

A Notification object on the desktop now shows a message box and fires events to emulate what happens on the device.

A StatusBar control is added, but is of limited functionality (device limitation) showing a single line of text.

A Display object is added that lets the height and width of the screen in pixels be determined.
Reply With Quote
  #9 (permalink)  
Old 03-23-2008, 12:42 PM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Default

Shame on me. You are doing all this whilst I had a drink in a pub to your good health

I will have a play shortly with the update, and let you know. Sounds exciting,
the undocumented features hidden in the data and time formats as well.
Can't tell you often enough, you're a bloody legend, mate.

Hicks
Robert
Reply With Quote
  #10 (permalink)  
Old 03-23-2008, 01:07 PM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Default

Hello again, Andrew,

Display.width and height return the form dimensions, not the screen's.
Specifically, I am running a non-optimized compiled application (pixel doubled)
in a VGA device. Display.Width returns 240 while there are 480 physical
pixels. Hmm, I'm beginning to believe that this job can't be done by a library.
Probably, this information is stored in the registry in device vendor specific locations.

BTW, the help file topics Display and Status Bar have the same contents.

Sorry, indeed, for no better feedback. You spend so much time in devotion
for this forum. I am really happy with the library as it is.

Cheers
Robert
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 04:53 AM.


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