{"id":40,"date":"2007-05-08T15:31:11","date_gmt":"2007-05-08T13:31:11","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/windowsxp-listview-error-with-xp-xp-style-3\/"},"modified":"2007-05-11T19:42:57","modified_gmt":"2007-05-11T17:42:57","slug":"windowsxp-listview-error-with-xp-xp-style-3","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/windowsxp-listview-error-with-xp-xp-style-3\/","title":{"rendered":"WindowsXP: ListView error with XP XP Style (3)"},"content":{"rendered":"<p>The only problem I have found with WinXP and Delphi is the TListView<br \/>\ncontrol. Everything else seems to work OK for me (though I don&#8217;t use<br \/>\nTCoolBar). You need to modify the Delphi VCL to fix the TListView problem. I<br \/>\nonly have Delphi 5, so you will need to adapt the following to Delphi 6:<\/p>\n<p>&#8212;&#8211; cut &#8212;&#8211;<br \/>\nUnit: ComCtrls<br \/>\nMethod: TCustomListView.UpdateColumn<\/p>\n<p>Old:<br \/>\n[code lang=&#8221;delphi&#8221;]<br \/>\nif FImageIndex <> -1 then<br \/>\n   fmt := fmt or LVCFMT_IMAGE or LVCFMT_COL_HAS_IMAGES;<br \/>\n[\/code]<\/p>\n<p>New:<br \/>\n[code lang=&#8221;delphi&#8221;]<br \/>\n if FImageIndex <> -1 then<br \/>\n    fmt := fmt or LVCFMT_IMAGE or LVCFMT_COL_HAS_IMAGES<br \/>\n else<br \/>\n     mask := mask and not (LVCF_IMAGE);[\/code]<br \/>\n&#8212;&#8211; cut &#8212;&#8211;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The only problem I have found with WinXP and Delphi is the TListView control. Everything else seems to work OK for me (though&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[75,80],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-E","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/40"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}