Ok. I found the answer myself. I checked the event objects reference.
I was trying to make a nice combination of a graphical interface and TGadgets but that seems hard to realize.
Perhaps anyone of you can give me some advice.
I'm making a prototype of a not-windows-like user interface: interactive graphic objects, a user can manipulate with the mouse (like click and drag). Some objects have a popup menu (also not windows like). But in this popup a user can select a numeric value and changes that. For this value I was planned to use a TextField gadget with a Slider gadget (the stepper version). Everything works fine so far until I discovered that mouseEvents in a CanvasGraphics area are handled differently.
I see two approaches:
1. create my own "textfield-with-stepper"-gadget object or
2. create a new mouseEvent controller using EventID()
I have no idea what to choose. Any help is very much appreciated!
I was trying to make a nice combination of a graphical interface and TGadgets but that seems hard to realize.
Perhaps anyone of you can give me some advice.
I'm making a prototype of a not-windows-like user interface: interactive graphic objects, a user can manipulate with the mouse (like click and drag). Some objects have a popup menu (also not windows like). But in this popup a user can select a numeric value and changes that. For this value I was planned to use a TextField gadget with a Slider gadget (the stepper version). Everything works fine so far until I discovered that mouseEvents in a CanvasGraphics area are handled differently.
I see two approaches:
1. create my own "textfield-with-stepper"-gadget object or
2. create a new mouseEvent controller using EventID()
I have no idea what to choose. Any help is very much appreciated!