Hi,

I am having bit of problem aligning WImage vertically within the WTableCell 
using setContentAlignment().

here is a snippet of my code.

WTable * table = new WTable(NULL);
WImage * formImage = new WImage("Icons/image1.jpg")

table->elementAt(row,column)->addWidget(formImage);
table->elementAt(row,column)->setContentAlignment(Wt::AlignMiddle);

However, the image under the cell seems to be not affected by the 
setContentAlignment() at all. Though, i was able to get it to work the way i 
wanted by using CSS. 

table->elementAt(row,column)->setStyleClass("imageTable");

Now,  I want to de-couple from using CSS if possible. Any idea if I am doing 
something wrong?

Thanks,

Jimmy.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to