@ -27,18 +27,18 @@ void QTSGraph::PaintBox()
Rectangle ( 0 , 0 , 599 , 599 ) ;
Rectangle ( 0 , 0 , 599 , 599 ) ;
QColor c = Qt : : blue ;
QColor c = Qt : : blue ;
SetColor ( c ) ;
SetColor ( c ) ;
SetTextStyle ( 0 , 45 , 1 0) ;
SetTextStyle ( 1 0, 45 , 0 ) ;
OutTextXY ( 70 , 70 , " Hello world! " ) ;
OutTextXY ( 70 , 70 , " Hello world! " ) ;
SetTextStyle ( 1 , 0 , 20 ) ;
SetTextStyle ( 1 , 0 , 20 ) ;
OutTextXY ( 170 , 50 , " Кликните мышкой... " ) ;
OutTextXY ( 170 , 50 , " Кликните мышкой... " ) ;
int m = ReadMouseButton ( ) ;
int m = ReadMouseButton ( ) ;
SetColor ( clRed ) ;
SetColor ( clRed ) ;
SetTextStyle ( 1 , 0 , 20 ) ;
SetTextStyle ( 20 , 0 , 1 ) ;
if ( m = = 1 ) OutTextXY ( 150 , 80 , " Нажата левая кнопка " ) ;
if ( m = = 1 ) OutTextXY ( 150 , 80 , " Нажата левая кнопка " ) ;
else if ( m = = 2 ) OutTextXY ( 150 , 80 , " Нажата правая кнопка " ) ;
else if ( m = = 2 ) OutTextXY ( 150 , 80 , " Нажата правая кнопка " ) ;
else if ( m = = 3 ) OutTextXY ( 150 , 80 , " Нажата средняя кнопка " ) ;
else if ( m = = 3 ) OutTextXY ( 150 , 80 , " Нажата средняя кнопка " ) ;
else OutTextXY ( 150 , 80 , " Нажата неизвестная кнопка " ) ;
else OutTextXY ( 150 , 80 , " Нажата неизвестная кнопка " ) ;
SetTextStyle ( 2 , 180 , 30 ) ;
SetTextStyle ( 30 , 180 , 2 ) ;
OutTextXY ( 460 , 550 , " Hello world! " ) ;
OutTextXY ( 460 , 550 , " Hello world! " ) ;
SetColor ( 0x999999 ) ;
SetColor ( 0x999999 ) ;
SetPenStyle ( 5 ) ;
SetPenStyle ( 5 ) ;