Move or copy cells and cell contents. Move cells by drag and dropping. Select the cells or range of cells that you want to move or copy. By default, drag-and-drop editing is turned on so that you can use the mouse to move and copy cells. Select the cells or range of cells that you want to move or copy.
Delphi 2010:I feel making use of a StringGrid and desire to display some additional data. These information should differ from line to column.
I am using
procedure MouseMove(Change: TShiftState; A, Con: Integer); ovérride;
ánd
procedure KeyDown( var Key: Phrase; Shift: TShiftState);ovérride;
With MouséMove I are asking where the mouse is and I obtain the line and can display some details like header + ideas. This works good.
Since some users choose to make use of the key pad I included furthermore KeyDown. This works also good - with some frustrating restrictions.
The grid has been changed that it can 'host' buttons, comboboxes amplifier; editboxes. Every column provides its design. Buttons will open up another type and editboxes will become proven when the user enters the 'éditmode' (by enter ór N2).
When a cell which is a buton will be entered after that a switch will become shown on that ceIl.
And right here the issue begins. When I get into that 'button-ceIl' by cursor then the information of that cell will be shown just very quickly since after the keydown event something is definitely contacting the MouseMove occasion. But i didnt move the mousé at aIl. And since thé mouse is certainly located at another column i get the wrong info.
Why will this take place? Any hints what i can perform?