c ++ builder teeChart在文本文件中导入时间标签 [英] c++ builder teeChart import timetag in text file

查看:312
本文介绍了c ++ builder teeChart在文本文件中导入时间标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 teeChart 上导入一个文本文件(带有x和y坐标)。有些时候我想用文本来填充。在程序运行时将此时间和x和y坐标添加到teechart。我在 rad studio c ++ builder vcl 表单app上工作。

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.

示例 0.3秒添加( 3,5)

示例文本文件:

timetag   X   Y
0.3       10  5







不能使用时间。并非所有代码只有addcordinate按钮和openfile按钮

ı 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;
    }
}


推荐答案

< a href =https://imgur.com/a/qaIbf =nofollow noreferrer> http://imgur.com/a/qaIbf

ı不能使用时间。并非所有代码只有addcordinate按钮和openfile按钮

ı cant use time. not all code only addcordinate button and openfile button

void __fastcall TForm1 :: AddCordBtnClick(TObject * Sender){

void __fastcall TForm1::AddCordBtnClick(TObject *Sender) {

    Series1->Clear();
    SeriesTextSource1->LoadFromStrings(Memo1->Lines);

}

void __fastcall TForm1 :: openFileBtnClick(TObject * Sender)
{

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

} @JacekCz

这篇关于c ++ builder teeChart在文本文件中导入时间标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