Commit Graph

52 Commits

Author SHA1 Message Date
mattias
1d8586a848 gtk2: clean up
git-svn-id: trunk@36791 -
2012-04-15 11:46:16 +00:00
blikblum
a42083fe74 lcl: remove unneeded check in TButtonGlyph.SetGlyph
git-svn-id: trunk@30346 -
2011-04-17 12:20:56 +00:00
sekelsenmat
6a2f27cac2 Patch from bug #17594. Solves compiling Lazarus with the fpc branch fpc-xpcom
git-svn-id: trunk@27667 -
2010-10-12 15:00:44 +00:00
paul
fda6d84cc0 lcl: add TThemeServices.GetOption with 2 options at moment - ShowButtonImages and ShowMenuImages
git-svn-id: trunk@20188 -
2009-05-25 07:26:57 +00:00
paul
695d17aeb1 lcl: TButtonGlyph
- show always in design time and don't react on ShowMode change
  - show always for TSpeedButton

git-svn-id: trunk@19947 -
2009-05-13 02:58:39 +00:00
paul
3005b7d87f lcl: add TApplication.ShowButtonGlyphs property and handle change
git-svn-id: trunk@19938 -
2009-05-12 08:02:36 +00:00
paul
f3dfb636c4 lcl: add new property TBitBtn.GlyphShowMode and new function TBitBtn.CanShowGlyph
git-svn-id: trunk@19909 -
2009-05-10 15:52:24 +00:00
paul
6af0fb9bc9 lcl: fix asterisk position in the copyright comment
git-svn-id: trunk@19477 -
2009-04-18 04:03:13 +00:00
paul
fa7ae42825 lcl: add TCustomBitBtn.LoadGlyphFromLazarusResource
git-svn-id: trunk@16648 -
2008-09-19 14:18:30 +00:00
marc
ce312d71a9 * Introduced Rasterimage.Masked property to distinguish between Alpha transparency and Masked transparency (fixes #0011850)
git-svn-id: trunk@16216 -
2008-08-24 22:56:56 +00:00
paul
c157756168 lcl: call HandleNeeded before checking of maskhandle when adding bitmap to the imagelist (fixes #0011692)
git-svn-id: trunk@16011 -
2008-08-09 16:40:07 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
marc
5bae4a6e54 * Check for owner=nil. TPicture can create instances of TGlyphBitmap too (without owner). Fixes #11612,#11662
git-svn-id: trunk@15796 -
2008-07-16 23:30:50 +00:00
marc
e90a4cab8b * fixed transparency of speedbutton glyph (issue #11571)
git-svn-id: trunk@15668 -
2008-07-03 23:47:36 +00:00
paul
d27b65a627 ButtonGlyph:
- allow setting bigger glyphcount than 4 (limited by High(TGlyphCount)). current limit is 5
- clear imagelist and imageindexes after glyph change to prevent possible garbage drawing

git-svn-id: trunk@13295 -
2007-12-12 14:19:25 +00:00
paul
e0946dbb84 ButtonGlyphs:
- extend TNumGlyphs - now 1..5
- extend TButtonState - bsHot added
- restore bsExclusive painting
- handling bsHot state
SpeedButtons:
- handle new state bsHot

git-svn-id: trunk@13286 -
2007-12-12 01:57:38 +00:00
paul
4db33cbc97 - remove obsoleted code from TButtonGlyph.Draw
- dont shift speedbutton glyph in down state if it intersects border

git-svn-id: trunk@13164 -
2007-12-05 15:05:29 +00:00
paul
0dd71dc759 - fix possible crashes of imagelistcache
git-svn-id: trunk@12920 -
2007-11-19 03:33:20 +00:00
paul
fc8a994cc6 ButtonGlyph:
- fix possible crash
- fix crash under gtk with BitBtn

git-svn-id: trunk@12919 -
2007-11-19 03:17:22 +00:00
paul
fd3a23fd89 lcl: implement imagelist cache to reduce amount of imagelists for bitbtns and speedbuttons
git-svn-id: trunk@12906 -
2007-11-17 17:08:58 +00:00
mattias
8a9818c7eb LCL: TButtonGlyph: removed clearing Handle
git-svn-id: trunk@12896 -
2007-11-16 17:24:12 +00:00
paul
4c109d5542 dont add empty bitmap to internal imagelist of TButtonGlyph (issue #0010132)
git-svn-id: trunk@12785 -
2007-11-08 14:54:18 +00:00
paul
ee80b0fd46 ImageList:
- InsertBitmap improved to add multiple bitmaps from one big
- GetBitmap extended to get Bitmaps with different effects
- add DrawToDC to win32 imagelist to give ability to draw without TCanvas (having only HDC)

TButtonGlyph:
- use internal imagelist to perform different state drawing of glyph

TBitBtn:
- send ButtonGlyph to widgetset instead of TBitmap to perform different state drawing

git-svn-id: trunk@12779 -
2007-11-08 08:36:03 +00:00
paul
5492dc6a0d - second part of speedbutton patch from Giuliano Colla
git-svn-id: trunk@11596 -
2007-07-23 05:10:08 +00:00
mattias
da369fe2f3 LCL: nicer TSpeedButton if glyph does not fit from Valdas
git-svn-id: trunk@11199 -
2007-05-25 10:02:45 +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
b17384ebc1 TButtonGlyph now uses shared bitmaps, improved debugging mem leaks
git-svn-id: trunk@9629 -
2006-07-18 17:20:34 +00:00
mattias
6eb4930179 fixed references to COPYING.LCL
git-svn-id: trunk@9243 -
2006-05-05 05:52:08 +00:00
mattias
ce11f9f6e2 implemented mainunit hints for include files
git-svn-id: trunk@5393 -
2004-04-10 17:58:57 +00:00
mattias
c1592f9af8 TSpeedButton now uses MaskBlt
git-svn-id: trunk@5184 -
2004-02-10 00:05:03 +00:00
mattias
459b1c939c fixed many range check warnings
git-svn-id: trunk@4951 -
2003-12-25 14:17:07 +00:00
mattias
9e186eb76b fixed freeing glyphs
git-svn-id: trunk@4725 -
2003-10-22 19:52:07 +00:00
mattias
24a046fcf6 prepared image sharing
git-svn-id: trunk@4724 -
2003-10-22 18:43:23 +00:00
mattias
fc194c6045 added third buttonglyph from Tom Lisjac
git-svn-id: trunk@4371 -
2003-07-06 08:59:41 +00:00
lazarus
21eea01db1 MG: fixed freeing Glyph in TBitBtn.SetKind
git-svn-id: trunk@3497 -
2002-10-10 20:34:33 +00:00
lazarus
27f7ca3e31 MWE: Applied patch from "Andrew Johnson" <aj_genius@hotmail.com>
Here is the run down of what it includes -

 -Vasily Volchenko's Updated Russian Localizations

 -improvements to GTK Styles/SysColors
 -initial GTK Palette code - (untested, and for now useless)

 -Hint Windows and Modal dialogs now try to stay transient to
  the main program form, aka they stay on top of the main form
  and usually minimize/maximize with it.

 -fixes to Form BorderStyle code(tool windows needed a border)

 -fixes DrawFrameControl DFCS_BUTTONPUSH to match Win32 better
  when flat

 -fixes DrawFrameControl DFCS_BUTTONCHECK to match Win32 better
  and to match GTK theme better. It works most of the time now,
  but some themes, noteably Default, don't work.

 -fixes bug in Bitmap code which broke compiling in NoGDKPixbuf
  mode.

 -misc other cleanups/ fixes in gtk interface

 -speedbutton's should now draw correctly when flat in Win32

 -I have included an experimental new CheckBox(disabled by
  default) which has initial support for cbGrayed(Tri-State),
  and WordWrap, and misc other improvements. It is not done, it
  is mostly a quick hack to test DrawFrameControl
  DFCS_BUTTONCHECK, however it offers many improvements which
  can be seen in cbsCheck/cbsCrissCross (aka non-themed) state.

 -fixes Message Dialogs to more accurately determine
  button Spacing/Size, and Label Spacing/Size based on current
  System font.
 -fixes MessageDlgPos, & ShowMessagePos in Dialogs
 -adds InputQuery & InputBox to Dialogs

 -re-arranges & somewhat re-designs Control Tabbing, it now
  partially works - wrapping around doesn't work, and
  subcontrols(Panels & Children, etc) don't work. TabOrder now
  works to an extent. I am not sure what is wrong with my code,
  based on my other tests at least wrapping and TabOrder SHOULD
  work properly, but.. Anyone want to try and fix?

 -SynEdit(Code Editor) now changes mouse cursor to match
  position(aka over scrollbar/gutter vs over text edit)

 -adds a TRegion property to Graphics.pp, and Canvas. Once I
  figure out how to handle complex regions(aka polygons) data
  properly I will add Region functions to the canvas itself
  (SetClipRect, intersectClipRect etc.)

 -BitBtn now has a Stored flag on Glyph so it doesn't store to
  lfm/lrs if Glyph is Empty, or if Glyph is not bkCustom(aka
  bkOk, bkCancel, etc.) This should fix most crashes with older
  GDKPixbuf libs.

git-svn-id: trunk@3373 -
2002-09-27 20:52:23 +00:00
lazarus
5aab225599 MG: removed the 1x1 bitmap from TBitBtn
git-svn-id: trunk@3337 -
2002-09-13 16:58:27 +00:00
lazarus
539b2d26ca MG: image support, TScrollBox, and many other things from Andrew
git-svn-id: trunk@3276 -
2002-09-03 08:07:20 +00:00
lazarus
3c3902b44c MG: added gdkpixbuf.pp and changes from Andrew Johnson
git-svn-id: trunk@1841 -
2002-08-13 07:08:25 +00:00
lazarus
3a2ecbd393 MG: DrawFramControl now uses gtk style, transparent STrechBlt
git-svn-id: trunk@1722 -
2002-06-01 08:41:28 +00:00
lazarus
ecfc86ab66 MG: changed license to LGPL
git-svn-id: trunk@1667 -
2002-05-10 06:05:58 +00:00
lazarus
8d718a011d Improved TSpeedButton (Glyph, Spacing, Margin, drawing)
Added PageCount to TNotebook
Optimized component selection buttons a bit.

git-svn-id: trunk@1456 -
2002-02-24 20:51:24 +00:00
lazarus
5710c6c271 MG: fixed speedbuttons numglyphs>1 and started IDE debugging
git-svn-id: trunk@358 -
2001-10-18 13:01:33 +00:00
lazarus
12fdcee41e MG: speedbuttonglyph centered, buttonglyph border fixed
git-svn-id: trunk@312 -
2001-07-03 10:30:32 +00:00
lazarus
fad535a99c MG: bugfixes
git-svn-id: trunk@286 -
2001-06-06 12:30:41 +00:00
lazarus
c966642d4d Fixed typo MAH
git-svn-id: trunk@261 -
2001-04-13 13:37:13 +00:00
lazarus
3bcf623f2a Made fix to buttonglyph to use the correct size of single glyph
Made fix to StretchBlt to use the correct height and width
     Both of these corrected the Win32 Speedbutton problem        MAH

git-svn-id: trunk@260 -
2001-04-13 13:22:23 +00:00
lazarus
d8de02b1dc MG: fixed many unreleased DC and GDIObj bugs
git-svn-id: trunk@228 -
2001-03-19 14:00:52 +00:00
lazarus
5718818c2a MG: fixed random function results
git-svn-id: trunk@221 -
2001-03-12 12:17:02 +00:00
lazarus
2f4f81f07e The Speedbutton now has a numglyphs setting.
I started the TStringPropertyEditor

git-svn-id: trunk@91 -
2001-01-03 18:44:54 +00:00