To lock an object:
Click the object once.
Click the Lock button on the top toolbar. The item will highlight red once it has been locked.
Note: you can unlock objects by clicking them once and clicking the lock button again. When locked, objects cannot be moved.
Here is a video tutorial: