29#include <wx/control.h>
30#include <wx/statbmp.h>
31#include <wx/stattext.h>
76 wxPoint controlPos =
m_control->GetPosition();
77 wxSize controlSize =
m_control->GetSize();
80 int iconX = controlPos.x + controlSize.GetWidth() + 4;
81 int iconY = controlPos.y + ( controlSize.GetHeight() - iconSize.GetHeight() ) / 2;
83 m_errorIcon->SetPosition( wxPoint( iconX, iconY ) );
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
UNIT_BINDER * m_unitBinder
bool TransferFromWindow()
Transfer data from the control to the model.
void CreateLabel()
Create and associate a label with this field.
wxStaticBitmap * m_errorIcon
DRC_RE_OVERLAY_FIELD(wxWindow *aParent, const wxString &aFieldId, wxControl *aControl, const DRC_RE_FIELD_POSITION &aPosition)
Construct an overlay field wrapping an existing control.
bool TransferToWindow()
Transfer data from the model to the control.
void ShowError(bool aShow)
Show or hide the error indicator icon adjacent to this field.
DRC_RE_FIELD_POSITION m_position
Specifies the position and size of a field overlaid on a constraint bitmap.