Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 2,095
    • Issues 2,095
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #32828
Closed
Open
Issue created Dec 14, 2017 by FPC Admin account@fpc_adminOwner

TListBox cocoa widgetset implementation missing functionality

Original Reporter info from Mantis: djenkins @dfjenkins
  • Reporter name: David Jenkins

Description:

  1. Text entered in an editable ListBox field is not updated in widget
  2. When listbox is in a scrollview the mouse and keyboard activity are not displayed in a Listbox edit field.
  3. Now owner draw functionality.

Additional information:

  1. Add textDidChange() function to TCocoaTextField that calls callback.SendOnTextChanged so that updated text can be caught
  2. When TCocoaFieldEditor is used within a NSScrollView the needsDisplay path doesn't work out quite right. This shows up when mouse and keyboard action in the fields doesn't result in updates (but if you mouse to another app and then come back the updates are shown). Overriding setNeedsDisplayInRect_avoidAdditionalLayout that calls the setNeedsDisplay of the parent fixes this.
  3. Allow for owner draw by overriding TCooaListBox.drawRow_clipRect() and setting up a call to LCLSendDrawListItemMsg().

Patch attached.

Mantis conversion info:

  • Mantis ID: 32828
Assignee
Assign to
Time tracking