Search found 35 matches

by Morat20
Wed Aug 07, 2019 8:31 pm
Forum: C++ Development
Topic: Non-appearing control, maybe sizer related?
Replies: 2
Views: 66

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

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

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

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

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

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

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

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

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

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

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.
by Morat20
Wed Mar 20, 2019 4:49 pm
Forum: C++ Development
Topic: Menu accelerator issue
Replies: 8
Views: 230

Re: Menu accelerator issue

ONEEYEMAN wrote:
Wed Mar 20, 2019 4:42 pm
Hi,
As doublemax suggested - do you have any keyboard events intercepted?
Thank you.
I'm almost certain it is being interrupted, but I've been unable to find it so far. That's the only thing I can think of to describe the problem.
by Morat20
Wed Mar 20, 2019 3:46 pm
Forum: C++ Development
Topic: Menu accelerator issue
Replies: 8
Views: 230

Re: Menu accelerator issue

Windows 7, and yes the samples work. I'm at a total loss. I can't think of any obvious reason either. I assume the event handlers work when you invoke the menu items directly? Do you have any key event handlers? Either try to reproduce the issue in a minimal sample or try stripping down your code u...
by Morat20
Tue Mar 19, 2019 10:41 pm
Forum: C++ Development
Topic: Menu accelerator issue
Replies: 8
Views: 230

Re: Menu accelerator issue

doublemax wrote:
Tue Mar 19, 2019 10:30 pm
Which platform?
Did you check any of the samples that use keyboard shortcuts with "Ctrl"? E.g. the "stc" sample does.
Make a test with wx 3.x. If it works there, it means there was a bug in 2.9.5 that has been fixed by now.
Windows 7, and yes the samples work. I'm at a total loss.
by Morat20
Tue Mar 19, 2019 10:17 pm
Forum: C++ Development
Topic: Menu accelerator issue
Replies: 8
Views: 230

Menu accelerator issue

Using wxWidgets 2-9-5 (yes, I know it's old but it's what I have to work with), I seem to be running into the strangest issue with menu accelerators. Using the alt+ works, but not Ctrl+. Any menu item whose shortcut starts with "Alt" works correctly. None of the ones with "Ctrl" do. At this point, I...