Search found 80 matches

by Anil8753
Mon Jul 03, 2017 10:31 am
Forum: C++ Development
Topic: How to sort columns in a wxDataViewListCtrl
Replies: 2
Views: 584

Re: How to sort columns in a wxDataViewListCtrl

wxEVT_DATAVIEW_COLUMN_SORTED event gets fired after you click on a column for sorting and sorting is done. use the wxEVT_DATAVIEW_COLUMN_HEADER_CLICK event if you want to sort initiating event see the datavgen.cpp void OnClick(wxHeaderCtrlEvent& event) { FinishEditing(); const unsigned idx = event....
by Anil8753
Mon Jul 03, 2017 10:27 am
Forum: C++ Development
Topic: wxBitmapButton Transparency
Replies: 1
Views: 510

Re: wxBitmapButton Transparency

const wxBitmap bmpNormal = ... ; // transparent png const wxBitmap bmpSelected = ... ; // transparent png wxButton* pBtn = new wxButton(this, wxID_ANY, wxEmptyString, wxDefaultPosition, bmpNormal.GetSize(), wxTRANSPARENT_WINDOW | wxBORDER_NONE); pBtn->SetBitmap(bmpNormal); pBtn->SetBitmapHover(bmpS...
by Anil8753
Fri Jun 30, 2017 3:41 am
Forum: C++ Development
Topic: Make generic wxDataViewCtrl rows non-selectable
Replies: 4
Views: 795

Re: Make generic wxDataViewCtrl rows non-selectable

I feel in native OSX version it is possible to make a row non-selectable. I am using the generic version on both Win and Mac.
by Anil8753
Thu Jun 29, 2017 12:19 pm
Forum: C++ Development
Topic: Make generic wxDataViewCtrl rows non-selectable
Replies: 4
Views: 795

Re: Make generic wxDataViewCtrl rows non-selectable

Yeah, you are right. I tried the approach given by you. It is working but at the same time, it is opening another set of issues in expand/collapse button functionality. Now, I am capturing the selection change event and if selected item is not of my interest, I am de-selecting it back. :? I know it ...
by Anil8753
Thu Jun 29, 2017 9:39 am
Forum: C++ Development
Topic: Make generic wxDataViewCtrl rows non-selectable
Replies: 4
Views: 795

Make generic wxDataViewCtrl rows non-selectable

Is there any way make few wxDataViewItem (row) selectable and few non-selectable. I am using generic wxDataViewCtrl.

I found wxEVT_DATAVIEW_SELECTION_CHANGED triggers after selection change is done. There is no EVT_DATAVIEW_SELECTION_CHANGING event, there I can stop this event.
by Anil8753
Thu Mar 30, 2017 7:27 am
Forum: Component Writing
Topic: Efficient way of display thumbnails
Replies: 16
Views: 5619

Re: Efficient way of display thumbnails

wxWrapSizer can be used. Only thing is the performance when I want to treat as wxDataViewCtrl (lots of add/delete/update) in the items.
Did you guys found some solution? My requirement is to display 10K image items.
by Anil8753
Thu Mar 23, 2017 3:57 am
Forum: Component Writing
Topic: Efficient way of display thumbnails
Replies: 16
Views: 5619

Re: Efficient way of display thumbnails

@Ken_Afford
Did you get solution?
by Anil8753
Mon Feb 20, 2017 10:41 am
Forum: C++ Development
Topic: Simple Http server
Replies: 1
Views: 935

Simple Http server

I was looking for a simple Http server in wxWidgets. I found wxHTTP but looks it is for to create Http client, I am looking for Server.

Also found wxHTTPServer https://sourceforge.net/projects/wxhttpserver/
But this is GPL, I can not use this one.
by Anil8753
Mon Jan 09, 2017 3:58 am
Forum: C++ Development
Topic: Programatically set/unset top-window resizing
Replies: 3
Views: 995

Re: Programatically set/unset top-window resizing

You are correct doublemax, It is not working under Mac OS. Could you advise me how to achieve under Mac as well.
by Anil8753
Mon Jan 09, 2017 3:49 am
Forum: Platform Related Issues
Topic: Disable resizing wxFrame/wxWindow on Mac
Replies: 3
Views: 890

Re: Disable resizing wxFrame/wxWindow on Mac

SetWindowStyle is a just wrapper over SetWindowStyleFlag.

"Please note that some styles cannot be changed after the window creation and that Refresh() might need to be called after changing the others for the change to take place immediately."

Tried the above but useless. :evil:
by Anil8753
Fri Jan 06, 2017 4:17 am
Forum: Platform Related Issues
Topic: Disable resizing wxFrame/wxWindow on Mac
Replies: 3
Views: 890

Disable resizing wxFrame/wxWindow on Mac

I want to stop the resizing of wxFrame for a time period. To achieve I used the following line on the run time. SetWindowStyle(wxDEFAULT_FRAME_STYLE & ~(wxRESIZE_BORDER | wxMAXIMIZE_BOX)) This is as per documentation (http://docs.wxwidgets.org/trunk/classwx_frame.html) On windows, it works as expect...
by Anil8753
Wed Jan 04, 2017 6:39 am
Forum: Platform Related Issues
Topic: Taking screenshot is zoomed and clipped under Retina display
Replies: 3
Views: 844

Re: Taking screenshot is zoomed and clipped under Retina display

wxWidgets 2.9 handled it nicely and this issue came in wxWidgets 3.x.x When I checked the changes, I found the difference in wxGCDCImpl::DoStretchBlit implementation in 2.9 and 3.0 wxWidgets 2.9 bool wxGCDCImpl::DoStretchBlit( wxCoord xdest, wxCoord ydest, wxCoord dstWidth, wxCoord dstHeight, wxDC *...
by Anil8753
Mon Jan 02, 2017 6:58 am
Forum: Platform Related Issues
Topic: Taking screenshot is zoomed and clipped under Retina display
Replies: 3
Views: 844

Taking screenshot is zoomed and clipped under Retina display

I am trying to take a screenshot of a window. I have used the following code. wxClientDC bgdc(this); int width = bgdc.GetSize().GetWidth(); int height = bgdc.GetSize().GetHeight(); //Create a Bitmap that will later on hold the screenshot image //Note that the Bitmap must have a size big enough to ho...
by Anil8753
Sat Oct 29, 2016 6:07 pm
Forum: Platform Related Issues
Topic: popup wxPopupTransientWindow with wxDialog as parent on Mac
Replies: 3
Views: 772

Re: popup wxPopupTransientWindow with wxDialog as parent on Mac

This bug is already reported ( http://trac.wxwidgets.org/ticket/17406 ) After reading the description, I came to know that if I create wxPopupWindow/wxPopupTransientWindow into modal wxDialog constructor, then wxDialog is added as it's parent. So do not create wxPopupWIndow in modal wxDialog constru...