Status & Roadmap
Authors & License
Funding Ultimate++
Search on this site
Search in forums

SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » design flaw in scatterctrl?
design flaw in scatterctrl? [message #49824] Sat, 12 May 2018 12:56 Go to previous message
aftershock is currently offline  aftershock
Messages: 141
Registered: May 2008
Experienced Member
In Scatterctrl,

bool showInfo;
Point clickPoint;
PopUpInfo popText;
String popTextX, popTextY, popTextY2;
Point popLT, popRB;
bool isZoomWindow;
const Point offset;
int copyRatio;
bool isLeftDown;

int butDownX, butDownY;
bool isScrolling, isLabelPopUp;

bool showContextMenu;
bool showPropDlg;
bool showProcessDlg;
bool showButtons;

int lastRefresh_ms;
dword lastRefresh0_ms;
int maxRefresh_ms;

bool highlighting;

Upp::Array<MouseBehavior> mouseBehavior;
Upp::Array<KeyBehavior> keyBehavior;

void ProcessPopUp(const Point & pt);

virtual void Paint(Draw& w);
virtual void LeftDown(Point, dword);
virtual void LeftDouble(Point p, dword);
virtual void LeftUp(Point, dword);
virtual void MiddleDown(Point, dword);
virtual void MouseMove(Point, dword);
virtual void MiddleUp(Point, dword);
public: // my fix
virtual void RightDown(Point, dword);
virtual void RightUp(Point, dword);
virtual void MouseLeave();
virtual void MouseWheel(Point, int zdelta, dword);
virtual bool Key(dword key, int count);
virtual void GotFocus();
virtual void LostFocus();

void DoMouseAction(bool down, Point pt,

you can see a lot of the function are private when they are virtual.
I needed to use some of them.., not without modification..
Is this ok?

Read Message
Read Message
Read Message
Read Message
Previous Topic: click on a checkbox does not work , it does something else
Next Topic: I request the implementation of callback5
Goto Forum:

Current Time: Thu Aug 06 00:33:08 CEST 2020

Total time taken to generate the page: 0.01007 seconds