[Gambas-user] hyperlinks in TextLabel (and TextArea) controls

Bruce bbruen at ...2308...
Mon Nov 12 22:52:51 CET 2012


On Mon, 2012-11-12 at 23:23 +1030, Bruce wrote:
> Will try Jussi's suggestion.
> 
> Back tomorrow.
> cheers
> Bruce
> 

Which, of course, worked perfectly.
Thanks Jussi.

In the clear light of day, the solution became pretty obvious, seeing as
the three url's are fixed and I know what they are anyway. (Must have
been pretty tired last night.)

The solution was:
        Public Sub txtCopyright_MouseUp()
        
          If Mouse.Left = True Then
            If Mouse.X >= 0 And Mouse.Y >= 0 And Mouse.X <=
        txtCopyright.Width And Mouse.y <= txtCopyright.Height Then
              Desktop.Open("http://" & $projinfo.VendorURL)  **
            Endif
          Endif
        
        End

** and 
        Desktop.SendMail([$projinfo.VendorAddress]) 
        Desktop.Open("http://gambas.sourceforge.net")
for the other two labels.

Some things arise, however.

For the http:// links, the browser (firefox) opens correctly but the
following message is sent to the console:
"Could not determine mimetype for file: http://gambas.sourceforge.net"

For the mailto: link, the email composer (evolution) opens correctly,
but on the way another (blank) browser tab (or window) is opened and the
console shows the message:
"Could not determine mimetype for file: mailto:staff at ...3042...%2Dhill.net"

Is the above the expected behavior for gb.desktop?

regards
Bruce






More information about the User mailing list