fixed afterLoad event

This commit is contained in:
Peter Schojer 2008-09-03 14:10:43 +00:00
parent 8db9f0086b
commit b16f06168b
3 changed files with 12 additions and 1 deletions

View File

@ -128,6 +128,9 @@ protected:
void fireSelected(void* pSender);
/// Fires the selected event.
void fireAfterLoad(void* pSender);
/// Fires the afterLoad event.
};

View File

@ -47,6 +47,7 @@ ComboBox::ComboBox(const std::string& name, const std::type_info& type):
{
ComboBoxCell::Ptr pCell = cell<ComboBoxCell>();
pCell->selected = delegate(*this, &ComboBox::fireSelected);
pCell->afterLoad = delegate(*this, &ComboBox::fireAfterLoad);
}
@ -86,4 +87,11 @@ void ComboBox::fireSelected(void* pSender)
}
void ComboBox::fireAfterLoad(void* pSender)
{
ComboBoxEvent sel(this);
afterLoad(this, sel);
}
} } // namespace Poco::WebWidgets

View File

@ -43,7 +43,7 @@ namespace WebWidgets {
const std::string ComboBoxCell::FIELD_VAL("val");
const std::string ComboBoxCell::EV_LOAD("beforeLoad");
const std::string ComboBoxCell::EV_LOAD("doLoad");
const std::string ComboBoxCell::EV_AFTERLOAD("afterLoad");
const std::string ComboBoxCell::EV_SELECTED("sel");