Re: [dabo-users] Need "SetCellSize" in dGrid

Author: Paul McNett

Posted: 2012-05-31 at 13:52:35

On 5/31/12 11:22 AM, Anton Hofer wrote:

> Am 31.05.2012 19:01, schrieb Paul McNett:

>> On 5/31/12 7:05 AM, Anton Hofer wrote:

>>>>>>> I tried tis in the wxPython-Demo an there it works. I need a view like

>>>>>>> this (1, 2, 3, 4 means column1, column2 ...):

>>>>>>>

>>>>>>> 111 22 333333333 4444444444444

>>>>>>> 111 2222222222222222222222222

>>>>>>> 111 2222222222222222222222222

>>>>>>> 111 22 333333333 4444444444444

>>>>>>> 111 22 333333333 4444444444444

>>>>>>> 111 22 333333333 4444444444444

>>>>> Do you want to see those long column 2's all the time, whether or not the grid is in

>>>>> read-only or edit mode?

>>>>>

>>>>> If so, when if ever does the user get to see the data in column 3 and 4 for those rows?

>>>>>

>>>>> Paul

>>>>>

>>> If it is possibel, i want to see this long column 2's in edit-mode too.

>>> But i will edit my data in a form so it is important for me to see the

>>> long columns.

>>> The user has not to see the data in column 3 and 4 because in case of a

>>> long column 2 both columns 3 and 4 have no data.

>> Ok, what you describe isn't implemented in Dabo, and as far as I know you are the

>> first to desire it. I'm not sure this would be straightforward to implement - does it

>> work the way you want out of the box in wx? If not, what call(s) do you have to make?

>>

>> Paul

> I know that this isn't implemented in dabo.

> I have found this feature in the demo of the wxPython-grid. There it

> works. There you can overlap a few columns and rows with one cell (like

> in a spreadsheet). My idea was to use this feature within the dGrid

> "directly" from the underlaying wx.grid. I tried this in the dabodemo

> (see above). I can select the "demogrid" in the objectinspector and use

> the command "obj.SetCellSize(row, col, num_rows, num_cols)" and no error

> occures (command should be known), but in the grid nothing (visible)

> happens and i dont know why.

It must have something to do with how we set renderers or cell attr's. I did try to

comment out the attr.SetOverflow(False) in dGrid.py without success.

Paul

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/4FC7BDF3.4070804@ulmcnett.com

©2012 Paul McNett