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
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
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
|
|
|
|
,wxWindowID vId
|
|
|
|
,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
|
|
|
|
,wxWindowID vId
|
|
|
|
,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
|
|
|
|
|
|
|
|