IDirectFBWindow * main_window = NULL;
DFBWindowDescription main_window_description;
DFBWindowID main_window_id;
main_window_description.flags = DWDESC_CAPS|DWDESC_PIXELFORMAT;
main_window_description.caps = DWCAPS_INPUTONLY;
main_window_description.pixelformat = DSPF_ARGB;
osd_layer->CreateWindow( osd_layer, &main_window_description, &main_window ); + error check
main_window->RequestFocus(main_window); + error check

IDirectFBWindow * child_window = NULL;
DFBWindowDescription child_window_description;
child_window_description.flags = DWDESC_PIXELFORMAT | DWDESC_WIDTH | DWDESC_HEIGHT | DWDESC_POSX | DWDESC_POSY | DWDESC_PARENT | DWDESC_STACKING;
child_window_description.pixelformat = DSPF_ARGB;
child_window_description.width = 10;
child_window_description.height = 10;
child_window_description.posx = 0;
child_window_description.posy = 0;
child_window_description.parent_id = 1;
child_window_description.stacking = DWSC_MIDDLE;
osd_layer->CreateWindow( osd_layer, &child_window_description, &child_window ); + error check

When program runs I got message:
(#) DirectFBError [CreateWindow( )]: Not implemented!

But when I create "child" window withougth _PARENT capabilities nor .parent_id = 1 everything is ok.
(Yes main_window id is equal 1 - i check it with GetID()).

----------------------------------------------------------------------
Bezpłatne konto i limit do 100 tys. Otwierasz?
http://link.interia.pl/f23bb

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to