....I knew it wouldnt be long b4 I needed some more help....
....if I place the moveTo and LineTo methods in an OnClick method of a button, it draws the line, but by placing the same code in the OnCreate method of a form, it does nothing....subsequently , it thus also does nothing when these methods are used tom plot data from the aray ( that started this thread question )....is it something simple, or am I doing something crazy still....
...hopefully the code is cleaner now..!!
Code:
Canvas -> MoveTo(0,0);//set initial starting point//
int x, y, count;
for ( x = 0 ; x < 1 ; x=x+1 ) {
if ( Store1[x] == 0 ) continue;
count = 1;
for ( y = x+1 ; y < 100 ; y=y+1 ) {
if ( Store1[x] == Store1[y] ) {
Store1[y] = 0;
count=count+1;
}
int n = count * 5;
Canvas -> MoveTo(ClientWidth - 150 , ClientHeight );
Canvas -> LineTo (ClientWidth - 150, n);
}
}
...please note that the c0-ordinates are not set at the moment, and the drawing element is not set up....but its the principal, that it draws NOTHING.....
...using Borland by the way....