Search found 70 matches

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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...