Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Display widgets Tip on StatusBar
Display widgets Tip on StatusBar [message #38987] Mon, 04 February 2013 18:52
frozen is currently offline  frozen
Messages: 13
Registered: January 2013
Promising Member
Hello guys!

I have some problems to display Tips from several widgets on the StatusBar when they get the focus.

The search pointed me to this thread:
EditString and custom msg on status bar

So I created the following:
void MyApp::ChildGotFocus()
{
       Ctrl *curCtrl = GetFocusCtrl();
	
	
       if( curCtrl->GetTip().GetLength() > 1 )
              status.Set( curCtrl->GetTip() );
}

void MyApp::ChildLostFocus()
{
       status.Set("Ready");
}



status is my StatusBar.

This works for EditDouble and EditDoubleSpin, but not for DropList and Option.

How can I have the Tip on the StatusBar for these widgets (or even better: for any widget that has a Tip)?

Thank you very much!

frozen
Previous Topic: Respond to several Ctrl actions
Next Topic: Solved: How to use WhenCancel callback for DropList
Goto Forum:
  


Current Time: Thu Jun 13 19:58:24 CEST 2024

Total time taken to generate the page: 0.02079 seconds