git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/univ/control.h
|
|
// Purpose: universal wxControl: adds handling of mnemonics
|
|
// Author: Vadim Zeitlin
|
|
// Modified by:
|
|
// Created: 14.08.00
|
|
// RCS-ID: $Id$
|
|
// Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwindows.org>
|
|
// Licence: wxWindows license
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_UNIV_CONTROL_H_
|
|
#define _WX_UNIV_CONTROL_H_
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface "control.h"
|
|
#endif
|
|
|
|
class WXDLLEXPORT wxControl : public wxControlBase
|
|
{
|
|
public:
|
|
wxControl();
|
|
|
|
wxControl(wxWindow *parent, wxWindowID id,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
const wxString& name = wxControlNameStr)
|
|
{
|
|
Create(parent, id, pos, size, style, validator, name);
|
|
}
|
|
|
|
// this function will filter out '&' characters and will put the
|
|
// accelerator char (the one immediately after '&') into m_chAccel
|
|
virtual void SetLabel(const wxString &label);
|
|
virtual wxString GetLabel() const;
|
|
|
|
protected:
|
|
wxString m_label;
|
|
wxChar m_chAccel;
|
|
|
|
private:
|
|
DECLARE_DYNAMIC_CLASS(wxControl)
|
|
};
|
|
|
|
#endif // _WX_UNIV_CONTROL_H_
|