#include "wx/os2/private.h"
#include <stdio.h>
-IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
-
bool wxStaticText::Create( wxWindow* pParent,
wxWindowID vId,
const wxString& rsLabel,
if (!nHeightLineDefault)
nHeightLineDefault = nHeightLine;
if (!nHeightLineDefault)
- GetTextExtent(_T("W"), NULL, &nHeightLineDefault);
+ GetTextExtent(wxT("W"), NULL, &nHeightLineDefault);
nHeightTextTotal += nHeightLineDefault;
}
else
// when it is preceded by another '~' in which case it stands for a
// literal tilde
//
- if (*pc == _T('~'))
+ if (*pc == wxT('~'))
{
if (!bLastWasTilde)
{
{
m_labelOrig = rsLabel; // save original label
- // OS/2 does not support neither ellipsize nor markup in static text:
- DoSetLabel(rsLabel);
- DoSetLabel(GetEllipsizedLabelWithoutMarkup());
+ // OS/2 does not support ellipsized labels in static text:
+ DoSetLabel(GetEllipsizedLabel());
//
// Adjust the size of the window to fit to the label unless autoresizing is