Announcement

Collapse
No announcement yet.

My Little Grid question - locked cells

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • My Little Grid question - locked cells

    Is there a graceful way to have the cell selection skip over locked cells? I can put the edit box where I want it with a SETSELECTED message in the callback function for SELCHANGE, but the grid doesn't scroll to make the new selection visible.

    The visibility problem seems to always affect SETSELECTED. I modified the demo to set a particular cell when the escape key is pressed and it doesn't scroll either. Tabbing to the next column does make the row visible.

    Any help will be appreciated.

    Fran

  • #2
    Hi Fran

    Thanks for the feedback. I have changed the SETSELECTED message behavior to have the selected cell be visible on the grid. I had originally intended this behavior.

    I plan on releasing MLG Version 1.10 soon with some refinements. This will be included. You have probably already figured out that you change tell if a row (or column) has the lock property set with the following form:

    LOCAL MyFormat as RowColDataType

    SendMessage hGrid1,%GETROWFORMAT,myrow,VARPTR(MyFormat)

    IF MyFormat.WriteLock =1 THEN
    'Do the Row Lock routine
    END IF


    Jim

    Comment


    • #3
      Thanks, Jim. I'll be watching for the new version. It looks like My Little Grid will be perfect for my latest project. Good job.

      Fran

      Comment


      • #4
        I tried version 1.10 and the up arrow produces the expected results, but I'm still having trouble moving down. If the horizontal scrollbar is on, it hides the edit box no matter how I get to the bottom row. There are some other behaviors that seem peculiar. If you'll e-mail me with your address, I'll send you the details.

        My address is fran located at netpathway with com at the end.

        Fran

        Comment


        • #5
          Fran

          I sent you my email address. I will try to get to the bottom of your problem.

          Jim

          Comment


          • #6
            I uploaded a new copy of My Little Grid to my web site fixing the SETSELECTED message. It now correctly positions the new selected cell on the grid so it is visible if it was out of view. I also enhanced the message a bit so if this is not your desired response, you can prevent the grid repositioning. Thanks to Fran Green for bringing this to my attention.

            No need to redownload MLG if you do not need this functionality.

            Jim

            Comment

            Working...
            X