This document record the all modification about the TEASOFT development.
2020/2/6
- 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;
}
-
TextFrm.CPP:8958
LoadFileWithNameString(char * pszString)
If strlen(pszSting) == 0) return 1 -
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;
}
}
- 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;
}
- Change Pasteclipboard File\Python Cmd --> Python CSDNPP
- Add udppython command:
ExcutePythonCmd - Add the Python Execute Multiple Commands。 Every command are sepreted by semi-column(😉.