Le dimanche 6 Novembre 2005 19:07, Jesus Reyes a écrit :
> ----- Original Message -----
> From: "jean-marc levecque" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Saturday, November 05, 2005 4:02 PM
> Subject: [lazarus] Selecting a cell in a StringGrid
>
> > Hi,
> >
> > SelectCell seam to have a strange behaviour.
> > After selecting by clicking a cell, if you move again the cursor over the
> > grid, its selecting the first cell reached by the cursor.
> > Also, the fixed rows/cols cannot be selected, and cell[0,0] is never
> > selected even when fixed rows/cols are set to 0.
> > I checked this with only a StringGrid with ShowMessage in
> > onSelectCellEvent. As I am not so sure of what should be the good
> > behaviour, I compared to Delphi, and there, any cell can be selected, no
> > problem with the cursor back over the grid.
> > Now, is there any other mean to select a cell, and use it for some action
> > ?
>
> Fixed in revision 8077, now if the grid lost focus while selecting it
> resets to normal state, please test and let me know if I interpreted you
> report correctly
>
> Jesus Reyes A.
>
Well, sorry, but I needed time to check this because I only used stable 
versions up to today, and I had to start use of svn (making progress!!)
Finally, I got it.

So, now I tested the onSelectCell and the onSelection events. 
In fact, the onSelection seems to work well, but the onSelectCell still 
doesn't reply if you select the first cell i.e top-left one = 0,0 with fixed 
rows/columns set to 0, or = 1,1 with fixed rows/columns set to 1.
BTW what should be the difference between these two events?
Now moving the cursor above the grid is ok

Thanks for the reply
>
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> Regístrate ya - http://correo.yahoo.com.mx/
>
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to