[Lazarus] Problems drag&dropping from a TStringGrid

Jesus Reyes jesusrmx at yahoo.com.mx
Thu Jul 10 03:33:06 CEST 2008

--- El mar 8-jul-08, Luca Olivetti <luca at wetron.es> escribió:

> De:: Luca Olivetti <luca at wetron.es>
> Asunto: Re: [Lazarus] Problems drag&dropping from a TStringGrid
> A: "General mailing list" <lazarus at lazarus.freepascal.org>
> Fecha: martes, 8 julio, 2008, 6:20 am
> En/na Luca Olivetti ha escrit:
> > I'm porting some delphi code. In one of my forms I
> drag from a 
> > TStringGrid and drop to a TSpinEdit (to
> "visually" put the value in one 
> > of the rows of the string-grid in one of multiple spin
> edits).
> > The first problem is that TSpinEdit doesn't expose
> OnDragDrop and 
> > OnDragOver (I just made a derived component to publish
> those 
> > properties), but the real problem is that while I drag
> the selected row 
> > in the stringgrid changes. Is there any way to avoid
> that?
> I finally did it this way: move the BeginDrag in MouseMove
> instead of 
> MouseDowm, track the button in MouseDown, disallow cell
> selection while 
> dragging in SelectCell.

I know you found a workaround but can you test r15727? it should help.

> Luca Olivetti
> Wetron Automatización S.A. http://www.wetron.es/

Jesus Reyes A.

Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 

More information about the Lazarus mailing list