Search found 41 matches
- Mon Nov 07, 2022 4:54 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Setup.h issue
- Replies: 2
- Views: 3364
Re: Setup.h issue
I finally thought to verify which setup.h files were actually being included in release and debug. Digging into the external dependencies I finally noted release mode is including "include\msvc\wx\setup.h" and debug mode "\lib\vc_lib\mswud\wx\setup.h" which was the problem It loo...
- Mon Nov 07, 2022 4:40 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Setup.h issue
- Replies: 2
- Views: 3364
Setup.h issue
I've been transitioning some projects (Windows) to a new version of Visual Studio (a hefty jump in versions to boot) AND moving them to 64 bit solutions under 2.9.5. (Yes it's old, but upgrading versions is not currently an option, much as I' wish otherwise). I rebuilt the libraries, got a basic sam...
- Thu May 07, 2020 5:39 pm
- Forum: C++ Development
- Topic: Question about sizers and modal dialogs
- Replies: 2
- Views: 466
Re: Question about sizers and modal dialogs
Thanks. That's exactly the mistake I was making.
- Thu May 07, 2020 5:35 pm
- Forum: C++ Development
- Topic: Question about sizers and modal dialogs
- Replies: 2
- Views: 466
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...
- Thu Apr 30, 2020 8:38 pm
- Forum: Platform Related Issues
- Topic: Question about Windows Font scaling
- Replies: 6
- Views: 1787
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...
- Thu Apr 30, 2020 6:47 pm
- Forum: Platform Related Issues
- Topic: Question about Windows Font scaling
- Replies: 6
- Views: 1787
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...
- Wed Aug 07, 2019 8:31 pm
- Forum: C++ Development
- Topic: Non-appearing control, maybe sizer related?
- Replies: 2
- Views: 675
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.
- Wed Aug 07, 2019 8:10 pm
- Forum: C++ Development
- Topic: Non-appearing control, maybe sizer related?
- Replies: 2
- Views: 675
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...
- Wed Jun 26, 2019 6:12 pm
- Forum: C++ Development
- Topic: wxRadioBox question
- Replies: 1
- Views: 400
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...
- Mon Apr 01, 2019 11:03 pm
- Forum: C++ Development
- Topic: Issue saving bitmaps to file
- Replies: 6
- Views: 1600
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().C...
- Mon Apr 01, 2019 10:18 pm
- Forum: C++ Development
- Topic: Issue saving bitmaps to file
- Replies: 6
- Views: 1600
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 ...
- Mon Apr 01, 2019 10:06 pm
- Forum: C++ Development
- Topic: Issue saving bitmaps to file
- Replies: 6
- Views: 1600
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 ...
- Mon Apr 01, 2019 9:17 pm
- Forum: C++ Development
- Topic: Issue saving bitmaps to file
- Replies: 6
- Views: 1600
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",wxBITM...
- Mon Mar 25, 2019 4:49 pm
- Forum: C++ Development
- Topic: wxGrids and sizers question
- Replies: 1
- Views: 442
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...
- Thu Mar 21, 2019 10:30 pm
- Forum: C++ Development
- Topic: Sizers and resizing the main frame question
- Replies: 2
- Views: 720
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...