![]() If you keep the button pressed and move the mouse to expand the selection, OnSelectCell will not be called again. OnSelectCell event is called only once when you click the cell. ![]() There is a separate post about it here: TStringGrid - OnMouseUp is not called! So, the mouse will be locked in a screen region until the user will has the brilliant idea to click the LMB one more time to unlock the mouse. For example, if the user presses the left mouse button (LMB) and then without releasing that button it presses the right button, the associated pop-up menu will pop but the mouse capture will never be released. However, this hack is as I said very dirty. When the user releases the button (OnMouseUp event), I release the capture. The user can move the mouse device up and down on its pad but the cursor will not go up or down. ![]() When the user presses the left mouse button I am using a dirty hack: On OnMouseDown event I capture the mouse cursor and keep it on the current row. I want to allow the user to make selections in this grid but restrict the selection one single row (the current row). I have a heavily modified control based on TStringGrid.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |