214      template<
typename delegate_type>
 
  216      template<
typename delegate_type>
 
  218      template<
typename delegate_type>
 
  220      template<
typename delegate_type>
 
  222      template<
typename delegate_type>
 
  224      template<
typename delegate_type>
 
  226      template<
typename delegate_type>
 
  228      template<
typename delegate_type>
 
  230      template<
typename delegate_type>
 
  232      template<
typename delegate_type>
 
  233      menu_item(
const xtd::ustring& text, delegate_type on_click, 
const xtd::drawing::image& image, 
xtd::forms::menu_item_kind kind, 
bool checked, 
xtd::forms::shortcut shortcut) {menu_item(text, 
xtd::event_handler(on_click), image, kind, checked, shortcut);}
 
  255        if (checked_ != value) {
 
  257          on_menu_item_updated(event_args::empty);
 
  269        if (enabled_ != value) {
 
  271          on_menu_item_updated(event_args::empty);
 
  283        if (kind_ != value) {
 
  285          on_menu_item_updated(event_args::empty);
 
  297        if (shortcut_ != value) {
 
  299          on_menu_item_updated(event_args::empty);
 
  315        if (text_ != value) {
 
  317          on_menu_item_updated(event_args::empty);
 
  331      intptr_t create_menu_handle() override;
 
  332      void destroy_menu_handle(intptr_t handle) override;
 
  334      virtual 
void on_menu_item_updated(const 
event_args& e) {}
 
  340      bool checked_ = 
false;
 
  342      bool enabled_ = 
true;
 
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition: image.h:34
 
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
 
Represents the menu structure of a form.
Definition: main_menu.h:30
 
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
 
generic_event_handler<> event_handler
Represents the method that will handle an event that has no event data.
Definition: event_handler.h:33
 
#define forms_export_
Define shared library export.
Definition: forms_export.h:13
 
Contains xtd::drawing::image class.
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
 
Contains xtd::forms::shortcut enum class.