Home » U++ Library support » U++ Library : Other (not classified elsewhere) » design flaw in scatterctrl?
Re: design flaw in scatterctrl? [message #49825 is a reply to message #49824] |
Sat, 12 May 2018 21:18   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello aftershock,
When package maintainer decided to follow your change he needs to make all virtual methods public. I do not see reason to change only one specific method that you need.
So the fix should look like this:
public: /* Ctrl */
void Paint(Draw& w) override;
void LeftDown(Point, dword) override;
void LeftDouble(Point p, dword) override;
void LeftUp(Point, dword) override;
void MiddleDown(Point, dword) override;
void MouseMove(Point, dword) override;
void MiddleUp(Point, dword) override;
void RightDown(Point, dword) override;
void RightUp(Point, dword) override;
void MouseLeave() override;
void MouseWheel(Point, int zdelta, dword) override;
bool Key(dword key, int count) override;
void GotFocus() override;
void LostFocus() override;
private:
Koldo, you can start using override statement instead of adding virtual. It guarantees on the compilation level that method is overridden.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Sat, 12 May 2018 21:25] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Apr 26 15:56:15 CEST 2025
Total time taken to generate the page: 0.03478 seconds
|