mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 08:29:06 +02:00
Improves wince platform detection and adds a new convenience routine to customshelltreeview
git-svn-id: trunk@27111 -
This commit is contained in:
parent
6cf974a082
commit
e5b69bef2d
@ -1265,7 +1265,10 @@ begin
|
||||
else if WideStrCmp(@buf, 'SmartPhone') = 0 then
|
||||
Result := atKeyPadDevice
|
||||
else
|
||||
Result := atPDA;
|
||||
// Other devices can set anything for the platform name,
|
||||
// see http://bugs.freepascal.org/view.php?id=16615
|
||||
// Here we just suppose that they are atDesktop
|
||||
Result := atDesktop;
|
||||
end
|
||||
else if GetLastError = ERROR_ACCESS_DENIED then
|
||||
Result := atKeyPadDevice
|
||||
|
@ -71,6 +71,7 @@ type
|
||||
AMask: string; AObjectTypes: TObjectTypes; AResult: TStrings; AFileSortType: TFileSortType = fstNone);
|
||||
{ Other methods specific to Lazarus }
|
||||
function GetPathFromNode(ANode: TTreeNode): string;
|
||||
function GetSelectedNodePath(): string;
|
||||
|
||||
{ Properties }
|
||||
property ObjectTypes: TObjectTypes read FObjectTypes write FObjectTypes;
|
||||
@ -594,6 +595,11 @@ begin
|
||||
Result := GetBasePath + rootDir;
|
||||
end;
|
||||
|
||||
function TCustomShellTreeView.GetSelectedNodePath(): string;
|
||||
begin
|
||||
Result := GetPathFromNode(Selected);
|
||||
end;
|
||||
|
||||
{ TCustomShellListView }
|
||||
|
||||
procedure TCustomShellListView.SetShellTreeView(
|
||||
|
Loading…
Reference in New Issue
Block a user