Board index » cppbuilder » Hints in status bar

Hints in status bar


2004-12-13 10:20:01 AM
cppbuilder27
In a TGadgetWindow, as with menu items, hints are displayed in the status
line at the bottom of the main window. However, most Windows programs
display the hints right below each icon. The only way I know how to do that
with Borland C++ 5.02 OWL is to have the control also in a Windows menu item
in which case the hint is generated from the text in the menu item. How do
I generate a hint right below the icon if the control for the icon is not in
in a menu item?
Alan
 
 

Re:Hints in status bar

Quote
In a TGadgetWindow, as with menu items, hints are displayed in the
status
line at the bottom of the main window. However, most Windows
programs
display the hints right below each icon. The only way I know how to
do that
with Borland C++ 5.02 OWL is to have the control also in a Windows
menu item
in which case the hint is generated from the text in the menu item.
How do
I generate a hint right below the icon if the control for the icon
is not in
in a menu item?
Try this:
create a string resource with the same command number as your button
STRINGTABLE
{
CM_MY_APP_BUTTON, "Something\nHint text"
}
and see if you get a hint for your button.
Regards,
Bruce
 

Re:Hints in status bar

Bruce,
"
Quote

Try this:
create a string resource with the same command number as your button

STRINGTABLE
{
CM_MY_APP_BUTTON, "Something\nHint text"
}

and see if you get a hint for your button.

Regards,
Bruce
Yes, that works but the hint is displayed in the status bar at the bottom of
the screen. I want the hints right under the icon. The only thing that
seems to work is to have the comand number in a menu item, e.g.L
MENUITEM "Close File", CM_FILECLOSE
In this case the hint "Close File" appears right below the icon that has the
ID: CM_FILECLOSE. Whatever you put in the STRINGTABLE shows up in the
status bar.
Alan
 

{smallsort}

Re:Hints in status bar

Quote
>Try this:
>create a string resource with the same command number as your
>button
>
>STRINGTABLE
>{
>CM_MY_APP_BUTTON, "Something\nHint text"
>}
>
>and see if you get a hint for your button.
>
>Regards,
>Bruce

Yes, that works but the hint is displayed in the status bar at the
bottom of
the screen. I want the hints right under the icon. The only thing
that
seems to work is to have the comand number in a menu item, e.g.L

MENUITEM "Close File", CM_FILECLOSE

In this case the hint "Close File" appears right below the icon that
has the
ID: CM_FILECLOSE. Whatever you put in the STRINGTABLE shows up in
the
status bar.

Hi, Alan
What text did you put in your string resource? Note the \n in my
example...the text up to the \n is shown in the status bar, and the
text after it should be displayed as a "pop-up hint" on the button
bar.
Regards,
Bruce
 

Re:Hints in status bar

Bruce,
Quote
What text did you put in your string resource? Note the \n in my
example...the text up to the \n is shown in the status bar, and the
text after it should be displayed as a "pop-up hint" on the button
bar.
Thanks so much. That is great. I was putting dummy items in my menu items
just to get the hints. This is much better.
I assume this is documented someplace?
Alan