Search found 1383 matches

by catalin
Sat Nov 04, 2017 10:34 pm
Forum: C++ Development
Topic: wxTreeCtrl weird events
Replies: 6
Views: 182

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: 182

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: 268

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: 66

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: 268

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: 118

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: 118

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: 161

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: 150

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: 369

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: 115

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: 634

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 ...
by catalin
Sat Jul 01, 2017 11:33 am
Forum: Compiler / Linking / IDE Related
Topic: building wxWidgets in Visual Studio 2017 Community Edition [SOLVED]
Replies: 8
Views: 634

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

I've seen something similar with VS 2017 and missing Windows SDK version 8.1. I tried installing sdk 8.1 separately and by using VS installer. They both installed succesfully but could not be seen/used by VS. This was very unexpected when installing from VS installer... Finally I modified all wxW pr...
by catalin
Thu May 25, 2017 2:19 pm
Forum: Compiler / Linking / IDE Related
Topic: Error: '_waccess' was not declared in this scope
Replies: 20
Views: 1289

Re: Error: '_waccess' was not declared in this scope

I see you are still posting about how you are compiling your project, and how you have changed the build command (of your project?). Again, as explicit as I can be:

What is the compile command you used for building the libs?

What is the compile command you used for building your project?

Go to advanced search