Hyperlink

Saj

Active Member
Licensed User
Is it posible to have a clickable web address on a control such as a message box ro a label?
 

Cableguy

Expert
Licensed User
Longtime User
Not in a direct way...

Labels do not have a standard click event in B4Ppc, although it can be added using reflection... And Message boxes also dont have a click event...BUT they can host buttons as responses to the posted message, and you can catch that response and act accordingly...
 

Saj

Active Member
Licensed User
I'm looking for some code for launching internet explorer with a given URL. Are there any examples about?
 

mjcoon

Well-Known Member
Licensed User
I'm looking for some code for launching internet explorer with a given URL. Are there any examples about?

I wanted to know what was the call line for Google Maps when clicking on a KML file. (Though no doubt it is embedded in the registry somewhere.)

So I wrote a simple program whose sole purpose is to display the arguments it was given on the call line. (Easy to do with B4P.) After compiling, it can be renamed to anything I like, such as GoogleMaps.exe. Then when I click on the KML file my app gets called and displays the call line.

Any use to you?

Mike.
 

Attachments

  • CommandLineArgs.sbp
    550 bytes · Views: 225
Last edited:

Basic4Life

Member
Licensed User
I'm looking for some code for launching internet explorer with a given URL. Are there any examples about?

You can simply pass the url as a command line argument and it will launch internet explorer with that url.

B4X:
Shell("iexplore.exe","http://www.b4x.com")
 
Top