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...
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
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.