|
|
@ -260,9 +260,16 @@ struct DropdownWindow : Window {
|
|
|
|
|
|
|
|
|
|
|
|
virtual void OnTick()
|
|
|
|
virtual void OnTick()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this->vscroll.UpdatePosition(this->scrolling);
|
|
|
|
if (this->scrolling != 0) {
|
|
|
|
this->scrolling = 0;
|
|
|
|
int pos = this->vscroll.GetPosition();
|
|
|
|
this->SetDirty();
|
|
|
|
|
|
|
|
|
|
|
|
this->vscroll.UpdatePosition(this->scrolling);
|
|
|
|
|
|
|
|
this->scrolling = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (pos != this->vscroll.GetPosition()) {
|
|
|
|
|
|
|
|
this->SetDirty();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
virtual void OnMouseLoop()
|
|
|
|
virtual void OnMouseLoop()
|
|
|
@ -310,8 +317,10 @@ struct DropdownWindow : Window {
|
|
|
|
if (!this->GetDropDownItem(item)) return;
|
|
|
|
if (!this->GetDropDownItem(item)) return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this->selected_index = item;
|
|
|
|
if (this->selected_index != item) {
|
|
|
|
this->SetDirty();
|
|
|
|
this->selected_index = item;
|
|
|
|
|
|
|
|
this->SetDirty();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|