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 get a Ctrl within ArrCtrl
Re: How to get a Ctrl within ArrCtrl [message #61867 is a reply to message #61866] Sat, 22 November 2025 16:29 Go to previous message
forlano is currently offline  forlano
Messages: 1217
Registered: March 2006
Location: Italy
Senior Contributor
This is the working solution from chatgpt

void DisableButton(int row, int col) {
Ctrl* ctrl = gridtb.GetCtrl(row, col);
if(!ctrl) return;

if(Button* b = dynamic_cast<Button*>(ctrl)) {
b->Disable();
}
}
It is amazing how many things it knows about U++. Sometimes it invents functions and method that does not exist.
Luigi
 
Read Message
Read Message
Previous Topic: Why SetCtrl() places controls in first row of ArrayCtrl?
Goto Forum:
  


Current Time: Sat Jan 10 22:18:01 CET 2026

Total time taken to generate the page: 0.09518 seconds