Search found 81 matches

by Ronald
Wed Feb 27, 2019 4:15 am
Forum: Platform Related Issues
Topic: What about QTableView with native implementation?
Replies: 4
Views: 143

What about QTableView with native implementation?

I think QTableView in Qt is more flex and easy to understand, but it is slower, if it is implemented natively (i.e. use dc), will it be faster considerably? QTableView uses "virtual function" as interface mechanism, I don't think it slows by the mechanism. How do you think about QTableView with nati...
by Ronald
Thu Feb 21, 2019 5:43 pm
Forum: C++ Development
Topic: wxDataViewListCtrl diffent alignment for col header & items
Replies: 6
Views: 104

Re: wxDataViewListCtrl diffent alignment for col header & items

ONEEYEMAN wrote:
Thu Feb 21, 2019 5:30 pm
Hi,
What wx version?
What OS/toolkit?
Did you look at the docs/sample?

Thank you.
wx 3.1.2
OS Windows 10 Pro N
I've checked the doc , found no solution.
I should check the samples first, just forgot that, wx's samples are very helpful.
by Ronald
Thu Feb 21, 2019 5:18 pm
Forum: C++ Development
Topic: wxDataViewListCtrl diffent alignment for col header & items
Replies: 6
Views: 104

Re: wxDataViewListCtrl diffent alignment for col header & items

ONEEYEMAN wrote:
Thu Feb 21, 2019 3:40 pm
Are you asking how to do that or this is the behaviour you see and you don't want it?
How to do that (i.e. header and items have different alignment) ?
by Ronald
Thu Feb 21, 2019 11:49 am
Forum: C++ Development
Topic: wxDataViewListCtrl diffent alignment for col header & items
Replies: 6
Views: 104

wxDataViewListCtrl diffent alignment for col header & items

eg. for one col, the header of the col is center aligned, and the items of the col are right aligned
any built in way?
by Ronald
Thu Feb 21, 2019 8:11 am
Forum: C++ Development
Topic: Can wxPropertyGrid have empty value for wxFloatProperty?
Replies: 1
Views: 44

Can wxPropertyGrid have empty value for wxFloatProperty?

By default the display value is 0, any way to make it empty?
by Ronald
Sun Feb 10, 2019 6:07 pm
Forum: C++ Development
Topic: wxPropertyGrid size problem
Replies: 1
Views: 104

wxPropertyGrid size problem

  • Set size in wxPropertyGrid::wxPropertyGrid works, why doesn't wxPropertyGrid::SetSizer work?
  • How to make the height of wxPropertyGrid fit perfectly, i.e. no vertical scrollbar & no extra blank at the bottom of the control
by Ronald
Sun Feb 10, 2019 3:34 am
Forum: Compiler / Linking / IDE Related
Topic: Any way to integrate the doc to HelpViewer of Visual Studio?
Replies: 0
Views: 74

Any way to integrate the doc to HelpViewer of Visual Studio?

Now I use the .chm file, which is quite similar to that in HelpViewer of Visual Studio, so I think it may not be very hard.
If there is another IDE that can integerate the doc, please tell me, thanks.
by Ronald
Sat Feb 09, 2019 2:41 pm
Forum: C++ Development
Topic: wxDataViewListCtrl bug about scrollbar
Replies: 10
Views: 413

Re: wxDataViewListCtrl bug about scrollbar

doublemax wrote:
...but when I resize the frame, the horizontal scrollbar doesn't show until the last-1 col (titled "ddd") has not enough space to show.
Please add this to the ticket on Trac. Before that it wasn't clear (at least to me) what the bug was.
added
by Ronald
Sat Feb 09, 2019 11:30 am
Forum: C++ Development
Topic: wxDataViewListCtrl bug about scrollbar
Replies: 10
Views: 413

Re: wxDataViewListCtrl bug about scrollbar

It's fine, but there is a bug Once again, wxWidgets version? As I already wrote above, I believe there were quite a few changes regarding the last column resizing https://github.com/wxWidgets/wxWidgets/search?o=desc&q=wxdataviewctrl&s=committer-date&type=Commits I.e., can you reproduce "the bug" wi...
by Ronald
Sat Feb 09, 2019 10:18 am
Forum: C++ Development
Topic: wxDataViewListCtrl bug about scrollbar
Replies: 10
Views: 413

Re: wxDataViewListCtrl bug about scrollbar

What wxWidgets version you have 3.1.2 The width of the column is not the same as the width of the strings displayed in the column header or rows. You can see whether the column is fully displayed when you see the line of the right border of its head. If you need a different column width you need to...
by Ronald
Sat Feb 09, 2019 8:19 am
Forum: C++ Development
Topic: wxDataViewListCtrl bug about scrollbar
Replies: 10
Views: 413

Re: wxDataViewListCtrl bug about scrollbar

doublemax wrote:You also didn't let the control expand in horizontal direction.

Replace

Code: Select all

sizer->Add(dvlc, 1);
with

Code: Select all

sizer->Add(dvlc, 1, wxEXPAND);
It's fine, but there is a bug
Capture3.PNG
Capture3.PNG (5.36 KiB) Viewed 385 times
by Ronald
Sat Feb 09, 2019 8:11 am
Forum: C++ Development
Topic: wxDataViewListCtrl bug about scrollbar
Replies: 10
Views: 413

Re: wxDataViewListCtrl bug about scrollbar

The horizontal scrollbar logically appears only when necessary, i.e., the sum of columns' widths < the control's width, this is not the case in the screenshot. When the sum of columns' width is not enough, still no horizontal scrollbar. original Capture1.PNG after resizing manually Capture2.PNG
by Ronald
Sat Feb 09, 2019 6:01 am
Forum: C++ Development
Topic: wxDataViewListCtrl bug about scrollbar
Replies: 10
Views: 413

wxDataViewListCtrl bug about scrollbar

I can't upload image on https://trac.wxwidgets.org , so I posted here for a image link. trac: https://trac.wxwidgets.org/ticket/18343 Capture.PNG MainFrame.h #pragma once class MainFrame : public wxFrame { DECLARE_EVENT_TABLE() public: MainFrame(wxWindow* parent, wxWindowID id = wxID_ANY, const wxSt...
by Ronald
Mon Jan 21, 2019 3:41 pm
Forum: C++ Development
Topic: Hide margin and set fixed column size for wxPropertyGrid
Replies: 0
Views: 101

Hide margin and set fixed column size for wxPropertyGrid

wxPropertyGrid * pPropGrid_Evaluate = new wxPropertyGrid(this, wxID_ANY); pPropGrid_Evaluate->SetMarginColour(*wxRED); pPropGrid_Evaluate->EnableCategories(false); //pPropGrid_Evaluate->CenterSplitter(true); wxStringProperty * p1 = new wxStringProperty(wxT("ID"), wxPG_LABEL); p1->SetValue(wxT("aaa"...
by Ronald
Mon Dec 31, 2018 5:00 pm
Forum: C++ Development
Topic: wxMessageQueue::Post never blocks?
Replies: 6
Views: 365

Re: wxMessageQueue::Post never blocks?

That's not a valid test as both locks are done in the same thread. Right, blocks in difference threads. Difference behaviors in differenct situations, this is a little complex. I know the purpose is to check deadlock, but it means that it should always check the return value when locking, and if (d...