Index
2012-05-30 15:13 – Anton Hofer : [dabo-users] Need "SetCellSize" in dGrid
2012-05-30 16:36 – John Fabiani : Re: [dabo-users] Need "SetCellSize" in dGrid
2012-05-30 16:45 – Paul McNett : Re: [dabo-users] Need "SetCellSize" in dGrid
2012-05-31 00:27 – Anton Hofer : Re: [dabo-users] Need "SetCellSize" in dGrid
2012-05-31 07:50 – Paul McNett : Re: [dabo-users] Need "SetCellSize" in dGrid
2012-05-31 09:05 – Anton Hofer : Re: [dabo-users] Need "SetCellSize" in dGrid
2012-05-31 12:01 – Paul McNett : Re: [dabo-users] Need "SetCellSize" in dGrid
2012-05-31 13:22 – Anton Hofer : Re: [dabo-users] Need "SetCellSize" in dGrid
2012-05-31 13:52 – Paul McNett : Re: [dabo-users] Need "SetCellSize" in dGrid
2012-06-01 14:03 – Ed Leafe : Re: [dabo-users] Need "SetCellSize" in dGrid
Back to top
[dabo-users] Need "SetCellSize" in dGrid

Author: Anton Hofer

Posted: 2012-05-30 15:13:13   Link

Dear Community,

a few month ago i have searched for a alternative programming

environment for Visual FoxPro and found dabo. In my little FoxPro-app i

have a grid where some cells overlap two or more columns. In the Visual

FoxPro Grid i have solved this Problem. I use several Containers in one

Column an can now simulate this. Now i want to write this app with dabo.

In the wyPython-framework there is a grid-command "SetCellSize". This

should be a solution for my problem.

In the dabo-framework there is no command "SetCellSize".

Therefor i have tried to use "SetCellValue" from wxPython in the

demogrid of dabodemo. But when i select the "DemoGrid" in the

objectinspector and give in e. g. a "obj.SetCellSize(2,2,2,2)" nothing

happens in the Grid. There is no errormessage and it seems the command

is right.

Do you have any idea what i can do?

Thank you very much for your help!

--

Mit freundlichen Grüßen aus dem Herzen des Pfaffenwinkels ;-)

Dipl.-Ing. A. Hofer

Ingenieurbüro Dipl.-Ing. A. Hofer

Martin Raith-Str. 9

D-82362 Weilheim

Tel.: 0881 / 924 824 55

Fax: 0881 / 924 824 56

http://www.ib-hofer.de

ah@ib-hofer.de

_______________________________________________

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/4FC67F59.4090508@ib-hofer.de

©2012 Anton Hofer
Back to top
Re: [dabo-users] Need "SetCellSize" in dGrid

Author: John Fabiani

Posted: 2012-05-30 16:36:31   Link

On Wednesday, May 30, 2012 10:13:13 PM Anton Hofer wrote:

> Dear Community,

>

> a few month ago i have searched for a alternative programming

> environment for Visual FoxPro and found dabo. In my little FoxPro-app i

> have a grid where some cells overlap two or more columns. In the Visual

> FoxPro Grid i have solved this Problem. I use several Containers in one

> Column an can now simulate this. Now i want to write this app with dabo.

> In the wyPython-framework there is a grid-command "SetCellSize". This

> should be a solution for my problem.

> In the dabo-framework there is no command "SetCellSize".

> Therefor i have tried to use "SetCellValue" from wxPython in the

> demogrid of dabodemo. But when i select the "DemoGrid" in the

> objectinspector and give in e. g. a "obj.SetCellSize(2,2,2,2)" nothing

> happens in the Grid. There is no errormessage and it seems the command

> is right.

> Do you have any idea what i can do?

>

> Thank you very much for your help!

The standard "Width" property works. That said, I normally do NOT set the

width on columns. In Dabo the user can manually set the width of column and

the framework will save the setting when the user closes the form.

Johnf

_______________________________________________

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/6105665.yoWsFLM1q2@linux-12

©2012 John Fabiani
Back to top
Re: [dabo-users] Need "SetCellSize" in dGrid

Author: Paul McNett

Posted: 2012-05-30 16:45:07   Link

On 5/30/12 2:36 PM, John Fabiani wrote:

> On Wednesday, May 30, 2012 10:13:13 PM Anton Hofer wrote:

>> Dear Community,

