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 » ArrayCtrl with enabled/Disabled columns
Re: ArrayCtrl with enabled/Disabled columns [message #3047 is a reply to message #3042] Fri, 05 May 2006 09:02 Go to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Maybe this is helpful:
(You can store column widths in a string)
	arr.AddColumn("first",1);
	arr.AddColumn("second",2);
	arr.AddColumn("third",3);
	String arrColumnWidths;
	for (int i=0; i<arr.GetColumnCount();i++){
		arrColumnWidths << AsString(arr.HeaderObject().GetTabWidth(i))+" ";
	}
	arr.ColumnWidths(arrColumnWidths); //set widths from string "1 2 3"
	PromptOK(arrColumnWidths);  //have in mind now they are in pixels...

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl grid color
Next Topic: ArrayCtrl cell consisting of edit and helper button
Goto Forum:
  


Current Time: Sun Aug 03 11:10:29 CEST 2025

Total time taken to generate the page: 0.07835 seconds