Fixes for rendering of DateField in Table, Button event fixes

This commit is contained in:
Peter Schojer
2008-05-14 08:09:08 +00:00
parent 4e730ecc7e
commit 0d3e23167a
5 changed files with 85 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
//
// Button.cpp
//
// $Id: //poco/Main/WebWidgets/src/Button.cpp#8 $
// $Id: //poco/Main/WebWidgets/src/Button.cpp#9 $
//
// Library: WebWidgets
// Package: Controls
@@ -75,15 +75,23 @@ Button::Button(const std::string& name):
{
init();
}
Button::Button(const std::string& name, const std::string& txt):
Control(name, typeid(Button))
{
init();
setText(txt);
}
Button::Button():
Control(typeid(Button))
{
init();
}
Button::~Button()
{
}
@@ -101,8 +109,7 @@ void Button::init(Cell::Ptr ptrCell)
void Button::init()
{
ButtonCell* pCell = new ButtonCell(this);
pCell->buttonClicked = delegate(*this, &Button::fireButtonClicked);
setCell(pCell);
init(pCell);
}