A Cool and Easy Method for Resizing and Moving Controls

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

A Cool and Easy Method for Resizing and Moving Controls

In the WinAPI help file I noticed that there was a standard SC_SIZE parameter.
http://www.delphi-central.com/resize.aspx
  • Total Hits: 15292

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 144 votes

  • Category: Delphi/Delphi Misc

  • Submitted on: 2008-04-16 06:52:39

  • Submitted By: Shekhar

  • Set as Favorite

Description:

I was hacking at one of my software projects and was trying to come up with a way to allow the user to resize my controls onscreen with the mouse. I knew the way to code it, but didn't care for it very much. While I was eating my supper (PIZZA!) I was flipping through a couple of TI's I had downloaded from Borland's sight. TI2909 caught my eye, it described a way to make a control moveable at run time by using a magic number as a WPARAM to a WM_SYSCOMMAND message. The value was a variation on the standard SC_MOVE parameter (SC_MOVE+2). I tried it and it worked."    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 38.19%  55
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.42%  15
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.81%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 11.11%  16
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.47%  41

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements