[question] displaying clickable URL

eps

Expert
Licensed User
Longtime User
Is this possible, or should it be a button or something? I've got a label which displays a URL, but I would like it to be selectable, so that a user can go to a website...
 

XverhelstX

Well-Known Member
Licensed User
Longtime User
SO you want your label clickable?

Open your designer, make your label, Select tools - Generate Members -[-] label1 - select click or long click and click on generate members. (This way you can see all available instructions for your view.

Now a sub is made on your IDE with

B4X:
sub Label1_click
'Place your "go to -url" code here.
end sub

XverhelstX
 
Upvote 0

XverhelstX

Well-Known Member
Licensed User
Longtime User
Another way you can do this without the designer is the following:

In your IDE, start typing "Sub " (don't forget the space behind the sub) and press on the "TAB"-Sign on your keyboard. A popup will appear and you will be able to select a label and then click or long click. Then don't forget to change the label name to your label object.

XverhelstX
 
Upvote 0
Top