added ctor implementation from header + initialzation; more reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -24,7 +24,20 @@ BEGIN_EVENT_TABLE(wxStatusBarMac, wxStatusBarGeneric)
|
|||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
|
||||||
|
wxStatusBarMac::wxStatusBarMac(wxWindow *parent,
|
||||||
|
wxWindowID id,
|
||||||
|
long style,
|
||||||
|
const wxString& name)
|
||||||
|
:
|
||||||
|
wxStatusBarGeneric()
|
||||||
|
{
|
||||||
|
SetParent( NULL );
|
||||||
|
Create( parent, id, style, name );
|
||||||
|
}
|
||||||
|
|
||||||
wxStatusBarMac::wxStatusBarMac()
|
wxStatusBarMac::wxStatusBarMac()
|
||||||
|
:
|
||||||
|
wxStatusBarGeneric()
|
||||||
{
|
{
|
||||||
SetParent( NULL );
|
SetParent( NULL );
|
||||||
}
|
}
|
||||||
@@ -51,7 +64,6 @@ bool wxStatusBarMac::Create(wxWindow *parent, wxWindowID id,
|
|||||||
|
|
||||||
void wxStatusBarMac::DrawFieldText(wxDC& dc, int i)
|
void wxStatusBarMac::DrawFieldText(wxDC& dc, int i)
|
||||||
{
|
{
|
||||||
int leftMargin = 2;
|
|
||||||
int w, h;
|
int w, h;
|
||||||
GetSize( &w , &h );
|
GetSize( &w , &h );
|
||||||
wxRect rect;
|
wxRect rect;
|
||||||
@@ -66,6 +78,7 @@ void wxStatusBarMac::DrawFieldText(wxDC& dc, int i)
|
|||||||
|
|
||||||
dc.GetTextExtent(text, &x, &y);
|
dc.GetTextExtent(text, &x, &y);
|
||||||
|
|
||||||
|
int leftMargin = 2;
|
||||||
int xpos = rect.x + leftMargin + 1;
|
int xpos = rect.x + leftMargin + 1;
|
||||||
int ypos = 1;
|
int ypos = 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user