PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Panels???

Hi,

I have just dowloaded GledPlay and I'm just starting to play arount with it.

I am confused about panels - I want to use one so that clipping is done automatically.

At the moment, all I am trying to do is edit the InitialApplication project to include a simple panel to "wrap" the backbuffer.

In my onNextFrame function, I have the following code:
Code:

HRESULT InitialApplication::onNextFrame(Surface* pBackBuffer)
{
Panel main(pBackBuffer);

//Paint screen with white
main.fillRect(RGB(255, 255, 255));
//Draw logo image
main.bltFast(0, 0, &surface);
//Write text "GledPlay Application"
main.drawText( 10, 140, Font::getSystemFontWithBorder(), Font::LEFT_ALIGN, TEXT("GledPlay Application"));

return ReturnCode::OK;
}


However, when I compile and run (on emulator and device) all I get is a black screen. If I use "pBackBuffer->" instead of "main." it works fine.

Am I being really dumb or missing something really obvious? Should I be using panels in this way?

Thanks in advance.
Hi,
Regretfully, it seems that there is a bug with eVC projects, though it is working OK with Visual Studio projects, both XP and device.
We are releasing a new build of GledPlay with High Resolution Devices support, several performance improvements, and some bug fixes this Monday.
I'll get this fixed for that release on Monday.

I'm very sorry for the inconvenience, and thank you for your feedback.

Best Regards,
Sergio.
Hi Sergio,

Thanks for the quick response - I look forward to the new release on Monday :)
Hi,
We've just released the new patched version. Thank you for your patience, and we hope you find GledPlay useful.

Best regards,
Sergio.
Hi Sergio,

Thanks for the heads-up. I downloaded the files yesterday and can confirm the Panels now function as they should with v228 and eVC4.