Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-10

What's going on with GTK on lazarus 1.0.2 from SVN?

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Krzysztof

Hi,

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 )

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

Reply by email

Torsten Bonde Christiansen
to Krzysztof
Krzysztof wrote 34 lines
Hi, 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 ) 2. 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 -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

This also affects LCLExtension (v0.5) from
http://code.google.com/p/luipack/downloads/list
which cannot compile due to this.

Regards,
Torsten.

Reply by email