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 set read-only state to a editable column?
Re: How set read-only state to a editable column? [message #5601 is a reply to message #5505] Thu, 05 October 2006 14:13 Go to previous messageGo to previous message
nicomesas is currently offline  nicomesas
Messages: 104
Registered: September 2006
Location: Barcelona, Spain
Experienced Member
Hey unodgs (Daniel?)

Still I am testing your wonderful GridCtrl and I have found a behavior quite rare.
Test it this small piece of code and you will see how the horizontal scrollbar does not work fine.

myGrid.Reset() ;
myGrid.Absolute() ;
String f = "NAME,EMAIL,tratamiento,cargo,dirección,codpostal,poblacion,provincia,pais,lengua,telefonos" ;
Vector<String> cols = Split( f, ',') ;
for (int i = 0; i < cols.GetCount(); i++)
{
  myGrid.AddColumn(cols[i]).Width(150) ;
}
myGrid.AddRow(120) ;


Your you can solve the problem calling to
myGrid.AddColumns(col[i],150) ;

I believe that the Width function is failing, I believe we need to make a synchronization between the width total of the GridCtrl with the total of the sum of size of all the columns.

Nico
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: first row strange behaviour
Next Topic: functions of HeaderCtrl [REQUEST?]
Goto Forum:
  


Current Time: Sat Jul 05 00:17:01 CEST 2025

Total time taken to generate the page: 0.06228 seconds