Hi, 

i have changed the code of checktest.c . I have got one LiteWindow,LiteBox and 
just
want  to display the LiteBox in LiteWindow with another color. But it does not 
work.
I can only see the empty LiteWindow. For help, i would be grateful.

Regards Tu

#include <config.h>
#include <stddef.h>
#include <lite/lite.h>
#include <lite/window.h>
#include <lite/util.h>
#include <leck/textbutton.h>
#include <leck/check.h>

int main (int argc, char *argv[])
{
LiteWindow     *window;
DFBRectangle    rect;
DFBResult       res;
LiteBox *lite_box;

if (lite_open( &argc, &argv ))
return 1;

/* create a window */
rect.x = LITE_CENTER_HORIZONTALLY;
rect.y = LITE_CENTER_VERTICALLY;
rect.w = 260;
rect.h = 160;

lite_new_window( NULL,&rect,DWCAPS_ALPHACHANNEL,liteDefaultWindowTheme,"Check 
Test",&window );
lite_new_box(&lite_box,LITE_BOX(window), 0,0,50,50);
IDirectFBSurface *test=lite_box->surface;

test->SetColor(test,155,155,155,255);
test->FillRectangle(test,10,10,260,160);
test->Flip(test,NULL,0);

lite_set_window_opacity( window, liteFullWindowOpacity );
lite_window_event_loop( window, 0 );

return 0;
}

____________________________________________________________
Text: GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de

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

Reply via email to