Search found 111 matches

by maxbld
Fri Nov 08, 2013 6:16 pm
Forum: C++ Development
Topic: Text background
Replies: 7
Views: 1456

Text background

Dear all, From inside the Draw method of a class derived from wxGridCellRenderer, which I set as the renderer of my wxGrid cell, I'm drawing a button in the cell with the following code: //paint the button wxRendererNative::Get().DrawPushButton(grid.GetGridWindow(), dc, buttRect, isSelected ? wxCONT...
by maxbld
Tue Nov 05, 2013 7:05 pm
Forum: C++ Development
Topic: SetSizer doesn't delete the old sizer
Replies: 1
Views: 595

SetSizer doesn't delete the old sizer

Hi all, I do a SetSizer on a wxScrolledWindow that has already a sizer. As a result the contents of the new sizer are shown, but the windows of the old one aren't deleted. How comes? The docs read that wxWindow::SetSizer deletes the old sizer! What should I do to have it really deleted? Thanks a lot...
by maxbld
Tue Oct 22, 2013 10:21 pm
Forum: C++ Development
Topic: wxSplitterWindow sash is not visible
Replies: 1
Views: 1063

wxSplitterWindow sash is not visible

Dear all, I just implemented a wxSplitterWindow. All is well, but I can't see the sash. It must have the same colour of the background, since if I change the background colour I see a tiny line. wxSplitterWindow::IsSashInvisible() returns false. Another interesting thing is that wxSplitterWindow::Se...
by maxbld
Tue Oct 22, 2013 4:23 pm
Forum: C++ Development
Topic: put a wxAuiManager into a wxAuiManager
Replies: 1
Views: 710

put a wxAuiManager into a wxAuiManager

Dear all,

Is it possible to put a wxAuiManager into a wxAuiManager? When I try to do so, I get a runtime error when calling wxAuiManager::Update() on the eldest wxAuiManager.

Thank you, BR,
Max.
by maxbld
Fri Oct 04, 2013 8:26 pm
Forum: C++ Development
Topic: No CELL_CHANGED if I connect CELL_SELECT??
Replies: 1
Views: 464

Re: No CELL_CHANGED if I connect CELL_SELECT??

well, using wxGrid::SaveEditControlValue(); instead than wxGrid::SetCellValue(...) solved the issue. I've reached such a solution by checking what happens in the wxEVT_GRID_CELL_CHANGED event in a debug session. Actually my grid cell's editor was already fed with the new value when I called SetCellV...
by maxbld
Fri Oct 04, 2013 7:11 pm
Forum: C++ Development
Topic: No CELL_CHANGED if I connect CELL_SELECT??
Replies: 1
Views: 464

No CELL_CHANGED if I connect CELL_SELECT??

Hi all, Sorry if I keep asking silly questions, but this is quite strange for me: I have an event handler to a wxGrid, and I connected to it the wxEVT_GRID_CELL_CHANGED. If then I connect also wxEVT_GRID_SELECT_CELL, then the method wxGrid::SetCellValue does its job but doesn't trigger anymore the w...
by maxbld
Fri Oct 04, 2013 10:39 am
Forum: C++ Development
Topic: Maximize runtime wxGrid speed
Replies: 2
Views: 1140

Re: Maximize runtime wxGrid speed

Hi all,

It's OK now. I had a few performance killer loops that i digged out using the profiler. Just like setting the background colour cell by cell instead than for the whole grid and other amenities like that.

Thanks doublemax for the answer, BR,
Max.
by maxbld
Thu Oct 03, 2013 6:05 pm
Forum: C++ Development
Topic: Disappeared selected bitmap
Replies: 1
Views: 602

Disappeared selected bitmap

Dear all, I have a wxListView I use to show a list of images, If I create my wxImageList this way: m_pImageList = new wxImageList(128,128,false); Then the images disappear on selection and come back when unselected. If I create my wxImageList this other way: m_pImageList = new wxImageList(128,128,tr...
by maxbld
Wed Oct 02, 2013 1:43 pm
Forum: C++ Development
Topic: Maximize runtime wxGrid speed
Replies: 2
Views: 1140

Maximize runtime wxGrid speed

Dear all, I've a release project set with the minimal wxWidgets refrence project default properties, but wxGrid object looks sort of slow. Actually to show a 600 rows x 10 cols grid it takes several seconds in an optimized for speed release version of my app. I would greatly appreciate any suggestio...
by maxbld
Wed Oct 02, 2013 10:15 am
Forum: C++ Development
Topic: safely exit event processing
Replies: 2
Views: 664

Re: safely exit event processin

doublemax wrote:Sounds like you're looking for wxAppConsole::ScheduleForDestruction:
http://docs.wxwidgets.org/trunk/classwx ... 22f9de9d90
Very cOOl.

Thank you!
by maxbld
Tue Oct 01, 2013 5:33 pm
Forum: C++ Development
Topic: safely exit event processing
Replies: 2
Views: 664

safely exit event processing

dear all,

It happens to me to delete the event handler object from inside an event handled by that object himself. Of course it causes the handling function to crash on exit. Is there any way to manage this, e.g. by just terminating somehow the parent event loop?

thanks a lot,
BR.
by maxbld
Sun Sep 22, 2013 6:54 pm
Forum: C++ Development
Topic: Modeless wxDialog example, please?
Replies: 2
Views: 1084

Re: Modeless wxDialog example, please?

Well, turns out I had to call wxWindows::Update() after showing the modeless wxDialog. So now I create the dialog as follows: ProgressDialog PDialog(RSetReport, &istream, DialogParent, wxID_ANY, wxT("Exporting"), wxDefaultPosition, wxSize(400, 100), lStyle); PDialog.Show(); PDialog.Update(); //This ...
by maxbld
Sun Sep 22, 2013 5:50 pm
Forum: C++ Development
Topic: Modeless wxDialog example, please?
Replies: 2
Views: 1084

Modeless wxDialog example, please?

Hi all, I thought it was easy, but looks like it's not, at least for me. I've a dialog that if I show it modal works well, but when I want to show it modeless something goes wrong. I use OnInit event to set up my sizers: void ProgressDialog::OnInit(wxWindowCreateEvent& event) { m_panel = new wxPanel...
by maxbld
Tue Aug 20, 2013 11:18 pm
Forum: C++ Development
Topic: How to copy a wxGrid?
Replies: 2
Views: 897

Re: How to copy a wxGrid?

Hi all, I've the exact same issue. Honest I feel like it is quite strange nobody ever answered here and I'm not finding any other reference to this topic on google. Should one maybe do a GetTable() on the source and use it to do a SetTable(...) on the destination wxGrid? Is that it? Thanks a lot for...
by maxbld
Mon Jul 22, 2013 7:00 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets 2.9.4 DLL Release do debug?
Replies: 4
Views: 1404

Re: wxWidgets 2.9.4 DLL Release do debug?

Just about current DEBUG_LEVEL in your app, you can hit <ctrl><alt><middle-mouse-button> (when your app has the focus, of course) to invoke wxInfoMessageBox. Also, even with DEBUG_LEVEL=0 you'll still see messages coming from wxWidgets when an underlying native function fails. To get ride of this, ...