Results 1 to 5 of 5

Thread: Non-web links in Richtextbox

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Posts
    27

    Non-web links in Richtextbox

    I'm trying to replicate something like the outlook rules screen, which generates a textbox with a text description of your rule options, with each condition being a link you can click on to modify. Is it possible to do this easily?

    The linkclicked property only seems to work with hyperlinks, and those seem to be handled outside the RTF code itself. I tried comparing the raw RTF of a link and non link string, and it has the same codes, so I can't force it that way.

    The only other thing I can think of is to note the location/length of the links, formating the color/underline by hand, and then coming up with a way to see why the mouse click or cursor goes when clicked, this doesn't seem to be too easy, either.

  2. #2
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Non-web links in Richtextbox

    You can use a link label and it's click event to open another form etc.
    TPM

    Add yourself to the VBForums Frappr Map!!

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Non-web links in Richtextbox

    In other words, don't use an RTB, but use a panel with a white background that looks like an RTB, and contains text, with the link label in its place.

  4. #4
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: Non-web links in Richtextbox

    Maybe you can find a way to create a hyperlink yourself in the Rich Text spec
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Posts
    27

    Re: Non-web links in Richtextbox

    I did try hard coding an RTF hyperlink, but it didn't seem to work. Not sure if I didn't do it right or it only supports URL links.

    I did see an example using the pane and adding controls to it, but it seems a little hard to do unless I make the entire line a link, instead of just a word. Otherwise you'd have to string together regular labels, worry about word wrap, etc.

    Is it possible to get a character count at the position in the box you click?

    I've attached screenshot of what I'm trying to replicate
    Attached Images Attached Images  

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