[Y-devel] How do I...
Matthew Allen fret at memecode.com
Fri Apr 23 03:42:21 BST 2004
...close my top level Y::Window without quiting the application?
Currently I catch the close request event with:
Y::Window *w = ...;
w->requestClose.connect (slot (this, &YWindow::OnRequestExit));
Where YWindow is my own wrapper class. But what to do in OnRequestExit? I ask the app whether it wants to quit (i.e. Do you want to save 'xyz'?) and then what? deleting the Y::Window doesn't remove it from the screen, just stops my app from receiving events about the window... I think basically the client side object disappears but not the server side.
There is a nice "show" function to put it on the screen but no "hide" to quit it.
I'm still waiting for some way of sending bitmap image data to a Y::Canvas as well. Is that going to happen soon? Currently I'm storing all my images in a chuck of my own memory (although I can't put them on to the screen). Until such time as Y has it's own client read/writable image store (think DIB section or XImage).
regards
--
Matthew Allen
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved