Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-08

TStringList selection follows mouse pointer

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

Hi, I have a weird situation related to TStringList. After selecting a row, the selector keeps "hooked" to the mouse pointer.

The grid has a handler for the onSelection that launches a query to populate a detail grid, this process is somewhat heavy (~500ms to process). Looks like the problem raises when I move the mouse while the onSelect hasn't finished yet.

Do you have any workaround for this? is this a bug?.

Regards,

Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 Cel.: +54 9 (011) 40871877

Reply by email

Leonardo M. Ramé
to Leonardo M. Ramé
Leonardo M. Ramé wrote
Hi, I have a weird situation related to TStringList. After selecting a row, the selector keeps "hooked" to the mouse pointer.

Sorry I mean TStringGrid.

Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 Cel.: +54 9 (011) 40871877

Reply by email

Flávio Etrusco
to Leonardo M. Ramé

Err, you shouldn't do have processing on UI event handlers.

http://wiki.freepascal.org/Asynchronous_Calls

[]s

Leonardo M. Ramé wrote 23 lines
El 24/08/16 a las 12:16, Leonardo M. Ramé escribió: > > Hi, I have a weird situation related to TStringList. After selecting a > row, the selector keeps "hooked" to the mouse pointer. Sorry I mean TStringGrid. -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 Cel.: +54 9 (011) 40871877 -- _______________________________________________ Lazarus mailing list http://lists.lazarus-ide.org/listinfo/lazarus

Reply by email

Leonardo M. Ramé
to Flávio Etrusco

GREAT!!!, that fixed the issue.

Thank you very much.

Flávio Etrusco wrote 27 lines
Err, you shouldn't do have processing on UI event handlers. http://wiki.freepascal.org/Asynchronous_Calls []s On Wed, Aug 24, 2016 at 12:17 PM, Leonardo M. Ramé wrote: > El 24/08/16 a las 12:16, Leonardo M. Ramé escribió: >> Hi, I have a weird situation related to TStringList. After selecting a >> row, the selector keeps "hooked" to the mouse pointer. > > Sorry I mean TStringGrid. > > > > -- > Leonardo M. Ramé > Medical IT - Griensu S.A. > Av. Colón 636 - Piso 8 Of. A > X5000EPT -- Córdoba > Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 > Cel.: +54 9 (011) 40871877 > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus-ide.org/listinfo/lazarus
Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 Cel.: +54 9 (011) 40871877

Reply by email