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: 1076 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: Thu Apr 25 02:11:38 CEST 2024
Total time taken to generate the page: 0.05899 seconds
|