Object placement snapping and guides

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
seaniepie
Posts: 154
Joined: Wed Sep 07, 2011 10:56 am

Object placement snapping and guides

Post by seaniepie » Tue Jan 17, 2012 3:21 pm

Hi all,

Now, I know we already have an align tool and very useful it is too. Far more useful though would be the inclusion of switchable guides. Many apps now utilise this feature such as OmniGraffle, Photoshop, Aftereffects, and our beloved Xcode Interface Builder. Something that we can start snapping the position of fields, buttons and even the start/end points of graphics would be awesome and make development so much faster. Have a look at what the others are doing and see if it could be imitated in some way (assuming it doesn't steal from their intellectual property :wink: ).

All the best
Pi

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Object placement snapping and guides

Post by jacque » Tue Jan 17, 2012 7:17 pm

See the "grid" property in the dictionary. You can set it to any integer.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

seaniepie
Posts: 154
Joined: Wed Sep 07, 2011 10:56 am

Re: Object placement snapping and guides

Post by seaniepie » Fri Jan 20, 2012 12:47 am

It's not the same thing. Use guides in Photoshop or Interface Builder or OmniGraffle and you will see what I mean. These are created dynamically based on the objects already on the work surface. It's brilliant and an industry standard I am used to.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Object placement snapping and guides

Post by dunbarx » Fri Jan 20, 2012 8:14 pm

I see what you mean. In CAD programs there are extensive tools to snap the handles of an object to the handles of another. These handles are generally vertices, midpoints, centers, etc.

It seems like a simple and fun task to make a "snap" palette. You would:
- start a process in the palette:
- click on an object
- click on a target object
- select one of several options in the palette, such as "topLeft" and "center".

The first object would snap appropriately to the target.

I never need this, though I use such tools constantly in CAD. Otherwise I would jump to make such a thing. Perfect for revOnLine.

Go!

Craig Newman

Post Reply