MFC's layout system depends on the initial layout, wx's doesn't depends on the initial layout, in this case wx wins.
Search found 235 matches
- Thu Mar 18, 2021 2:50 pm
- Forum: Open Discussion
- Topic: sizer in MFC is quite clever
- Replies: 11
- Views: 1235
Re: sizer in MFC is quite clever
- Thu Mar 18, 2021 11:27 am
- Forum: Open Discussion
- Topic: sizer in MFC is quite clever
- Replies: 11
- Views: 1235
Re: sizer in MFC is quite clever
I'm glad to see it in wxWidgets.
Also more human/programmer friendly.
I also think it will not be put in the lib.
- Thu Mar 18, 2021 3:28 am
- Forum: Open Discussion
- Topic: sizer in MFC is quite clever
- Replies: 11
- Views: 1235
Re: sizer in MFC is quite clever
When building UI with codes manually, sometimes nested sizers become a little deeper.
It's not a big deal, but I think for most cases a simpler sizer is enough and more human friendly.
- Wed Mar 17, 2021 11:01 am
- Forum: Open Discussion
- Topic: sizer in MFC is quite clever
- Replies: 11
- Views: 1235
Re: sizer in MFC is quite clever
For example, if you want a button or label to adjust to a different text length in an i18n application, you will soon experience the limitations of MFC. The sizers in wxWidgets give you full control over such issues. Yes, with MFC's sizer, the position & size of a control are only adjusted accordin...
- Wed Mar 17, 2021 7:01 am
- Forum: Open Discussion
- Topic: sizer in MFC is quite clever
- Replies: 11
- Views: 1235
Re: sizer in MFC is quite clever
Are you stating the fact or asking the question? stating a fact Also - what does MFC has to do with wxWidgets/sizers? As I can see, MFC's sizer is simpler and more flexible than wxWidgets' sizer. But I'm not sure, so for open discussion. If MFC's sizer is totally better than wxWidgets' sizer, I thi...
- Mon Mar 15, 2021 2:08 am
- Forum: Open Discussion
- Topic: sizer in MFC is quite clever
- Replies: 11
- Views: 1235
sizer in MFC is quite clever
To auto position (i.e. left top) a child window Moving Type: Both / Horizontal / Vertical Moving X: percentage to move horizontally when the parent is resized Moving Y: percentage to move vertically when the parent is resized To auto resize (i.e. left top) a child window Sizing Type: Both / Horizon...
- Mon Mar 08, 2021 5:13 am
- Forum: C++ Development
- Topic: wxFileDialog style changes when calling CenterOnScreen/CenterOnParent/Center
- Replies: 5
- Views: 592
Re: wxFileDialog style changes when calling CenterOnScreen/CenterOnParent/Center
Firstly, when providing a code to reproduce on wxTrac, you are supposed to use a minimal patch against the most appropriate sample, in this case probably "dialogs". Fine Secondly, when the explanation for the issue is known, you should include it in the ticket so that other people do not need spend...
- Sat Mar 06, 2021 5:01 am
- Forum: C++ Development
- Topic: wxFileDialog style changes when calling CenterOnScreen/CenterOnParent/Center
- Replies: 5
- Views: 592
Re: wxFileDialog style changes when calling CenterOnScreen/CenterOnParent/Center
It seems that when you want to change the position of the dialog, this code path gets executed https://github.com/wxWidgets/wxWidgets/blob/30637ad3b60d9baf74d130dd34c7d8108cc1bb1d/src/msw/filedlg.cpp#L455 which results into the old style dialog. As shown by results of Google search, setting OFN_ENA...
- Fri Mar 05, 2021 3:33 pm
- Forum: C++ Development
- Topic: wxFileDialog style changes when calling CenterOnScreen/CenterOnParent/Center
- Replies: 5
- Views: 592
wxFileDialog style changes when calling CenterOnScreen/CenterOnParent/Center
OS: Windows 10 wx: 3.1.4 wxFileDialog dlg(this, wxFileSelectorPromptStr, wxEmptyString, wxEmptyString, wxT("*.pdf"), wxFD_DEFAULT_STYLE | wxFD_FILE_MUST_EXIST); if (dlg.ShowModal() == wxID_OK) without_center.PNG wxFileDialog dlg(this, wxFileSelectorPromptStr, wxEmptyString, wxEmptyString, wxT("*.pdf...
- Fri Mar 05, 2021 2:48 am
- Forum: C++ Development
- Topic: How to dock more than 3 windows horizontally with wxAuiManager?
- Replies: 2
- Views: 281
Re: How to dock more than 3 windows horizontally with wxAuiManager?
BestSize helps for default size, but no help for 4 for more panes horizontally.
- Thu Mar 04, 2021 1:08 pm
- Forum: C++ Development
- Topic: How to dock more than 3 windows horizontally with wxAuiManager?
- Replies: 2
- Views: 281
How to dock more than 3 windows horizontally with wxAuiManager?
wx_aui_dock.png It easy to be done y drag & drop manually, how to do it programmatically? With the method below, the panes are side by side horizontally, but can not be resized manullay and all panes have the same width. The demand is every pane can be resized manually andc can have specific width ...
- Tue Feb 23, 2021 5:01 am
- Forum: C++ Development
- Topic: How to do custom draw after wxListCtrl drawing by itself?
- Replies: 8
- Views: 306
- Tue Feb 23, 2021 2:26 am
- Forum: C++ Development
- Topic: How to do custom draw after wxListCtrl drawing by itself?
- Replies: 8
- Views: 306
Re: How to do custom draw after wxListCtrl drawing by itself?
The underlying native control probably has that feature. Try researching if that's true, and if yes, how to enable it. Otherwise the only idea i could think of would be a small 2 pixel high wxPanel as child of the listctrl. What OS? CListCtrl in MFC can do it, because custom draw can be done after ...
- Mon Feb 22, 2021 6:37 am
- Forum: C++ Development
- Topic: How to do custom draw after wxListCtrl drawing by itself?
- Replies: 8
- Views: 306
- Mon Feb 22, 2021 2:32 am
- Forum: C++ Development
- Topic: How to do custom draw after wxListCtrl drawing by itself?
- Replies: 8
- Views: 306
How to do custom draw after wxListCtrl drawing by itself?
With event.Skip() in OnPaint, custom draw in OnPaint will always before the control drawing itself, as a result, the custom drawings will be overwritten.