c++ builder teeChart import timetag in text file

家住魔仙堡 提交于 2019-12-13 10:31:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!