SetFont() the second
#ifdefed SetFont() in Statusbars destructor wxRadioBox setsize corrected (Still only simple layout) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -53,6 +53,10 @@ static void gtk_radiobutton_clicked_callback( GtkWidget *WXUNUSED(widget), wxRad
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxRadioBox,wxControl)
|
||||
|
||||
BEGIN_EVENT_TABLE(wxRadioBox, wxControl)
|
||||
EVT_SIZE(wxRadioBox::OnSize)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
wxRadioBox::wxRadioBox(void)
|
||||
{
|
||||
}
|
||||
@@ -118,6 +122,24 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void wxRadioBox::OnSize( wxSizeEvent &WXUNUSED(event) )
|
||||
{
|
||||
int x = m_x+5;
|
||||
int y = m_y+15;
|
||||
|
||||
GSList *item = gtk_radio_button_group( m_radio );
|
||||
while (item)
|
||||
{
|
||||
GtkWidget *button = GTK_WIDGET( item->data );
|
||||
|
||||
gtk_myfixed_move( GTK_MYFIXED(m_parent->m_wxwindow), button, x, y );
|
||||
|
||||
y += 20;
|
||||
|
||||
item = item->next;
|
||||
}
|
||||
}
|
||||
|
||||
bool wxRadioBox::Show( bool show )
|
||||
{
|
||||
wxWindow::Show( show );
|
||||
|
Reference in New Issue
Block a user