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 » Community » Newbie corner » Attempting to get a canvas to display...
Re: Attempting to get a canvas to display... [message #47757 is a reply to message #47753] Sun, 19 March 2017 19:24 Go to previous messageGo to previous message
omari is currently offline  omari
Messages: 266
Registered: March 2010
Experienced Member
Hi,

You do not specify the size of canvas.
UppApp::UppApp()
{
	CtrlLayout ( *this, "UppApp" );

	canvas.SetRect(100,0, 500, 500 ); // <---- setting the canvas size here
	
	CtrlLayout ( buttonPanel );

	buttonPanel.aBtn << THISBACK1 ( displayMessage, "A" );
	buttonPanel.bBtn << THISBACK1 ( displayMessage, "B" );
	buttonPanel.cBtn << THISBACK1 ( displayMessage, "C" );

	Add ( buttonPanel );
	Add ( canvas );
	BackPaint();
}



regards
omari.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Templates gone missing...
Next Topic: Link error:
Goto Forum:
  


Current Time: Tue May 07 19:10:25 CEST 2024

Total time taken to generate the page: 0.03790 seconds