Jump to content


Photo

HTML label


  • Please log in to reply
11 replies to this topic

#1 AIM

AIM

    Senior Member

  • Honorable Members
  • PipPip
  • 202 posts

Posted 21 March 2008 - 12:30 PM

Hi Boki,

are there any plans to implement a TNxHtmlLabel component with the same functionality as the NxHtmlColumn in a future release?

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 21 March 2008 - 12:41 PM

Hello Aim,

Yes, I think that I will add it in near future.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 AIM

AIM

    Senior Member

  • Honorable Members
  • PipPip
  • 202 posts

Posted 31 March 2008 - 11:26 AM

I just wanted to say thanks for the new HtmlLabel component, great new component!!!

Two things that could be improved:

1. When placing the component onto a form it would be nice if you could initialize the Caption field with the Name.

2. When you click a link, then all Slashes are removed from the link (HRef param in "OnLinkClick").

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 31 March 2008 - 07:38 PM

Hello Aim,

Regarding 2nd thing, please open NxClasses.pas

Find ProcessHtml procedure and next line:

CODE
      else if c = '/' then Closing := True

replace it with

CODE
      else if (c = '/') and not OpenQuote then Closing := True

I hope that it works now.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 AIM

AIM

    Senior Member

  • Honorable Members
  • PipPip
  • 202 posts

Posted 31 March 2008 - 10:23 PM

Hi Boki,

it works fine now, thank you...

#6 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 02 April 2008 - 01:09 PM

Hi Boki,

The code you mentioned is located in NxSharedCommon and not NxClasses.

QUOTE (AIM @ Mar 31 2008, 11:23 PM) <{POST_SNAPBACK}>
Hi Boki,

it works fine now, thank you...

G.W. van der Vegt

#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 02 April 2008 - 01:48 PM

Hello Wim,

You are correct. It is in NxSharedCommon.pas

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#8 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 02 April 2008 - 01:56 PM

Hi Boki,

Is it possible to add support for <sup> and <sub> tags (super and subscript) so you can use the html label to to visualize simple math?
G.W. van der Vegt

#9 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 02 April 2008 - 02:15 PM

Hello Wim,

I think that it is possible and relatively easy. I will try to add them for upcoming update.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#10 bargmann

bargmann
  • Members
  • 6 posts

Posted 12 May 2008 - 11:30 AM

I think there is a bug in HTML-label...
I can't get the AutoSize-property to work... ???

#11 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 12 May 2008 - 04:11 PM

Hello Aim,

I will try to do something about it.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#12 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 12 May 2008 - 09:26 PM

Hello Aim,

Try to replace last lines of ProcessHtml procedure to:

CODE
  if TextBuffer = '' then TextBuffer := TagBuffer;
  Result.Size.cy := Y - Rect.Top + GetTextHeight(Canvas, TextBuffer);


Please tell me how it works now.

Best regardsa
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users