Feature Request : HTML-text in NxAlertWindow?
#1
Posted 12 May 2008 - 09:41 AM
...that would be really nice...
For example, I have made this little gmail-notifier-thingie, and showing a preview of a new mail would be nice, with different font-styles for sender, subject, and summary... This can be done with the HTML, right...
Edit : Just found a "bug" in HTML-label... It seems that it does NOT react to more than one "<br>" in a row, meaning I cannot have an empty line (?)
Edit 2 : Nevermind, it just needs to contain a space, then an empty line is shown...
Further Edit : Kind-of-bug in NxAlertWindow
procedure TNxAlertWindow.MouseUp is kind of wrong...
I have created som AlertWindows dynamically, and the only way to get thos free'd again, is doing it in the OnClose-event.
That works fine, unless you click the close-button on the Alert, because the MouseUp check for close-button-click and afterwards check for options-link-click (and then you get an AV, cause the Alert has been free'd)...
Just reversing these two checks solves the problem... aka. checking for close-button-click as the last thing in the MouseUp....
/Bargmann
#2
Posted 12 May 2008 - 11:31 AM
I have fix MouseUp bug as you say. I will most probably add Html support for AlertWindow, but this will be controled by Boolean property. Something like HtmlText: Boolean.
Best regards
--
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
Posted 12 May 2008 - 11:32 AM
Thanks...
#4
Posted 06 June 2008 - 07:42 PM
adding several <br> (in order to have a space line) has no effect
i want it to have a space line but this doesnt happen
#5
Posted 07 June 2008 - 06:31 PM
I will work on it to fix it.
Best regards
--
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.
#6
Posted 09 June 2008 - 08:59 PM
#7
Posted 09 June 2008 - 09:27 PM
No it is not, but I have already fix it.
Inside ProcessHTML in NxSharedCommon.pas find part of code similar to:
begin
Inc(Y, VertSpace);
Y := 0; // <------- delete
X := Rect.Left + 2;
end else
and delete line Y := 0 within.
I hope that now is fine.
regards
--
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
Posted 09 June 2008 - 09:37 PM
if Tag = htBr then
begin
Inc(Y, VertSpace);
VertSpace := 0;
X := Rect.Left + 2;
end else
so should i remove VertSpace := 0;?
#9
Posted 09 June 2008 - 09:51 PM
#10
Posted 16 June 2008 - 05:59 PM
<font color="red">blah</font>
draws blah in red which is good
but i want to give a blue background to it
is it possible?
#11
Posted 16 June 2008 - 08:39 PM
I am not sure about tag name to use, maybe SPAN tag.
Best regards
--
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
Posted 16 June 2008 - 09:00 PM
and i didnt find a tag that affects the brush.color which is the background
this is the code to affect the background in html: <span STYLE="background-color: blue">
but it doesnt work in nxalertwindow
i guess this should be added manually
mayb instead of all this, a simple attribute called: "bgcolor" which will be placed inside <font> tag
will do the job by affecting the brush.color
what do u think?
#13
Posted 16 June 2008 - 09:38 PM
It will be hard to parse style property quickly with current code. I will need some time to finish this feature. If there is some similar tag, I will be glad to add it. Something like mark or something similar.
regards
--
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.
#14
Posted 16 June 2008 - 10:23 PM
cant u add 1 more attribute called BGCOLOR and set canvas.brush.color accordingly?
#15
Posted 17 June 2008 - 02:59 PM
I will see what I can do. If there is some more standard way this will be better. I will also look about parsing Style param.
regards
--
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.
#16
Posted 17 June 2008 - 05:03 PM
if u want it fast and simple, u can use the bgcolor
if u want to make it more complex, u can use the style attribute
#17
Posted 17 June 2008 - 11:53 PM
I think that I will go with BGColor. It will be to much complicated to implement Style for such as small tasks like html column.
regards
--
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.
#18
Posted 18 June 2008 - 12:17 AM
u have my vote for this
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











