#include "wx/app.h"
#include "wx/stattext.h"
+#include "wx/dc.h"
+#include "wx/dcclient.h"
#include <stdio.h>
void wxStaticText::OnDraw( wxDC &dc )
{
+ if (m_width <= 0 || m_height <= 0)
+ return;
+
PrepareDC(dc);
- dc.Clear() ;
+// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels)
int x = 0 ;
int y = 0 ;
m_label = st ;
if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
SetSizeOrDefault() ;
-
- wxClientDC dc(this);
- OnDraw( dc ) ;
+
+ Refresh() ;
+ MacUpdateImmediately() ;
+// wxClientDC dc(this);
+// OnDraw( dc ) ;
}