Search found 39 matches

by Morat20
Thu May 07, 2020 5:39 pm
Forum: C++ Development
Topic: Question about sizers and modal dialogs
Replies: 2
Views: 171

Re: Question about sizers and modal dialogs

Thanks. That's exactly the mistake I was making.
by Morat20
Thu May 07, 2020 5:35 pm
Forum: C++ Development
Topic: Question about sizers and modal dialogs
Replies: 2
Views: 171

Question about sizers and modal dialogs

So I want to build a modal dialog with sizers. That's straightforward enough. I build my dialog, lay out my sizers, and then....I get confused, mostly because I've never actually sorted out all the various iterations of Fit(), Layout(), SetSizer(), etc. My modal dialog is referenced off my main fram...
by Morat20
Thu Apr 30, 2020 8:38 pm
Forum: Platform Related Issues
Topic: Question about Windows Font scaling
Replies: 6
Views: 472

Re: Question about Windows Font scaling

Is your application marked as "dpi aware" through the manifest? I assume you're using sizers and no hardcoded values for position and/or sizes? 2.9.5 is pretty old indeed. I would suggest you make a small test with both 2.9.5 and the latest wx version from GIT. If the latest version fixes it, you s...
by Morat20
Thu Apr 30, 2020 6:47 pm
Forum: Platform Related Issues
Topic: Question about Windows Font scaling
Replies: 6
Views: 472

Question about Windows Font scaling

I've noticed something odd with some controls and Windows font scaling. Admittedly, this is an older version of wxWidgets (2.9.5), but it's what I'm stuck working with for the time being. I've got a bunch of radioboxes. If I manually set the font size to something large and run it, the radioboxes si...
by Morat20
Wed Aug 07, 2019 8:31 pm
Forum: C++ Development
Topic: Non-appearing control, maybe sizer related?
Replies: 2
Views: 247

Re: Non-appearing control, maybe sizer related?

Apparently adding a Freeze() and Thaw() (So Freeze, Layout, Refresh,Thaw) somehow made it work for the combobox. I'll mark it solved, even though I don't know what happened much less how it fixed it.
by Morat20
Wed Aug 07, 2019 8:10 pm
Forum: C++ Development
Topic: Non-appearing control, maybe sizer related?
Replies: 2
Views: 247

Non-appearing control, maybe sizer related?

I'm using wxWidgets 2.9.5 (it is not something I can upgrade at the moment) and I have this weird, incredibly intermittent issue. On two separate panels (it's a wxNotebook) I have a single control (one a wxComboBox and one a wxStaticText) that, once I converted the previous static layout to a dynami...
by Morat20
Wed Jun 26, 2019 6:12 pm
Forum: C++ Development
Topic: wxRadioBox question
Replies: 1
Views: 170

wxRadioBox question

Is it possible to dynamically change the number of selections in a wxRadioBox? As in, say, initialize it with "Option A" and "Option B" and then add an "Option C" if needed (and then remove said Option C if needed)? Or do you need two radioboxes (one of two options, one of three) and swap them out o...
by Morat20
Mon Apr 01, 2019 11:03 pm
Forum: C++ Development
Topic: Issue saving bitmaps to file
Replies: 6
Views: 520

Re: Issue saving bitmaps to file

Hi, Does the original image has an Alpha? Also - what platform are you trying this on? And how did you build wxWidgets? Thank you. I believe the problem is Alpha. Loading: MyStaticBitmap->SetBitmap(wxBitmap("myBitmap",wxBITMAP_TYPE_RESOURCE)); wxImage image = MyStaticBitmap->GetBitmap().ConvertToIm...
by Morat20
Mon Apr 01, 2019 10:18 pm
Forum: C++ Development
Topic: Issue saving bitmaps to file
Replies: 6
Views: 520

Re: Issue saving bitmaps to file

The code looks OK, I am assuming you are running debug build of wxWidgets which would assert if the bitmap or image were invalid. My guess would be that the issue is somewhere else than in the posted code (assuming you did not omit anything relevant) and you would not be able to reproduce it in an ...
by Morat20
Mon Apr 01, 2019 10:06 pm
Forum: C++ Development
Topic: Issue saving bitmaps to file
Replies: 6
Views: 520

Re: Issue saving bitmaps to file

Hi, Does the original image has an Alpha? Also - what platform are you trying this on? And how did you build wxWidgets? Thank you. Windows 7, wxWidgets 2.9.5, static libraries. And I have no idea of the original images have an alpha. They predate me by some time. For that matter, I'm not even sure ...
by Morat20
Mon Apr 01, 2019 9:17 pm
Forum: C++ Development
Topic: Issue saving bitmaps to file
Replies: 6
Views: 520

Issue saving bitmaps to file

Attempting to save a static bitmap to file generates an all black result (whether saved as bitmap, jpg, etc). I Here's the stripped down broken version. The bitmaps come from the resource file. //This bit declared elsewhere wxStaticBitmap myBitmap->SetBitmap(wxBitmap("useful_bitmap",wxBITMAP_TYPE_BM...
by Morat20
Mon Mar 25, 2019 4:49 pm
Forum: C++ Development
Topic: wxGrids and sizers question
Replies: 1
Views: 179

wxGrids and sizers question

I seem to have a reoccurring problem with wxGrids and being placed in sizers. I'll defined the grid minimum and maximum size, place it in the sizer, call the Layout() and the result looks correct. The wxGrid will show scrollbars, fit inside the frame, and not extend past the edge of the frame. Excep...
by Morat20
Thu Mar 21, 2019 10:30 pm
Forum: C++ Development
Topic: Sizers and resizing the main frame question
Replies: 2
Views: 248

Re: Sizers and resizing the main frame question

I think I may have found the problem. Or rather, realized the problem is not with the wxTextControl or the set of sizers I've been looking at. I'm using a wxNotebook, and the problem I am diagnosing is on the last tab of the notebook. However, on another tab of the notebook, the same problem is happ...
by Morat20
Thu Mar 21, 2019 9:47 pm
Forum: C++ Development
Topic: Sizers and resizing the main frame question
Replies: 2
Views: 248

Sizers and resizing the main frame question

There's something odd I've noticed a few times, and I suspect I'm doing something wrong with sizers to cause it. I'll create a frame, fill it with controls using sizers, and everything will lay out fine. Until I resize the frame, even if just a little. Suddenly controls will jump out past the "edge"...
by Morat20
Wed Mar 20, 2019 6:58 pm
Forum: C++ Development
Topic: Menu accelerator issue
Replies: 8
Views: 535

Re: Menu accelerator issue

ONEEYEMAN wrote:
Wed Mar 20, 2019 5:00 pm
Hi,
Just try to search globally for 'wxKeyEvent'...

Thank you.
Thanks. That did it. Apparently a coworker wrote in a test function for some reason and didn't remove it or document it, and it was capturing the control events.

Thanks for the help all.