Page 1 of 1
Hyperlink question
Posted: Mon Feb 09, 2015 7:45 pm
by DavJans
Is it possible to put a hyperlink on an answer pop up?
Re: Hyperlink question
Posted: Mon Feb 09, 2015 8:23 pm
by dunbarx
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
Re: Hyperlink question
Posted: Mon Feb 09, 2015 8:50 pm
by DavJans
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
Re: Hyperlink question
Posted: Mon Feb 09, 2015 8:59 pm
by FourthWorld
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.