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 » show tooltip as QTF
Re: show tooltip as QTF [message #19957 is a reply to message #19953] Thu, 05 February 2009 12:52 Go to previous messageGo to previous message
andrei_natanael is currently offline  andrei_natanael
Messages: 262
Registered: January 2009
Experienced Member
A small example...
#include <CtrlLib/CtrlLib.h>
using namespace Upp;

class ToolTipEx : public TopWindow {
	ToolTip tip;
public:
	ToolTipEx()
	{
		tip.Set("\1Hello [*@3 World]");
	}
	void LeftDown(Point p, dword keyflags)
	{
		if(!tip.IsOpen())
			tip.PopUp(this, p, true);
		else
			tip.Close();
	}
};

GUI_APP_MAIN
{
	ToolTipEx().Run();
}


if the string start with \1 then it is qtf formated... read more about qtf.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Focus on the PromptYesNo dlg
Next Topic: how to define hot-keys not associated with any menu?
Goto Forum:
  


Current Time: Thu May 16 09:14:40 CEST 2024

Total time taken to generate the page: 0.01760 seconds