Fixes: Documents.TabByFileName is implemented now. keydown signal adds shift state parameter.
If Script.Message(...) outputs string containing a marker in specific format then doubleclicking this line in Messages pane will bring the cursor to the corresponding line.
Some samples that will work:
- Code: Select all
Line 1
Line: 1
Line 1:2
Line: 1:2
some_error:1:2
"some error":1:2
New functions
- Code: Select all
function DirectoryExists(Path: string): Boolean;
function DateSeparator:string
function TimeSeparator:string
function ShortDateFormat:string
function LongTimeFormat:string
TEdit and TMemo have new methods available:
- Code: Select all
CopyToClipboard
PasteFromClipboard
SelectAll
New function CustomSortStringList. Sample:
- Code: Select all
function TestSort(SL, i1, i2) {
return -CompareText(SL[i1], SL[i2]); //notice the "-"
}
function CreateTestMem() {
var Mem = new TMemo(WeBuilder);
var lala = new TStringList;
Mem.Parent = WeBuilder;
Mem.Visible = true;
Mem.Width = 300;
Mem.Height = 300;
lala.Add("a");
lala.Add("c");
lala.Add("1");
lala.Add("b");
lala.Add("2");
lala.Add("3");
CustomSortStringList(lala, &TestSort);
Mem.Lines.Text = lala.Text;
}