Search found 41 matches

by hackish
Sun May 25, 2014 9:27 pm
Forum: C++ Development
Topic: wxAUI and wxGrid Size Problems
Replies: 6
Views: 1764

Re: wxAUI and wxGrid Size Problems

I've dug deep into the code. Through a template the wxGrid is really a wxpanel and its virtual size is wrong. I have not yet found out what is actually drawing the scrollbars. Since they affect the entire grid including the fixed columns it should be the wxpanel. Also the underlying classes are not ...
by hackish
Sun May 25, 2014 2:20 am
Forum: C++ Development
Topic: wxAUI and wxGrid Size Problems
Replies: 6
Views: 1764

Re: wxAUI and wxGrid Size Problems

Here is the latest. #include <wx/aui/aui.h> #include <wx/aui/dockart.h> #include <wx/wx.h> #include <wx/grid.h> #include <wx/sizer.h> #include <wx/gbsizer.h> class MyApp : public wxApp { public: bool OnInit(); wxFrame* frame; }; DECLARE_APP(MyApp); IMPLEMENT_APP(MyApp); class MyFrame : public wxFram...
by hackish
Sun May 25, 2014 2:05 am
Forum: C++ Development
Topic: wxAUI and wxGrid Size Problems
Replies: 6
Views: 1764

Re: wxAUI and wxGrid Size Problems

You could be right about this but it exposes even more bugs. For example the wxGrid seems to think it has no scrollbars when it clearly does. wxWindowBase::HasScrollbar returns false even when there is clearly a scrollbar. In my real world case I am catching the onResize and manually adapting the gr...
by hackish
Sat May 24, 2014 5:19 pm
Forum: C++ Development
Topic: wxAUI and wxGrid Size Problems
Replies: 6
Views: 1764

wxAUI and wxGrid Size Problems

I'm working on a much larger problem but I've pared it down to what I think is the best example. This could be a bug in wxAUI or just me mis-handling things. Here is the sample: #include <wx/aui/aui.h> #include <wx/aui/dockart.h> #include <wx/wx.h> #include <wx/grid.h> #include <wx/sizer.h> #include...
by hackish
Fri Apr 11, 2014 8:25 pm
Forum: C++ Development
Topic: How to determine if wxGrid scrollbars are visible or not
Replies: 2
Views: 907

Re: How to determine if wxGrid scrollbars are visible or not

Thanks, didn't think to look further up than the wxScrolledWindow since I didn't expect a wxWindow to know about scrollbars.

-Michael
by hackish
Fri Apr 11, 2014 5:28 am
Forum: C++ Development
Topic: How to determine if wxGrid scrollbars are visible or not
Replies: 2
Views: 907

How to determine if wxGrid scrollbars are visible or not

Hi, I'm trying to manually stretch a wxGrid so one of the columns always consumes the remaining space. Trouble is if there are too many rows the vertical scrollbar will appear and the resize needs to account for this. Is there any way to figure out if the scrollbar on a wxscrolledwindow subclass (wx...
by hackish
Mon Oct 14, 2013 2:28 am
Forum: C++ Development
Topic: How to edit wxGrid label cell?
Replies: 2
Views: 748

Re: How to edit wxGrid label cell?

doublemax: this is in fact exactly how I`ve been doing it. The results are not exactly that professional looking. Even if it's a lot more complicated can you think of a way to make it work with the grid? In my mind the header should really be drawn using the cell drawing code, but it seems like nobo...
by hackish
Sun Oct 13, 2013 2:22 pm
Forum: C++ Development
Topic: How to edit wxGrid label cell?
Replies: 2
Views: 748

How to edit wxGrid label cell?

Just wondering if anyone knows of a way to allow the user to edit a label cell in a wxGrid? In my case it contains axis data so occasionally I may want to allow the user to edit that data. Any ideas?

-Michael
by hackish
Tue Mar 12, 2013 2:35 am
Forum: C++ Development
Topic: Closing a modal with EndModal does not seem to work
Replies: 2
Views: 1282

Re: Closing a modal with EndModal does not seem to work

Thanks doublemax. This example is not 100% identical but shows anyone in the future a solution: #include <wx/wx.h> class MyApp : public wxApp { virtual bool OnInit(); }; IMPLEMENT_APP(MyApp) class MyMsgDlg : public wxDialog { public: MyMsgDlg(wxWindow* parent, int timeout, wxWindowID id, const wxStr...
by hackish
Tue Mar 12, 2013 12:44 am
Forum: C++ Development
Topic: Closing a modal with EndModal does not seem to work
Replies: 2
Views: 1282

Closing a modal with EndModal does not seem to work

I wanted to create a modal dialog box that can close itself after a worker thread completes. I poll the thread until it's finished and when it's done try to call EndModal. This results in an assert dialog telling me the dialog wasn't opened with ShowModal. Here is an example, instead of a worker thr...
by hackish
Thu Nov 29, 2012 9:31 pm
Forum: C++ Development
Topic: More Sizer Problems... what am I doing wrong?
Replies: 9
Views: 2541

Re: More Sizer Problems... what am I doing wrong?

Ok, I got rid of wxaui for the moment and shrunk the problem. I still believe this is a bug. Shrink/grow hides and shows the columns but then screws up the window's minimum size and the grid's size. I suspect this was a result of some of the wxGrid fixes I made earlier this month so I'll see if I ca...
by hackish
Thu Nov 29, 2012 8:07 pm
Forum: C++ Development
Topic: More Sizer Problems... what am I doing wrong?
Replies: 9
Views: 2541

Re: More Sizer Problems... what am I doing wrong?

wxaui claims to work properly with sizers and all that. There is little documentation available on it. There seems to be little expertise available as well. In short, can you see anything specific I'm doing wrong with the sizers? At least if I can find/fix that, it will demonstrate that there is or ...
by hackish
Wed Nov 28, 2012 8:59 pm
Forum: C++ Development
Topic: More Sizer Problems... what am I doing wrong?
Replies: 9
Views: 2541

Re: More Sizer Problems... what am I doing wrong?

Ok, if that's the case then how should I get the window to resize?
by hackish
Mon Nov 26, 2012 5:42 pm
Forum: C++ Development
Topic: More Sizer Problems... what am I doing wrong?
Replies: 9
Views: 2541

Re: More Sizer Problems... what am I doing wrong?

wx3.jpg I think there is some confirmation here... I copied the code to add the button out of one of the wxaui examples... http://www.kirix.com/labs/wxaui/documentation/examples.html Even adding the button to the frame doesn't quite work as expected. Initially the test button appears full sized the...
by hackish
Mon Nov 26, 2012 4:30 pm
Forum: C++ Development
Topic: More Sizer Problems... what am I doing wrong?
Replies: 9
Views: 2541

Re: More Sizer Problems... what am I doing wrong?

Ok, that will probably solve problem A. That was really something I encountered in building the test case, but thanks. Too bad I didn't see anything about this in the AUI docs.

Any ideas on B,C and D?

-Michael