Fixed the error when tlistview applied XP theme.

Source: Internet
Author: User
Dephi6 (and earlier versions) does not support the XP style, because XP is still being tested when dephi6 is launched. To make the application support the XP style, you must add the "manifest XML" resource file to the application, telling the system to use 6.0 comctl32.dll for this application, instead of 5.0. However, some VCL controls are compatible with 6.0.
When tlistview is vsreport, an exception is thrown when you move the cursor over the column header. To solve this problem, you need to modify comctrls. Pas. The steps are as follows:
1. Open the comctrls. Pas file and find tcustomlistview. updatecolumn;
2. Find the following statement:
IfFimageindex <>-1 Then
FMT: = FMT OrLvcfmt_image OrLvcfmt_col_has_images;
3. changed:
IfFimageindex <>-1 Then 
FMT: = FMT OrLvcfmt_image OrLvcfmt_col_has_images
Else 
Mask: = mask And Not(Lvcf_image );
3. Save comctrls. Pas, OK, and solve the problem!
In addition, www.tmssoftware.com provides free controls to fix problems without modifying the original VCL control code.

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.