Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#12051 closed defect (invalid)

wxMenuItem standard bitmaps not displayed

Reported by: johnr Owned by:
Priority: normal Milestone:
Component: wxMSW Version: stable-latest
Keywords: wxMenuItem bitmap Cc:
Blocked By: Blocking:
Patch: no

Description

SVN trunk MSW (not tested with others)
wxMenuItem standard bitmaps are not displayed when using standard identifiers eg wxID_SAVE.

See the menu sample.

Change History (3)

comment:1 follow-up: Changed 5 years ago by vadz

  • Milestone 2.9.1 deleted
  • Resolution set to invalid
  • Status changed from new to closed

There are no standard menu bitmaps in (wx)MSW.

comment:2 in reply to: ↑ 1 Changed 5 years ago by johnr

Replying to vadz:

There are no standard menu bitmaps in (wx)MSW.

Might be worth a mention in wxMenuItem docs to reflect this.
wxMenuItem::wxMenuItem makes no mention of that.

use all stock properties:

helpMenu->Append(wxID_ABOUT);

use all stock properties except for the bitmap:

wxMenuItem *mymenu = new wxMenuItem(helpMenu, wxID_ABOUT);
mymenu->SetBitmap(wxArtProvider::GetBitmap(wxART_WARNING));

Although I see "Stock items" have only GTK column and they look bad when used on msw.

comment:3 Changed 5 years ago by VZ

(In [64313]) Mention that stock bitmaps are a wxGTK-only feature for now.

Apparently people expect to see stock bitmaps under MSW too, make it clear
that they won't be used there.

See #12051.

Note: See TracTickets for help on using tickets.