Search found 78 matches

by shawnee
Fri Jul 21, 2023 3:46 pm
Forum: C++ Development
Topic: How to treat large amount of items in wxGrid?
Replies: 1
Views: 313

How to treat large amount of items in wxGrid?

I have over ten thousands items to insert wxGrid (four columns, three columns have own cell render and editor).
wxGrid seems very slow to draw.
Is there any fast way to display many items or virtual way like wxListCtrl does?
Thanks!
by shawnee
Fri Sep 09, 2022 12:18 am
Forum: C++ Development
Topic: wxTipWindow vs wxToolTip used inside wxMathPlot class
Replies: 11
Views: 1349

Re: wxTipWindow vs wxToolTip used inside wxMathPlot class

doublemax wrote: Tue Sep 06, 2022 5:37 am
shawnee wrote: Tue Sep 06, 2022 2:27 am Could you please tell me why? Thanks!
Not exactly, i haven't looked in its source, it just seems buggy.

Maybe it would be easier if you just create a permanent, dedicated window, whose visibility, text and position you change if needed.
Thank you doublemax. That's the final way anyway.
by shawnee
Tue Sep 06, 2022 2:27 am
Forum: C++ Development
Topic: wxTipWindow vs wxToolTip used inside wxMathPlot class
Replies: 11
Views: 1349

Re: wxTipWindow vs wxToolTip used inside wxMathPlot class

I think wxTipWindow is just unsuitable for cases when you create a new tooltip every time the mouse moves. Thank you doublemax! Yes, that's just the way that I create a new tooltip every time the mouse moves when I use wxTipWindow. I quoted from wxHtmlHelpController::DisplayTextPopup(). Could you p...
by shawnee
Mon Sep 05, 2022 12:18 pm
Forum: C++ Development
Topic: wxTipWindow vs wxToolTip used inside wxMathPlot class
Replies: 11
Views: 1349

Re: wxTipWindow vs wxToolTip used inside wxMathPlot class

But I'm really don't know in my first screen shot, there are so many wxTipWindow shown on the screen. Maybe, the background window not get re-paint? Thanks. That definitely looks like a bug, but i don't know if it's in wxTipWindow or wxMathPlot. But do you really need wxTipWindow, doesn't the nativ...
by shawnee
Mon Sep 05, 2022 12:04 pm
Forum: Component Writing
Topic: wxWidgets modern look
Replies: 6
Views: 13434

Re: wxWidgets modern look

nice looks, indeed!
by shawnee
Fri Apr 08, 2022 4:14 am
Forum: C++ Development
Topic: using SetMinSize or SetSizeHints problem in wxScrolledWindow
Replies: 4
Views: 458

Re: using SetMinSize or SetSizeHints problem in wxScrolledWindow

Sizers work differently when they're assigned to a wxScrolledWindow. They will only look at the virtual size, not the visible size. Therefore making the window smaller will not cause a re-layout. In order to achieve what you want, you'd need to catch the wxEVT_SIZE event of the scrolled window, and...
by shawnee
Thu Apr 07, 2022 1:47 pm
Forum: C++ Development
Topic: using SetMinSize or SetSizeHints problem in wxScrolledWindow
Replies: 4
Views: 458

Re: using SetMinSize or SetSizeHints problem in wxScrolledWindow

demonstration codes: void Create() { wxScrolledWindow* scrollwin = new wxScrolledWindow(parent, wxID_ANY, wxDefaultPosition, wxSize(300, 400), wxVSCROLL|wxNO_BORDER); wxBoxSizer* scrollwinSizer = new wxBoxSizer(wxVERTICAL); scrollwin->SetSizer(scrollwinSizer ); { wxTreeCtrl* optTree = new wxTreeCtrl...
by shawnee
Thu Apr 07, 2022 1:32 pm
Forum: C++ Development
Topic: using SetMinSize or SetSizeHints problem in wxScrolledWindow
Replies: 4
Views: 458

using SetMinSize or SetSizeHints problem in wxScrolledWindow

Hi all, I'm using 3.1.0 and I'm always tricked by SetMinSize or SetSizeHints these days. I have a wxScrolledWindow and some GUI controls placed in it. I want to change the size of one child control(like wxTreeCtrl) to fit the whole height of wxScrolledWindow. If I use SetMinSize or SetSizeHints to s...
by shawnee
Wed Jun 23, 2021 6:48 am
Forum: C++ Development
Topic: How to capture wxSizeEvent caused by double-clicking on window titlebar?
Replies: 6
Views: 1922

Re: How to capture wxSizeEvent caused by double-clicking on window titlebar?

New Pagodi wrote: Wed Jun 23, 2021 4:34 am This can probably be handled with the maximize event.
wxMaximizeEvent can only capture the maximize message, it can't capture the size changing by double-clicking on window titlebar.
by shawnee
Wed Jun 23, 2021 6:36 am
Forum: C++ Development
Topic: How to capture wxSizeEvent caused by double-clicking on window titlebar?
Replies: 6
Views: 1922

Re: How to capture wxSizeEvent caused by double-clicking on window titlebar?

doublemax wrote: Wed Jun 23, 2021 5:34 am You should still get a size event in that case. What platform are you on?
Windows 10
by shawnee
Wed Jun 23, 2021 3:13 am
Forum: C++ Development
Topic: How to capture wxSizeEvent caused by double-clicking on window titlebar?
Replies: 6
Views: 1922

How to capture wxSizeEvent caused by double-clicking on window titlebar?

Hi all,

I bind wxSizeEvent on wxFrame, but I can't receive the resize event if double-clicking on window titlebar. It can be received if I drag the border of window.
How should I do?

Thanks!
by shawnee
Mon Jun 29, 2020 6:37 am
Forum: C++ Development
Topic: do preview in wxFileDialog
Replies: 2
Views: 580

do preview in wxFileDialog

Hi all, Is it possible do something about preview in wxFileDialog when I select a file? Surely, this file has its special format, I need popup another panel to show it. I checked the document about wxFileDialog, it seems no way to hook up my callback. How can I do this or other ways to do it? Thanks!
by shawnee
Tue Apr 07, 2020 7:36 am
Forum: C++ Development
Topic: Is it possible set label of buttonbar individually?
Replies: 0
Views: 13236

Is it possible set label of buttonbar individually?

I know use
artProvider->SetFont(wxRIBBON_ART_BUTTON_BAR_LABEL_FONT, ft);
artProvider->SetColour(wxRIBBON_ART_BUTTON_BAR_LABEL_COLOUR, color);
could be done.
But it works for all of lable in ribbonbar.
Can I set font and color of label for buttonbar individually?

Thanks!
by shawnee
Tue Apr 07, 2020 7:33 am
Forum: C++ Development
Topic: How to display math formula or symbol in wxWidgets?
Replies: 7
Views: 2815

Re: How to display math formula or symbol in wxWidgets?

ollydbg23 wrote: Tue Mar 24, 2020 12:57 am https://github.com/NanoMichael/cLaTeXMath

I found another good latex render library.
Thank you, ollydbg23!
It looks good.