1. Hyperlink in a message box

Has anyone ever coded a message box to come up with a hyperlink in it, that the user can use to go to something on the Internet? For example, in my program for a particular functionality, I need the user to install another application. So, after checking the registry, and finding it is not there, I put up a message box with the URL to find that application. But the URL is not clickable.

I am using Enhanced IDE version 1.0.4 and win32lib Version: 0.70.4a

Thanks.

new topic     » topic index » view message » categorize

2. Re: Hyperlink in a message box

penpal0andrew said...

...I put up a message box with the URL to find that application. But the URL is not clickable.

You'll have to put up your own custom message box, which is just a window... Put a clickable label on it.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Hyperlink in a message box

Do you need to display the hyperlink? Couldn't you just ask them if they want to go download the software, and if they click Yes, launch the website? Example:

    atom result 
     
    result = message_box( "You do not have Program X installed.\n" & 
        "Would you like to download it now?", "Missing Program", 
        MB_ICONQUESTION + MB_YESNO ) 
     
    if result = IDYES then 
        shellExecute( "open", "http://www.google.com/", SW_SHOWNORMAL ) 
    end if 


-Greg

new topic     » goto parent     » topic index » view message » categorize

4. Re: Hyperlink in a message box

Thanks Greg!

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu