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   |
omari
Messages: 276 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.
|
|
|
Goto Forum:
Current Time: Mon Apr 28 19:28:17 CEST 2025
Total time taken to generate the page: 0.06933 seconds
|