Search found 89 matches

by Anil8753
Thu Jun 23, 2016 7:07 am
Forum: C++ Development
Topic: Drawing is not correct wxRendererNative::Get().DrawPushButton() on Mac
Replies: 1
Views: 376

Drawing is not correct wxRendererNative::Get().DrawPushButton() on Mac

Drawing is not correct wxRendererNative::Get().DrawPushButton() on Mac, whereas other drawings (DrawCheckBox, DrawRadioBitmap) are perfect. In the attached screen shot, 4 buttons are there. Hold : wxButton Process and Hold : wxRendererNative::Get().DrawPushButton() checkbox : wxRendererNative::Get()...
by Anil8753
Tue Jun 21, 2016 10:27 am
Forum: Platform Related Issues
Topic: set Font generic wxDataViewCtrl on Mac
Replies: 1
Views: 784

Re: set Font generic wxDataViewCtrl on Mac

Yeah, It was very simple. wxDataViewCtrl is a composite control (wxDataViewHeaderWindow and wxDataViewMainWindow).

Both wxDataViewHeaderWindow and wxDataViewMainWindow uses the font of its parent. wxDataViewCtrl in this case.
Just I need to use wxDataViewCtrl::SetFont() and things work.
by Anil8753
Tue Jun 21, 2016 10:09 am
Forum: Platform Related Issues
Topic: Generic wxDataViewCtrl Header height is not proper on Mac
Replies: 1
Views: 773

Re: Generic wxDataViewCtrl Header height is not proper on Mac

Found a way to solve this issue. wxRendererNative has the following virtual function // Returns the default height of a header button, either a fixed platform // height if available, or a generic height based on the window's font. virtual int GetHeaderButtonHeight(wxWindow *win) = 0; As I am using t...
by Anil8753
Fri Jun 17, 2016 3:44 am
Forum: Platform Related Issues
Topic: Strange behaviour of wxDataViewCtrl on Mac
Replies: 7
Views: 1467

Re: Strange behaviour of wxDataViewCtrl on Mac

In one place of my application, I am using huge customisation (full colourful drawing) in wxDataViewCtrl via custom renderers . Initially I develop on Windows, and when I tried the native implementation on Mac, things went horrible. I found issues like: 1. Few functions are not available in native i...
by Anil8753
Thu Jun 16, 2016 11:56 am
Forum: Platform Related Issues
Topic: Strange behaviour of wxDataViewCtrl on Mac
Replies: 7
Views: 1467

Re: Strange behaviour of wxDataViewCtrl on Mac

I tried with wx3.1 on the same 10.11, I am not facing that much distortion. But still it has issue with paint. Whenever I click on a header, all the header left to clicked header, text goes blur. If click 4 to 5 times, leads to kind of unreadable header text. Please check the screen shot attached. S...
by Anil8753
Thu Jun 16, 2016 11:18 am
Forum: Platform Related Issues
Topic: set Font generic wxDataViewCtrl on Mac
Replies: 1
Views: 784

set Font generic wxDataViewCtrl on Mac

Default font size in generic wxDataViewCtrl does not look good. Row and Header height is less to accommodate rendered text height. Off course SetRowHeight() function is available, we can increase the row height, but big text does not look good. Is there any way to set the font size in generic wxData...
by Anil8753
Thu Jun 16, 2016 11:09 am
Forum: Platform Related Issues
Topic: Generic wxDataViewCtrl Header height is not proper on Mac
Replies: 1
Views: 773

Generic wxDataViewCtrl Header height is not proper on Mac

I am using generic wxDataViewCtrl on Mac. wxDataViewCtrl Header height is not proper on Mac. It is very less, Please check the screen shot. Is there any way to increase the height? I tried to get HeaderWindow and tried to set SetSize(-1, 40). It is not honoured. code snippet to get header window: wx...
by Anil8753
Wed Jun 08, 2016 3:42 am
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 3551

Re: Row selection in wxDataViewCtrl is based on index basis

iwbnwif,
What should be the action item, I feel it is a bug.
by Anil8753
Tue Jun 07, 2016 5:55 pm
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 3551

Re: Row selection in wxDataViewCtrl is based on index basis

As a end user behaviour must be same, whether it is generic implementation of wxDataViewCtrl/wxDataViewListCtrl or native one. It should be same as standard list control.
by Anil8753
Tue Jun 07, 2016 5:28 pm
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 3551

Re: Row selection in wxDataViewCtrl is based on index basis

I missed one important information. I am using wxDataViewCtrl generic implementation on both Windows and OSX.
by Anil8753
Tue Jun 07, 2016 4:57 pm
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 3551

Re: Row selection in wxDataViewCtrl is based on index basis

I did not create a native list control, but I checked windows task manager and Add Remove Programs both of them use SysListView32 window class. They retain list row than row index. I checked with Microsoft outlook also (it is not a SysListView32 class, it is a custom control), but it shows the same ...
by Anil8753
Tue Jun 07, 2016 11:32 am
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 3551

Re: Row selection in wxDataViewCtrl is based on index basis

I did not have trac account. I created account also, but email verification is pending as I did not get verification token on my email id.
If possible you may log this issue.
by Anil8753
Tue Jun 07, 2016 6:58 am
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 3551

Re: Row selection in wxDataViewCtrl is based on index basis

My apologies, I could not make my question clear. wxDataViewListCtrl is variant of wxDataViewCtrl . wxDataViewListCtrl having the same issue. Issue is, control is not remembering the selected item (that is wxDataViewItem ), rather it remembers it's selected index. While sorting item index may change.
by Anil8753
Mon Jun 06, 2016 10:33 am
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 3551

Row selection in wxDataViewCtrl is based on index basis

I have a wxDataViewCtrl. For simplicity suppose there is only one column. data is listed like: ----------------- Header ----------------- text1 text2 text3 text4 Suppose I selected text1 which is first row. Now if click on header to sort data in descending order. Data is sorted but new selection is ...