I noticed that we define positions using vectors in pixels.
However, I don't know when the vectors are referring to the absolute position relative to the computer window; when the vectors are referring to the position relative to the parent widgets; or when the vectors are referring to the position relative to itself. And I really find it hard to calculate and measure positions.
Any summaries or good methods out there?

Thanks very much!