wxStaticBitmap Class Reference
[Controls]

#include <wx/statbmp.h>

Inheritance diagram for wxStaticBitmap:

wxControl wxWindow wxEvtHandler wxObject

List of all members.


Detailed Description

A static bitmap control displays a bitmap. Native implementations on some platforms are only meant for display of the small icons in the dialog boxes. In particular, under Windows 9x the size of bitmap is limited to 64*64 pixels. If you want to display larger images portably, you may use generic implementation wxGenericStaticBitmap declared in <wx/generic/statbmpg.h>.

Library:  wxCore

Category:  Controls

See also:
wxStaticBitmap, wxStaticBox

Public Member Functions

 wxStaticBitmap ()
 wxStaticBitmap (wxWindow *parent, wxWindowID id, const wxBitmap &label, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name="staticBitmap")
bool Create (wxWindow *parent, wxWindowID id, const wxBitmap &label, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name="staticBitmap")
virtual wxBitmap GetBitmap () const
virtual wxIcon GetIcon () const
virtual void SetBitmap (const wxBitmap &label)
virtual void SetIcon (const wxIcon &label)

Constructor & Destructor Documentation

wxStaticBitmap::wxStaticBitmap (  ) 

Default constructor

wxStaticBitmap::wxStaticBitmap ( wxWindow parent,
wxWindowID  id,
const wxBitmap label,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = 0,
const wxString name = "staticBitmap" 
)

Constructor, creating and showing a static bitmap control.

Parameters:
parent Parent window. Should not be NULL.
id Control identifier. A value of -1 denotes a default value.
label Bitmap label.
pos Window position.
size Window size.
style Window style. See wxStaticBitmap.
name Window name.
See also:
Create()


Member Function Documentation

bool wxStaticBitmap::Create ( wxWindow parent,
wxWindowID  id,
const wxBitmap label,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = 0,
const wxString name = "staticBitmap" 
)

Creation function, for two-step construction. For details see wxStaticBitmap().

virtual wxBitmap wxStaticBitmap::GetBitmap (  )  const [virtual]

Returns the bitmap currently used in the control. Notice that this method can be called even if SetIcon() had been used.

See also:
SetBitmap()

virtual wxIcon wxStaticBitmap::GetIcon (  )  const [virtual]

Returns the icon currently used in the control. Notice that this method can only be called if SetIcon() had been used: an icon can't be retrieved from the control if a bitmap had been set (using wxStaticBitmap::SetBitmap).

See also:
SetIcon()

virtual void wxStaticBitmap::SetBitmap ( const wxBitmap label  )  [virtual]

Sets the bitmap label.

Parameters:
label The new bitmap.
See also:
GetBitmap()

virtual void wxStaticBitmap::SetIcon ( const wxIcon label  )  [virtual]

Sets the label to the given icon.

Parameters:
label The new icon.



wxWidgets logo

[ top ]