add: */
context: void clsMainWindow::test1(){	Layer		*topLayer = fView->topLayer;	rgb_color	c;	c.red = rand()/256;	c.green = rand()/256;	c.blue = rand()/256;//	Layer	*lay1//		= new Layer(BRect(20,20,300,220), "lay1", B_FOLLOW_NONE, 0, c);//		= new WinBorder(BRect(20,20,300,220), "lay1", B_FOLLOW_NONE, 0, c);//	topLayer->AddLayer(lay1);// ------	WinBorder	*wb1 = new WinBorder(BRect(20,20,300,220), "wb1", B_FOLLOW_NONE, 0, c);	topLayer->AddLayer(wb1);	Layer	*lay1		= new Layer(BRect(0,0,280,200), "lay1", B_FOLLOW_NONE, 0, c);	wb1->AddLayer(lay1);// ------	c.red = rand()/256;	c.green = rand()/256;	c.blue = rand()/256;	Layer	*lay2 = new Layer(BRect(20,20,150,150), "lay2",			B_FOLLOW_NONE,			B_FULL_UPDATE_ON_RESIZE, c);	lay1->AddLayer(lay2);	c.red = rand()/256;	c.green = rand()/256;	c.blue = rand()/256;	Layer	*lay3 = new Layer(BRect(20,20,100,100), "lay3",			B_FOLLOW_LEFT | B_FOLLOW_BOTTOM,			0, c);	lay2->AddLayer(lay3);	BRegion		temp;	wb1->GetWantedRegion(temp);	topLayer->RebuildVisibleRegions(temp, wb1);	wind->Lock();	fView->Invalidate();	wind->Unlock();	snooze(2000000);	lay2->MoveBy(25,35);	snooze(2000000);	lay2->ResizeBy(45,55);	snooze(2000000);	lay2->ResizeBy(-45, -55);	snooze(2000000);	lay1->ScrollBy(0,50);	snooze(2000000);	lay2->Hide();	snooze(2000000);	lay2->Show();	snooze(2000000);	lay1->Invalidate(BRect(0,0,500,500));}