Hi,
I am trying to create a variable-size table/matrix of ring cells. The default value list is "0 (x)" and "1(P)", for binary purpose, specified in cell (1,1). When I insert a new row and/or colum on the table, It looks like the inserted cells does not inherit the specified value list "0 (x)" and "1(P)" from cell (1,1).
I have also tried the following options, but none of them works.
(1) change the Table Mode (Edit Table -> Control Settings -> Table Mode) to either "row" or "column" from "grid"
(2) use the parameter "VAL_USE_MASTER_CELL_TYPE" instead of ring type
(3) search the forum but not clue found
Please also see the attached snapshot files, which show how the settings are set.
(1) "snapshots_02_ring_list.jgp": specify the ring value list of cell(1,1)
(2) "snapshots_03_edit_default_cell_values.jpg": I tried also to specify the default cell values in Control Settings (Edit Table -> Control Settings -> Edit Default Cell Values -> Ring/Combo Box Attributes), but the button "Value List" is greyed out.
(3) "snapshot_04_cells.jpg": the created/inserted cells do not have the value lists
Here is the code piece for your information:
// insert a few rows
InsertTableRows(panel,PANEL_TABLE_CHKBRD, (iNumOfRowNow+1),iNumOfRowChange, VAL_USE_MASTER_CELL_TYPE);
// draw the cells
ProcessDrawEvents();
// set the active row
SetCtrlAttribute(panel, PANEL_TABLE_CHKBRD,ATTR_FIRST_VISIBLE_ROW, iNumOfRowNew);
Thanks.