Bernard Marcelly
2011-02-03 14:09:34 UTC
Hi,
Ad an exercise I have tried to add a simple Grid control in a dialog, using the
API documentation and the Wiki page.
Remark on c.s.s.awt.grid.UnoControlGridModel IDL documentation
- Property DataModel does not exist. Real name is : GridDataModel
- Property LineColor does not exist. Real name is : GridLineColor (I suppose)
I followed, in Basic, the numerous steps : add columns to a defaultColumnModel,
create a DefaultGridDataModel, add rows, create a UnoControlGridModel, set its
position, width, height, set color to the grid lines and text, assign the
GridDataModel and the ColumnModel properties, etc, then insert the GridModel
into the dialog model.
The code runs OK. But at dialog execute, I don't see the grid :-(
I tried setVisible(True) on the grid control.... OOo crash.
The grid.OutputSize is : 0, 0 :-(
Can the Grid control be displayed on OOo 3.3.0 ?
Regards
Bernard
Ad an exercise I have tried to add a simple Grid control in a dialog, using the
API documentation and the Wiki page.
Remark on c.s.s.awt.grid.UnoControlGridModel IDL documentation
- Property DataModel does not exist. Real name is : GridDataModel
- Property LineColor does not exist. Real name is : GridLineColor (I suppose)
I followed, in Basic, the numerous steps : add columns to a defaultColumnModel,
create a DefaultGridDataModel, add rows, create a UnoControlGridModel, set its
position, width, height, set color to the grid lines and text, assign the
GridDataModel and the ColumnModel properties, etc, then insert the GridModel
into the dialog model.
The code runs OK. But at dialog execute, I don't see the grid :-(
I tried setVisible(True) on the grid control.... OOo crash.
The grid.OutputSize is : 0, 0 :-(
Can the Grid control be displayed on OOo 3.3.0 ?
Regards
Bernard