tappatappa Posted October 7, 2016 Share Posted October 7, 2016 I have put a TUniDBText inside a resizable TUniPanel (panel + splitter). The query is something like this select '<table width="100%" border="0">' ||'<tr>' ||'<td><font size="3" face="Calibri,Arial"><b>'||SURNAME||' '||NAME||'</b></font></td>' ||'<td align="right"><font size="2" color="gray" face="Consolas,Courier New">'||AGE||' Years old</font></td>' ||'</tr>' ||'<tr>' ||'<td colspan = "2"><font size="3" face="Calibri,Arial">'||DESCRIPTION||'</font></td>' ||'</tr>' ||'</table>' name from my_table x So, for instance, it can produce an HTML like <table width="100%" border="0"> <tr> <td><font size="3" face="Calibri,Arial"><b>John Smith</b></font></td> <td align="right"><font size="2" color="gray" face="Consolas,Courier New">50 Years old</font></td> </tr> <tr> <td colspan = "2"><font size="3" face="Calibri,Arial">Nice guy!</font></td> </tr> </table> the dbtext component is configured as follows Align = alTop TextConversion=txtHTML while its container Align = alLeft and the splitter Align = alLeft As you can see the AGE is right-aligned, so as I resize the panel to the right I expect to see the table to fit the entire panel, but instead it stays aligned to the left. If I put the same HTML table in a DBHTMLMemo it works as expected but the component is super heavy and overkill for my purposes (i need a read only component with no background) Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now