Search found 6 matches
- Thu Apr 22, 2021 8:53 pm
- Forum: Platform Related Issues
- Topic: How to properly create a wxIconBundle under Windows?
- Replies: 0
- Views: 17533
How to properly create a wxIconBundle under Windows?
I would like to create a wxIconBundle for a given file extension / MIME type under Windows. I tried the following for a given wxString ext (e.g., "pdf"): // simplified; no error checking if (auto const file_type = wxTheMimeTypesManager::GetFileTypeFromExtension(ext)) { if (wxIconLocation i...
- Thu Apr 22, 2021 7:23 pm
- Forum: Platform Related Issues
- Topic: How to properly create a wxIconBundle under Linux?
- Replies: 2
- Views: 4231
How to properly create a wxIconBundle under Linux?
I would like to create a wxIconBundle under Linux for a given file type (e.g., "pdf") with different icon sizes. Currently, I have the following code for my wxArtProvider -derived art_provider : wxIconBundle art_provider::CreateIconBundle( wxArtID const& art_id, wxArtClient const& ...
- Wed Apr 14, 2021 6:10 pm
- Forum: C++ Development
- Topic: How to find my windows?
- Replies: 2
- Views: 928
Re: How to find my windows?
I am not sure if either mentioned approach is "clean". Generally, such tight coupling of most classes is frowned upon and using approaches such as MVC and similar is recommended. You are right. I rewrote my app using MVP pattern and now the pointers to the individual windows of the app ha...
- Mon Apr 12, 2021 10:37 am
- Forum: C++ Development
- Topic: How to find my windows?
- Replies: 2
- Views: 928
How to find my windows?
I have built a wxWidgets application with a dozen windows or so with a single wxFrame as the root of the hierarchy. These windows interact with each other. More precisely, most of them need to access (i.e., call public member functions of) other windows in the hierarchy (e.g., the left pane of a wxS...
- Sat Apr 10, 2021 12:05 pm
- Forum: C++ Development
- Topic: Moving/copying a wxTreeListItem
- Replies: 0
- Views: 14752
Moving/copying a wxTreeListItem
According to the wxTreeListCtrl API, the only way to move/copy a given wxTreeListItem from one position to another in the wxTreeListCtrl , is to recreate that wxTreeListItem using the attributes of the moved/copied source item. This is due to a lack of a method wxTreeListCtrl::InsertItem(wxTreeListI...
- Sat Apr 10, 2021 11:59 am
- Forum: C++ Development
- Topic: Retrieve image indices in wxTreeListCtrl
- Replies: 1
- Views: 656
Retrieve image indices in wxTreeListCtrl
Is there a way to retrieve the image indices of a wxTreeListItem (as settable via InsertItem()), similar to retrieving the item text via GetItemText()? I cannot find API functions GetItemImageClosed()/GetItemImageOpen().