To facilitate development, you need to modify the history of delphix underlying code (the maximum Z value in the painting list)

Source: Internet
Author: User

1: now we need to get the Z value of the last object in fdrawlist. This value must be obtained because the Z value of the object needs to be controlled. (Display the form at the beginning)

 

// 1 : Add a private method:
Function Getmaxdrawlistz: integer;
// 2 : Add public attributes:
Property Maxdrawlistz: integer Read Getmaxdrawlistz;
// 3 : Add a private MethodCode:
Function Tsprite. getmaxdrawlistz: integer;
Begin
Result: =- 1 ;
If Assigned (fdrawlist) Then
Result: = Tsprite (fdrawlist [fdrawlist. Count -   1 ]). Z;
End ;

 

The actual code shows that the mouse is always at the top, so this method is no longer useful.

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.