jimlef Messages: 90 Registered: September 2020 Location: US
Member
I'm still working on this, but so far all I've come up with is to change column widths to "cover up" unwanted column:
void TaxWindow::anonChanged()
{
if (anon.Get() == 1) {
// use cust Number
sqlTaxReport.ColumnWidths("150 200 [u]65 1[/u] 150 150 150 200 200");
return;
}
else {// use cust name
sqlTaxReport.ColumnWidths("150 200 [u]1 140[/u] 150 150 150 200 200");
return;
}
}
I'm probably going to eliminate the array altogether, though, once I figure out the way to use repgen (or an alternative) with the current stable build...