Search found 1386 matches

by catalin
Sat Feb 17, 2018 9:02 pm
Forum: Compiler / Linking / IDE Related
Topic: wxMessageDialogs causing access violation exceptions in x64 configurations
Replies: 10
Views: 336

Re: wxMessageDialogs causing access violation exceptions in x64 configurations

I've just seen this and the only relevant link found for it by Google was this thread :) To reproduce it in minimal sample, add wxMessageBox("some message"); just before frame->Show(true); , build Debug mode, and run the sample under the debugger . Win 10, x64, VS 2017, 10.0.16299.0, wxW 3...
by catalin
Sat Feb 03, 2018 11:25 pm
Forum: C++ Development
Topic: how bind wxGridCellChoiceEditor with event
Replies: 3
Views: 71

Re: how bind wxGridCellChoiceEditor with event

Something like myGrid->GetXXXEditorXXX(...)->GetControl()->Bind(...)

But mind that
- the editor is most probably null until it is needed for the first time;
- it is very likely that not all cells have the same editor;
- you probably need wxEVT_COMBOBOX.
by catalin
Thu Jan 04, 2018 6:29 am
Forum: Compiler / Linking / IDE Related
Topic: cannot compile wxWidgets in windows with MingW
Replies: 9
Views: 314

Re: cannot compile wxWidgets in windows with MingW

That should be fine, unless there is a bug with that configuration. Try without MONOLITHIC=1, since that doesn't matter anyway with static libs.
by catalin
Sat Nov 04, 2017 10:34 pm
Forum: C++ Development
Topic: wxTreeCtrl weird events
Replies: 6
Views: 267

Re: wxTreeCtrl weird events

Just to confirm that - after expanding the root, also programmatically select its first child. Then when you give focus to the tree which item is selected first?
by catalin
Tue Oct 31, 2017 5:49 pm
Forum: C++ Development
Topic: wxTreeCtrl weird events
Replies: 6
Views: 267

Re: wxTreeCtrl weird events

You should mention the wxW version and the OS you use. How do you "select branch 1"? By clicking with the mouse or programmatically? If the former, then probably the first event is because it gets focused and automatically the root item is selected, then immediately the clicked item is sel...
by catalin
Sun Oct 15, 2017 8:32 am
Forum: C++ Development
Topic: wxGrid extra white space with scrollbars
Replies: 6
Views: 381

Re: wxGrid extra white space with scrollbars

Grid1->SetScrollPageSize(1,1) doesn't have any effect. No wonder. I suggest you read again the docs of wxScrolled<T>::SetScrollPageSize(), especially for the first argument (hint: '1' is an invalid value for that). Also after that call make sure you do not call other functions that may overwrite th...
by catalin
Sat Oct 14, 2017 3:09 pm
Forum: C++ Development
Topic: logging before end of OnInit
Replies: 2
Views: 127

Re: logging before end of OnInit

Log messages are shown at the first idle event after they occur, which is when the event loop is already running, thus after OnInit() has finished and returned true.
by catalin
Wed Oct 11, 2017 7:44 am
Forum: C++ Development
Topic: wxGrid extra white space with scrollbars
Replies: 6
Views: 381

Re: wxGrid extra white space with scrollbars

IIRC the client surface of the scrolled window is a multiple of the page size, see SetScrollPageSize(). You can probably set the page size to be equal to the height of a row and width of a column respectively. Actually horizontally you can probably set the page size to a low value (i.e. 1, 2) and se...
by catalin
Tue Sep 26, 2017 5:22 pm
Forum: C++ Development
Topic: Close button creates event with wxID_OK
Replies: 5
Views: 180

Re: Close button creates event with wxID_OK

The "close box" will send a "close" event which is different than "cancel" event. The rest is very well explained in the docs I mentioned earlier.
by catalin
Tue Sep 26, 2017 3:23 pm
Forum: C++ Development
Topic: Close button creates event with wxID_OK
Replies: 5
Views: 180

Re: Close button creates event with wxID_OK

But you are not using any button with wxID_CANCEL, are you?
IIRC that works just like "escape id", and that one is described by wxDialog::SetEscapeId() docs.
by catalin
Thu Jul 27, 2017 6:49 am
Forum: Platform Related Issues
Topic: how to set WindowStyleFlag in Ubuntu14.04
Replies: 1
Views: 203

Re: how to set WindowStyleFlag in Ubuntu14.04

Look at wxFrame flags, i.e. wxCAPTION.
by catalin
Thu Jul 27, 2017 6:45 am
Forum: C++ Development
Topic: How to open and view office files in a window?
Replies: 2
Views: 195

Re: How to open and view office files in a window?

You cannot do that simply by using wxWidgets. If you have a library that does that on its own you might be able to integrate it with wxWidgets.
by catalin
Tue Jul 25, 2017 7:52 pm
Forum: C++ Development
Topic: Ribbon buttons + dialogs = crashes
Replies: 11
Views: 533

Re: Ribbon buttons + dialogs = crashes

Bind(wxEVT_RIBBONBUTTONBAR_CLICKED, onTestBtn, this, idRibbonOnlineConnect);

The function name should be passed using its address and the fully qualified name, in your case "&MyFrame::onTestBtn".
by catalin
Mon Jul 17, 2017 5:42 pm
Forum: C++ Development
Topic: Is there a way I could detect change in a grid
Replies: 1
Views: 144

Re: Is there a way I could detect change in a grid

If you are asking about wxGrid, see wxEVT_GRID_CELL_CHANGING and wxEVT_GRID_CELL_CHANGED event types.
by catalin
Sat Jul 01, 2017 9:33 pm
Forum: Compiler / Linking / IDE Related
Topic: building wxWidgets in Visual Studio 2017 Community Edition [SOLVED]
Replies: 8
Views: 1051

Re: building wxWidgets in Visual Studio 2017 Community Edition [SOLVED]

Now that I've installed the 8.1 sdk, I think this is no longer an issue (it does not complain about 8.1 sdk not being found). How did you install it? For me it still complained after installing it in 2 different ways. It is strange that these basic standard include files cannot be found during the ...

Go to advanced search