Search found 67 matches
- Mon Jun 29, 2020 6:37 am
- Forum: C++ Development
- Topic: do preview in wxFileDialog
- Replies: 2
- Views: 282
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!
- Tue Apr 07, 2020 7:36 am
- Forum: C++ Development
- Topic: Is it possible set label of buttonbar individually?
- Replies: 0
- Views: 1213
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!
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!
- Tue Apr 07, 2020 7:33 am
- Forum: C++ Development
- Topic: How to display math formula or symbol in wxWidgets?
- Replies: 7
- Views: 978
Re: How to display math formula or symbol in wxWidgets?
Thank you, ollydbg23!ollydbg23 wrote: ↑Tue Mar 24, 2020 12:57 amhttps://github.com/NanoMichael/cLaTeXMath
I found another good latex render library.
It looks good.
- Sun Mar 22, 2020 7:06 am
- Forum: C++ Development
- Topic: How to display math formula or symbol in wxWidgets?
- Replies: 7
- Views: 978
Re: How to display math formula or symbol in wxWidgets?
I mean this kind of math formula or express:
https://upload.wikimedia.org/wikipedia/ ... ession.png
https://upload.wikimedia.org/wikipedia/ ... ession.png
- Sun Mar 22, 2020 3:58 am
- Forum: C++ Development
- Topic: How to display math formula or symbol in wxWidgets?
- Replies: 7
- Views: 978
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!
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!
- 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: 853
Re: How to know the size of row label or col label?
Another question, no way to drag move row label?
- 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: 853
Re: How to know the size of row label or col label?
the parent of win is GetGridColLabelWindow()
- 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: 853
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...
- 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: 853
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...
- 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: 853
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!
About cell, we can use CellToRect(int row, int col), but what about row label or col label?
Thanks!
- Tue Apr 02, 2019 5:54 am
- Forum: C++ Development
- Topic: How to disable wxRibbonPage mouse clicking response
- Replies: 8
- Views: 941
- Tue Apr 02, 2019 5:54 am
- Forum: C++ Development
- Topic: How to disable wxRibbonPage mouse clicking response
- Replies: 8
- Views: 941
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...
- Fri Mar 29, 2019 6:27 am
- Forum: C++ Development
- Topic: How to disable wxRibbonPage mouse clicking response
- Replies: 8
- Views: 941
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!
do you know how to change the text color or text font of ribbon page label ? Thanks!
- Fri Mar 29, 2019 1:00 am
- Forum: C++ Development
- Topic: How to disable wxRibbonPage mouse clicking response
- Replies: 8
- Views: 941
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...
- Thu Mar 28, 2019 3:23 am
- Forum: C++ Development
- Topic: How to disable wxRibbonPage mouse clicking response
- Replies: 8
- Views: 941
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!
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!