Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,083
    • Issues 2,083
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 8
    • Merge requests 8
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #29975
Closed
Open
Created Apr 06, 2016 by FPC Admin account@fpc_adminOwner

TWin32WSCustomCalendar.HitTest returns 0 in unthemed application on Vista and up

Original Reporter info from Mantis: Bart @flyingsheep
  • Reporter name: Bart Broersma

Description:

TWin32WSCustomCalendar.HitTest returns 0 in unthemed application on Vista and up

Steps to reproduce:

Create 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 information:

The 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.

Mantis conversion info:

  • Mantis ID: 29975
  • OS: Windows
  • OS Build: Win7
  • Platform: i386
  • Fixed in version: 1.6.2
  • Fixed in revision: r52117 (#c8f24216)
  • Target version: 1.6.2
Assignee
Assign to
Time tracking