U++ framework
Do not panic. Ask here before giving up.

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 Go to previous message
fuqr is currently offline  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

 
Read Message
Read Message
Read Message
Previous Topic: Range paste for GridCtrl
Next Topic: Howto disable Insert and Append?
Goto Forum:
  


Current Time: Sat Jul 04 10:41:03 GMT+2 2026

Total time taken to generate the page: 0.00467 seconds