[wxPython] Adding cardview to wxGrid

Please take a look at http://janusys.com. Look at there GridEx control
for .NET. Also look at there Cardview. This is just too good. How we can
achieve this in wxPython from wxGrid. If wxGrid can do this, it will
open unlimited possibilities to wxPython. Any other opinion on this
matter?

- Samir

Wow, what an amazingly horrible site. I can't get anything at all to work with Mozilla :slight_smile: .

As for the controls, very nice looking. To do it _properly_, you'd want to break the wxGrid down in to a number of sub-elements (each a sub-control) and allow for a lot more customisation (otherwise you'll need to completely re-build the grid). Since I can't find "Cardview", I can't comment on how that + the wxGrid would give "unlimited possibilities". See "Alternate Plan" below for how you'd do it "improperly" :slight_smile: .

Something that would likely be a worthwhile project would be a deconstruction of the grid in wxPython that would make these kinds of customisations easy:

    You'd start with, for instance, making it possible to host wxGrid editors/viewers in an arbitrary region of your control. You'd likely want to re-use the wxPython editors/viewer That will require creating a data-type registry, and edit-cycle-management code.

    Then add "grid drawing" code to allow for multiple items (here's where the hierarchical customisation would come in). You'll need to track the nested grids with an almost entirely seperate grid object to make this work.
Then add "selection management" code (you'll need to rewrite this as your grid can have other sub-grids embedded now). You can either treat the sub-grid as a single cell, as part of the super-grid, or as an entirely different control.

    After that you'd provide row-header/column-header controls (basically the same within any given sub-grid).
Then the minimal code for the hierarchic controls.

Alternate plan (just get this job done):
    Create a custom-drawn control that hosts X number of grid controls. Do the tree and header drawing yourself. When an item that needs a grid is openened, create the appropriate grid control. Size the headers from the grid's internal structures. Kill the grid's own headers.

Anyway, not something I'm likely to work on, but have fun with it,
Mike

Samir Patel wrote:

ยทยทยท

Please take a look at http://janusys.com. Look at there GridEx control
for .NET. Also look at there Cardview. This is just too good. How we can
achieve this in wxPython from wxGrid. If wxGrid can do this, it will
open unlimited possibilities to wxPython. Any other opinion on this
matter?

- Samir

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

--
_______________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/