void wxsCustomButton::OnEnumWidgetProperties(long Flags) { WXS_ENUM(wxsCustomButton,m_Type,_("Type"),_T("type"),TypeValues,TypeNames,wxCUSTBUT_BUTTON); WXS_BOOL(wxsCustomButton,m_Flat,_("Flat"),_T("flat"),false); WXS_STRING(wxsCustomButton,m_Label,_("Label"),_T("label"),_T(""),false); WXS_ENUM(wxsCustomButton,m_LabelPosition,_("Label position"),_T("label_position"),LabelPositionValues,LabelPositionNames,wxCUSTBUT_BOTTOM); WXS_BITMAP(wxsCustomButton,m_Bitmap,_("Bitmap"),_T("bitmap"),_T("wxART_OTHER")); WXS_BITMAP(wxsCustomButton,m_BitmapSelected,_("Selected bmp"),_T("selected"),_T("wxART_OTHER")); WXS_BITMAP(wxsCustomButton,m_BitmapFocused,_("Focused bmp"),_T("focused"),_T("wxART_OTHER")); WXS_BITMAP(wxsCustomButton,m_BitmapDisabled,_("Disbled bmp"),_T("disabled"),_T("wxART_OTHER")); WXS_SIZE(wxsCustomButton,m_Margins,_("Default margin"),_("Margin width"),_("Margin height"),_("Margin in Dialog Units"),_T("margin")); WXS_SIZE(wxsCustomButton,m_LabelMargins,_("Default label margin"),_("Label marg. width"),_("Label marg. height"),_("Label marg. in Dialog Units"),_T("label_margin")); WXS_SIZE(wxsCustomButton,m_BitmapMargins,_("Default bitmap margin"),_("Bitmap marg. width"),_("Bitmap marg. height"),_("Bitmap marg. in Dialog Units"),_T("bitmap_margin")); }
void wxsMenuItem::OnEnumToolProperties(cb_unused long Flags) { switch ( m_Type ) { case Normal: if ( GetChildCount() ) { // When there are children (wxMenuItem maps to wxMenu class), // only these properties are enabled WXS_SHORT_STRING(wxsMenuItem,m_Label,_("Label"),_T("label"),_T(""),true); WXS_SHORT_STRING(wxsMenuItem,m_Help,_T("Help text"),_T("help"),_T(""),false); WXS_BOOL(wxsMenuItem,m_Enabled,_T("Enabled"),_T("enabled"),true); break; } // When there are no children, we threat this item as wxMenuItem /* case Normal: */ case Radio: case Check: WXS_SHORT_STRING(wxsMenuItem,m_Label,_("Label"),_T("label"),_T(""),true); WXS_SHORT_STRING(wxsMenuItem,m_Accelerator,_("Accelerator"),_T("accel"),_T(""),false); WXS_SHORT_STRING(wxsMenuItem,m_Help,_T("Help text"),_T("help"),_T(""),false); WXS_BOOL(wxsMenuItem,m_Enabled,_T("Enabled"),_T("enabled"),true); if ( m_Type == Check ) { WXS_BOOL(wxsMenuItem,m_Checked,_T("Checked"),_T("checked"),false); } if ( m_Type == Normal ) { WXS_BITMAP(wxsMenuItem,m_Bitmap,_("Bitmap"),_T("bitmap"),_T("wxART_OTHER")) } break; default:; } }
void wxsToolBarItem::OnEnumToolProperties(long Flags) { switch ( m_Type ) { case Normal: case Radio: case Check: WXS_SHORT_STRING(wxsToolBarItem,m_Label,_("Label"),_T("label"),_T(""),true); WXS_BITMAP(wxsToolBarItem,m_Bitmap,_("Bitmap"),_T("bitmap"),_T("wxART_TOOLBAR")); WXS_BITMAP(wxsToolBarItem,m_Bitmap2,_("Disabled bitmap"),_T("bitmap2"),_T("wxART_TOOLBAR")); WXS_STRING(wxsToolBarItem,m_ToolTip,_("Tooltip"),_T("tooltip"),_T(""),false); WXS_STRING(wxsToolBarItem,m_HelpText,_("Help text"),_T("longhelp"),_T(""),false); break; default:; } }
/*! \brief Enumerate the control's properties. * * \param flags long The control flags. * \return void * */ void wxsAnimationCtrl::OnEnumWidgetProperties(long flags) { WXS_SHORT_STRING(wxsAnimationCtrl, m_sAnimation, _("Animation"), _T("animation"), _T(""), false) WXS_BITMAP(wxsAnimationCtrl, m_bmpInactive, _("Inactive Bitmap"), _T("inactive_bitmap"), _T("wxART_OTHER")); WXS_BOOL(wxsAnimationCtrl, m_bPlay, _("Play"), _T("play"), false) }
{ Preview->SetBitmapDisabled(BitmapDisabled.GetPreview(wxDefaultSize)); } if ( !BitmapSelected.IsEmpty() ) { Preview->SetBitmapSelected(BitmapSelected.GetPreview(wxDefaultSize)); } if ( !BitmapFocus.IsEmpty() ) { Preview->SetBitmapFocus(BitmapFocus.GetPreview(wxDefaultSize)); } if ( IsDefault ) { Preview->SetDefault(); } return SetupWindow(Preview,Flags); } void wxsBitmapButton::OnEnumWidgetProperties(cb_unused long Flags) { WXS_BITMAP(wxsBitmapButton,BitmapLabel,_("Bitmap"),_T("bitmap"),_T("wxART_OTHER")) WXS_BITMAP(wxsBitmapButton,BitmapDisabled,_("Disabled bmp."),_T("disabled"),_T("wxART_OTHER")) WXS_BITMAP(wxsBitmapButton,BitmapSelected,_("Pressed bmp."),_T("selected"),_T("wxART_OTHER")) WXS_BITMAP(wxsBitmapButton,BitmapFocus,_("Focused bmp."),_T("focus"),_T("wxART_OTHER")) WXS_BOOL (wxsBitmapButton,IsDefault,_("Is default"),_T("default"),false) }