woka, very nice code. I have 2 suggestions for you...
get a new hand icon for the mouseover on links... that thing looks like you pulled it from windows 3.11
also, if the user has the mouse over the form region, you should set a flag to make the window drop, but not drop it until the mouse leaves the form region of the popup.. know what im saying.. likewise if the popup is scrolling off, and they mouse over.. it should return to its original state...
woka, very nice code. I have 2 suggestions for you...
get a new hand icon for the mouseover on links... that thing looks like you pulled it from windows 3.11
also, if the user has the mouse over the form region, you should set a flag to make the window drop, but not drop it until the mouse leaves the form region of the popup.. know what im saying.. likewise if the popup is scrolling off, and they mouse over.. it should return to its original state...
Hmm seems like messenger, what purpose does this serve, reinventing the wheel ?
Hmm seems like messenger, what purpose does this serve, reinventing the wheel ?
Hahahaha...yes...exactly like messenger You gibbering yanky doodle dandy
All the code does is popup application notifications...like messenger, but that's all it has in common with messenger.
It's a dll that you can add to any app that allows you to easily add notification messages. Very handy, and personally I think it's quite cool too, espescially the messages with a prog bar
Hahahaha...yes...exactly like messenger You gibbering yanky doodle dandy
All the code does is popup application notifications...like messenger, but that's all it has in common with messenger.
It's a dll that you can add to any app that allows you to easily add notification messages. Very handy, and personally I think it's quite cool too, espescially the messages with a prog bar
So...reinventing the wheel...I don't think so
But their are tools which do this, are you saying you need a reminder from what ??? From a task that you are assigned ? Theres tools fully integrated that do that, still cool to write the code though.
no i see how this could be useful on any number of apps to give you notification when a job is done or other progress... doesnt have to be just a messenger type of thing
I wrote an app that COULD use this if I had not already implemented balloon tips instead.. just a little too late woka
no i see how this could be useful on any number of apps to give you notification when a job is done or other progress... doesnt have to be just a messenger type of thing
I wrote an app that COULD use this if I had not already implemented balloon tips instead.. just a little too late woka
Give me some examples of how this could be used ?
Updating a db isnt a good one either, how do I run it from a sproc .
And Im not going to use xp_cmdshell to run an exe to tell me an update is done.
BTW a windows scheduled task is not a good example. Give me a good example of why I would put this to use ?
I have an application I wrote that interfaces with our CD duplicator... when a job is done a balloon tip pops up to let the user know the CD has finished burning and printing.. or if it fails it pops up saying that and the fail reason.. I could use this code instead of balloon tips if I wanted to, to give notification of progress to users...
register or use? if its registered on the system via com, then you should be able to add a reference to it under the com tab in references...
I suspect if its a COM somehow it could be instantiated and called.
I know with something like vb6 to dotNet not a biggie, one can just reference it and dim the object.
But what about in this case...can I do:
ObjWoka objW = new objW("Place this text");
objW.Show();
?
I'd assume he would have to make this some sort of native call from C# to this vb app ? Is that even possible ?
New features include setting parent to be a picture box, or form.
Ability to have sticky messages
Click message to hide
Message in front of all other windows
Set x,y pos to be anywhere.
New Demo UI.
Let me know what you think.
DemoUI code could be a little better, will tidy this up laters, but this code is only to demo the DLL functions, so it isn't that important.
Well you are welcome for the extra functions I told you too add....
Very nice indeed. You are realy starting to be usefull around here. If you just knew a bit more about 3D programming you could soon start to call your self my friend.
No seriously. This test app shows everything you realy want a pop up to do. Realy good. Love it.
One think I'd really like to see in code like this is for the notification not to steal focus from the app I'm currently working in when the notification displays.
How difficult would that be to implement? I'm looking into it now & if I figure it out, I'll post.
Next thing - how difficult would it be, or what would be the best way to go about making the text in the message autowrap or make the message autosize to a point, then wrap?
I'll look into that too if no one else figures it out before I do.
I agree. That's something I have planned.
The functionality regarding the UI of the message is a bit lacking.
It does what 99% of users would use it for, but I myself require a different UI style to the one of the moment.
I am currently working on some enhancements for the UI.
My time has been taken up recently my the development and improvement of my liveupdate code.
My aim to to create a fully functional autoupdater with systray icon if it's running silently in the background, and popup messages to alert you to how the updates went, again in silent mode.
If you take a peek at my liveupdate link in my sig you will see what I mean.
I have all the components written and it's a matter of a few hours coding to link them all up and do some restructuring of the code in LiveUpdate.
Oh, the liveupdate in my sig is an old version. I have been working on a new version for the last 2 weeks. Should be finished in a few days, if not tomorrow.
Next thing - how difficult would it be, or what would be the best way to go about making the text in the message autowrap or make the message autosize to a point, then wrap?
I'll look into that too if no one else figures it out before I do.
Just re-read ya post. I am not sure what you are referring to
Making the message box autosize is possible, but all the messages would be different sizes, and I think this would look sloppy. You can set the size of the message box using the properties of the Messages class.
As for wrapping...errr...the label wraps the text...
One thing it does require is to work out the height of the label, and trim the text so it fits in the message, adding "..." to the end of it. Does that make sense?
That all makes sense, but for some reason the text is not wrapping for me - for instance, I've got a media player application I'm using this code with. When I feed the message with artist and song title (when a song changes), neither will wrap if too long. The text will extend to the edges of the pop up & the rest will be cropped.
Maybe I'm doing something wrong or overlooking something? Below is an example:
Last edited by 86atc250r; Feb 6th, 2005 at 12:29 PM.
Exactly like you would in the DemoUI application...
What you need to do is, 1st of all, close down the app.
Then open up the vbAPITimer DLL, and compile that.
Close the VB IDE
Now open up the vbPopUpMessage vb app.
Reference the vbAPITimers.dll, this can be done viw Project--->References then select vbAPITimer.
Now compile the vbPopUpMessage app.
Close the IDE down.
Open up the DemoUI project.
Project--->References--->vbPopUpMessages
Now run the project.
1) Add a mobjPopus.WordWrap boolean property; the current version just runs a long string off the edges of the popup.
2) When you change mobjPopups.MessageWidth, lblMessage in the pupup class apparently does not adjust to match the newly assigned width of the pop up. Obviously it would be good if it autosized with the rest of the popup.
Nice work! I'd love to incorporate this gadget in an app I'm working on now. Any chance of a rework any time soon?!
OK, I'll make you a deal. I made the changes to resize the label. How about if you fix the part that will keep adjust the top and left properties of the popup so that it will always be aligned with the corner of the screen if you change the message width or height properties (depending on which direction you are popping from.) For example, if you increase the width with PopUpDirection set to vbPopUp, then the right side of the popup is off screen. Simply setting the xpos and ypos isn't a good option because it would not compensate for variable screen resolutions.
Deal?!
Here's the change I added to frmPopUpMessage.ResizeControls to ensure that the label is properly resized. I also set the WordWrap proper to of the label to TRUE.
Public Sub ResizeControls(ByVal plngMsgHeight As Long, ByVal plngMsgWidth As Long)
...
With lblMessage
.Top = shpBorder.Top + 100
.Left = shpBorder.Left + 100
.Width = shpBorder.Width - 200
.Height = shpBorder.Height - 200
End With
...
End Sub