QStringList tipText = DefManager->getText( tipList[ tip-1 ] );
QString tipText = DefManager->getText( tipList[ tip-1 ] );
void tips(int s, int tip) // Tip of the day window{	UI32 y = 10;	if( tip == 0 ) 		tip = 1; #pragma note("new xml format: convert section TIPS to <list> with id TIPS")#pragma note("new xml format: convert section TIP to <text> linked in TIPS-list")	QStringList tipList = DefManager->getList( "TIPS" );	if( tipList.size() == 0 )		return;	else if( tip > tipList.size() )		tip = tipList.size();	QStringList tipText = DefManager->getText( tipList[ tip-1 ] );	y = tipText.length()+10;	updscroll[1]=y>>8;	updscroll[2]=y%256;	updscroll[3]=0;	updscroll[7]=tip;	updscroll[8]=(y-10)>>8;	updscroll[9]=(y-10)%256;	Xsend(s, updscroll, 10);	Xsend( s, (char*)tipText.latin1(), tipText.length() );}