eButton::eButton(eWidget *parent): eLabel(parent)
{
+ /* default to center alignment */
+ m_valign = alignCenter;
+ m_halign = alignCenter;
}
void eButton::push()
{
-// selected();
+ selected();
}
int eButton::event(int event, void *data, void *data2)
getStyle(style);
eLabel::event(event, data, data2);
- style->drawButtonFrame(painter, eRect(ePoint(0, 0), size()));
+ style->drawFrame(painter, eRect(ePoint(0, 0), size()), eWindowStyle::frameButton);
return 0;
}