for providing the bullet image.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73385
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bulletStyle |= wxTEXT_ATTR_BULLET_STYLE_SYMBOL;
else if (index == wxRICHTEXT_BULLETINDEX_BITMAP)
bulletStyle |= wxTEXT_ATTR_BULLET_STYLE_SYMBOL;
else if (index == wxRICHTEXT_BULLETINDEX_BITMAP)
bulletStyle |= wxTEXT_ATTR_BULLET_STYLE_BITMAP;
bulletStyle |= wxTEXT_ATTR_BULLET_STYLE_BITMAP;
+ if (m_bulletNameCtrl->GetValue().IsEmpty())
+ attr->SetFlags(attr->GetFlags() & ~wxTEXT_ATTR_BULLET_NAME);
+ else
+ attr->SetBulletName(m_bulletNameCtrl->GetValue());
+ }
else if (index == wxRICHTEXT_BULLETINDEX_STANDARD)
{
else if (index == wxRICHTEXT_BULLETINDEX_STANDARD)
{
void wxRichTextBulletsPage::OnStandardBulletUpdate( wxUpdateUIEvent& event )
{
int sel = m_styleListBox->GetSelection();
void wxRichTextBulletsPage::OnStandardBulletUpdate( wxUpdateUIEvent& event )
{
int sel = m_styleListBox->GetSelection();
- event.Enable( sel == wxRICHTEXT_BULLETINDEX_STANDARD );
+ event.Enable( sel == wxRICHTEXT_BULLETINDEX_STANDARD || sel == wxRICHTEXT_BULLETINDEX_BITMAP );
bulletStyle |= wxTEXT_ATTR_BULLET_STYLE_SYMBOL;
else if (index == wxRICHTEXT_BULLETINDEX_BITMAP)
bulletStyle |= wxTEXT_ATTR_BULLET_STYLE_SYMBOL;
else if (index == wxRICHTEXT_BULLETINDEX_BITMAP)
bulletStyle |= wxTEXT_ATTR_BULLET_STYLE_BITMAP;
bulletStyle |= wxTEXT_ATTR_BULLET_STYLE_BITMAP;
+ if (m_bulletNameCtrl->GetValue().IsEmpty())
+ attr->SetFlags(attr->GetFlags() & ~wxTEXT_ATTR_BULLET_NAME);
+ else
+ attr->SetBulletName(m_bulletNameCtrl->GetValue());
+ }
else if (index == wxRICHTEXT_BULLETINDEX_STANDARD)
{
else if (index == wxRICHTEXT_BULLETINDEX_STANDARD)
{
void wxRichTextListStylePage::OnStandardBulletUpdate( wxUpdateUIEvent& event )
{
int sel = m_styleListBox->GetSelection();
void wxRichTextListStylePage::OnStandardBulletUpdate( wxUpdateUIEvent& event )
{
int sel = m_styleListBox->GetSelection();
- event.Enable( sel == wxRICHTEXT_BULLETINDEX_STANDARD );
+ event.Enable( sel == wxRICHTEXT_BULLETINDEX_STANDARD || sel == wxRICHTEXT_BULLETINDEX_BITMAP );
{
TransferAndPreview();
}
{
TransferAndPreview();
}