>>

>> a few month ago i have searched for a alternative programming

>> environment for Visual FoxPro and found dabo. In my little FoxPro-app i

>> have a grid where some cells overlap two or more columns. In the Visual

>> FoxPro Grid i have solved this Problem. I use several Containers in one

>> Column an can now simulate this. Now i want to write this app with dabo.

>> In the wyPython-framework there is a grid-command "SetCellSize". This

>> should be a solution for my problem.

>> In the dabo-framework there is no command "SetCellSize".

>> Therefor i have tried to use "SetCellValue" from wxPython in the

>> demogrid of dabodemo. But when i select the "DemoGrid" in the

>> objectinspector and give in e. g. a "obj.SetCellSize(2,2,2,2)" nothing

>> happens in the Grid. There is no errormessage and it seems the command

>> is right.

>> Do you have any idea what i can do?

>>

>> Thank you very much for your help!

>

> The standard "Width" property works. That said, I normally do NOT set the

> width on columns. In Dabo the user can manually set the width of column and

> the framework will save the setting when the user closes the form.

I think Anton wants to set not the column width but the cell width, so that when

editing in the cell the contents overlap adjacent column(s), but when just looking at

it the contents cut off in favor of the contents from the other columns. Anton, do I

have it right?

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/4FC694E3.6090900@ulmcnett.com

©2012 Paul McNett
Back to top
Re: [dabo-users] Need "SetCellSize" in dGrid

Author: Anton Hofer

Posted: 2012-05-31 00:27:31   Link

Am 30.05.2012 23:45, schrieb Paul McNett:

> On 5/30/12 2:36 PM, John Fabiani wrote:

>> On Wednesday, May 30, 2012 10:13:13 PM Anton Hofer wrote:

>>> Dear Community,

>>>

>>> a few month ago i have searched for a alternative programming

>>> environment for Visual FoxPro and found dabo. In my little FoxPro-app i

>>> have a grid where some cells overlap two or more columns. In the Visual

>>> FoxPro Grid i have solved this Problem. I use several Containers in one

>>> Column an can now simulate this. Now i want to write this app with dabo.

>>> In the wyPython-framework there is a grid-command "SetCellSize". This

>>> should be a solution for my problem.

>>> In the dabo-framework there is no command "SetCellSize".

>>> Therefor i have tried to use "SetCellValue" from wxPython in the

>>> demogrid of dabodemo. But when i select the "DemoGrid" in the

>>> objectinspector and give in e. g. a "obj.SetCellSize(2,2,2,2)" nothing

>>> happens in the Grid. There is no errormessage and it seems the command

>>> is right.

>>> Do you have any idea what i can do?

>>>

>>> Thank you very much for your help!

>> The standard "Width" property works. That said, I normally do NOT set the

>> width on columns. In Dabo the user can manually set the width of column and

>> the framework will save the setting when the user closes the form.

> I think Anton wants to set not the column width but the cell width, so that when

> editing in the cell the contents overlap adjacent column(s), but when just looking at

> it the contents cut off in favor of the contents from the other columns. Anton, do I

> have it right?

Yes, it is right.

>

> Paul

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

Anton

_______________________________________________

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/4FC70143.8040705@ib-hofer.de

©2012 Anton Hofer
Back to top
Re: [dabo-users] Need "SetCellSize" in dGrid

Author: Paul McNett

Posted: 2012-05-31 07:50:59   Link

On 5/30/12 10:27 PM, Anton Hofer wrote:

> Am 30.05.2012 23:45, schrieb Paul McNett:

>> On 5/30/12 2:36 PM, John Fabiani wrote:

>>> On Wednesday, May 30, 2012 10:13:13 PM Anton Hofer wrote:

>>>> Dear Community,

>>>>

>>>> a few month ago i have searched for a alternative programming

>>>> environment for Visual FoxPro and found dabo. In my little FoxPro-app i

>>>> have a grid where some cells overlap two or more columns. In the Visual

>>>> FoxPro Grid i have solved this Problem. I use several Containers in one

>>>> Column an can now simulate this. Now i want to write this app with dabo.

>>>> In the wyPython-framework there is a grid-command "SetCellSize". This

>>>> should be a solution for my problem.

>>>> In the dabo-framework there is no command "SetCellSize".

>>>> Therefor i have tried to use "SetCellValue" from wxPython in the

