Hyperlink question

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DavJans
Posts: 275
Joined: Thu Dec 12, 2013 4:21 pm

Hyperlink question

Post by DavJans » Mon Feb 09, 2015 7:45 pm

Is it possible to put a hyperlink on an answer pop up?
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: Hyperlink question

Post by dunbarx » Mon Feb 09, 2015 8:23 pm

Hi.

The "answer" command produces a dialog box that contains one or more buttons. Only the "names" of the buttons are returned. So, no, you cannot.

If you are really inquiring about the "ask" dialog, where both default text and user text are part of that dialog, then the answer is "no", you cannot.

Sorry, just being difficult.

So the question is this: what are you trying to do? If it is to present the user some text with links embedded in it, then there are other ways to accomplish this, and I bet you will like the results. But please reply with more information on what you intend to present to that user, and how that might be constructed. You may for example, find yourself opening a substack that looks just like a dialog, but has, say a list field with links in the field text.

Craig Newman

DavJans
Posts: 275
Joined: Thu Dec 12, 2013 4:21 pm

Re: Hyperlink question

Post by DavJans » Mon Feb 09, 2015 8:50 pm

I have a button that creates a CSV file from data in my mySQL server. What I was thinking about doing was have an answer box that pops up when this happens that would say something to the effect of here it is click here to go o the folder on the server where is was created.

however I can accomplish the same thing with something like this.

Answer "CSV file was created here //mfcpdc2/qc/Metals Fab tracker/Export/" with "OK" and "Open location"
if it is "Open location" then
open "//server/Export/" <--- don't have this quite figured out yet, but if you know the answer you can fill it in for me :) Basically I need windows explorer to open at that location
end if
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Hyperlink question

Post by FourthWorld » Mon Feb 09, 2015 8:59 pm

I don't believe the built-in Answer dialog has a handler for the linkClicked message. You could temporarily insert a frontScript to handle that before running the answer command, but it may be simpler to just make a custom modal dialog for that.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply