<http://forum.pspad.com/read.php?f=2&i=10765&t=10746>
----------------------------------------------------------------
doesn't work : troubleshot : the R/O flag is no longer reflect the real
file attribute.
here's what i wrote :
function reLoad( editor)
{
// mémoriser position curseur
var x = editor.caretX();
var y = editor.caretY();
var f = editor.fileName();
editor.openFile( f); // suffisant pour rafraichir l'affichage
editor.setCaretPos( x, y);
}
if i set the option below and comment the last line ( setCaretPos) , R/O
attribute wrong.
my main func is like that :
1 - get VSS Item associated whith editor file -
2 - checkout it
2 - reload file in editor to update R/O flag
--
PSPad freeware editor http://www.pspad.com