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 » Why SetCtrl() places controls in first row of ArrayCtrl?
Why SetCtrl() places controls in first row of ArrayCtrl? [message #61756] Tue, 29 July 2025 06:31 Go to previous message
lmonda is currently offline  lmonda
Messages: 6
Registered: March 2025
Location: USA
Promising Member
If I am adding controls to the ArrayCtrl to multiple rows, I was hoping for them to be visible in multiple rows.
But I find them all placed in first row (index 0) on top of each other. Why ? Not understanding.
See code below and picture attached.
UPP version - 17490.


ArrayCtrl a;
a.AddColumn("column1");
a.AddColumn("column2");
for(int i=0;i<5;i++)
{
a.Insert(i);
a.SetCtrl(i,0,option.Add(),True);
a.CreateCtrl<Button>(i,1);
}

index.php?t=getfile&id=7102&private=0
index.php?t=getfile&id=7101&private=0
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl - GetCtrl() function question
Goto Forum:
  


Current Time: Mon Aug 11 23:27:48 CEST 2025

Total time taken to generate the page: 0.05563 seconds