- Jun 6, 2020
- 11,559
- 4,422
Mainly @Erel , but feel free to offer an opinion.
I am writing a Designer script extension that intercepts the MouseEntered And MouseExited events. I then want to pass these back to the developer in the LayoutModule so that other actions can be taken. The events could be anything, but these are the ones I am using at the moment.
Should I
1) Use the same Sub signature, e.g. MouseEntered(EventData As MouseEvent) and explain that the sender will have to be obtained a different way
or
2) Use a different Sub Signature. e.g DSEMouseEntered(SourceView As B4XView, EventData As MouseEvent) and pass the sender/Source View as a parameter.
Or
3) Something else.
I think this is quite important as a point of design, and I don't want to go down the rabbit hole with out consensus.
I am writing a Designer script extension that intercepts the MouseEntered And MouseExited events. I then want to pass these back to the developer in the LayoutModule so that other actions can be taken. The events could be anything, but these are the ones I am using at the moment.
Should I
1) Use the same Sub signature, e.g. MouseEntered(EventData As MouseEvent) and explain that the sender will have to be obtained a different way
or
2) Use a different Sub Signature. e.g DSEMouseEntered(SourceView As B4XView, EventData As MouseEvent) and pass the sender/Source View as a parameter.
Or
3) Something else.
I think this is quite important as a point of design, and I don't want to go down the rabbit hole with out consensus.
برای دیدن لینک ها باید ثبت نام کنید