Search found 62 matches

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

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

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

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

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

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

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

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

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

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

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!
by shawnee
Thu Mar 21, 2019 4:57 am
Forum: C++ Development
Topic: Get selected column in virtual wxListCtrl
Replies: 12
Views: 1938

Re: Get selected column in virtual wxListCtrl

I found this trick is not effective under Win7! :-(
by shawnee
Tue Feb 12, 2019 11:40 am
Forum: C++ Development
Topic: How to get the actual size of panel?
Replies: 3
Views: 118

Re: How to get the actual size of panel?

forgive my stupid, I hiden the panel in another place, so the size is always zero.
by shawnee
Thu Jan 31, 2019 4:17 am
Forum: C++ Development
Topic: How to get the actual size of panel?
Replies: 3
Views: 118

Re: How to get the actual size of panel?

Thanks PB! The real things is something complicated. I created a panel and add this panel to a wxAuiManager. Although I set a initial size for this parent panel, but the real size should be larger than the initial size because of stretch by AUI manager. wxPanel *topPanel = new wxPanel(mainFrame); //...
by shawnee
Wed Jan 30, 2019 12:59 pm
Forum: C++ Development
Topic: How to get the actual size of panel?
Replies: 3
Views: 118

How to get the actual size of panel?

if I add a panel to it's parent window without set the size of this panel, how to knonw its actual size? wxBoxSizer * vSizer = parent->GetSizer(); wxPanel * subPanel = new wxPanel(parent, "Ok", wxID_ANY, wxDefaultPosition, wxDefaultSize); vSizer ->Add(subPanel, 0, wxEXPAND | wxALL); wxSize sz = subP...
by shawnee
Fri Dec 07, 2018 6:21 am
Forum: C++ Development
Topic: alignment problem of vertical style toolbar
Replies: 3
Views: 136

Re: alignment problem of vertical style toolbar

ONEEYEMAN wrote:Hi,
Is it reproducible in the toolbar sample?

Thank you.
the codes are not from wxWidgets toolbar sample.
this toolbar is just as an embeded controls into a ribbon panel.