Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Altering the Anchor in an html label
Tue, Oct 6 2020 6:07 AMPermanent Link

Paul Coshott

Avatar

Hi All,

I am using TAddress and the Anchor property to change the form that is loaded into the main form using the OnAnchorChange event.

ie:
Address.Anchor := 'Home';

Is there anyway I can code some html inside an THTMLLabel component to alter the anchor and therefore fire the OnAchorChange event?

Thanks,
Paul
Tue, Oct 6 2020 4:48 PMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

On 10/6/2020 6:07 AM, Paul Coshott wrote:
> I am using TAddress and the Anchor property to change the form that is loaded into the main form using the OnAnchorChange event.
>
> ie:
> Address.Anchor := 'Home';
>
> Is there anyway I can code some html inside an THTMLLabel component to alter the anchor and therefore fire the OnAchorChange event?
>

Sorry but what are you trying to accomplish - the question does not
really make much sense or i might be missing some context.

Raul
Tue, Oct 6 2020 9:30 PMPermanent Link

Paul Coshott

Avatar

Raul wrote:

>>Sorry but what are you trying to accomplish - the question does not
>>really make much sense or i might be missing some context.

Hi Raul,

I did some more googling this morning and found what looked like it might work, and it did - perfectly.

Html code:

<p style="text-align: justify;">To contact us via email, please use our <a href="#ContactUs">contact form</a></p>

Using href and the # with my anchor fired the OnAnchorChange event which ran the code I needed to show the contact form. You gotta love EWB! Just brilliant.

Cheers,
Paul
Image