Autor Beitrag
Bergmann89
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1742
Erhaltene Danke: 72

Win7 x64, Ubuntu 11.10
Delphi 7 Personal, Lazarus/FPC 2.2.4, C, C++, C# (Visual Studio 2010), PHP, Java (Netbeans, Eclipse)
BeitragVerfasst: Fr 09.07.10 00:15 
Hey,

ich such ne bestimmte Funktion, kann sie aber beim besten Willen nicht wiederfinden. Die Funktion formatiert einen Dateipfad. Aus "C:\WINDOWS\system32\cmd.exe" wird "C:\...\cmd.exe". In den neueren Delphi Versionen ist das auch eine Eigenschaft vom TEdit oder TLabel, weiß ich nich mehr genau. Dazu gab es auch mal n Topic, aber ich kanns nich mehr finden :? Wäre nett, wenn mit jmd auf die Sprünge helfen kann.

MfG & Thx Bergmann

_________________
Ich weiß nicht viel, lern aber dafür umso schneller^^
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 09.07.10 00:23 
Ich nehme einmal an du meinst PathCompactPath oder PathCompactPathEx: ;-)
msdn.microsoft.com/e...ibrary/bb773575.aspx (PathCompactPath --> auf Pixelanzahl kürzen)
msdn.microsoft.com/e...ibrary/bb773578.aspx (PathCompactPathEx --> auf Zeichenanzahl kürzen)
Bergmann89 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1742
Erhaltene Danke: 72

Win7 x64, Ubuntu 11.10
Delphi 7 Personal, Lazarus/FPC 2.2.4, C, C++, C# (Visual Studio 2010), PHP, Java (Netbeans, Eclipse)
BeitragVerfasst: Fr 09.07.10 00:43 
Jop, das hab ich gesucht, aber iwie is das bei mir ne in der Windows-Unit -.-

€: die Funktion hieß doch anders: MinimizeName. Aber kommt im endeffekt aufs gleiche raus...

_________________
Ich weiß nicht viel, lern aber dafür umso schneller^^
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 09.07.10 04:42 
In diesem Fall ist die Delphifunktion kein Wrapper der API-Funktion, denn MinimizeName macht das selber.

user profile iconBergmann89 hat folgendes geschrieben Zum zitierten Posting springen:
Jop, das hab ich gesucht, aber iwie is das bei mir ne in der Windows-Unit -.-
Das ist egal, es sind eben bei weitem nicht alle API-Funktionen da drin, aber du brauchst so eine Funktion dann nur kurz selbst zu deklarieren.