110 wxDefaultPosition, wxDefaultSize, wxBORDER_NONE );
111 wxSize bitmapSize =
dummy->GetSize();
115 const wxSize text_padding( 2, 1 );
116 const int twiddle = -1;
118 const wxSize text_padding( 8, 6 );
119 const int twiddle = 1;
123 wxPoint pos( 0, charSize.y * 2 );
128 std::vector<wxStaticText*> labels;
133 int y = pos.y + ( ii * ( bitmapSize.y + text_padding.y ) );
135 wxPoint( 5, y + ( bitmapSize.y / 2 ) - ( 12 / 2 ) ) );
136 labels.push_back(
text );
138 int x =
text->GetRect().GetRight();
139 pos.x = std::max( pos.x, x );
145 wxPoint labelPos = labels[ ii ]->GetPosition();
146 labelPos.x = pos.x - labels[ ii ]->GetRect().GetWidth();
147 labelPos.y += twiddle;
148 labels[ ii ]->SetPosition( labelPos );
160 int y = pos.y + (row * ( bitmapSize.y + text_padding.y ) );
162 for(
int col = 0; col <= row; col++ )
167 int x = pos.x + ( col * ( bitmapSize.x + text_padding.x ) );
171 wxPoint textPos( x +
KiROUND( bitmapSize.x / 2.0 ), y - charSize.y * 2 );
174 wxPoint calloutPos( x +
KiROUND( bitmapSize.x / 2.0 ), y - charSize.y );
175 new wxStaticText(
m_matrixPanel, wxID_ANY,
"|", calloutPos );
183 wxPoint( x, y ), bitmapSize );
192 wxPoint( x, y ), wxDefaultSize, wxBORDER_NONE );
196 btn->SetSize( btn->GetSize() + text_padding );
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
KICOMMON_API wxSize GetTextSize(const wxString &aSingleLine, wxWindow *aWindow)
Return the size of aSingleLine of text when it is rendered in aWindow using whatever font is currentl...