windowing/windowserver/tauto/talphawin.cpp
branchRCL_3
changeset 7 5e51caaeeb72
parent 0 5d03bc08d59c
equal deleted inserted replaced
6:de3d5b6102ac 7:5e51caaeeb72
   369 	RWindow theWin(TestWin->Client()->iWs);
   369 	RWindow theWin(TestWin->Client()->iWs);
   370 	User::LeaveIfError(theWin.Construct(*(TestWin->WinTreeNode()),(TUint32)&theWin));
   370 	User::LeaveIfError(theWin.Construct(*(TestWin->WinTreeNode()),(TUint32)&theWin));
   371 
   371 
   372 	theWin.SetExtent(TPoint(0,0), winSize);
   372 	theWin.SetExtent(TPoint(0,0), winSize);
   373 	theWin.SetBackgroundColor(TRgb(127,0,255,127));
   373 	theWin.SetBackgroundColor(TRgb(127,0,255,127));
   374 	TInt mode=theWin.SetRequiredDisplayMode(EColor16MA);
   374 	
       
   375 	TDisplayMode mode = EColor16MAP;
       
   376 	theWin.SetRequiredDisplayMode(mode);
   375 	theWin.SetVisible(ETrue);
   377 	theWin.SetVisible(ETrue);
   376 	theWin.SetTransparencyAlphaChannel();
   378 	theWin.SetTransparencyAlphaChannel();
   377 	theWin.Activate();
   379 	theWin.Activate();
   378 	TheClient->iWs.Flush();
   380 	TheClient->iWs.Flush();
   379 	CleanupClosePushL(theWin);
   381 	CleanupClosePushL(theWin);
   445 	//create a colour bitmap
   447 	//create a colour bitmap
   446 	//
   448 	//
   447 	CFbsBitmap *bitmapOne;
   449 	CFbsBitmap *bitmapOne;
   448 	bitmapOne = new (ELeave)CFbsBitmap();
   450 	bitmapOne = new (ELeave)CFbsBitmap();
   449 	CleanupStack::PushL(bitmapOne);
   451 	CleanupStack::PushL(bitmapOne);
   450 	User::LeaveIfError(bitmapOne->Create(winSize,static_cast<TDisplayMode>(mode)));
   452 	User::LeaveIfError(bitmapOne->Create(winSize,mode));
   451 
   453 
   452 	CFbsBitmapDevice *deviceOne=CFbsBitmapDevice::NewL(bitmapOne);
   454 	CFbsBitmapDevice *deviceOne=CFbsBitmapDevice::NewL(bitmapOne);
   453 	CleanupStack::PushL(deviceOne);
   455 	CleanupStack::PushL(deviceOne);
   454 
   456 
   455 	CFont *font3;
   457 	CFont *font3;
   500 	RWindow refWin(BaseWin->Client()->iWs);
   502 	RWindow refWin(BaseWin->Client()->iWs);
   501 	CleanupClosePushL(refWin);
   503 	CleanupClosePushL(refWin);
   502 	User::LeaveIfError(refWin.Construct(*(BaseWin->WinTreeNode()),(TUint32)&refWin));
   504 	User::LeaveIfError(refWin.Construct(*(BaseWin->WinTreeNode()),(TUint32)&refWin));
   503 
   505 
   504 	refWin.SetExtent(TPoint(0,0), winSize);
   506 	refWin.SetExtent(TPoint(0,0), winSize);
   505 	refWin.SetRequiredDisplayMode(static_cast<TDisplayMode>(mode));
   507 	refWin.SetRequiredDisplayMode(mode);
   506 	refWin.SetVisible(ETrue);
   508 	refWin.SetVisible(ETrue);
   507 	refWin.SetTransparencyAlphaChannel();
   509 	refWin.SetTransparencyAlphaChannel();
   508 	refWin.Activate();
   510 	refWin.Activate();
   509 	TheClient->iWs.Flush();
   511 	TheClient->iWs.Flush();
   510 
   512