1999-07-29 01:11:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: msw/statline.h
|
|
|
|
// Purpose: MSW version of wxStaticLine class
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Created: 28.06.99
|
|
|
|
// Version: $Id$
|
|
|
|
// Copyright: (c) 1998 Vadim Zeitlin
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1999-07-29 01:11:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1999-10-24 11:57:35 -04:00
|
|
|
#ifndef _WX_OS2_STATLINE_H_
|
|
|
|
#define _WX_OS2_STATLINE_H_
|
1999-07-29 01:11:30 -04:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxStaticLine
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
// constructors and pseudo-constructors
|
|
|
|
wxStaticLine() { }
|
2001-12-17 17:56:41 -05:00
|
|
|
wxStaticLine( wxWindow* pParent
|
2005-03-10 21:13:30 -05:00
|
|
|
,wxWindowID vId = wxID_ANY
|
2001-12-17 17:56:41 -05:00
|
|
|
,const wxPoint& rPos = wxDefaultPosition
|
|
|
|
,const wxSize& rSize = wxDefaultSize
|
|
|
|
,long lStyle = wxLI_HORIZONTAL
|
|
|
|
,const wxString& rsName = wxStaticTextNameStr
|
|
|
|
)
|
|
|
|
{
|
|
|
|
Create(pParent, vId, rPos, rSize, lStyle, rsName);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Create( wxWindow* pParent
|
2005-03-10 21:13:30 -05:00
|
|
|
,wxWindowID vId = wxID_ANY
|
2001-12-17 17:56:41 -05:00
|
|
|
,const wxPoint& rPos = wxDefaultPosition
|
|
|
|
,const wxSize& rSize = wxDefaultSize
|
|
|
|
,long lStyle = wxLI_HORIZONTAL
|
|
|
|
,const wxString& rsName = wxStaticTextNameStr
|
|
|
|
);
|
|
|
|
|
|
|
|
inline bool IsVertical(void) const { return((GetWindowStyleFlag() & wxLI_VERTICAL) != 0); }
|
|
|
|
inline static int GetDefaultSize(void) { return 2; }
|
1999-07-29 01:11:30 -04:00
|
|
|
|
2001-12-17 17:56:41 -05:00
|
|
|
//
|
|
|
|
// Overriden base class virtuals
|
|
|
|
//
|
|
|
|
inline virtual bool AcceptsFocus(void) const {return FALSE;}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
inline wxSize AdjustSize(const wxSize& rSize) const
|
1999-07-29 01:11:30 -04:00
|
|
|
{
|
2001-12-17 17:56:41 -05:00
|
|
|
wxSize vSizeReal( rSize.x
|
|
|
|
,rSize.y
|
|
|
|
);
|
|
|
|
|
|
|
|
if (IsVertical())
|
|
|
|
{
|
|
|
|
if (rSize.x == -1 )
|
|
|
|
vSizeReal.x = GetDefaultSize();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (rSize.y == -1)
|
|
|
|
vSizeReal.y = GetDefaultSize();
|
|
|
|
}
|
|
|
|
return vSizeReal;
|
1999-07-29 01:11:30 -04:00
|
|
|
}
|
|
|
|
|
2001-12-17 17:56:41 -05:00
|
|
|
inline wxSize DoGetBestSize(void) const { return (AdjustSize(wxDefaultSize)); }
|
|
|
|
|
2002-02-22 18:30:31 -05:00
|
|
|
//
|
|
|
|
// Usually overridden base class virtuals
|
|
|
|
//
|
|
|
|
virtual WXDWORD OS2GetStyle( long lStyle
|
|
|
|
,WXDWORD* pdwExstyle
|
|
|
|
) const;
|
|
|
|
|
2001-12-17 17:56:41 -05:00
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticLine)
|
|
|
|
}; // end of CLASS wxStaticLine
|
1999-07-29 01:11:30 -04:00
|
|
|
|
1999-10-24 11:57:35 -04:00
|
|
|
#endif // _WX_OS2_STATLINE_H_
|
1999-07-29 01:11:30 -04:00
|
|
|
|
|
|
|
|