Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 next 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

Re: How to do column resizing after ShowColumn() or HideColumn()? [message #13442 is a reply to message #13441] Mon, 07 January 2008 09:14 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

I think you're refering to long standing bug in proportional resizing mode. Hidden and then restored column has different width. I'll try to fix it soon. I'll post about fixes here.
Re: How to do column resizing after ShowColumn() or HideColumn()? [message #13443 is a reply to message #13442] Mon, 07 January 2008 10:08 Go to previous message
fuqr is currently offline  fuqr
Messages: 16
Registered: July 2007
Location: Singapore
Promising Member
Thanks Daniel for your prompt reply. Razz I understand Gridctrl is under development. But it is turely a great application tool. /Qinrong
Previous Topic: Range paste for GridCtrl
Next Topic: Howto disable Insert and Append?
Goto Forum:
  


Current Time: Sun Apr 28 01:48:52 CEST 2024

Total time taken to generate the page: 0.05974 seconds