Donate Share

wxShapeFramework

Tracker: Feature Requests

5 wxWidgets style Events - ID: 2892317
Last Update: Comment added ( michalbliznak )

It would be nice for wxShapeFramework to adopt the wxWidgets style events
for shapes and other objects.

The current implementation requires using only inherited versions of the
FrameCanvas and Shapes in order to expose callback functionality, whereas
using the wxWidgets style would allow you to connect events on a per-object
basis and reduce amount of inheritance needed.


DekarGuy ( dekarguy ) - 2009-11-05 00:17

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 3 )




Date: 2009-11-13 07:01
Sender: michalbliznakProject Admin

"... since it looks like xsSerializable inherits from wxObject instead of
wxEvtHandler."

Since the xsSerializable is a generic persistent class object container
then it has no sense to derive it from event handler. On the other hand, I
can still implement emitting of shape events on all shapebase-related
operations like moving, sizing, hitting, etc. and those events can be
redirected directly to the shape canvas. wxSFShapeEvent holds also pointer
to source shape so a user could operate with it directly from an event
handler connected to the shape canvas. What do you think about it?


Date: 2009-11-12 21:41
Sender: dekarguy

Thanks, it seems to be fine for the Canvas, but not for shapes since it
looks like xsSerializable inherits from wxObject instead of wxEvtHandler


Date: 2009-11-09 14:25
Sender: michalbliznakProject Admin

"The current implementation requires using only inherited versions of the
FrameCanvas and Shapes in order to expose callback functionality"

It is not the truth. There are also wxSF events implemented in the library
for both shape canvas and shapes (for example for clicking or
double-clicking the shape canvas, dropping shapes to the canvas, pasting
shapes to the canvas, text shapes' content change, etc.) See the sample
projects (wxSFSample2 and wxSFSample3) and documentation. If you request
some other event, let me know.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.