Search found 306 matches

by Ronald
Mon Oct 04, 2021 1:40 pm
Forum: Compiler / Linking / IDE Related
Topic: Failed to build wxWidgets on Linux
Replies: 7
Views: 4614

Re: Failed to build wxWidgets on Linux

From f757fccf07d6b4bab2c9672f6b71dc3872e8afd5 Mon Sep 17 00:00:00 2001 From: Tim Stahlhut <stahta01@gmail.com> Date: Mon, 4 Oct 2021 03:04:06 -0400 Subject: Possible pyramid sample fix for wayland --- samples/opengl/pyramid/oglpfuncs.cpp | 31 +++++++++++++++++++--------- 1 file changed, 21 insertio...
by Ronald
Mon Oct 04, 2021 1:16 pm
Forum: Compiler / Linking / IDE Related
Topic: Failed to build wxWidgets on Linux
Replies: 7
Views: 4614

Re: Failed to build wxWidgets on Linux

1. Are you using Wayland? No 2. How did you configure the library? Screenshot_20211004_211554.png Generating in cmake gui with warnings as below cotire 1.8.0 loaded. Which libraries should wxWidgets use? wxUSE_STL: OFF (use C++ STL classes) wxUSE_REGEX: sys (enable support for wxRegEx class) wxUSE_...
by Ronald
Mon Oct 04, 2021 1:13 pm
Forum: C++ Development
Topic: children in wxDataViewCtrl can not show icon
Replies: 3
Views: 1058

Re: children in wxDataViewCtrl can not show icon

Can you reproduce it in a sample? Yes, but when building wxWidgets, other errors encountered as below https://forums.wxwidgets.org/viewtopic.php?f=19&t=48630&sid=404f4b42b31cb3c5ef820699296d8bfa I have to solve it first. BTW by debugging it's sure that only the existance of an icon for the ...
by Ronald
Mon Oct 04, 2021 2:20 am
Forum: C++ Development
Topic: children in wxDataViewCtrl can not show icon
Replies: 3
Views: 1058

children in wxDataViewCtrl can not show icon

Linux
wxgtk 3.0

With AppendIconTextColumn,
If parent without icon, i.e. wxDataViewIconText(..., wxNullIcon), children can not show icon though wxDataViewIconText(..., wxIcon(...))
If parent with icon, the icon of children can be shown

How for a parent without icon to show children with icons?
by Ronald
Mon Oct 04, 2021 1:11 am
Forum: C++ Development
Topic: How to specify icons for wxDataViewIconTextRenderer?
Replies: 2
Views: 1255

Re: How to specify icons for wxDataViewIconTextRenderer?

The key is hidden in this sentence: This classes uses the wxDataViewIconText helper class to store its data. wxDataViewIconText can be converted to and from a wxVariant using the left shift operator. https://docs.wxwidgets.org/trunk/classwx_data_view_icon_text.html Snippet from the "treelist&q...
by Ronald
Mon Oct 04, 2021 1:07 am
Forum: Compiler / Linking / IDE Related
Topic: Failed to build wxWidgets on Linux
Replies: 7
Views: 4614

Re: Failed to build wxWidgets on Linux

stahta01 wrote: Sun Oct 03, 2021 9:21 pm Are you saying just the samples failed to build?

So, wxWidgets built without any error? Is this correct?
Yes
by Ronald
Sun Oct 03, 2021 4:09 pm
Forum: C++ Development
Topic: Does wxDataViewCtrl support icon for any item?
Replies: 4
Views: 1399

Re: Does wxDataViewCtrl support icon for any item?

doublemax wrote: Sun Oct 03, 2021 3:47 pm As wxDataViewCheckIconTextRenderer exists, i'd say that wxDVC supports it.
https://docs.wxwidgets.org/trunk/classw ... derer.html
awsome ctrl

Thanks
by Ronald
Sun Oct 03, 2021 3:55 pm
Forum: Compiler / Linking / IDE Related
Topic: Failed to build wxWidgets on Linux
Replies: 7
Views: 4614

Failed to build wxWidgets on Linux

Manjaro wxWidgets master header, git commit id: 9c17ff731a9ff4c01f5edb2a74ee53553d5e6089 ninja 1.10.2 FAILED: lib/pyramid : && /usr/bin/c++ -O3 -DNDEBUG -s -rdynamic -pthread samples/CMakeFiles/pyramid.dir/__/__/__/samples/opengl/pyramid/pyramid.cpp.o samples/CMakeFiles/pyramid.dir/__/__/__...
by Ronald
Sun Oct 03, 2021 3:25 pm
Forum: C++ Development
Topic: Does wxDataViewCtrl support icon for any item?
Replies: 4
Views: 1399

Re: Does wxDataViewCtrl support icon for any item?

ONEEYEMAN wrote: Sun Oct 03, 2021 2:58 pm What is this control?
I don't know, just a sample image.
ONEEYEMAN wrote: Sun Oct 03, 2021 2:58 pm Take a look at the appropriate sample...
ok
by Ronald
Sun Oct 03, 2021 1:51 pm
Forum: C++ Development
Topic: Does wxDataViewCtrl support icon for any item?
Replies: 4
Views: 1399

Does wxDataViewCtrl support icon for any item?

As in the screenshot below, need icons for some items. BTW it's better if a checkbox for any item is supported.
wx.png
wx.png (47.94 KiB) Viewed 1399 times
by Ronald
Sun Oct 03, 2021 1:32 pm
Forum: C++ Development
Topic: How to refresh wxDataViewCtrl after data for wxDataViewModel changes?
Replies: 1
Views: 1009

Re: How to refresh wxDataViewCtrl after data for wxDataViewModel changes?

Solve by

Code: Select all

wxDataViewModel::Cleared()
BTW, the function name is misleading.
by Ronald
Sun Oct 03, 2021 1:13 pm
Forum: C++ Development
Topic: How to refresh wxDataViewCtrl after data for wxDataViewModel changes?
Replies: 1
Views: 1009

How to refresh wxDataViewCtrl after data for wxDataViewModel changes?

Initially wxDataViewCtrl associates wxDataViewModel that has no real data. When running, user do something to change the data for wxDataViewModel, e.g. by loading data from db. How to make wxDataViewCtrl show the new data? ----------------- UPDATE Try wxDataViewModel::ItemChanged(wxDataViewItem()); ...
by Ronald
Sun Oct 03, 2021 12:29 pm
Forum: C++ Development
Topic: wxDataViewCtrl only shows the first column when wxDataViewModel::IsContainer is true
Replies: 2
Views: 1007

wxDataViewCtrl only shows the first column when wxDataViewModel::IsContainer is true

Linux
wxgtk 3.0


i.e. for an item that has children, only the first column shows

How to show all the columns for the item?