标题显示当前编辑的文件完整路径

This commit is contained in:
阿甘 2024-06-19 20:25:42 +08:00
parent 0bcc5d19f4
commit d822c0e433
2 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,7 @@ getTxtTableData = function(reference_row = 2){
var writeTxtFile = function(file_path, vlist_data){
var file = ..io.open(file_path,"w");
setCurFilePath(file_path);
for(i=1;#vlist_data;1){
var arrLine = {};
for(j=1;#vlist_data.fields;1){

View File

@ -80,6 +80,7 @@ g_teMenus.openFile = function(ctrl){
return function(){
var t = teUtils.getTxtTableData();
if(t){
mainForm.text += "[ " + teUtils.getCurFilePath() + " ]";
g_teMenus.newFile();
mainForm.g_flexcell.AutoRedraw = false;
mainForm.g_flexcell.setTable(t,,t.fields);
@ -107,6 +108,7 @@ g_teMenus.saveFile = function(ctrl){
g_teMenus.saveAsFile = function(ctrl){
return function(){
teUtils.saveAsTxtTableData(mainForm.g_flexcell.getVlistData());
mainForm.text += "[ " + teUtils.getCurFilePath() + " ]";
showUnmodifyStyle();
}
}