Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set bottom right corner position... 1

Status
Not open for further replies.

robi2

Programmer
Jan 19, 2003
62
IL
Hi, is there any way i can set the position of the bottom right corner of an element rather than the top left one?

I mean i want to set the coordinates for the bottom right side of the element, and not the ususal top left corner.
 

elementHeight = 100
elementWidth = 50

topPos = 150
leftPos = 150

bottomPos = topPos + elementHeight
rightPos = leftPos + elementWidth

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top