Re: Mistake in wxEuphoria version 16
- Posted by Vinoba Jun 24, 2011
- 1725 views
In wxeud.e the code was,
WX_SELECT_GRID_COL = wx_define_c_proc( "select_grid_col", {dll:C_POINTER,dll:C_INT,dll:C_INT } ), WX_SELECT_GRID_ROW = wx_define_c_proc( "select_grid_row", {dll:C_POINTER,dll:C_INT,dll:C_INT } ), ......
I removed the extra parameter dll:C_INT in both "select_grid_col" and "select_grid_row"
WX_SELECT_GRID_COL = wx_define_c_proc( "select_grid_col", {dll:C_POINTER,dll:C_INT} ), WX_SELECT_GRID_ROW = wx_define_c_proc( "select_grid_row", {dll:C_POINTER,dll:C_INT} ), -- It was accepted, but set_col_label does not work at top of columns the same way as -- set_row_label does for the rows! set_col_label( grdProp, i-1, Properties[i] ) -- was not accepted. -- However, set_cell_value ( grdProp, Properties[i], 0, i-1, ) -- was accepted and the field heading come through nicely, at the top of each column.
The remaining question is "Why does "set_col_label" NOT work, while the "set_row_label" works in the original demo.
If you think that my change in Matt's code was OK, it might be incorporated in the next version.