Jump to content


Photo

tnxInfoPanel


  • Please log in to reply
2 replies to this topic

#1 didiergm

didiergm
  • Honorable Members
  • 148 posts
  • Gender:Male
  • Location:France

Posted 03 January 2011 - 04:32 PM

It would be nice to have the option (may be using a new wordwrap option - I know this would have a ) to have the ability to use HTML tags, similar to TNxAlertWindow

If you agree I suggest the following changes

1- add ipHtmlText to the InfoPanelOptions

TInfoPanelOptions = set of (ipBorder, ipStaticPanel, ipHtmlText);

2 - change the Paint procedure to include the handling of the HTML text as follows

add the first 3 lines

if ipHtmlText in Options then
ProcessHTML(Canvas, TxtRect, FText, Point(0, 0), nxClasses.Indent(0, 0), True)
else
DrawFmtText(Canvas, TxtRect, FText, FAlignment, FVerticalAlignment, FWrapKind, BiDiMode);


I tried on my local copy and could not see any side effects

Let me know what you think

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 04 January 2011 - 12:36 AM

Hello Didier,

I have add it. Thank you. It will be included in next release.

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 didiergm

didiergm
  • Honorable Members
  • 148 posts
  • Gender:Male
  • Location:France

Posted 04 January 2011 - 12:44 AM

QUOTE (Boki (Berg) @ Jan 4 2011, 12:36 AM) <{POST_SNAPBACK}>
Hello Didier,

I have add it. Thank you. It will be included in next release.

Best regards


great




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users