Commit Graph

112 Commits

Author SHA1 Message Date
jesus
1ab6860b98 LCL, added metrics to fix grid's auto scrollbar issue #14799
git-svn-id: trunk@22535 -
2009-11-11 20:59:23 +00:00
paul
dca985f3e8 gtk: fix Frame3D drawing on the designer canvas
git-svn-id: trunk@21623 -
2009-09-08 13:39:43 +00:00
mattias
4e41553208 gtk2 intf: calendar: implemented GetPreferredSize
git-svn-id: trunk@21202 -
2009-08-12 15:43:30 +00:00
paul
3656a56670 gtk: use gtkglobals in gtkdef instead of vice-versa
git-svn-id: trunk@20424 -
2009-06-05 08:39:34 +00:00
paul
a533bd1614 gtk: rearrange TGtkDeviceContext members
git-svn-id: trunk@20057 -
2009-05-20 02:04:38 +00:00
paul
1eb5c2a539 gtk: fix copying one DC into another with SRCCOPY rop (fixes issue #0013746)
git-svn-id: trunk@20056 -
2009-05-20 01:59:15 +00:00
paul
9067fc5cdb gtk: move FillRect to TGtkDeviceContext, add argument SkipRop. Use SkipRop = True for winapi FillRect, use SkipRop = False for Polygon (fixes the last problem in issue #0013746)
git-svn-id: trunk@20034 -
2009-05-19 03:30:21 +00:00
paul
7dcf00f903 gtk: formatting
git-svn-id: trunk@20030 -
2009-05-19 01:54:41 +00:00
paul
31e1214cec gtk: redo TPanel implementation, add new flag to skip LCL LM_ERASEBKGND
git-svn-id: trunk@19718 -
2009-05-01 04:54:19 +00:00
paul
49a493794c gtk, gtk2: initial support for native alpha bitmaps (using pixbuf as storage) tested on windows only
git-svn-id: trunk@19503 -
2009-04-19 09:46:08 +00:00
paul
7f8bec55bf gtk: another attempt to fix focus of controls on another forms (bug #0013004). Now without endless flickering.
git-svn-id: trunk@18455 -
2009-01-27 03:29:02 +00:00
mattias
7ed7f3098d gtk intf: fixed Application.Deactivate
git-svn-id: trunk@17589 -
2008-11-25 20:07:16 +00:00
paul
25ad5bdfac gtk: don't modify selected pen on line, polyline painting
git-svn-id: trunk@17293 -
2008-11-09 12:51:19 +00:00
paul
7e1fb92a72 gtk, gtk2: implement ExtCreatePen
git-svn-id: trunk@17128 -
2008-10-24 15:10:58 +00:00
paul
d31a48a9d4 gtk, gtk2: implement GetObject for HPEN
git-svn-id: trunk@16805 -
2008-09-30 05:23:04 +00:00
paul
d0f9e88743 gtk, gtk2: PolyLine must skip last point draw to be delphi/win32 compatible
git-svn-id: trunk@16689 -
2008-09-23 23:29:10 +00:00
mattias
5f699ac8b2 gtk2: implemented TCanvas.ClipRect during paint, improved hiding/drawing caret with double buffer
git-svn-id: trunk@15865 -
2008-07-25 14:42:09 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
mattias
7e001b2934 gtk2 intf: fixed mem leak of creating pango layout for DC, bug #9259
git-svn-id: trunk@15762 -
2008-07-13 15:37:03 +00:00
mattias
a62a570ffd gtk2 intf: cache for DC textout operations from Paul
git-svn-id: trunk@15010 -
2008-04-29 12:12:27 +00:00
jesus
54208be697 LCL, gtk, fix problem on closing popupmenu, issue #10884
git-svn-id: trunk@14266 -
2008-02-27 00:01:56 +00:00
jesus
595060f998 fixed gtk compilation
git-svn-id: trunk@12977 -
2007-11-23 06:21:32 +00:00
marc
28578c3a91 * Started with object based GDI
* More splitup of gtk1/gtk2 code
* Fixed restore of GC after linedrawing
* Enabled desktop grabbing for gtk1

git-svn-id: trunk@12975 -
2007-11-23 00:07:45 +00:00
paul
d762d100d9 Gtk:
- vary widget default cursors (default edit cursor is IBeam, others are arrow)
- remove unused cursor map global variable and related stuff

git-svn-id: trunk@12039 -
2007-09-16 05:42:37 +00:00
marc
04b4e27b62 * Implemented basic alpha support
* Implemented LCL side of imagelist
* restructured rawimage to more OO

Merged revisions 11289-11617 via svnmerge from 
http://svn.freepascal.org/svn/lazarus/branches/marc-lcl

........
  r11289 | marc | 2007-06-06 22:50:05 +0200 (Wed, 06 Jun 2007) | 1 line
  
  private branch for bitmap rework
........
  r11290 | marc | 2007-06-06 23:30:09 +0200 (Wed, 06 Jun 2007) | 2 lines
  
  * Initial linux and win32 implementation
........
  r11291 | paul | 2007-06-07 03:20:11 +0200 (Thu, 07 Jun 2007) | 3 lines
  
  - fix compilation with fpc 2.3.1
  - remove unneded code for converting cursor mask
  - enabled loading of standard windows status icons instead of LCL
........
  r11292 | paul | 2007-06-07 11:03:27 +0200 (Thu, 07 Jun 2007) | 1 line
  
  - some bugs with mask and alpha
........
  r11299 | marc | 2007-06-08 00:59:26 +0200 (Fri, 08 Jun 2007) | 2 lines
  
  * force alpha channel when PNG has alpha
........
  r11302 | paul | 2007-06-09 04:45:12 +0200 (Sat, 09 Jun 2007) | 1 line
  
  - fix black rectangles instead of manu item images
........
  r11303 | paul | 2007-06-09 04:46:14 +0200 (Sat, 09 Jun 2007) | 1 line
  
  formatting
........
  r11309 | marc | 2007-06-11 02:25:07 +0200 (Mon, 11 Jun 2007) | 3 lines
  
  * Added alpha premultiply
  * Published Colorbox selection property
........
  r11310 | paul | 2007-06-11 19:10:18 +0200 (Mon, 11 Jun 2007) | 1 line
  
  misc
........
  r11312 | marc | 2007-06-12 01:44:03 +0200 (Tue, 12 Jun 2007) | 2 lines
  
  * start with carbon
........
  r11313 | paul | 2007-06-12 14:02:48 +0200 (Tue, 12 Jun 2007) | 1 line
  
  - BitBtn glyph transparency
........
  r11315 | paul | 2007-06-13 05:20:40 +0200 (Wed, 13 Jun 2007) | 1 line
  
  - problems with internal bitmap saving/loading (is was 24bpp when 32bpp needed)
........
  r11319 | paul | 2007-06-14 06:32:04 +0200 (Thu, 14 Jun 2007) | 1 line
  
  - More LCL way of painting images through ThemeServices
........
  r11320 | paul | 2007-06-14 06:32:56 +0200 (Thu, 14 Jun 2007) | 1 line
  
  - ability to override bitbtn glyph to nothing
........
  r11321 | paul | 2007-06-14 06:34:49 +0200 (Thu, 14 Jun 2007) | 1 line
  
  painting headercontrol images through ThemeServices
........
  r11325 | paul | 2007-06-17 10:14:27 +0200 (Sun, 17 Jun 2007) | 1 line
  
  fixing painting of 32bpp bitmaps with no Alpha
........
  r11326 | paul | 2007-06-17 10:16:00 +0200 (Sun, 17 Jun 2007) | 1 line
  
  missed file
........
  r11337 | paul | 2007-06-20 03:44:47 +0200 (Wed, 20 Jun 2007) | 3 lines
  
  - revert previous commit
  - create 24bpp bitmaps by default
........
  r11342 | marc | 2007-06-21 01:47:30 +0200 (Thu, 21 Jun 2007) | 3 lines
  
  * Added Alpha support on Carbon
  * Simplified win32 rawimage_fromdevice
........
  r11343 | paul | 2007-06-21 04:36:28 +0200 (Thu, 21 Jun 2007) | 1 line
  
  - adopt gtk2 code
........
  r11344 | paul | 2007-06-21 04:41:41 +0200 (Thu, 21 Jun 2007) | 1 line
  
  make gtk2 work
........
  r11353 | paul | 2007-06-22 10:12:19 +0200 (Fri, 22 Jun 2007) | 1 line
  
  - default WS imagelist implementation
........
  r11358 | marc | 2007-06-23 13:29:06 +0200 (Sat, 23 Jun 2007) | 2 lines
  
  * Implemented MaskBlit
........
  r11359 | paul | 2007-06-23 20:02:52 +0200 (Sat, 23 Jun 2007) | 1 line
  
  draw new imagelist bitmap on widget canvas
........
  r11371 | marc | 2007-06-25 23:50:13 +0200 (Mon, 25 Jun 2007) | 2 lines
  
  * Rawimage rework
........
  r11372 | marc | 2007-06-25 23:51:00 +0200 (Mon, 25 Jun 2007) | 2 lines
  
  + Added header
........
  r11373 | marc | 2007-06-26 00:05:55 +0200 (Tue, 26 Jun 2007) | 2 lines
  
  * Swapped RGBA <-> ARGB defualt format since most widgetsets use ARGB
........
  r11374 | marc | 2007-06-26 00:09:36 +0200 (Tue, 26 Jun 2007) | 2 lines
  
  * added
........
  r11462 | marc | 2007-07-12 00:16:02 +0200 (Thu, 12 Jul 2007) | 2 lines
  
  + added header
........
  r11463 | marc | 2007-07-12 00:18:49 +0200 (Thu, 12 Jul 2007) | 2 lines
  
  * Added alpha/masked strechblt support
........
  r11464 | marc | 2007-07-12 00:21:27 +0200 (Thu, 12 Jul 2007) | 2 lines
  
  * create DIBSection instead of DIBitmap
........
  r11502 | marc | 2007-07-14 00:23:42 +0200 (Sat, 14 Jul 2007) | 2 lines
  
  * Fixed transparentcolor after loading bitmap
........
  r11505 | marc | 2007-07-14 15:10:56 +0200 (Sat, 14 Jul 2007) | 2 lines
  
  - Removed ARGB dataconversion, internal format is by default the same now
........
  r11531 | marc | 2007-07-17 01:23:34 +0200 (Tue, 17 Jul 2007) | 2 lines
  
  * changed TRawImage into object
........
  r11533 | paul | 2007-07-17 05:10:31 +0200 (Tue, 17 Jul 2007) | 3 lines
  
  - change several occurrence of FillChar(..TRawImageDescription..) with call to Init
  - change imagelist defines to use old imagelist (new is crashes ide)
  - change TWin32ThemeServices to use old imagelist
........
  r11534 | paul | 2007-07-17 05:19:02 +0200 (Tue, 17 Jul 2007) | 3 lines
  
  - change several occurrence of FillChar(..TRawImageDescription..) with call to Init in Qt widgetset
  - change TRawImageDescription.IsEqual and TRawImage.IsEqual
........
  r11535 | paul | 2007-07-17 05:23:53 +0200 (Tue, 17 Jul 2007) | 1 line
  
  - change several occurrence of FillChar(..TRawImageDescription..) with call to Init in wince widgetset
........
  r11554 | marc | 2007-07-18 00:10:11 +0200 (Wed, 18 Jul 2007) | 2 lines
  
  * fixed compilation on 2.0.4
........
  r11555 | marc | 2007-07-18 00:10:44 +0200 (Wed, 18 Jul 2007) | 2 lines
  
  * fixed compilation
........
  r11556 | marc | 2007-07-18 00:11:43 +0200 (Wed, 18 Jul 2007) | 2 lines
  
  * fixed fillchar on TRawImage object
........
  r11572 | marc | 2007-07-19 01:41:35 +0200 (Thu, 19 Jul 2007) | 2 lines
  
  * fixed crash when object has vmt
........
  r11573 | marc | 2007-07-19 01:42:14 +0200 (Thu, 19 Jul 2007) | 2 lines
  
  * Made TRawimage compatible with record again
........
  r11580 | marc | 2007-07-20 01:33:20 +0200 (Fri, 20 Jul 2007) | 2 lines
  
  * enabled newimagelist
........
  r11581 | marc | 2007-07-20 01:33:48 +0200 (Fri, 20 Jul 2007) | 2 lines
  
  * fixed font
........

git-svn-id: trunk@11861 -
2007-08-25 01:49:40 +00:00
vincents
8025a708bc gtk widgetset: remove use of NoGdkPixbufLib define
git-svn-id: trunk@11750 -
2007-08-06 18:48:29 +00:00
mattias
2d3019ded3 gtk: fixed pasting from other apps: reason was an uninitialized stack value
git-svn-id: trunk@11693 -
2007-07-31 17:17:14 +00:00
mattias
a07810628b gtk1 intf: workaround for gtk bug: if there is a theme engine, ignore area parameter of draw events, fix for bug #1152
git-svn-id: trunk@11440 -
2007-07-07 10:21:18 +00:00
tombo
bdecf2b5b9 Gtk1/2 intf: implemented OnDropFiles event
git-svn-id: trunk@11401 -
2007-06-29 11:32:45 +00:00
mattias
f1ddc29682 LCL: added BeginAlign/EndAlign in TWinControl.Loaded to reduce overhead, gtk2 intf: added GetDefaultClientRect for TGroupBox, doing some resizes now immediately
git-svn-id: trunk@11160 -
2007-05-17 21:43:48 +00:00
mattias
9fdf9fcfdf gtk intf: made creation/freeing of GDI objects more consistent and more strict. gtk2 intf: brush and pen are now created on demand
git-svn-id: trunk@11128 -
2007-05-11 16:52:05 +00:00
mattias
0f2b6b8e44 gtk2 intf: fonts of device contexts are now created on demand
git-svn-id: trunk@11121 -
2007-05-10 08:44:03 +00:00
mattias
6a41acd5f4 gtk2 intf: the GC of device contexts are now created only when needed
git-svn-id: trunk@11106 -
2007-05-08 16:24:44 +00:00
mattias
2b64f5d099 gtk intf: renamed TDeviceContext.Wnd to TDeviceContext.DCWidget to save many typecasts
git-svn-id: trunk@11104 -
2007-05-08 12:58:13 +00:00
marc
6737a6ef3d * cursor patch from Paul Ishenin
+ added extra handle checks
* enabled some gtk2.2 code for getting cursorpos

git-svn-id: trunk@10597 -
2007-02-06 01:34:29 +00:00
jesus
0adbb16922 gtk: Ensure text color, use LineInfo.GetLineInfo for TraceGdiCalls
git-svn-id: trunk@10169 -
2006-11-03 21:20:20 +00:00
mattias
9747f91093 added FontIsMonoSpace
git-svn-id: trunk@10043 -
2006-10-05 21:50:05 +00:00
mattias
b17384ebc1 TButtonGlyph now uses shared bitmaps, improved debugging mem leaks
git-svn-id: trunk@9629 -
2006-07-18 17:20:34 +00:00
mattias
31810fcee6 gtk2 intf: GDI fonts are now pango layouts instead of pango font descriptions, using the font cache similar to gtk1
git-svn-id: trunk@9499 -
2006-06-27 11:28:17 +00:00
mattias
6eb4930179 fixed references to COPYING.LCL
git-svn-id: trunk@9243 -
2006-05-05 05:52:08 +00:00
mattias
03aff84390 improved setting custom font for TEdit under gtk2 from Darius
git-svn-id: trunk@8851 -
2006-03-01 01:46:40 +00:00
mattias
4b193a4407 improved color for gtk widgets from Darek
git-svn-id: trunk@8625 -
2006-01-26 20:53:59 +00:00
vincents
a0311c2cba removed cvs logs
git-svn-id: trunk@7541 -
2005-08-22 12:30:03 +00:00
vincents
7e441f98c9 remove ===-lines in cvs log comments, so removelog awk script does its work correctly
git-svn-id: trunk@7538 -
2005-08-22 10:05:31 +00:00
vincents
1064272122 removed ifdef ver1 from Martin Smat
git-svn-id: trunk@7479 -
2005-08-04 08:41:46 +00:00
mattias
c83972e61b backtraces for gtk gdi objects -dTraceGdiCalls from Jesus
git-svn-id: trunk@7101 -
2005-04-25 07:55:33 +00:00
vincents
5c84454943 changed hexstr(cardinal()) for pointers to dbgs() and other 64-bits fixes from Peter Vreman
git-svn-id: trunk@6915 -
2005-03-07 21:59:45 +00:00
mattias
cbd283b647 fixed TShape FPCanvas issue
git-svn-id: trunk@6885 -
2005-03-04 12:21:56 +00:00
vincents
18a391d3e5 added constants for gtk1 version, fixes fpc 1.0.x compilation
git-svn-id: trunk@6800 -
2005-02-18 09:44:30 +00:00
mattias
8fb1867a6b removed obsolete unit vclglobals
git-svn-id: trunk@5814 -
2004-08-18 09:31:21 +00:00