]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/statbmp.mm
fix Alt-letter navigation with spin controls (bug 672974)
[wxWidgets.git] / src / cocoa / statbmp.mm
CommitLineData
da0634c1
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: cocoa/statbmp.mm
3// Purpose: wxStaticBitmap
4// Author: David Elliott
5// Modified by:
6// Created: 2003/02/15
7// RCS-ID: $Id:
8// Copyright: (c) 2003 David Elliott
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12#include "wx/app.h"
13#include "wx/statbmp.h"
14
15IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
16BEGIN_EVENT_TABLE(wxStaticBitmap, wxControl)
17END_EVENT_TABLE()
18// WX_IMPLEMENT_COCOA_OWNER(wxStaticBitmap,NSTextField,NSControl,NSView)
19
20bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID winid,
21 const wxBitmap& bitmap,
22 const wxPoint& pos,
23 const wxSize& size,
24 long style,
25 const wxString& name)
26{
27 if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
28 return false;
29 m_cocoaNSView = NULL;
30 if(m_parent)
31 m_parent->CocoaAddChild(this);
32 return true;
33}
34
35wxStaticBitmap::~wxStaticBitmap()
36{
37 CocoaRemoveFromParent();
38}
39
40void wxStaticBitmap::SetIcon(const wxIcon& icon)
41{
42}
43
44void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap)
45{
46}
47
48wxBitmap wxStaticBitmap::GetBitmap() const
49{
50 return wxNullBitmap;
51}
52