Application
(1)
Balloon
(1)
Button
(1)
Delete
(1)
Menu while showing Notification
Asked By Thomas
24-Jan-07 01:48 PM
Hello CF Programmers out there!
I am using Notification balloons
(Microsoft.WindowsCE.Forms.Notification) to show state changes within
my Application. When the Notification shows up, the Menu bar changes
during the notification is shown. This menu has only one Item called
something like "hide". I am wondering where this menu is came from and
if I can add other Items (like Close) to it.
When my PDA receives a Short Message (SMS), it also pops up in a
ballon, but this Balloon has more Menu Items (like "Close", "Close as
read", "Delete", etc..). I also want to add a "Close" Button for my
Notification, because the solution with a button inside the HTML does
not work well for me.
Does anybody know how to access or extend the Menu when a Notification
is shown?
Thanks and Greets
Thomas
Menu while showing Notification
Asked By srharton
25-Jan-07 07:35 AM
See if this link helps:
http://msdn2.microsoft.com/en-us/library/microsoft.windowsce.forms.notification.aspx
(for CF2)
Simon.
HelloI've seen the MSDN Description of Notification class, but there is
Asked By Thomas
25-Jan-07 08:56 AM
Hello
I've seen the MSDN Description of Notification class, but there is no
information about this issue. The response submitted is only fired when
i place a button inside the HTML form. I was looking for controlling or
accessing the menu while showing the Notification.
Could anybody help?
Thanks,
Tom
[Bump]Has a resolution to this been found?
Asked By yoat4
21-Mar-07 01:09 PM
[Bump]
Has a resolution to this been found? I'm afraid I'm going to have to
use the native API to handle this unless someone has some advice.
Does anyone know of a way to simply stop the Hide menu from
appearing? I can change the menu myself in the OnBalloonChanged event
handler but it's only visible briefly before the "Hide" menu clobbers
my menu. Does anyone know if this default Hide menu can be ignored or
overwritten?
Thanks,
-Matt Senne
I am pretty sure the managed Notification control does not allow you to build
Asked By Oxcar
04-May-07 06:17 PM
I am pretty sure the managed Notification control does not allow you to
build your own menuItems. With the manged version, you will need to embedd
HTML controls and use the ResponseSubmitted event.
Matt....you say you were able to add your own menuItem but it gets covered
by the "Hide" item? Did you create a menuItem1 object (the left softKey)? If
that it what you did, the left softKey (menuItem1) is not going to fire if
you click the "hide" item. I think the "Hide" sends a cmd:2 to the
Notification control and the ResponseSubmitted does not get triggered in this
case.
Anyway, if someone smarter or better looking than me knows of a way to
create menuItems for the managed control I would like to hear about it. It
will save us from mucking around in the API.
Ox
Any new developments on this notification issue?
Asked By Theo Chakkapark
09-Jun-07 12:42 AM
Any new developments on this notification issue? it is totally abysmal
that this feature was never included in the managed control.
No not really.
Asked By srharton
09-Jun-07 04:25 AM
No not really. I will be writing a wrapper soon as we need the functionality
the new WM5 API offers.
See here for the new SHNOTIFCIATIONDATA structure it contains a few new
fields SOFTKEYMENU, SOFTKEYNOTIFY within the union and a couple others:
http://msdn2.microsoft.com/en-us/library/aa455987.aspx
The old structure is defined here:
http://msdn2.microsoft.com/en-us/library/aa458065.aspx
I will post on my blog when I have written it.
--
Simon Hart
http://srhartone.blogspot.com
Any new developments on this so far?
Asked By Theo Chakkapark
06-Aug-07 01:30 AM
Any new developments on this so far?
No, I haven't had time to look at this for the last month or so.
Asked By srharton
07-Aug-07 04:02 PM
No, I have not had time to look at this for the last month or so.
--
Simon Hart
http://simonrhart.blogspot.com
I have the same issues as everyone here. Has anyone done anything onthis?
Asked By c.edward
05-Oct-07 08:25 AM
I have the same issues as everyone here. Has anyone done anything on
this? If not I suppose I will have to do it myself :)
No Activate Form"; for (int i = 0; i < 10; i++) { Button button = new Button(); button.Text = "0"; button.Click + = new EventHandler(Button_Click); button.Top = button.Height * i; Controls.Add(button); } } void Button_Click(object sender, EventArgs e Button)sender).Text = (int.Parse(((Button)sender).Text) + 1).ToString(); } protected override CreateParams CreateParams { get { CreateParams
not the problem commonly found. Most people complain that the balloon shows up too long (even though this is by design is the icon is disappearing too quickly. Even in an application that all I have is a Form, NotifyIcon and Button, when the Button_Click action is set for notifyIcon1.ShowBalloonTip(30000 ll likely need to delve into the details of the balloon tip control in Win32. - - J. Is your notifyIcon on a not the problem commonly found. Most people complain that the balloon shows up too long
NET form or control from a window outside my own application (I know the handle of the window). The desktop way Paul T. I have a small popup window in my application that I would like to make a child of the sort associated with the taskbar, right? What about a notification balloon associated with an icon in the system tray? This breaks first image, you will see a small popup window (cum button) (aka picker window) to the right of the title "MDict has been done, you should be able to add a button click event handler or something similiar to invoke the code child to the navbar. (I have noticed another app (Magic Button) has also attached itself there, so it seems it is practice). Another problem has arisen though. I would like my application, to sit on top of all the other children on child to the navbar. (I have noticed another app (Magic Button) has also attached itself there, so it seems it is that. But another problem has arisen. I would like my application, to sit on top of all the other children on my window is topmost, it will not be the active application, and therefore will not be deactivated when it loses its
tinyurl.com / 38f4vc It works but - - / / instead of the normal Application.Run(new Form1); we must manually display the form Form1 to disable, 1 to enable. Peter - - Peter Foot Microsoft Device Application Development MVP www.peterfoot.net | www.inthehand.com In The a problem with this. I simply put a WebBrowser and button component on a form and add this code to Button onClick event: IntPtr handle = webbrowser1.Handle; const int WM_CLOSE = 0x10 a problem with this. I simply put a WebBrowser and button component on a form and add this code to Button onClick event: IntPtr handle = webbrowser1.Handle; const int WM_CLOSE = 0x10 that WebBrowser on my Form look like this: Form1 (my application with embedded webbrowser) - <no name> #NETCF_AGL_CONTAINER - <no name> (IExplore) -<no the user to break out of my Kiosk mode type application. What I finally wound up doing was to add a the running processes looking for the one that opened the balloon. When it finds the process (remnet.exe), it simply Kills
had not seen it, there is a Reset Window Layout button in the Window menu of VS which may be useful for you. Does this happen every time? Is the application successfully deployed to the device? Did you allow the crash protection blah blah.] Even after I got that message from balloon tips, IDE keeps alive, but it seems not working properly