Search found 235 matches

by Ronald
Thu Mar 18, 2021 2:50 pm
Forum: Open Discussion
Topic: sizer in MFC is quite clever
Replies: 11
Views: 1205

Re: sizer in MFC is quite clever

Kvaz1r wrote:
Thu Mar 18, 2021 12:02 pm
I'm familiar with such layout system, but for me it's not so convenient as automatic sizers in wxWidgets and at least wxBoxSizer is as simple as it could be.
MFC's layout system depends on the initial layout, wx's doesn't depends on the initial layout, in this case wx wins.
by Ronald
Thu Mar 18, 2021 11:27 am
Forum: Open Discussion
Topic: sizer in MFC is quite clever
Replies: 11
Views: 1205

Re: sizer in MFC is quite clever

ONEEYEMAN wrote:
Thu Mar 18, 2021 5:38 am
Hi,
So what is the problem?
Either don't do it manually, or simplify the design.
I'm glad to see it in wxWidgets.
ONEEYEMAN wrote:
Thu Mar 18, 2021 5:38 am
I think what you are proposing is purely aestetic and will not be put in the library.
Also more human/programmer friendly.

I also think it will not be put in the lib.
by Ronald
Thu Mar 18, 2021 3:28 am
Forum: Open Discussion
Topic: sizer in MFC is quite clever
Replies: 11
Views: 1205

Re: sizer in MFC is quite clever

ONEEYEMAN wrote:
Wed Mar 17, 2021 3:15 pm
Why do you think that?
Is there a reason you are not satisfied with wxWidgets layout scheme?
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.
by Ronald
Wed Mar 17, 2021 11:01 am
Forum: Open Discussion
Topic: sizer in MFC is quite clever
Replies: 11
Views: 1205

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...
by Ronald
Wed Mar 17, 2021 7:01 am
Forum: Open Discussion
Topic: sizer in MFC is quite clever
Replies: 11
Views: 1205

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...
by Ronald
Mon Mar 15, 2021 2:08 am
Forum: Open Discussion
Topic: sizer in MFC is quite clever
Replies: 11
Views: 1205

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...
by Ronald
Mon Mar 08, 2021 5:13 am
Forum: C++ Development
Topic: wxFileDialog style changes when calling CenterOnScreen/CenterOnParent/Center
Replies: 5
Views: 585

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...
by Ronald
Sat Mar 06, 2021 5:01 am
Forum: C++ Development
Topic: wxFileDialog style changes when calling CenterOnScreen/CenterOnParent/Center
Replies: 5
Views: 585

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...
by Ronald
Fri Mar 05, 2021 3:33 pm
Forum: C++ Development
Topic: wxFileDialog style changes when calling CenterOnScreen/CenterOnParent/Center
Replies: 5
Views: 585

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...
by Ronald
Fri Mar 05, 2021 2:48 am
Forum: C++ Development
Topic: How to dock more than 3 windows horizontally with wxAuiManager?
Replies: 2
Views: 280

Re: How to dock more than 3 windows horizontally with wxAuiManager?

schorsch_76 wrote:
Thu Mar 04, 2021 6:52 pm
Can you try BestSize() [1] to change its size?
BestSize helps for default size, but no help for 4 for more panes horizontally.
by Ronald
Thu Mar 04, 2021 1:08 pm
Forum: C++ Development
Topic: How to dock more than 3 windows horizontally with wxAuiManager?
Replies: 2
Views: 280

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 ...
by Ronald
Tue Feb 23, 2021 5:01 am
Forum: C++ Development
Topic: How to do custom draw after wxListCtrl drawing by itself?
Replies: 8
Views: 302

Re: How to do custom draw after wxListCtrl drawing by itself?

ONEEYEMAN wrote:
Tue Feb 23, 2021 4:16 am
Or you can switch to wxDataViewListCtrl.
However this might be an overkill for such a small feature...
I've played in samples, it's amazing.
I just don't know there is such a nice control.

Thank you very much.
by Ronald
Tue Feb 23, 2021 2:26 am
Forum: C++ Development
Topic: How to do custom draw after wxListCtrl drawing by itself?
Replies: 8
Views: 302

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 ...
by Ronald
Mon Feb 22, 2021 6:37 am
Forum: C++ Development
Topic: How to do custom draw after wxListCtrl drawing by itself?
Replies: 8
Views: 302

Re: How to do custom draw after wxListCtrl drawing by itself?

ONEEYEMAN wrote:
Mon Feb 22, 2021 4:34 am
What do you mean?
Can you do a screenshot and post some code?
When drag a item in wxListCtrl, show a hint (red line in image) for drop position
drop_hint.png
drop_hint.png (3.39 KiB) Viewed 277 times
by Ronald
Mon Feb 22, 2021 2:32 am
Forum: C++ Development
Topic: How to do custom draw after wxListCtrl drawing by itself?
Replies: 8
Views: 302

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.