问题
I import a text file (with x and y coordinates) on teeChart
. There are times like seconds that I want to do with the text to fill in. Adding the this time and x and y coordinates to the teechart when the program runs. I work on rad studio c++ builder vcl
form app.
Example 0.3 second add (3,5)
Example text file:
timetag X Y
0.3 10 5
ı cant use time. not all code only addcordinate button and openfile button
void __fastcall TForm1::AddCordBtnClick(TObject *Sender) {
Series1->Clear();
SeriesTextSource1->LoadFromStrings(Memo1->Lines);
}
void __fastcall TForm1::openFileBtnClick(TObject *Sender)
{
if(OpenDialog1->Execute())
{
saveAsBtn->Enabled=true;
spaceSep->Enabled=true;
tabSep->Enabled=true;
commaSep->Enabled=true;
changeSep->Enabled=true;
Memo1->Lines->LoadFromFile(OpenDialog1->FileName);
dosya_durumu=true;
}
}
回答1:
http://imgur.com/a/qaIbf
ı cant use time. not all code only addcordinate button and openfile button
void __fastcall TForm1::AddCordBtnClick(TObject *Sender) {
Series1->Clear();
SeriesTextSource1->LoadFromStrings(Memo1->Lines);
}
void __fastcall TForm1::openFileBtnClick(TObject *Sender) {
if(OpenDialog1->Execute())
{
saveAsBtn->Enabled=true;
spaceSep->Enabled=true;
tabSep->Enabled=true;
commaSep->Enabled=true;
changeSep->Enabled=true;
Memo1->Lines->LoadFromFile(OpenDialog1->FileName);
dosya_durumu=true;
}
} @JacekCz
来源:https://stackoverflow.com/questions/45692247/c-builder-teechart-import-timetag-in-text-file