Hyperlink question
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Hyperlink question
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
Re: Hyperlink question
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
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
Re: Hyperlink question
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
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

end if
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Hyperlink question
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn