🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages Started by David Sat, 03 Mar 2007 14:33
Balloon Hint
#2435
Author: David
Date: Sat, 03 Mar 2007 14:33
6 lines
1086 bytes
I have a CoolTrayIcon component which displays a balloon hint connected to 
the tray icon but I would like to beable to arbitrarily display a balloon 
hint anywhere on a window. How to do this ??

Thanks in advance
David
Re: Balloon Hint
#2436
Author: Bob Gonder
Date: Sat, 03 Mar 2007 14:58
10 lines
1300 bytes
David wrote:

>I have a CoolTrayIcon component which displays a balloon hint connected to 
>the tray icon but I would like to beable to arbitrarily display a balloon 
>hint anywhere on a window. How to do this ??

Is this what you want?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/tooltip/usingtooltips.asp

Also see your help for tooltip topics.
Re: Balloon Hint
#2343
Author: Bob Gonder
Date: Sun, 04 Mar 2007 15:10
12 lines
1378 bytes
David wrote:

>Hello Bob
>
>The Ballon Hint looks like this http://www.globalclipboard.com/hint.gif

Yes, so what's your point?
The link I gave tells you how to do those too.
Re-read the first paragraph of the Balloon ToolTips sublink.

>> Is this what you want?
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/tooltip/usingtooltips.asp
Re: Balloon Hint
#2344
Author: Mike Collins
Date: Mon, 05 Mar 2007 00:26
5 lines
957 bytes
Please see my comment in the .vcl.components.using group.

Mike C
>
> 
Re: Balloon Hint
#2348
Author: Vladimir Stefanovic
Date: Mon, 05 Mar 2007 17:54
30 lines
1706 bytes
> [...] but I would like to beable to arbitrarily display a balloon
> hint anywhere on a window. How to do this ??


__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
   HWND const hToolTip =
      CreateWindow( TOOLTIPS_CLASS, NULL, TTS_BALLOON, 0, 0, 0, 0, Handle, 
NULL, HInstance, NULL );

   if ( hToolTip != NULL )
   {
      TOOLINFO tool_info = {0};
      tool_info.cbSize = sizeof(tool_info);
      tool_info.uFlags = TTF_SUBCLASS | TTF_TRANSPARENT;
      tool_info.hwnd = Edit1->Handle;
      tool_info.lpszText = Edit1->Text.c_str();
      CopyRect( &tool_info.rect, &(Edit1->ClientRect) );

      SNDMSG( hToolTip, TTM_ADDTOOL, 0, 
reinterpret_cast<LPARAM>(&tool_info) );
   }
}



-- 
Best Regards,
Vladimir Stefanovic 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads