Diagramma
Diagramma dastur oynasida (1.26 rasm) dollar kursi o’zgarish rasmini chizadigan diagrammani tasvirlaydi. Dastur shunday loyixalanki, oyna o’lchamiga bog’liqmas xolda, xatto foydalanuvchi oyna o’lchamini o’zgartirgandan keyin xam, diagramma oyna markaziga joylashadi va uning katta qismini egalaydi.
1.26-rasm. Diagramma dastur oynasi
float data[]={27.98, 28.01, 27.96, 27.96, 28.11, 28.08,
28.00, 27.98, 28.15, 28.15, 28.11, 27.94,
27.86, 27.88, 27.95, 27.95};
AnsiString Title = "Dollar kursining o'zgarishi";
void __fastcall TForm1::FormPaint(TObject *Sender)
{
int x,y;
// sarlavha
Canvas->Font->Name = "Tahoma";
Canvas->Font->Size = 12 ;
x = (ClientWidth - Canvas->TextWidth(Title)) /2;
Canvas->Brush->Style = bsClear;
Canvas->TextOutW(x,10,Title);
// gistogramma
Do'stlaringiz bilan baham: |