Componentes Builder

Ana
03 de Septiembre del 2003
Hola.
Ando buscando algun componente del builder que me permita representar grafos en tiempo de ejecucion.
Alguien me puede ayudar?
Gracias

julio perez-marquez
03 de Septiembre del 2003
Hay va crear una grafica de barras simple.
Haz una form con un boton y un componenente Image
El código del boton es=
//Ejes X-Y
Image1->Canvas->Pen->Color = clBlack;
Image1->Canvas->Pen->Mode = pmCopy;
Image1->Canvas->Rectangle(20, 10, 21, 120); //primer xy es la posicion arriba izda//el segundo xy es la posicion inferior derecha
Image1->Canvas->Rectangle(20, 120, 300, 121); //linea abajo
Image1->Canvas->Pen->Width = 2; //da el tamaño de la linea

Image1->Canvas->Pen->Color = clBlue;
Image1->Canvas->Brush->Color = clAqua;
Image1->Canvas->TextOut(40, 125, "1");
Image1->Canvas->TextOut(110, 125, "2");
Image1->Canvas->TextOut(180, 125, "3");
Image1->Canvas->TextOut(250, 125, "4");

int C1=10, C2=20, C3=30, C4=40;
Image1->Canvas->Rectangle(30, C1, 60, 120); //Rectángulo A
Image1->Canvas->Rectangle(100, C2, 130, 120); //Rectángulo G
Image1->Canvas->Rectangle(170, C3, 200, 120); //Rectángulo C
Image1->Canvas->Rectangle(240,C4, 270, 120); //Rectángulo T
}

PUEDES BUSCAR INFO Y JUGAR EN TU PROGRAMA EN BUILDER CON LAS PALABRAS CLAVE:
CANVAS, COLORS, PENS, ETC

Saludos JP