Results 1 to 10 of 10

Thread: "Snapped" form resize like in Delphi 7 Object Inspector

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    "Snapped" form resize like in Delphi 7 Object Inspector

    Run D7, dunno if other versions also have this feature. Make sure you have Object Inspector visible.
    Object Inspector is basically grid with specific number of rows.

    You can adjust its width to anything you want.

    But if you adjust the height (resize it to up or down) then you see like snapping to each row or something like that. Dunno how to say it properly.

    The height is adjusted not smoothly but snapping to the height of the rows in Object Inspector grid.


    How could that be done?
    I dont have Lazarus installed atm, maybe it also has this, i could take a look the source but if not how i could do same thing?

    Is the math behind it very difficult?
    I would like to make this feature for both width and height fro my editor tile picker window. I like that "snapping".

    There are few properties for forms like: "FormCanResize" and "FormConstrainedResize".
    Maybe Delphi also uses that. Dunno.

    TIA for any tip.
    Last edited by hwnd; 08-09-2013 at 11:22 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •