Skip to content

GitLab

    • 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
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • 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
  • #23168
Closed
Open
Created Oct 20, 2012 by FPC Admin account@fpc_adminOwner

Latest changes in GTK2 changed drawing rules

Original Reporter info from Mantis: Dibo
  • Reporter name: Krzysztof Dibowski

Description:

Are some serious changes implementing in GTK interface right now? I'm
the author and maintainer of BGRA Controls package which are using
BGRA Bitmap package for drawing. Issues:

  1. First, I can't compile BGRA Bitmap package without comment line:
{ifdef LCL_GTK2}
type TGtkDeviceContext = TGtk2DeviceContext;
{$endif}

What happened with TGtk2DeviceContext? This same with other non-BGRA
controls like VirtualTreeView (but there is more GTK errors than only
TGtk2DeviceContext )

  1. BGRA Controls are using simple BGRA Bitmap api for drawing:
    BGRABitmap.Draw(Canvas, 0,0,false). This code worked from a several
    years, but now seems that GTK coordinates are different. If I drag (or
    in runtime) some BGRA Control on center of the form, I don't see what
    is drawed, just transparent frame, but If I move control to left-top
    corner then I see control body. Seems that GTK is starting drawing
    from form canvas, not control.

I notified this a few days ago, I thought that this is some temporary
issue, but with today trunk is the same problem.

Regards, Dibo

Additional information:

I attached simple demo:

  1. You must install BGRA Bitmap package first (tested on version 6.1 and oldes) from https://sourceforge.net/projects/lazpaint/files/src/
  2. Run attached demo
  3. You will see small rectangle in top-left corner. This is paint box.
  4. Now got to design form and move paint box to the center of the form and run program. Rectangle is now unvisible

Ubuntu 12.10 64bit GTK (Unity), Lazarus from svn trunk, fpc 2.6.0

Mantis conversion info:

  • Mantis ID: 23168
  • Version: 1.0.3 (SVN)
  • Fixed in version: 1.2.0
Assignee
Assign to
Time tracking