CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 1999
    Posts
    66

    Hyperlink in a text on a dialog.

    Hi all,

    I have a simply Dialog and a Text (could be a static, or I can write it directly on a dialog). The text (message) looks like "There is somthing wrong in your application, click <HERE> to get the latest application update.". From this Text only "HERE" must be a hyperlink to an url, but the rest of the message is a normal text.
    A whole static control which is a hyperlink is no problem, but how bcan I do this in the middle of a text (Visual C++ 7.1).

    Thanks a lot in advance !!

    Regards,
    Emil

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,398

    Re: Hyperlink in a text on a dialog.

    The simplest way, INHO, would be to create three (static) controls: one - with the text "There is somthing wrong in your application, click ", second - with the hyperlink "<HERE> ", third . with the text " to get the latest application update.".

  3. #3
    Join Date
    Sep 1999
    Posts
    66

    Re: Hyperlink in a text on a dialog.

    In this case I will have a broken text, it will look like:
    "There is somthing wrong in your
    application, click"
    here
    "to get the latest application
    update."

    I want a fluent text like:
    "There is somthing wrong in your
    application, click HERE to get the
    latest application update."

    Thanks for your idea.

    Regards,
    Emil

  4. #4
    Join Date
    May 2005
    Posts
    4,954

    Re: Hyperlink in a text on a dialog.

    Can’t you simply arrange it in the recourse editor that it wont break into couple of lines?

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  5. #5
    Join Date
    Sep 1999
    Posts
    66

    Re: Hyperlink in a text on a dialog.

    I don't know what you mean. How can I display the hyperlink in a simply editor in thew middle of a text?

    Thanks,
    Emil

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured