1 (edited by jumper 2015-11-27 12:52:26)

Topic: Why does a email llink only show up when you first type it in?

I used some code that I found here to make a email link look like a link (blue underlined link). However, the blue underlined link is not saved and the next time the blue underlined link is gone. It shows up as plain text. And the email address still works when you doubleclick it.

But the link comes back if you move the cursor to the beginning or end of the text.I don't understand what's going on. with this behavior. Here's the code that is used for the link..

procedure Form1_Edit1_OnKeyUp (Sender: string; var Key: Word; Shift, Alt, Ctrl: boolean);
begin
    if Pos('@', Form1.Edit1.Text)>0 then
    begin
        Form1.Edit1.Cursor := crHandPoint;
        Form1.Edit1.Font.Style:=fsUnderline;
        Form1.Edit1.Font.Color := clHotLight;
    end else
    begin
        Form1.Edit1.Cursor := crDefault;
        Form1.Edit1.Font.Style:=0;
        Form1.Edit1.Font.Color := clDefault;
    end;
end;

begin
begin

     frmMain.mniAbout.Visible := False;
     frmMain.mniOptions.Visible := False;
     frmMain.mniFile.Visible := False;
  end;
end.

Is there anything I can do to save the appearance of a link in the database?

thanks a lot...

Nothing inspires forgiveness quite like revenge.

Scott Adams

Re: Why does a email llink only show up when you first type it in?

jumper

You found a bug.
Please download latest beta version here, bug fixed
http://myvisualdatabase.com/forum/viewtopic.php?id=1838



Also I recommend you to use event OnChange for that.


Thanks.

Dmitry.

3 (edited by jumper 2015-11-27 14:30:20)

Re: Why does a email llink only show up when you first type it in?

DriveSoft wrote:

jumper

You found a bug.
Please download latest beta version here, bug fixed
http://myvisualdatabase.com/forum/viewtopic.php?id=1838



Also I recommend you to use event OnChange for that.


Thanks.

thanks for writing back... I downloaded the beta program and when I run my program, the problem still exists. I tried the OnChange event gives you unwanted behavior.

So after installing the beta upgrade, I still can't get it to work. It's probable "pilot error" on my part. I'm sending my program as an attachment so you can see what's going on and make my questions more clear.

Update: Not able to upload project. I get error, file is too large. The size is: 2.47 MB... Builder.dll is the biggest file.

Nothing inspires forgiveness quite like revenge.

Scott Adams

Re: Why does a email llink only show up when you first type it in?

jumper
Please attach your project  like zip file without exe and dll.
or send to support@drive-software.com

Dmitry.

Re: Why does a email llink only show up when you first type it in?

Thanks for the link. I just sent an email to the support link.

Nothing inspires forgiveness quite like revenge.

Scott Adams

Re: Why does a email llink only show up when you first type it in?

I sent you fixed project.

Dmitry.

Re: Why does a email llink only show up when you first type it in?

I wrote back to the support link

Nothing inspires forgiveness quite like revenge.

Scott Adams

8 (edited by jumper 2015-11-27 16:59:38)

Re: Why does a email llink only show up when you first type it in?

Hi Dmitry, I was doing some more testing and I noticed something new... When I put a http:// link in a textbox, it is saved. You can close the window and if you reopen it, the link is still visible (blue underlined).

All I need is the email link to work the same way smile

Nothing inspires forgiveness quite like revenge.

Scott Adams

Re: Why does a email llink only show up when you first type it in?

Just open project which I sent you, it's work as you want.

Dmitry.

Re: Why does a email llink only show up when you first type it in?

Thanks so much. It works now. I just want everyone to know that the problems I was having you fixed. I think my problem was I had the wrong beta version.

thanks again... maybe I can shut up for a while now (I know you would like that) smile

Nothing inspires forgiveness quite like revenge.

Scott Adams