Hi,
simple example: After a user has selected a position in a TextBox the application might require to get a MouseUp event.
Unfortunately, as soon as you place a TextBox on a Form, any mouse events within the region of the TextBox are masked from the Form, you want get an event.
Two solutions:
easy(?): Just don't mask Mouse events from the form. (Actually, current behavior could be considered a bug).
complicated(!): Add these events to every control.
BTW: The simplified programming model of B4PPC suggests the former solution.
BTW2: It gets even more complicated with controls which are added by libraries (e.g., TreeView).
Jens
simple example: After a user has selected a position in a TextBox the application might require to get a MouseUp event.
Unfortunately, as soon as you place a TextBox on a Form, any mouse events within the region of the TextBox are masked from the Form, you want get an event.
Two solutions:
easy(?): Just don't mask Mouse events from the form. (Actually, current behavior could be considered a bug).
complicated(!): Add these events to every control.
BTW: The simplified programming model of B4PPC suggests the former solution.
BTW2: It gets even more complicated with controls which are added by libraries (e.g., TreeView).
Jens
Last edited: