English
Source / code snippets

Double click left Multiedits Webseitenaufruf

 
Webseitenaufruf via Double-click on Links in Multiedits

CompileMarkSeparation
 {$Crq}
Declare Medit&,B#,Lasturl$,Tx$,Dlg&
Dim B#,255
Dlg&:=Createdialog(%Desktop,"Multiedit-Linkz",10,10,width(%desktop)-20,height(%desktop-50))
Tx$:="XProfan: https://www.xprofan.de"+Chr$(13)+Chr$(10)+"Community: https://profanforum.de.vu"
Medit& := Createmultiedit(Dlg&,Tx$,10,10,width(dlg&)-20,height(dlg&)-20)
setfocus(medit&)
Usermessages 16

Whilenot %Umessage==16

    Getmessage

    If %Lastmessage==515

        Sendmessage(Medit&,176,B#,0)//curpos
        Lasturl$:=Parseurl( Multiedittosingleline(Medit&),Long(B#,0) )

        If Len(Lasturl$)

            Shellexec(Lasturl$,"open",3)

        Endif

    Endif

Wend

Dispose B#
Destroywindow (Dlg&)
End

Proc Parseurl

    Parameters S$,P&
    S$:=Trim$(Del$(S$,1,P&-1))

    If Len(S$)

        If Instr(" ",S$)

            S$:=Substr$(S$,1," ")

        Endif

        If Len(S$)

            If Upper$(Mid$(S$,1,5))=="HTTP:"

                If Instr("/",S$)

                    Ifnot Instr(".",S$)

                        S$:=""

                    Endif

                Else

                    S$:=""

                Endif

            Endif

        Endif

    Endif

    Return S$

Endproc

Proc Multiedittosingleline

    Parameters Hdl&
    Declare I&,S$
    For I&:=1 To Getlinecount(Hdl&) Do begin
    S$:=S$+Getline$(Hdl&,I&-1)+" "
    end
    Return Trim$(S$)

Endproc

//hope helps, iF
 
08/05/04  
 




Peter
Mallow
XPSE streikt!

make I what wrong, or Why says XPSE, that Error present are?
 
WinXP Pro SP2, XProfan 9 + XPSE
AMD Athlon 64 X2 3800
10/06/05  
 



certainly because the Source already something older is as the neuste XPSE - I schaus me on!
 
10/06/05  
 



so - functions again. The code is revised.

there XPSE has but very viewed what it not fit!

salvo.
 
10/06/05  
 



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

5.468 Views

Themeninformationen

this Topic has 3 subscriber:

iF (2x)
Peter Mallow (1x)
unbekannt (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