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 » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Toolbar buttons now can have labels
Toolbar buttons now can have labels [message #13021] Wed, 05 December 2007 15:59
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Use .Label or .LabelRight.

struct MyApp : TopWindow {
	void Tool(Bar& bar) {
		bar.Add("Test1", TestImg::test(), Callback()).Label("TEST!");
	}

	typedef MyApp CLASSNAME;

	MyApp() {
		toolbar.MaxIconSize(Size(16, 16));
		toolbar.Set(THISBACK(Tool));
		AddFrame(toolbar);
		Sizeable();
	}
};

GUI_APP_MAIN
{
	MyApp().Run();
}


You can also force the whole toolbar to show labels using new method ToolBar::ButtonKind(), e.g.:

UWord::UWord()
{
	AddFrame(menubar);
	AddFrame(TopSeparatorFrame());
	toolbar.ButtonKind(ToolButton::BOTTOMLABEL);
	AddFrame(toolbar);


Another new method, ToolBar::MaxIconSize, forces resizing down of big icons.

Mirek
  • Attachment: ss.PNG
    (Size: 25.71KB, Downloaded 442 times)
Previous Topic: ConvertInt64, EditInt64
Next Topic: TheIDE Hydra should be fixed...
Goto Forum:
  


Current Time: Thu Apr 18 12:10:51 CEST 2024

Total time taken to generate the page: 0.03438 seconds