Print Page | Close Window

Custom message disappears from Status Bar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2773
Printed Date: 04 October 2024 at 7:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom message disappears from Status Bar
Posted By: Sergey
Subject: Custom message disappears from Status Bar
Date Posted: 24 August 2005 at 3:34am

When user clicks a button on a toolbar we display a message in the Status Bar. However when user moves the mouse out of the button this message disappears because it is changed to "Ready" so the user can not read the message.

It should be noted that MFC does not change Status Bar text. To ensure that I created an MDI MFC application with the Wizard, changed the content of 'OnAppAbout()' method to:

CMainFrame * pFrame = DYNAMIC_DOWNCAST(CMainFrame,::AfxGetMainWnd());
    if (pFrame)
        pFrame->SetMessageText("MessageText MessageText");

Build and run the application, click "?" button and move the mouse out of the button. The Status Bar text was not replaced!

How to allow the user to read a custom message in the Status Bar?




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net