Jesus,

You made a mistake in your grid fixes, EditorPos. All my demos crash !!

Your code:

  if FEditor<>nil then begin
    // send editor position
    Msg.LclMsg.msg:=GM_SETPOS;
    Msg.Grid:=Self;
    Msg.Col:=FCol;
    Msg.Row:=FRow;
    // send editor bounds
    FEditor.Dispatch(Msg);
    Msg.CellRect:=CellRect(FCol,FRow);

This is wrong, because cellrect should be initialized prior to sending !

It should be 

    // send editor position
    Msg.LclMsg.msg:=GM_SETPOS;
    Msg.Grid:=Self;
    Msg.Col:=FCol;
    Msg.Row:=FRow;
    // send editor bounds
    Msg.CellRect:=CellRect(FCol,FRow);
    FEditor.Dispatch(Msg);

After fixing this, it works again here.

Michael.
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to