Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Task bar Messages ?

Status
Not open for further replies.

BuilderSpec

Programmer
Dec 24, 2003
383
GB
Hi all

You know when in XP etc. when you send a file to the CD drive for burning or you stick a usb cable in the back of your PC and in the task bar a little caption pops up by itself. Does anyone how this is done in Borland builder ?

I want to capture an event that will open a windows style speech thingy on the task bar.

any ideas ?

Regards

builderspec
 
My guess is that the popup responds to a Message send by the system. You can capture Messages by writing your own MessageHandler.
These are the steps you'll have to preform:
- Find out which message is send.
- Write your own MessageHandler Which processeses the caputred event (see the topic "message handlers" in the builder help)

Regards,
Hanza
 
But why would I write a message handler ? that implies that I would know when the event has occurred. An event alreay has occurred at the point I want to "popup" the message. How do I actually "popup" the message ?
 
Ehh.. Right.. Didn't played enough attention :)
Dunno how to popup the messagebox. perhaps the Microsoft developer pages can help you out there.

Regards.
 
Do you mean something like:
Code:
Application->MessageBox("You are attempting to shutdown the program before it has finished processing!", "Untimely Death", MB_OK);

This will display a box with a title of "Untimely Death," a message of "You are attempting to shutdown the program before it has finished processing!," and an OK button.

There are a variety of buttons you can display and you can capture which one the user selects, too.

James P. Cottingham
[sup]
There's no place like 127.0.0.1.
There's no place like 127.0.0.1.
[/sup]
 
I would check out the MSDN pages at Microsoft. I don't think Borland has that capability inherently (at least not up to version 6.0). You'll have to call a Microsoft MFC function or something out of an SDK they might have for download.

Chris
 
supernat thanks..

2ffat .. no that's easy ... I mean the windows style popup that looks like a speech bubble.
 
Hi,
if you just need something like the yellow ballon that popup in the tray....
goto this link and check this out..the installtion is a little bit tricker but ots worked on builder 5 (i cheked it my self :)


have fun...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top