Dynamically change caption of a menu 
Author Message
 Dynamically change caption of a menu

Hello people.

I would like to dynamically change the caption of a menu of a dialog, i.e.:
what will be written at the bottom of the screen on mouse over that menu
item.

Is there a function like "SetMenuCaptionText()" ?

Thanks a lot for any info.

btw: if you have any hints about doing that for tooltips for a toolbar, it
would be nice.  I'm looking MFC MSDN but find nothing yet.



Tue, 12 Aug 2003 23:36:22 GMT  
 Dynamically change caption of a menu
Hi...
        Take a  look at SetWindowText()

Cheers
Check Abdoul
------------------


Quote:
> Hello people.

> I would like to dynamically change the caption of a menu of a dialog,
i.e.:
> what will be written at the bottom of the screen on mouse over that menu
> item.

> Is there a function like "SetMenuCaptionText()" ?

> Thanks a lot for any info.

> btw: if you have any hints about doing that for tooltips for a toolbar, it
> would be nice.  I'm looking MFC MSDN but find nothing yet.



Tue, 12 Aug 2003 23:46:01 GMT  
 Dynamically change caption of a menu
Dialogs normally do not have menus, and since you say "mouse over that menu
item", you should clarify what you mean by menu. If the menu is the same
type of thing that normal frame windows have, then just state that
explicitly.

When you say "bottom of the screen" do you mean a status bar? If not, then
clarify that too.


Quote:
> Hello people.

> I would like to dynamically change the caption of a menu of a dialog,
i.e.:
> what will be written at the bottom of the screen on mouse over that menu
> item.

> Is there a function like "SetMenuCaptionText()" ?

> Thanks a lot for any info.

> btw: if you have any hints about doing that for tooltips for a toolbar, it
> would be nice.  I'm looking MFC MSDN but find nothing yet.



Wed, 13 Aug 2003 01:24:53 GMT  
 Dynamically change caption of a menu
try using strings from strings table and in the status bar assign the string
to the mouse move event of the menu


Quote:
> Hello people.

> I would like to dynamically change the caption of a menu of a dialog,
i.e.:
> what will be written at the bottom of the screen on mouse over that menu
> item.

> Is there a function like "SetMenuCaptionText()" ?

> Thanks a lot for any info.

> btw: if you have any hints about doing that for tooltips for a toolbar, it
> would be nice.  I'm looking MFC MSDN but find nothing yet.



Wed, 13 Aug 2003 01:55:25 GMT  
 Dynamically change caption of a menu
Ok sorry folks, I've not been very clear ;-)

By caption, I was meaning not what is written in the menu itself, but what
is implicitly written on the status bar by the "prompt" field in the menu's
field property.  I would have been more clear to say "SetMenuPromptText()"
or maybe "SetMenuStatusBarLabel()".  My problem is that I have to
dynamically change what will be written on the status bar, and I would like
to know how to modify what is written in the "prompt" menu property at run
time.  And, in the same idea, change the tooltip's text that are comming
from a toolbar, and finally the "prompt" as for the menu.  Well, it could
have been three post for those questions, but I think at least the two
prompt's solution will be not too different.  Thanks

Quote:
> I would like to dynamically change the caption of a menu of a dialog,
i.e.:
> what will be written at the bottom of the screen on mouse over that menu
> item.

> Is there a function like "SetMenuCaptionText()" ?

> Thanks a lot for any info.

> btw: if you have any hints about doing that for tooltips for a toolbar, it
> would be nice.  I'm looking MFC MSDN but find nothing yet.



Wed, 13 Aug 2003 02:51:53 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Changing Button Caption Dynamically

2. How do I change the caption on an MFC Dialog box (dynamically)

3. How to change caption of a menu item

4. Dynamic change menu item caption

5. CMenu menu item dynamic caption change

6. how to change menu caption dynamicly

7. Change popup menu captions at runtime (ModifyMenu)

8. Dynamically change a menu label

9. Dynamically change menu text

10. Dynamically changing menu in MDI app

11. Dynamically changing the menu

12. @@@ Dynamically change IE4 menu/toolbar?

 

 
Powered by phpBB® Forum Software