#if defined(__WXMSW__) || defined(__WXPM__)
#define wxBITMAP(name) wxBitmap(#name, wxBITMAP_TYPE_RESOURCE)
-#elif defined(__WXGTK__) || defined(__WXMOTIF__)
+#elif defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
// Initialize from an included XPM
#define wxBITMAP(name) wxBitmap( (const char**) name##_xpm )
#else // other platforms
class WXDLLEXPORT wxTimer: public wxTimerBase
{
public:
- wxTimer();
+ wxTimer() { Init(); }
+ wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) { Init(); }
~wxTimer();
virtual bool Start(int milliseconds = -1,
virtual bool IsRunning() const ;
MacTimerInfo m_info;
+protected :
+ void Init();
private:
+
DECLARE_ABSTRACT_CLASS(wxTimer)
};
#ifndef _WX_CW__
#define _WX_CW__
+#if __MWERKS__ >= 0x2400
+#pragma old_argmatch on
+#endif
+
#if __option(profile)
#ifdef __cplusplus
#if __POWERPC__
#define WX_COMP_INLINE_NO_CLASS // defined if the compiler does not want the classname repeated for inlines within a class definition
+#if __MWERKS__ >= 0x2400
+#pragma old_argmatch on
+#endif
+
#if (__MWERKS__ < 0x0900) || macintosh
#define __MAC__
#define __WXMAC__
#ifndef _WX_CW__
#define _WX_CW__
+#if __MWERKS__ >= 0x2400
+#pragma old_argmatch on
+#endif
+
#if __option(profile)
#error "profiling is not supported in debug versions"
#else
#ifndef _WX_CW__
#define _WX_CW__
+#if __MWERKS__ >= 0x2400
+#pragma old_argmatch on
+#endif
+
#if __option(profile)
#ifdef __cplusplus
#if __POWERPC__
#ifndef _WX_CW__
#define _WX_CW__
+#if __MWERKS__ >= 0x2400
+#pragma old_argmatch on
+#endif
+
#if __option(profile)
#error "profiling is not supported in debug versions"
#else
void wxStaticText::OnDraw( wxDC &dc )
{
+ if (m_width <= 0 || m_height <= 0)
+ return;
+
PrepareDC(dc);
dc.Clear() ;
static void wxProcessTimer( unsigned long event , void *data ) ;
-pascal void MacTimerProc( TMTask * t )
+static pascal void MacTimerProc( TMTask * t )
{
MacTimerInfo * tm = (MacTimerInfo*) t ;
wxMacAddEvent( tm->m_table , wxProcessTimer, 0 , (void*) tm->m_timer , TRUE ) ;
}
-void wxProcessTimer( unsigned long event , void *data )
+static void wxProcessTimer( unsigned long event , void *data )
{
if ( !data )
return ;
}
}
-wxTimer::wxTimer()
+void wxTimer::Init()
{
m_info.m_task.tmAddr = NULL ;
m_info.m_task.tmWakeUp = 0 ;
void wxStaticText::OnDraw( wxDC &dc )
{
+ if (m_width <= 0 || m_height <= 0)
+ return;
+
PrepareDC(dc);
dc.Clear() ;
static void wxProcessTimer( unsigned long event , void *data ) ;
-pascal void MacTimerProc( TMTask * t )
+static pascal void MacTimerProc( TMTask * t )
{
MacTimerInfo * tm = (MacTimerInfo*) t ;
wxMacAddEvent( tm->m_table , wxProcessTimer, 0 , (void*) tm->m_timer , TRUE ) ;
}
-void wxProcessTimer( unsigned long event , void *data )
+static void wxProcessTimer( unsigned long event , void *data )
{
if ( !data )
return ;
}
}
-wxTimer::wxTimer()
+void wxTimer::Init()
{
m_info.m_task.tmAddr = NULL ;
m_info.m_task.tmWakeUp = 0 ;