mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Added set_as_owner_drawn() for the code universality
This commit is contained in:
parent
2affa48178
commit
30dc689d35
3 changed files with 22 additions and 7 deletions
|
@ -25,6 +25,14 @@ using Slic3r::GUI::from_u8;
|
|||
wxDEFINE_EVENT(wxCUSTOMEVT_TICKSCHANGED, wxEvent);
|
||||
wxDEFINE_EVENT(wxCUSTOMEVT_LAST_VOLUME_IS_DELETED, wxCommandEvent);
|
||||
|
||||
void set_as_owner_drawn(wxMenu* menu)
|
||||
{
|
||||
#ifdef __WXMSW__
|
||||
// this function is implemented only for MSW (in Prusa/wxWidgets fork)
|
||||
menu->SetOwnerDrawn(true);
|
||||
#endif
|
||||
}
|
||||
|
||||
std::map<int, std::string> menuitem_bitmaps;
|
||||
static std::string empty_str = "";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue