Home > Back-end > How to shield the Edit Edit column double-click or other click operation caused by selection effect
How to shield the Edit Edit column double-click or other click operation caused by selection effect
Time:09-18
BCB Edit in editable mode, double-click, or click operation can cause other controls the default string selection behavior, how do I block the default behavior, Certainly cause future generations is not only the double click action, specific can lead to future generations of all events cannot speculate that
CodePudding user response:
Seems to have a AutoSelect properties, but not necessarily to double-click the useful,
CodePudding user response:
In the edit all the mouse events, such as mousedown, mouseup, mouseleave mousemove mouseenter perform this code Edit1 - & gt; SelLength=0; So as not to future generations
CodePudding user response:
But can't block human range through the mouse to drag the selected operation
CodePudding user response:
Can ah, selected by mouse also blocked, you try it again, the mouse drag cannot select the text, can also block the keyboard