标题显示当前编辑的文件完整路径
This commit is contained in:
parent
0bcc5d19f4
commit
d822c0e433
|
@ -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){
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user