Added more original works and stubs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-03-21 20:25:09 +00:00
parent fb896a322a
commit da0634c140
21 changed files with 1190 additions and 0 deletions

45
src/cocoa/statbox.mm Normal file
View File

@@ -0,0 +1,45 @@
/////////////////////////////////////////////////////////////////////////////
// Name: cocoa/statbox.mm
// Purpose: wxStaticBox
// Author: David Elliott
// Modified by:
// Created: 2003/02/15
// RCS-ID: $Id:
// Copyright: (c) 2003 David Elliott
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#include "wx/app.h"
#include "wx/statbox.h"
#import <AppKit/NSBox.h>
#import <Foundation/NSString.h>
IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
BEGIN_EVENT_TABLE(wxStaticBox, wxStaticBoxBase)
END_EVENT_TABLE()
WX_IMPLEMENT_COCOA_OWNER(wxStaticBox,NSBox,NSView,NSView)
bool wxStaticBox::Create(wxWindow *parent, wxWindowID winid,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style, const wxValidator& validator,
const wxString& name)
{
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
m_cocoaNSView = NULL;
SetNSBox([[NSBox alloc] initWithFrame:NSMakeRect(0,0,30,30)]);
[GetNSBox() setTitle:[NSString stringWithCString:title.c_str()]];
if(m_parent)
m_parent->CocoaAddChild(this);
return true;
}
wxStaticBox::~wxStaticBox()
{
CocoaRemoveFromParent();
SetNSBox(NULL);
}