Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Ctrls<>() Callback / Disable some rows
Ctrls<>() Callback / Disable some rows [message #9991] |
Tue, 12 June 2007 22:31 |
kcabobert
Messages: 51 Registered: January 2007 Location: USA
|
Member |
|
|
I have two issues... but don't want two threads (I'm lazy...).
First, let me setup the problem:
1) I have an ArrayCtrl which I populate dynamically (I read the values from a database based on search criteria entered elsewhere).
2) My ArrayCtrl has an Index column (via AddIndex("primary_key","id")), a column of options (via AddColumn("use","Use").Ctrls<Option>()), and a name column (via AddColumn("name","Name")).
3.a) I need to SOMETIMES assign a callback to the option column that will uncheck all other options (like a radio ctrl), other times multiple selections are OK. I can do this if I can reliably figure out in which row the option that triggered the callback resides (I need people to be able to select via mouse or keyboard).
3.b) In some cases I may want one option completely disabled (in other words one row disabled). However, I still need the row to list. In these cases removing the option ctrl is acceptable.
I have found two threads which appear to have similar needs / problems:
http://www.ultimatepp.org/forum/index.php?t=msg&th=602
http://www.ultimatepp.org/forum/index.php?t=msg&th=605
I am not so clear on what exactly the GridCtrl does... but I gather that it may allow me to accomplish this? As a note, I think I would prefer to leave this as an ArrayCtrl.
I have used the WhenCtrlsAction callback on the ArrayCtrl, but can not reliably decided which row tripped the callback.
Thanks for your help / thoughts,
Robert
|
|
|
|
|
Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: unodgs on Tue, 12 June 2007 23:02
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: unodgs on Tue, 12 June 2007 23:36
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: mirek on Wed, 13 June 2007 09:39
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: unodgs on Wed, 13 June 2007 10:37
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: mirek on Wed, 13 June 2007 09:33
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: mirek on Wed, 13 June 2007 10:53
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: unodgs on Thu, 14 June 2007 08:18
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: unodgs on Mon, 18 June 2007 21:52
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: unodgs on Mon, 18 June 2007 21:57
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: unodgs on Mon, 18 June 2007 23:50
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: unodgs on Tue, 19 June 2007 10:58
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: unodgs on Tue, 19 June 2007 15:58
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: unodgs on Tue, 19 June 2007 15:56
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
|
|
Re: Ctrls<>() Callback / Disable some rows
By: mirek on Tue, 19 June 2007 22:01
|
|
|
Re: Ctrls<>() Callback / Disable some rows
|
Goto Forum:
Current Time: Sun May 19 02:18:45 CEST 2024
Total time taken to generate the page: 0.00662 seconds
|