91
Development - (fb2k) / Re: Enumerating uielements
Last post by pqyt -No, it's not. But I already said I was going to look at your solution again.The design is as follows: a UIElement-derived panel, of which there can by more than 1 instance
So that is exactly the same as what you asked for before. I even adapted the code you posted to make it fit. :/
Iterating the instance list can be done from anywhere. I was unsure at the time but range based loops do work.Code: [Select]for (auto&& instance : Notify::instanceList())
{
instance->do_something();
}
Preference pages have an apply method so that's where you'd call it from.