View Issue Details

IDProjectCategoryView StatusLast Update
0029975LazarusWidgetsetpublic2016-04-06 19:09
ReporterBart BroersmaAssigned ToBart Broersma 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformi386OSWindowsOS VersionWin7
Product VersionProduct Build 
Target Version1.6.2Fixed in Version1.6.2 
Summary0029975: TWin32WSCustomCalendar.HitTest returns 0 in unthemed application on Vista and up
DescriptionTWin32WSCustomCalendar.HitTest returns 0 in unthemed application on Vista and up
Steps To ReproduceCreate an application with themes disabled and ru it on Vista or higher:
-Invoke a CalendarPopup or CalendarDialog.
- Click or Double click on a date
- Date does not change.

TCustomCalendar.HitTest returns cpNowhere wherever you click.
Additional InformationThe MCHITTESTINFO structure seems to not only depends on Windos version but also on wether or not the application is themed

It seems this works:
  if (WindowsVersion >= wvVista) and (GetFileVersion(comctl32) < ComCtlVersionIE6) then
    HitTestInfo.cbSize := SizeOf(HitTestInfo)
  else
    HitTestInfo.cbSize := 32;

Needs more testing.
TagsNo tags attached.
Fixed in Revisionr52117
LazTarget1.6.2
WidgetsetWin32/Win64
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-04-06 12:51 Bart Broersma New Issue
2016-04-06 12:51 Bart Broersma Status new => assigned
2016-04-06 12:51 Bart Broersma Assigned To => Bart Broersma
2016-04-06 19:09 Bart Broersma Fixed in Revision => r52117
2016-04-06 19:09 Bart Broersma LazTarget - => 1.6.2
2016-04-06 19:09 Bart Broersma Status assigned => resolved
2016-04-06 19:09 Bart Broersma Fixed in Version => 1.6.2
2016-04-06 19:09 Bart Broersma Resolution open => fixed
2016-04-06 19:09 Bart Broersma Target Version => 1.6.2
2016-04-06 19:09 Bart Broersma Status resolved => closed