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
  #71 (permalink)  
Old 09-30-2009, 10:27 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 762
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
Notification puts an icon on the bar at the top of the screen. NotifyIcon puts an icon on a bar at the bottom, only visible on the Today screen.
Thanks, Andrew, that was exactly what I needed to know! Now I can see the demo working on the emulator and device, and realise that is not what I want; that must be Notification.

Best wishes, Mike.
Reply With Quote
  #72 (permalink)  
Old 10-02-2009, 05:59 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 762
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Werrl, I'm still struggling (but now with Notification in ControlsEx Device, on the device emulator - WM5.0).

If I set NotificationObj.Visible = True in my App_Start, in addition to FormLib.MinimizeBox = True (which I have been using all along), I briefly see my 16x16 icon in the Title bar but it disappears along with the file selection dialogue which is the first thing that the app presents. The "X" in the top right corner gets replaced by "OK" just as if I hadn't done FormLib.MinimizeBox = True. This is the only thing the app now responds to; it does close down nicely, just when it shouldn't!

On the other hand if I don't set NotificationObj.Visible = True but omit this or set False, the program behaves just as if I had never set out to do Notification. I put NotificationObj.Visible = True in the Form_Close event because the Help for this event says it is triggered by form hide as well as form close, but perhaps this does not apply to the main form. Without such a trigger I am never going to display the icon to resurect my app to foreground, which is all I am trying to do!

Mike.
Reply With Quote
  #73 (permalink)  
Old 10-02-2009, 06: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

Notification is not really intended for that sort of use. Have you read the text at the top of the Notification topic in the help? It tells you that if you set InitialDuration to 0 then the icon stays visible. However when you press it the balloon will still show which may not be what you want
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #74 (permalink)  
Old 10-02-2009, 08:17 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 762
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
Notification is not really intended for that sort of use. Have you read the text at the top of the Notification topic in the help? It tells you that if you set InitialDuration to 0 then the icon stays visible. However when you press it the balloon will still show which may not be what you want
Yes, I read that and it is not ideal. It is not what happens with the dictionary product that I would like to emulate (Dictionary for Palm OS and Windows Mobile. RoadLingua by AbsoluteWord: Dictionaries, Atlases, Encyclopedias). I am setting NotificationObj.InitialDuration = 0. I have put "Resuming visibility..." as NotificationObj.Text, which is OK, especially if the balloon removes itself without requiring acknowledgement.

But it would be nice to obtain at least a non-ideal behaviour instead of a totally useless one! Is there an intentional or even known accidental interplay between FormLib.MinimizeBox = True and NotificationObj.Visible = True?

Mike.
Reply With Quote
  #75 (permalink)  
Old 10-02-2009, 09:11 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 mjcoon View Post
Is there ...
I've no idea, as I said Notification is not intended for such use. Appplications that behave as you want presumably use a native code facility that is not exposed to .NET to place icons on the title bar but as I know little about such things on Windows Mobile I can't help.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #76 (permalink)  
Old 10-02-2009, 11:56 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 762
Awards Showcase
Beta Tester 
Total Awards: 1
Default

OK, "so near and yet so far"! Thanks for thinking about it, anyway.

Cheers, Mike.
Reply With Quote
  #77 (permalink)  
Old 11-19-2009, 10:58 PM
Junior Member
 
Join Date: Jul 2007
Location: Oakville, Ontario, Canada
Posts: 45
Default Typo in ControlsExDevice 1.8 prevents Listview left assignments

In version 1.8 of ControlsExDeviceDummy.cs and ControlsExDevice.cs there is a typo.

In both pgms you will find the statement:

public int Left
{ get { return listv.Left; } set { listv.Left = Left; } }

which I believe you meant to write

public int Left
{ get { return listv.Left; } set { listv.Left = value; } }

In other words you cannot update the value of left once the listview is created.
I have made this change on my PC and the compiled pgms now let me update left.
Reply With Quote
  #78 (permalink)  
Old 11-20-2009, 09:06 AM
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

Thanks for finding it.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #79 (permalink)  
Old 03-19-2010, 09:27 AM
Basic4ppc Veteran
 
Join Date: Jul 2008
Location: Borchen, Germany
Posts: 434
Send a message via ICQ to corwin42
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello,

Using the NotifyIcon object I want to set a dynamic icon for my application in the today screen tray bar.

With NotifyIcon.Icon I can set a new Icon but how do I create a .Net Icon object dynamically? I need to draw an Icon because I want to display something like a mini chart in the icon. Can I access and modify the Bitmap of an Icon?

Is this possible somehow with B4PPC?
__________________
Markus
Reply With Quote
  #80 (permalink)  
Old 06-02-2010, 07:07 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.9 now posted. This fixes a typo that wrongly assigned the Left property to the Width porperty in Listview, NativeImage, DateTimePicker and Splitter. NativeImage NativeLeft and NativeTop were unavailable in the desktop version - now they are visible.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
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:22 AM.


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