English
Source / code snippets

display Controls curtail Pfadnamen - 3

 

Andreas
Miethe


Perhaps can it Yes someone use
CompileMarkSeparation
 $H Windows.ph
CLS
SetStyle %hWnd,1,(GetStyle(%hWnd,1) | ~WS_CLIPCHILDREN  | $2000000)
Var edit& = Create("Text",%hwnd,"",10,10,110,24)
Var Pfad$ = "C:\\Test\\test\\Test\\kuckuck\\aha.prf"
WaitInput
SetText Edit&,minmizename(Pfad$,edit&,width(edit&))
WaitInput
End

Proc MinmizeName

    PARAMETERS FName$,Ct&,MaxLen&
    Declare R#,Result$
    Dim R#,16
    Var b$ = Fname$
    LONG R#,0 = 0,0,Maxlen&,0

    If ~DrawText(~GetDC(CT&), Addr(b$),Len(b$),R#,~DT_SINGLELINE | ~DT_MODIFYSTRING | ~DT_PATH_ELLIPSIS | ~DT_CALCRECT | ~DT_NOPREFIX) > 0

        Result$ = b$

    Else

        Result$ = b$

    EndIf

    Dispose R#
    Return result$

ENDPROC



2 kB
Hochgeladen:06/01/13
Downloadcounter221
Download
 
XProfan X2
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
06/01/13  
 



is class!
 
06/01/13  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.444 Views

Untitledvor 0 min.
p.specht11/20/21
Uwe Lang11/20/21
Manfred Barei11/19/21
Wilfried Friebe11/17/21
More...

Themeninformationen

this Topic has 2 subscriber:

iF (1x)
Andreas Miethe (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie