Allow unsetting wxMenuItem as start of radio group too.
This must be called if another radio item is inserted before the current starting one. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -55,7 +55,7 @@ public:
|
|||||||
void UpdateItemStatus() ;
|
void UpdateItemStatus() ;
|
||||||
|
|
||||||
// mark item as belonging to the given radio group
|
// mark item as belonging to the given radio group
|
||||||
void SetAsRadioGroupStart();
|
void SetAsRadioGroupStart(bool start = true);
|
||||||
void SetRadioGroupStart(int start);
|
void SetRadioGroupStart(int start);
|
||||||
void SetRadioGroupEnd(int end);
|
void SetRadioGroupEnd(int end);
|
||||||
|
|
||||||
|
@@ -218,9 +218,9 @@ void wxMenuItem::UpdateItemText()
|
|||||||
// radio group stuff
|
// radio group stuff
|
||||||
// -----------------
|
// -----------------
|
||||||
|
|
||||||
void wxMenuItem::SetAsRadioGroupStart()
|
void wxMenuItem::SetAsRadioGroupStart(bool start)
|
||||||
{
|
{
|
||||||
m_isRadioGroupStart = true;
|
m_isRadioGroupStart = start;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxMenuItem::SetRadioGroupStart(int start)
|
void wxMenuItem::SetRadioGroupStart(int start)
|
||||||
|
Reference in New Issue
Block a user