Sign in Join

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

Mailing lists / lazarus / 2003-09

CVS Updates

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner

Hi all,

LCL can now load/save .png images with the new TPortableNetworkGraphic. The new graphic class demonstrates that any fpImage format can now be added to the LCL in a minute. Just create the class and add 3 lines of code. I hope, there will soon be some people writing fpImage readers/writers for bmp, jpg, gif.

Other updates:

- fixed ControlAtPos for hidden TPage
- implemented component tree for object inspector. Because Drag&Drop is not yet implemented in TTreeView, you can only view the control hierachy, but not alter it.
- implemented for packages:
translating custom compiler options to codetools defines. That means for instance: You can now use -d compiler flags in the custom options, and "find declaration" will consider this for all source directories of the package.
Inherited custom options are not yet implemented.
- implemented CodeTools Defines Values dialog. This dialog shows you the current defines for a directory.
Available under
Environment -> CodeTools Defines Editor -> Tools -> Preview and under
Source Editor -> Popup Menu -> Unit Info -> Show CodeTools Values
- replaced IDE's open file, save file speed button icons
- IDE's speedbutton panel is now as high as the form
- if a gtk theme has only a pixmap, but no color defined, default color will now be used
- TBitmap.Assign now shares image data (like VCL)
- TPicture.SetGraphic now shares the image data (like VCL), and does not any longer use the whole graphic. If you use TPicture or TImage, please check for mem leaks.
- implemented TPortableNetworkGraphic.ReadStream, WriteStream
- implemented TPreviewFileDialog, TOpenPictureDialog, TSavePictureDialog

Mattias

Reply by email

Mattias Gaertner

Hi all,

the LCL and fpImage combination works better nearly every day. This week the bmp reader/writer has been added to fpImage, there is a jpeg reader/writer on sourceforge and copying from/to clipboard is now also implemented. The big missing pieces in the puzzle are palettes and win32 intf support.

Updates:

- implemented Import and Export of compiler options
- The IDE can now parse the Kylix 3 sources.
Just add the Kylix 3 defines:
Environment -> CodeTools defines editor -> Insert Template -> Insert Kylix 3 directory template
- added ObjectInspector example
- implemented copying graphics from/to clipboard
- Added TBitmap methods for easy load/save via fpImage. An example is the TJPEGImage at
http://lazarus.sourceforge.net/jpeglazarus.html
This means the LCL is now able to
load/save bmp, xpm, png and jpeg files.
- TBitmap now uses FPWriteBmp to write bmp files.

Mattias

Reply by email

Unknown author

hey all, I have made a few more CVS updates for GTK2 over the past several days, so figured I should give a general overview of where we are :)

- TControls "work"
- drawing works
- many events work
- click events mouse pos are often translated wrong
- clipping is wrong/doesn't work

- TWinControls "Work"
- native controls mostly work
- lcl controls partly work
- drawing wrong?
- no caret in synedit
- major scroll flashing
- key event acceleration untested, may not work
- many(most?) events work
- key events are still a little foobar

- Pango support almost works(turned off by default)
- causes crashes in some things (synedit?)
- bg doesn't always get cleared so fonts overdraw on re-expose
- apears to properly grab ScreenFonts properly(thus far no more X dependency if using GTK2.2)
- DrawText apears to work mostly(oh happy AA)
- TextOut mostly works
- TextExtentPoint should work properly
- UpdateDCTextMetrics mostly works
- ExtTextOut May work (untested)

- IDE semi-works
- form editing partly works
- redrawing wrong(clipping?)
- position updating
- doesn't always follow mouse
- unresponsive sometimes
-object inspector partly works
- internal buttons not visible, overdrawn(clipping again?)
- mouse events offset(wrong position)
- tooltips don't always match entry
-menus, some work some don't som crash and go boom :)
- component pallete mostly works
- mouse offset wrong , events recieved farther right then actually occur
- Source Editing(synedit) looks almost right oh so pretty
- unuseable, mouse clicks recieved multiple times
- constant slow flashing
- no caret visible
- text selecting half works
-misc other forms some work some go boom, many things are drawn offset wrong(clientrect).

- examples - many work all are buggy.

Still needs lots of love and any patches (especially for Clipping, mouse offsets, and key events) apreciated, but we are getting closer......

Andrew

Reply by email