Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » How to do column resizing after ShowColumn() or HideColumn()?
How to do column resizing after ShowColumn() or HideColumn()? [message #13441] |
Mon, 07 January 2008 06:40 |
fuqr
Messages: 16 Registered: July 2007 Location: Singapore
|
Promising Member |
|
|
Hi UPPexperts,
I tried change Column data display by user option interface. follows is my example code:
=========================================
void Try::Setup()
{
......
categories.AddColumn(IL, t_("iLoss")).Hidden(specs)
.Edit(iloss).SetConvert(Single<ConvDouble>());
......
}
Void Try::Options()
{
......
dlg.specs.Add(0, "Input by Specification")
.Add(1, "Input by S-Parameters").SetIndex(specs);
......
specs = ~dlg.specs;
if(specs == 1)
{
categories.HideColumn(5,1);
} else
{
categories.ShowColumn(5,1);
};
categories.ResizingCols(true);
// or: categories.FullColResizing(true);
// or: categories.RebuildToolBar();
......
}
==============================================
After ShowColumn(), the size of this column is not the same size as other columns.
If any command I'm missing?
Thanks in advance,
Qinrong
|
|
|
|
|
Goto Forum:
Current Time: Sat May 11 16:12:14 CEST 2024
Total time taken to generate the page: 0.03327 seconds
|