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 » Column width in percentage
Column width in percentage [message #45708] Sun, 27 December 2015 11:49 Go to next message
Patisab is currently offline  Patisab
Messages: 18
Registered: December 2015
Location: France
Promising Member
Good morning,

I would like the width of the columns of an array could change with the size of the array. For instance, one time the array has 3 columns and in other time the array has 5 columns. But, i want the first column has always 10% of the width of the array.

.ColumnWidths uses a string which gives fixed sizes. How could in have relative sizes?

Thanks a lot for tour help.

Best regards.
Re: Column width in percentage [message #45916 is a reply to message #45708] Mon, 25 January 2016 13:39 Go to previous message
mirek is currently offline  mirek
Messages: 12098
Registered: November 2005
Ultimate Member
Actually, ColumnWidths (and numbers you write as the parameter of AddColumn) are always 'relative' (ratios). Yep, if you use Ctrl+Click trick to set ColumnWidths, values are in pixels, but that works as ratios too.

Mirek
Previous Topic: ButtonHeight limited by StdFont in ArrayCtrl
Next Topic: ArrayCtrl Summary Row
Goto Forum:
  


Current Time: Fri Nov 15 00:59:46 CET 2019

Total time taken to generate the page: 0.03835 seconds