Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: Problem with Comboboxes and Checkbox (inside uitable) in Matlab2012b

$
0
0
"Dennis B." wrote in message <ketr04$5eo$1@newscl01ah.mathworks.com>...

> *A single click on a checkbox entry inside a uitable takes sometimes no effect. (No switch of the checked-state).


I have R2011A and I am having checkbox problems. I can create a UITABLE with 3 columns of checkboxes, and none are responsive during runtime:
set(handles.uitable1, 'ColumnFormat', { 'logical', 'logical', 'logical'} );
set(handles.uitable1, 'ColumnEditable', [ true true true ] );
x = get(handles.uitable1, 'Data' );
set(handles.uitable1, 'Data', {0,0,0; 0,0,0; 0,0,0 } );
y = get(handles.uitable1, 'Data' );

As I step through the code, x and y return the expected values from the 3 cols of checkboxes, but they NEVER appear checked in the window. (x is all '1's, y is all '0's, z is all '1's)

Once code runs normally, it refuses to toggle the check in the box (visually).
ALSO, after set/get checkboxes above, I can go to the window, click on them and call get again, and the 'Data' shows that my clicking on the checkboxes had NO effect on the checkbox state.

I am perplexed.

Viewing all articles
Browse latest Browse all 19628

Trending Articles