mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-25 17:29:07 +02:00
Converter: create a WindowsAPI category for function replacement.
git-svn-id: trunk@27987 -
This commit is contained in:
parent
ef22ab0b4a
commit
fae6512968
@ -448,13 +448,15 @@ begin
|
||||
AddFunc(Categ, 'GetFileSize','FileSize($1)' ,'','SysUtils');
|
||||
AddFunc(Categ, 'ReadFile', 'FileRead($1)' ,'','SysUtils');
|
||||
AddFunc(Categ, 'CloseHandle','FileClose($1)' ,'','SysUtils');
|
||||
// WindowsAPI
|
||||
Categ:='WindowsAPI';
|
||||
AddFunc(Categ, 'ShellExecute',
|
||||
'if $3 match ":/" then OpenURL($3); OpenDocument($3)', 'LCL', '');
|
||||
AddFunc(Categ, 'TimeGetTime', 'GetTickCount','LCL',''); // In Windows MMSystems unit.
|
||||
// Others
|
||||
Categ:='Other';
|
||||
AddDefaultCategory(Categ);
|
||||
AddFunc(Categ, 'Ptr','Pointer($1)' ,'','');
|
||||
AddFunc(Categ, 'ShellExecute',
|
||||
'if $3 match ":/" then OpenURL($3); OpenDocument($3)', 'LCL', '');
|
||||
AddFunc(Categ, 'TimeGetTime', 'GetTickCount','LCL','');
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user