Hi!
I have a preview image which I want to display in a custom window with the HDK. It works well with the following code:
RE_Server *server = RE_OGLRender::getServer();
RE_Window *previewWindow = server->newWindow(RE_MODE_RGB,RE_WINDOW_UTILITY);
previewWindow->openWindow();
RE_Render *render = previewWindow->getRender();
render->displayRaster(-(float)previewWidth/2.0f,-(float)previewHeight/2.0f,&raster);
but the close button on the top right of the window (which appears by default) does not has any effect. Is there a way to close the window when the user clicks on this button or make the button disappear somehow? Its very disturbing that the button is present but does nothing. When I call the closeWindow() function from the HDK the window is closed well.
Or can you suggest a better way to display the preview image?
Thanks,
Peter