Zoom a wxGrid?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
timg
Earned some good credits
Earned some good credits
Posts: 148
Joined: Mon Jan 23, 2006 6:52 pm

Zoom a wxGrid?

Post by timg »

Has anyone done this? I'd like to be able to zoom in and out on a wxGrid (like Excel can). Any hints on how to implement this? Or is it just impossible with the current wxGrid?
Ksmith22
I live to help wx-kind
I live to help wx-kind
Posts: 199
Joined: Mon Nov 21, 2005 4:34 pm

Re: Zoom a wxGrid?

Post by Ksmith22 »

timg wrote:Has anyone done this? I'd like to be able to zoom in and out on a wxGrid (like Excel can). Any hints on how to implement this? Or is it just impossible with the current wxGrid?
I don't know for sure but I find it unlikely. wxGrid isn't too advanced (and somewhat buggy most of the time).

Maybe if you redrew the entire grid on zoom in/out (whatever key/mouse you use for that) you could say, double/half the size of everything. But it would certainly be a lot of effort (and likely quite memory intensive).
Post Reply