>>>> demogrid of dabodemo. But when i select the "DemoGrid" in the

>>>> objectinspector and give in e. g. a "obj.SetCellSize(2,2,2,2)" nothing

>>>> happens in the Grid. There is no errormessage and it seems the command

>>>> is right.

>>>> Do you have any idea what i can do?

>>>>

>>>> Thank you very much for your help!

>>> The standard "Width" property works. That said, I normally do NOT set the

>>> width on columns. In Dabo the user can manually set the width of column and

>>> the framework will save the setting when the user closes the form.

>> I think Anton wants to set not the column width but the cell width, so that when

>> editing in the cell the contents overlap adjacent column(s), but when just looking at

>> it the contents cut off in favor of the contents from the other columns. Anton, do I

>> have it right?

> Yes, it is right.

>>

>> Paul

>

> 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

_______________________________________________

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/4FC76933.3000502@ulmcnett.com

©2012 Paul McNett
Back to top
Re: [dabo-users] Need "SetCellSize" in dGrid

Author: Anton Hofer

Posted: 2012-05-31 09:05:48   Link

Am 31.05.2012 14:50, schrieb Paul McNett:

> On 5/30/12 10:27 PM, Anton Hofer wrote:

>> Am 30.05.2012 23:45, schrieb Paul McNett:

>>> On 5/30/12 2:36 PM, John Fabiani wrote:

>>>> On Wednesday, May 30, 2012 10:13:13 PM Anton Hofer wrote:

>>>>> Dear Community,

>>>>>

>>>>> a few month ago i have searched for a alternative programming

>>>>> environment for Visual FoxPro and found dabo. In my little FoxPro-app i

>>>>> have a grid where some cells overlap two or more columns. In the Visual

>>>>> FoxPro Grid i have solved this Problem. I use several Containers in one

>>>>> Column an can now simulate this. Now i want to write this app with dabo.

>>>>> In the wyPython-framework there is a grid-command "SetCellSize". This

>>>>> should be a solution for my problem.

>>>>> In the dabo-framework there is no command "SetCellSize".

>>>>> Therefor i have tried to use "SetCellValue" from wxPython in the

>>>>> demogrid of dabodemo. But when i select the "DemoGrid" in the

>>>>> objectinspector and give in e. g. a "obj.SetCellSize(2,2,2,2)" nothing

>>>>> happens in the Grid. There is no errormessage and it seems the command

>>>>> is right.

>>>>> Do you have any idea what i can do?

>>>>>

>>>>> Thank you very much for your help!

>>>> The standard "Width" property works. That said, I normally do NOT set the

>>>> width on columns. In Dabo the user can manually set the width of column and

>>>> the framework will save the setting when the user closes the form.

>>> I think Anton wants to set not the column width but the cell width, so that when

>>> editing in the cell the contents overlap adjacent column(s), but when just looking at

>>> it the contents cut off in favor of the contents from the other columns. Anton, do I

>>> have it right?

>> Yes, it is right.

>>> Paul

>> 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.

Anton

_______________________________________________

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/4FC77ABC.7070400@ib-hofer.de

©2012 Anton Hofer
Back to top
Re: [dabo-users] Need "SetCellSize" in dGrid

Author: Paul McNett

Posted: 2012-05-31 12:01:31   Link

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

_______________________________________________

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/4FC7A3EB.5060900@ulmcnett.com

©2012 Paul McNett
Back to top
Re: [dabo-users] Need "SetCellSize" in dGrid

Author: Anton Hofer

Posted: 2012-05-31 13:22:03   Link

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.

Anton

_______________________________________________

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/4FC7B6CB.5040208@ib-hofer.de

©2012 Anton Hofer
Back to top
Re: [dabo-users] Need "SetCellSize" in dGrid

Author: Paul McNett

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

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
Back to top
Re: [dabo-users] Need "SetCellSize" in dGrid

Author: Ed Leafe

Posted: 2012-06-01 14:03:39   Link

On May 31, 2012, at 1:52 PM, Paul McNett wrote:

> 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.

I believe it has more to do with the grid's data table, which retrieves cell values by row/col, and doesn't have support for different cell sizes. I think that SetCellSize only has an effect on non-virtualized grids.

-- Ed Leafe

_______________________________________________

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/8595B9CE-6C49-4983-8D0C-7FD9F7707E80@leafe.com

©2012 Ed Leafe