I quickly installed wxWidgets 3.2.0, but it changes nothing.
Next I will resize the dialog programatically back and forth a little bit.
If that still doesn't work, I will try to achieve this effect in wx dialog sample.
Search found 65 matches
- Fri Jul 29, 2022 9:54 am
- Forum: C++ Development
- Topic: wxBoxSizer, show/hide controls
- Replies: 6
- Views: 948
- Fri Jul 29, 2022 7:47 am
- Forum: C++ Development
- Topic: wxBoxSizer, show/hide controls
- Replies: 6
- Views: 948
Re: wxBoxSizer, show/hide controls
Applying Layout() to dialog's top sizer does not update anything.
Layout() to problematic flex grid sizer changes nothing, too.
Layout() to problematic flex grid sizer changes nothing, too.
- Tue Jul 26, 2022 1:04 pm
- Forum: C++ Development
- Topic: wxBoxSizer, show/hide controls
- Replies: 6
- Views: 948
Re: wxBoxSizer, show/hide controls
When I drag the dialog to certain smaller size, the controls suddenly jump to desired positions.
Sometimes there are graphics errors; controls partly duplicated at old positions.
As far as I see there are no any wrong flags.
Sometimes there are graphics errors; controls partly duplicated at old positions.
As far as I see there are no any wrong flags.
- Mon Jul 25, 2022 8:31 am
- Forum: C++ Development
- Topic: wxBoxSizer, show/hide controls
- Replies: 6
- Views: 948
wxBoxSizer, show/hide controls
Hi all, I show/hide controls situation-dependent in a dialog. I just upgraded from wxWidgets 3.0.5 to 3.1.5 and work under Windows 10 and Visual C++ 2017. When I hide a control in the past, it disappears visually and its rectangular space was used by remaining visible controls. But now: although it ...
- Sat Aug 14, 2021 9:14 am
- Forum: C++ Development
- Topic: Resizing issue since wx3.1.5
- Replies: 5
- Views: 1428
Re: Resizing issue since wx3.1.5
That's it! You pointed me to the right direction.
In Visual Studio, edit project properties:
In Visual Studio, edit project properties:
- linker/manifest file/generate manifest: yes
manifest tool/input and output/embed manifest: yes
- Wed Aug 11, 2021 6:04 am
- Forum: C++ Development
- Topic: Resizing issue since wx3.1.5
- Replies: 5
- Views: 1428
Re: Resizing issue since wx3.1.5
Sorry for misplacing this post.
I am on Windows 10 and use a standard monitor.
This is the situation with wx3.1.5: wx3.0.5:
I am on Windows 10 and use a standard monitor.
This is the situation with wx3.1.5: wx3.0.5:
- Mon Aug 09, 2021 10:02 am
- Forum: C++ Development
- Topic: Resizing issue since wx3.1.5
- Replies: 5
- Views: 1428
Resizing issue since wx3.1.5
I have a resizing issue since wx3.1.5, while up to wx3.0.5 it worked properly.
Buttons with multiline labels, or buttons with labels longer than default size do not rescale.
Layout() and Fit() of dialog does not help. For first, I will return to 3.0.5.
Buttons with multiline labels, or buttons with labels longer than default size do not rescale.
Layout() and Fit() of dialog does not help. For first, I will return to 3.0.5.
- Wed Apr 22, 2020 3:05 pm
- Forum: C++ Development
- Topic: wxGrid: behavior of return key undesired
- Replies: 2
- Views: 640
wxGrid: behavior of return key undesired
Hi all, I have a problem with wxGrid's cell editing. I expect a wxEVT_CELL_EDITOR_HIDDEN and wxEVT_CELL_CHANGED event, after hitting RETURN in cell editor. In general it works this way, but not when you are in the 2nd last row and the last row is hidden. Problem can be reproduced in wx sample app. G...
- Sun Feb 02, 2020 11:55 am
- Forum: C++ Development
- Topic: wxLogWindow frozen
- Replies: 3
- Views: 591
wxLogWindow frozen
Hello all, I use wxLogWindow very first time and cannot get it work. Top level window is a derived wxDialog, that has a member wxLogWindow* m_logWin. In dialog's constructor I call m_logWin = new wxLogWindow(this, "log output", true); delete wxLog::SetActiveTarget(m_logWin); When dialog is...
- Fri Dec 27, 2019 5:03 pm
- Forum: C++ Development
- Topic: wxGrid and mouse events
- Replies: 2
- Views: 693
Re: wxGrid and mouse events
Marvelous, that's it! For completeness I will write the new knowledge here. The grid is made of a composite of 4 subwindows. Function names should be self-explanatory to get each of them: wxGrid::GetGridWindow(): window containing all cells, wxGrid::GetGridRowLabelWindow() wxGrid::GetGridColLabelWin...
- Fri Dec 27, 2019 4:16 pm
- Forum: C++ Development
- Topic: wxGrid and mouse events
- Replies: 2
- Views: 693
wxGrid and mouse events
Hello everybody, in a wxDialog I want to receive mouse move events for a subset of controls. So I bind the controls to the event handling system like this: MyDialog::MyDialog(wxWindow* parent) : wxDialog(parent) { // ... myButton1->Bind(wxEVT_MOTION, &MyDialog::OnHoverButton1, this); myTextCtrl2...
- Mon Sep 16, 2019 9:54 am
- Forum: wxDev-C++
- Topic: Version Info in runtime
- Replies: 8
- Views: 31044
Re: Version Info in runtime
Great, that you post this piece of code that helps to retrieve all the version information!
It maybe mentioned additionally, that you have to link with "version.lib".
It maybe mentioned additionally, that you have to link with "version.lib".
- Tue Aug 14, 2018 7:14 am
- Forum: C++ Development
- Topic: wxCmdLineParser, redirect output
- Replies: 4
- Views: 1578
Re: wxCmdLineParser, redirect output
So, finally, I solved it. The solution is to use an undocumented class wxMessageOutputLog. To redirect all outputs (not only from wxCmdLineParser) to the log target, specify this in your application (for example in MyApp::OnInit()). auto oldMsgOutput = wxMessageOutput::Get(); auto newMsgOutput = new...
- Mon Aug 13, 2018 1:16 pm
- Forum: C++ Development
- Topic: wxCmdLineParser, redirect output
- Replies: 4
- Views: 1578
wxCmdLineParser, redirect output
[wxWidgets 3.1.1, Windows 7 64 bit] Hello all, in wx documentation I read, that wxCmdLineParser.Parse() can generate messages, that "go to standard wx logging system". That seems not to be true. I defined a new wxLogStream() target at wxApp start. All other messages go there, but not that ...
- Sun Apr 23, 2017 5:25 pm
- Forum: C++ Development
- Topic: wxDataViewTreeCtrl exception with text renderer
- Replies: 12
- Views: 4487
Re: wxDataViewTreeCtrl exception with text renderer
This is original sample code from dataview.cpp, added by MyDialog1 to realize a 2nd view of mymodels.h/.cpp from wx samples. Button "Add Mozart" will launch MyDialog1 ///////////////////////////////////////////////////////////////////////////// // Name: dataview.cpp // Purpose: wxDataViewC...