PocketMatrix forums

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

cant seem to minimize with the new beta

I am having a strange interaction between my window and my gapisurface on the PDA.

Sometimes I can tap the top of my window and it half pulls up the window behind my surface. The two kind of fight it out with parts of the window being drawn and parts of my game display.

Also, I have code to minimize my game which calls ShowWindow( hWnd, SW_MINIMIZE ); When I do that I see part of the pda today page but most of it is not refreshed and when I bring my game back up I can tap on the X in the top right even though it isn't displayed.

Anyone seeing anything like this and have any suggestions?

Also, Johan I am not using the gapiapplication simply because my program was built with gapidraw before the gapiapplication existed. Could you publish the gapiapplication code (not all of gapidraw but just that shell that uses it) so those of us from preapplication days can learn how you use gapidraw internally.
CGapiApplication is documented in GapiApplication.cpp and GapiApplication.h (in the include folder). :)

I haven't changed any of the critical code that runs on the PDA in beta 1, so there should be no differences to earlier versions...
I was setting the window to be of type WS_POPUP. Don't do that. Don't pass in anything except maybe WS_VISIBLE to the createWindow call and that will fix a lot of problems.

Thanks for pointing me at the app code it gave me the examples I needed to run this down.