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 » Ctrls<>() Callback / Disable some rows
Re: Ctrls<>() Callback / Disable some rows [message #10081 is a reply to message #10080] Tue, 19 June 2007 15:56 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Quote:

Verbal example: I have a gridctrl with a column of check boxes and a column of names, when I populate (as I Add(sql result vector)) the grid I need to disable some checkboxes. I tried calling NoEditable and NoClickable with no luck.

Generally NoEditable should prevent creating embeded control. However it works well before the window with grid is displayed. Later GridCtrl::Add(..) call SyncCtrls() (method responisble for creating/updating embeded controls) immediately after creating row. You have to call Add() before NoEditable() which does not update controls' positions and you still see them able to be edited. So as a workaround make SyncCtrls() in GridCtrl class public and call it after adding rows and making some of them uneditable. I'll try to find correct solution to this problem before new dev release (Add()/AddRow() call SyncCtrls and I would like to avoid clling it a second time in NoEditable() somehow).
 
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl align text in column
Next Topic: GridCtrl - Child Ctrl, selected row, focus issue
Goto Forum:
  


Current Time: Fri Jul 18 03:30:31 CEST 2025

Total time taken to generate the page: 0.03769 seconds