Search found 93 matches

by Anil8753
Fri Jun 30, 2017 3:41 am
Forum: C++ Development
Topic: Make generic wxDataViewCtrl rows non-selectable
Replies: 4
Views: 1478

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

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

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

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

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

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

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

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

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 ex...
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: 1495

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

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

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...
by Anil8753
Thu Oct 27, 2016 9:39 am
Forum: Platform Related Issues
Topic: popup wxPopupTransientWindow with wxDialog as parent on Mac
Replies: 3
Views: 1472

popup wxPopupTransientWindow with wxDialog as parent on Mac

I have a modal wxDialogBox with a push button. On click on this push button, I am launching a wxPopupTransientWindow . This wxPopupTransientWindow has some controls like wxTextCtrl and wxButton. This is working perfectly under MSW, on Mac on button click wxPopupTransientWindow is get popups but wxPo...
by Anil8753
Thu Oct 27, 2016 9:30 am
Forum: C++ Development
Topic: Get wxMenu popup width
Replies: 4
Views: 1304

Re: Get wxMenu popup width

I want to popup menu on click of a button. You can say just like split button