LOG of TEASOFT Modification

This document record the all modification about the TEASOFT development.

2020/2/6
  1. Change the textfrm.cpp: Load1Click(TObject * Sender)
    GetKeyState(VK_SHIFT) & 0x80)
    if(GetKeyState(VK_SHIFT) & 0x80) {
        InputLineForm->SetTitle("Input File Name:");
        InputLineForm->m_nNumberFlag = 0;
        InputLineForm->ShowModal();
        char szString[0x1000];
        InputLineForm->GetString(szString);
        LoadFileWithNameString(szString);
        return;
    }

  1. TextFrm.CPP:8958
    LoadFileWithNameString(char * pszString)
    If strlen(pszSting) == 0) return 1

  2. Change TextFrm.CPP: Load1Click(TObject * Sender)

void __fastcall TTextForm::Load1Click(TObject *Sender)
{
    RestoreOriginFile();
    SetLoadFileItem();

    if(GetKeyState(VK_SHIFT) & 0x80) {
        InputLineForm->SetTitle("Input File Name:");
        InputLineForm->m_nNumberFlag = 0;
        if(InputLineForm->ShowModal() != mrOk) return;  // Modification ****
        char szString[0x1000];
        InputLineForm->GetString(szString);
        LoadFileWithNameString(szString);
        return;
    }
}

  1. Change UdpPython UDPFocusWindow()
//---------------------------------------------------------------------------
int UDPPFocusWindow(unsigned char * pucData, char * pucReturn) {
    unsigned short * p = (unsigned short *)pucData;
    int nWindowLength = *(p + 0);

    char szWindowTitle[0x1000];
    memcpy(szWindowTitle, pucData + 2, nWindowLength);
    szWindowTitle[nWindowLength] = 0;
    if(nWindowLength == 0) {
        strcpy(szWindowTitle, g_szLatextPasteWindow);
    }
    int nReturn = 2 + nWindowLength;
    if(strcmp(szWindowTitle, "TEASOFT") == 0) {
        if(TextForm->Visible)           TextForm->SetFocus();
        else if(CharInputForm->Visible) CharInputForm->SetFocus();
        else MemoForm->SetFocus();
    } else {
        FocusWindowWithTitle(szWindowTitle);
    }

    strcpy(pucReturn, "");
    return nReturn;
}

  1. Change Pasteclipboard File\Python Cmd --> Python CSDNPP
  2. Add udppython command:
    ExcutePythonCmd
  3. Add the Python Execute Multiple Commands。 Every command are sepreted by semi-column(😉.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

卓晴

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值