When running, you can drag the label on the report with the mouse

Source: Internet
Author: User
 label hlms Delphi notes-delphi2007.net 
http://www.delphi2007.net/delphiblog/html/delphi_2004992226395018.html
Private {private Declarations} originalpos, downpos, currentpos: tpoint; mousedown: Boolean; // initialize it as falseprocedure tform1.label1mousedown (Sender: tobject; button: tmousebutton; shift: tshiftstate; x, Y: integer); begin originalpos. x: = label1.left; originalpos. y: = label1.top; downpos. x: = x; downpos. y: = y; downpos: = clienttoscreen (downpos); If Button = mbleft then mousedown: = true; end; Procedure tform1.label1mousemove (Sender: tobject; shift: tshiftstate; X, Y: integer); begin if mousedown then begin currentpos. x: = x; currentpos. y: = y; currentpos: = clienttoscreen (currentpos); label1.left: = originalpos. X + currentpos. x-DownPos.X; label1.top: = originalpos. Y + currentpos. y-DownPos.Y; end; Procedure tform1.label1mouseup (Sender: tobject; button: tmousebutton; shift: tshiftstate; X, Y: integer); begin mousedown: = false; end;
 
 

  • I am thinking about publishing a blog. Anyone can write 10 to one hundred books on his blog. This is interesting.
  • Howto track a user's idle time
  • A director played with hundreds of women for ten years and left a shameless "sexual Diary"
  • A fastreport report template is similar to a crystal report.
  • Interception of API functions in Win2k
  • Timer In tthread
  • Additional data within a stringlist
  • Find all local computers on a LAN
  • Disable Ctrl Alt Del and ALT Tab
  • Hi/LO order byte
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.