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(😉.
發佈了275 篇原創文章 · 獲贊 199 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章