Search found 67 matches

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

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: 559

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: 603

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.
by shawnee
Sun Mar 22, 2020 3:58 am
Forum: C++ Development
Topic: How to display math formula or symbol in wxWidgets?
Replies: 7
Views: 603

How to display math formula or symbol in wxWidgets?

Hi there,

How can I display math formula or symbol in wxWidgets? I don't want image method, it's not flexible to change in codes.
Is there any better way? or a kind of Tex render for wxWidgets?

Thanks a lot!
by shawnee
Fri Apr 12, 2019 2:25 pm
Forum: C++ Development
Topic: How to know the size of row label or col label?
Replies: 9
Views: 611

Re: How to know the size of row label or col label?

Another question, no way to drag move row label?
by shawnee
Fri Apr 12, 2019 2:24 pm
Forum: C++ Development
Topic: How to know the size of row label or col label?
Replies: 9
Views: 611

Re: How to know the size of row label or col label?

the parent of win is GetGridColLabelWindow()
by shawnee
Fri Apr 12, 2019 2:23 pm
Forum: C++ Development
Topic: How to know the size of row label or col label?
Replies: 9
Views: 611

Re: How to know the size of row label or col label?

If I want to know coordinates of one of row/col label, is there this kind of member function? CellToRect can get position in logical coordinates of cell. I don't think so. What for do you need this information? It's for a very special purpose. I want to know the position of row/col label, then stic...
by shawnee
Fri Apr 12, 2019 11:52 am
Forum: C++ Development
Topic: How to know the size of row label or col label?
Replies: 9
Views: 611

Re: How to know the size of row label or col label?

I assume you're talking about wxGrid. GetColLabelSize () const GetColSize (int col) const GetRowLabelSize () const GetRowSize (int row) const If I want to know coordinates of one of row/col label, is there this kind of member function? CellToRect can get position in logical coordinates of cell. Tha...
by shawnee
Fri Apr 12, 2019 8:37 am
Forum: C++ Development
Topic: How to know the size of row label or col label?
Replies: 9
Views: 611

How to know the size of row label or col label?

Hi,

About cell, we can use CellToRect(int row, int col), but what about row label or col label?
Thanks!
by shawnee
Tue Apr 02, 2019 5:54 am
Forum: C++ Development
Topic: How to disable wxRibbonPage mouse clicking response
Replies: 8
Views: 659

Re: How to disable wxRibbonPage mouse clicking response

ONEEYEMAN wrote:
Fri Mar 29, 2019 2:30 pm
Hi,
Just to clarify:
- all events that ends with "-ed" are NOT vetoable. They are fired when everything is already occurred.
- all event that ends with "-ing" ARE vetoable. They are fired before the thing occurred.

Thank you.
Thank you, ONEEYEMAN!
by shawnee
Tue Apr 02, 2019 5:54 am
Forum: C++ Development
Topic: How to disable wxRibbonPage mouse clicking response
Replies: 8
Views: 659

Re: How to disable wxRibbonPage mouse clicking response

Hi doublemax, do you know how to change the text color or text font of ribbon page label ? Thanks! // wxRibbonBar* m_ribbon; wxRibbonArtProvider *custom_artprovider = m_ribbon->GetArtProvider()->Clone(); wxFont labelFont( 8, wxFONTFAMILY_ROMAN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxT("Luc...
by shawnee
Fri Mar 29, 2019 6:27 am
Forum: C++ Development
Topic: How to disable wxRibbonPage mouse clicking response
Replies: 8
Views: 659

Re: How to disable wxRibbonPage mouse clicking response

Hi doublemax,

do you know how to change the text color or text font of ribbon page label ? Thanks!
by shawnee
Fri Mar 29, 2019 1:00 am
Forum: C++ Development
Topic: How to disable wxRibbonPage mouse clicking response
Replies: 8
Views: 659

Re: How to disable wxRibbonPage mouse clicking response

Catch the wxEVT_RIBBONBAR_PAGE_CHANGING event. Use wxRibbonBarEvent::GetPage() to get the page the systems wants to change to. If you want to avoid this, call event.Veto(). https://docs.wxwidgets.org/trunk/classwx_ribbon_bar.html Catching wxEVT_RIBBONBAR_PAGE_CHANGING event is more graceful. I used...
by shawnee
Thu Mar 28, 2019 3:23 am
Forum: C++ Development
Topic: How to disable wxRibbonPage mouse clicking response
Replies: 8
Views: 659

How to disable wxRibbonPage mouse clicking response

If I want to disable mouse clicking response on some wxRibbonPage, how to do it?
I used rbpage->Disable(), but this function just disable all of widgets in this page, this page still can be switched. I'm desire that the tab of this ribbon page can not response the clicking.

Thanks!