Search found 29 matches
- Tue Feb 01, 2022 7:01 am
- Forum: C++ Development
- Topic: [SOLVED] wxDataViewListCtrl is slow with 100k items from another thread
- Replies: 4
- Views: 493
Re: wxDataViewListCtrl is slow with 100k items from another thread
The idea about "virtual" models is that you don't add items to them, because they don't store the data. You have the data somewhere in your own data structure, and then you implement the 4 abstract methods from wxDataViewListModel based on that. https://docs.wxwidgets.org/trunk/classwx_da...
- Mon Jan 31, 2022 7:30 am
- Forum: C++ Development
- Topic: [SOLVED] wxDataViewListCtrl is slow with 100k items from another thread
- Replies: 4
- Views: 493
Re: wxDataViewListCtrl is slow with 100k items from another thread
Thank you very much for your response `doublemax`! Where exactly do the 100k items come from? Does the thread produce them over time, or do they come all at once from an external source, e.g. a database or a file? I am parsing a large text file. In another thread. I takes approximately 5 seconds to ...
- Sun Jan 30, 2022 6:09 pm
- Forum: C++ Development
- Topic: [SOLVED] wxDataViewListCtrl is slow with 100k items from another thread
- Replies: 4
- Views: 493
[SOLVED] wxDataViewListCtrl is slow with 100k items from another thread
The requirements: 1. 100k lines 2. One of the columns is not text - its custom painted with wxDC*. 3. The items addition is coming from another thread using wxThreadEvent. - Up until now I used wxDataViewListCtrl, but it takes too long to `AppendItem` 100 thousand time. - wxListCtrl (in virtual mode...
- Mon Dec 14, 2020 5:53 pm
- Forum: Platform Related Issues
- Topic: [SOLVED] wxGTK looks bad
- Replies: 10
- Views: 1635
Re: wxGTK looks bad
I found the solution. I had this line in the auto-generated file by wxFormBuilder:
I commented it and everything now looks perfect.
Thank you for your help, every one who replied.
Code: Select all
m_notebook1->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) )
Thank you for your help, every one who replied.
- Sat Dec 12, 2020 6:24 pm
- Forum: Platform Related Issues
- Topic: [SOLVED] wxGTK looks bad
- Replies: 10
- Views: 1635
Re: wxGTK looks bad
Do you see it being bad when you open FormBuilder only? Or it looks bad when you tried to compile and run the code as well? It looks bad in both cases. 1. In wxFormBuilder, it has weird text on tabs and what appears to be window controls from windows (the close and minimize buttons); 2. In my compi...
- Sat Dec 12, 2020 6:01 pm
- Forum: Platform Related Issues
- Topic: [SOLVED] wxGTK looks bad
- Replies: 10
- Views: 1635
- Sat Dec 12, 2020 6:00 pm
- Forum: Platform Related Issues
- Topic: [SOLVED] wxGTK looks bad
- Replies: 10
- Views: 1635
Re: wxGTK looks bad
Sorry, I have no idea about that. TBH, your bad looks good to me and vice versa. In wxFormBuilder, the tabs are barely readable, with white text on very light background. I think I saw something like that recently discussed in wx-users, but it was a theme issue. BTW, does wxFormBuilder and your app...
- Thu Dec 10, 2020 8:22 pm
- Forum: Platform Related Issues
- Topic: [SOLVED] wxGTK looks bad
- Replies: 10
- Views: 1635
Re: wxGTK looks bad
Fixed the links. Sorry about that.
wxWidgets samples look perfect.
wxWidgets version 3.0.5.1 (the `wxgtk3` package on Arch Linux).
wxWidgets samples look perfect.
wxWidgets version 3.0.5.1 (the `wxgtk3` package on Arch Linux).
- Thu Dec 10, 2020 7:43 pm
- Forum: Platform Related Issues
- Topic: [SOLVED] wxGTK looks bad
- Replies: 10
- Views: 1635
[SOLVED] wxGTK looks bad
Here how it looks in wxFormBuilder: 1. https://photos.app.goo.gl/gNUKLTAbmVppdVXA6 Green circle: the tabs look wrong. Red circle: this look like windows GUI elements (I am on Arch Linux). 2. https://photos.app.goo.gl/gbPB4xw9K524qNeu9 3. https://photos.app.goo.gl/SZWnpKAt88ZCN1PJ8 And the final appl...
- Thu Feb 28, 2019 12:38 pm
- Forum: C++ Development
- Topic: wxDataViewListCtrl and wxEVT_DATAVIEW_ITEM_ACTIVATED
- Replies: 4
- Views: 604
Re: wxDataViewListCtrl and wxEVT_DATAVIEW_ITEM_ACTIVATED
Thank you. That helped solve my problem.
- Thu Feb 28, 2019 7:12 am
- Forum: C++ Development
- Topic: wxDataViewListCtrl and wxEVT_DATAVIEW_ITEM_ACTIVATED
- Replies: 4
- Views: 604
Re: wxDataViewListCtrl and wxEVT_DATAVIEW_ITEM_ACTIVATED
wxEVT_DATAVIEW_ITEM_ACTIVATED is an event that is generated for the whole item (row), not a particular column. So GetValue() doesn't make sense here. Oh! I understand now. Thank you. But GetItem() should give you the item. Eh... Could you please give an example of what should I do with GetItem()? I...
- Wed Feb 27, 2019 7:57 pm
- Forum: C++ Development
- Topic: wxDataViewListCtrl and wxEVT_DATAVIEW_ITEM_ACTIVATED
- Replies: 4
- Views: 604
wxDataViewListCtrl and wxEVT_DATAVIEW_ITEM_ACTIVATED
I have a wxDataViewListCtrl. I use a custom wxDataViewCustomRenderer like this: ColoredTextCustomRenderer::ColoredTextCustomRenderer() : wxDataViewCustomRenderer("void*", wxDATAVIEW_CELL_INERT, wxALIGN_CENTER) Please notice that the first parameter to wxDataViewCustomRenderer's constructor...
- Sun Feb 17, 2019 8:37 pm
- Forum: C++ Development
- Topic: wxrichtextctrl and disappearing cursor
- Replies: 8
- Views: 847
Re: wxrichtextctrl and disappearing cursor
doublemax, can you please explain to me why your solution works?
- Sun Feb 17, 2019 8:36 pm
- Forum: C++ Development
- Topic: wxrichtextctrl and disappearing cursor
- Replies: 8
- Views: 847
Re: wxrichtextctrl and disappearing cursor
Does the control properly get focus if you do it manually (click into the window)? If yes, try calling SetFocus at a later time using wxEvtHandler::CallAfter(): https://docs.wxwidgets.org/trunk/classwx_evt_handler.html#a910416e4d0b1f38cec02213b8a0c6a12 That solved the issue. Thanks a a lot everyone...
- Sun Feb 17, 2019 8:35 pm
- Forum: C++ Development
- Topic: wxrichtextctrl and disappearing cursor
- Replies: 8
- Views: 847
Re: wxrichtextctrl and disappearing cursor
The wxRichTextCtrl sample works perfectly, including ALT+TAB.ONEEYEMAN wrote:Hi,
Also check if richtext sample works for you, i.e. the control can get focus and you can type in it after pressing the ALT+TAB.
Thank you.