Search found 95 matches

by Victory
Thu Jan 10, 2019 8:20 pm
Forum: C++ Development
Topic: wxFlexGridSizer row height proportions [SOLVED]
Replies: 4
Views: 182

Re: wxFlexGridSizer row height proportions [SOLVED]

Either moving or resizing fixes it. As an experiment I just now added the following code at the end of the constructor: const wxPoint pos = GetPosition(); Move(pos.x + 1, pos.y + 1); That makes the dialog have the right layout when it appears. So, I seem to have a work-around for this as of now, tho...
by Victory
Thu Jan 10, 2019 7:46 pm
Forum: C++ Development
Topic: wxFlexGridSizer row height proportions [SOLVED]
Replies: 4
Views: 182

Re: wxFlexGridSizer row height proportions [SOLVED]

I am noticing something weird with this dialog (i.e., the one using wxFlexGridSizer) which I haven't seen before with any other. I am now calling AddGrowableRow as you suggested. But, they don't have an impact until I move the dialog a bit. I do call the following at the end of the dialog's construc...
by Victory
Tue Jan 08, 2019 8:32 pm
Forum: C++ Development
Topic: wxFlexGridSizer row height proportions [SOLVED]
Replies: 4
Views: 182

wxFlexGridSizer row height proportions [SOLVED]

Is there any way to specify the proportion of vertical space taken up by each row in wxFlexGridSizer? In my case, I am using a wxFlexGridSizer with 3 rows and 2 columns. I would like the first row to take 1/7 of the vertical space, the second row to take 4/7 of the vertical space, and the third row ...
by Victory
Sun Sep 23, 2018 5:20 pm
Forum: C++ Development
Topic: Disabling TAB traversal
Replies: 1
Views: 74

Disabling TAB traversal

Is there a way to disable TAB traversal entirely for an application or window (containing other controls)? I tried calling SetWindowStyleFlag(GetWindowStyleFlag() & ~wxTAB_TRAVERSAL) recursively on all the windows/controls contained within my main window. But, that didn't disable TAB traversal. ...
by Victory
Fri Sep 21, 2018 4:43 am
Forum: C++ Development
Topic: Passing window events to enclosing app
Replies: 4
Views: 241

Re: Passing window events to enclosing app

No, I am not using SDL. I made some progress on this. I found that the EVT_CHAR_HOOK handler was getting called before wxApp::FilterEvent and was consuming the key events. So, I removed that handler. I also decided to centralize the channeling of key events by removing the direct key event handlers ...
by Victory
Mon Sep 03, 2018 6:15 pm
Forum: C++ Development
Topic: Passing window events to enclosing app
Replies: 4
Views: 241

Re: Passing window events to enclosing app

Thanks "doublemax". When I try doing that, I am seeing something weird even without Steam integration. The following is my code. By putting breakpoints, I noticed that wxEVT_KEY_DOWN never arrived for any key I pressed! But, the mouse wheel event handled just above in the code does arrive....
by Victory
Mon Sep 03, 2018 4:44 am
Forum: C++ Development
Topic: Passing window events to enclosing app
Replies: 4
Views: 241

Passing window events to enclosing app

We have a game that uses wxWxWidgets, which we want to release on Steam platform. As some of you might know, while running a game, if the user presses a chosen key combination (Shift+Tab, by default), Steam displays an overlay which allows the user to access some Steam community features. Now, the p...
by Victory
Sun Mar 11, 2018 10:15 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets-3.1.1 gives build errors while 3.0.3 didn't
Replies: 5
Views: 533

Re: wxWidgets-3.1.1 gives build errors while 3.0.3 didn't

After investigating some more, I found the change in wxWidgets-3.1.1 that seems to be at the heart of this. In the 3.1.1 version, the following include has been added near the top of the file wx\defs.h: #ifdef __cplusplus /* Test for _WINDOWS_, used as header guard by windows.h itself, not our own _...
by Victory
Sun Mar 11, 2018 8:17 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets-3.1.1 gives build errors while 3.0.3 didn't
Replies: 5
Views: 533

Re: wxWidgets-3.1.1 gives build errors while 3.0.3 didn't

I looked a bit into what is causing the build errors. The problem seems to be related to winundef.h. Unlike other header files, this header file has its include guard commented out. This is what the code at the top of that file says: /* THIS SHOULD NOT BE USED since you might include it once e.g. in...
by Victory
Wed Mar 07, 2018 5:32 am
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets-3.1.1 gives build errors while 3.0.3 didn't
Replies: 5
Views: 533

wxWidgets-3.1.1 gives build errors while 3.0.3 didn't

I just tried updating our code to use wxWidgets-3.1.1 and I am now getting a few occurrences of the following error: 1>c:\blahblah\wxwidgets\wxwidgets-3.1.1\include\wx\msw\winundef.h(246): error C2084: function 'int DrawText(HDC,LPCWSTR,int,LPRECT,UINT)' already has a body 1> c:\blahblah\wxwidgets\w...
by Victory
Wed Mar 07, 2018 3:29 am
Forum: C++ Development
Topic: Getting wxBitmapButton to expand to occupy available space
Replies: 5
Views: 314

Re: Getting wxBitmapButton to expand to occupy available space

I copied exactly your code to "minimal" sample the way you told and I am attaching the screenshot. The button image did not expand to occupy the available space. It stays at the size of the bitmap.

I tried it with both wxWidgets-3.0.3 as well as wxWidgets-3.1.1 on my Windows 10 laptop.
by Victory
Mon Mar 05, 2018 4:29 pm
Forum: C++ Development
Topic: wxRadioBox does not work right on higher resolution displays
Replies: 3
Views: 228

Re: wxRadioBox does not work right on higher resolution displays

Quoting from my post above:

I am trying this on Windows 10 with wxWidgets-3.0.3.
by Victory
Mon Mar 05, 2018 4:27 pm
Forum: C++ Development
Topic: Getting wxBitmapButton to expand to occupy available space
Replies: 5
Views: 314

Re: Getting wxBitmapButton to expand to occupy available space

Making the change you mentioned did not help.
Thanks.
by Victory
Mon Mar 05, 2018 5:45 am
Forum: C++ Development
Topic: wxRadioBox does not work right on higher resolution displays
Replies: 3
Views: 228

wxRadioBox does not work right on higher resolution displays

I am noticing that the labels of choices in wxRadioBox are getting truncated when the radio box is displayed on a higher resolution laptop. Seems like the size is not getting reported correctly there. I am pasting below simple code that reproduces the issue. The two screenshots below show how the wi...
by Victory
Mon Mar 05, 2018 3:44 am
Forum: C++ Development
Topic: Getting wxBitmapButton to expand to occupy available space
Replies: 5
Views: 314

Getting wxBitmapButton to expand to occupy available space

I am trying to get a button to resize to occupy the available space and haven't had any success so far. The wxBitmapButton stays at the same size even though I specify wxExpand flag. Is there a way to get it to expand to occupy the available space? Here is a very simple code that reproduces the issu...

Go to advanced search