@@ -1124,18 +1124,20 @@ public:
return ES_NOT_HANDLED;
}
return ES_HANDLED;
void OnEditboxChanged(int wid) override
void OnEditboxChanged(int widget) override
{
string_filter.SetFilterTerm(this->filter_editbox.text.buf);
this->station_classes.SetFilterState(!string_filter.IsEmpty());
this->station_classes.ForceRebuild();
this->InvalidateData();
if (widget == WID_BRAS_FILTER_EDITBOX) {
void OnPaint() override
bool newstations = _railstation.newstations;
const StationSpec *statspec = newstations ? StationClass::Get(_railstation.station_class)->GetSpec(_railstation.station_type) : nullptr;