SHNotificationAdd for duration/without buttons and get dismiss event

  • Thread starter Thread starter Rick Elbers
  • Start date Start date
R

Rick Elbers

Dear experts,

Functionally I have a situation in which I want to give users
context sensitive help. I can see two designs: one with
help, the other one with duration notifications without buttons.
In research of the latter I have this question:

What I want is perfectly simpel. I want a notification without
buttons which goes away after a duration( thats simple with
OPENNET), but I need to know when its thread is gone.
OPENNET exposes dismiss, but it doesnt fire in the duration
without buttons case on my pocket 2002.

Waiting for the SHNotificationAdd is also a good choice for
me If I knew how too..

Has anybody solved this particular problem already ?
Does anybody has solved the context sensititve help in
any good way ?

Rick
 
I haven't worked with it for a while but the revised
OpenNETCF.WindowsCE.Forms.Notification class I wrote (which matches the
..NETCF v2.0 equivalent) should raise the BalloonChanged event on a timeout.
You can also add a Dismiss button so the user can close the dialog before
the timeout. You can find the new version in the recently released SDF
v1.3 - www.opennetcf.org/sdf/

Peter
 
Peter,
You are right, but I dont want a dismiss button. It did not seem
to fire Dismiss Event on timeout..although low level event
OnDismiss should fire..not yet tried.
I saw more messages pointing to this problem inside your class.
Is it solvable or by intent that dismiss dont fire ?

Rick
 
Peter,

Indeed. Tried 1.3 and it worked nicely on the ChangedEvent.
Very well done, thx

A few comments:
1) If notification only 1 second it seems like it isnt gone away fully
when Event is fired. I can see because I reset focus after balloon and
then see the shape of the balloon still. At least in the emulator.
2) It doesnt seem to be always on top. I posted something regarding
that on OPENNET forum.

Rick
 
Back
Top