1998-08-07 17:32:13 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: statbmp.h
|
1998-08-12 05:16:21 -04:00
|
|
|
// Purpose: wxStaticBitmap class
|
|
|
|
// Author: AUTHOR
|
|
|
|
// Modified by:
|
|
|
|
// Created: ??/??/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) AUTHOR
|
1998-08-07 17:32:13 -04:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
#ifndef _WX_STATBMP_H_
|
|
|
|
#define _WX_STATBMP_H_
|
1998-08-07 17:32:13 -04:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
1998-08-12 05:16:21 -04:00
|
|
|
#pragma interface "statbmp.h"
|
1998-08-07 17:32:13 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
WXDLLEXPORT_DATA(extern const char*) wxStaticBitmapNameStr;
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxStaticBitmap: public wxControl
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
|
|
|
|
public:
|
|
|
|
inline wxStaticBitmap() { }
|
1998-08-07 17:32:13 -04:00
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
inline wxStaticBitmap(wxWindow *parent, wxWindowID id,
|
|
|
|
const wxBitmap& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticBitmapNameStr)
|
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, name);
|
|
|
|
}
|
1998-08-07 17:32:13 -04:00
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
|
|
|
const wxBitmap& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticBitmapNameStr);
|
1998-08-07 17:32:13 -04:00
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
virtual void SetBitmap(const wxBitmap& bitmap);
|
1998-08-07 17:32:13 -04:00
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
virtual void Command(wxCommandEvent& WXUNUSED(event)) {};
|
|
|
|
virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {};
|
|
|
|
|
|
|
|
void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
|
|
|
|
|
|
|
|
inline wxBitmap& GetBitmap() const { return (wxBitmap&) m_messageBitmap; }
|
|
|
|
|
|
|
|
// overriden base class virtuals
|
|
|
|
virtual bool AcceptsFocus() const { return FALSE; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
wxBitmap m_messageBitmap;
|
1998-08-07 17:32:13 -04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
1998-08-12 05:16:21 -04:00
|
|
|
#endif
|
|
|
|
// _WX_STATBMP_H_
|