G
greg
Hi. I'm trying to implement a function.
Users are able to control-click on components. This turns the component red,
and does multi-selection and does some copying/pasting.
I'm having problems with some of my custom components. I've added the event
handler for MouseClick that simply pops up a message box for now to do some
debugging.
On Windows components, I can click no problem and it's triggered.
My custom component, which has a label and a text box -
- Clicking on the textbox, even is not triggered (this is okay by me
actually! )
- Clicking on the label itself, the event is not triggered.
- Click on any space *around* the label invokes the event.
Is there some sort of event passthrough I need to enable on my component?
Otherwise, all I can think of is adding the event at run-time :
myComponent.innerLabel.MouseDown += .. myHandler;
Thanks,
Greg
Users are able to control-click on components. This turns the component red,
and does multi-selection and does some copying/pasting.
I'm having problems with some of my custom components. I've added the event
handler for MouseClick that simply pops up a message box for now to do some
debugging.
On Windows components, I can click no problem and it's triggered.
My custom component, which has a label and a text box -
- Clicking on the textbox, even is not triggered (this is okay by me
actually! )
- Clicking on the label itself, the event is not triggered.
- Click on any space *around* the label invokes the event.
Is there some sort of event passthrough I need to enable on my component?
Otherwise, all I can think of is adding the event at run-time :
myComponent.innerLabel.MouseDown += .. myHandler;
Thanks,
Greg