Commit Graph

50 Commits

Author SHA1 Message Date
paul
8f48f1eb62 lcl: add more menu parts to ThemeServices
git-svn-id: trunk@20596 -
2009-06-12 14:06:14 +00:00
paul
2e91396afd lcl: update tmschema content from 2 new header files from windows 7 sdk (tmshema.h is deprecated since vista at all)
git-svn-id: trunk@20568 -
2009-06-10 08:14:03 +00:00
paul
52202a4550 lcl: set default pushbuttonsize as 75x23 instead of 75x25
git-svn-id: trunk@20535 -
2009-06-09 03:10:41 +00:00
paul
8e3c500a4d lcl: move default TButtonPanel button constraints to the ThemeServices
git-svn-id: trunk@20214 -
2009-05-26 01:39:02 +00:00
paul
597eb84d8c lcl: Themes
- redo TThemeServices.GetDetailSize to return TSize instead of Integer
  - improve toolbutton drawing

git-svn-id: trunk@20213 -
2009-05-26 01:32:38 +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
c92f6641d1 lcl: replace TWidgetSet.LoadStockPixmap by ThemeServices.GetStockImage
git-svn-id: trunk@19769 -
2009-05-02 15:36:56 +00:00
paul
7d97f14c33 lcl: THintWindow drawing:
- remove TThemeServices.DrawTooltip, move content to DrawElement for teTooltip
  - call standard ThemeServices.DrawElement in THintWindow.Paint (now tooltips looks native on windows xp, vista, gtk, gtk2)

git-svn-id: trunk@19619 -
2009-04-25 14:40:54 +00:00
paul
793393a8d6 lcl: start native drawing of tooltip windows
- add TThemeServices.DrawTooltip
  - reimplement tooltip drawing through ThemeServices in case of color = clInfoBk
  - implement native tooltip drawing in ThemeServices for Windows with enabled themes

git-svn-id: trunk@19616 -
2009-04-25 12:56:04 +00:00
paul
bca9b43b00 lcl: cleanup
git-svn-id: trunk@19283 -
2009-04-09 06:50:22 +00:00
paul
6f99c2aab0 lcl: destroy ThemeServices in the TWidgetset.BeforeDestruction method since it can release some gdi objects and some widgetsets (like gtk) stores gdi objects in internal structures and release them in the widgetset destructor
git-svn-id: trunk@19212 -
2009-04-04 09:55:53 +00:00
paul
91fc0f6297 lcl: even more improve painting of that pressed toolbar button on non-themed windows
git-svn-id: trunk@17435 -
2008-11-19 03:48:22 +00:00
paul
e13733c936 lcl: improve painting of pressed toolbar button on windows without themes
git-svn-id: trunk@17434 -
2008-11-19 03:46:01 +00:00
paul
5914e66d5e win32, default: return details size for tree sign
git-svn-id: trunk@17235 -
2008-11-05 10:06:56 +00:00
paul
c50c24cb56 qt: implement themed drawing of +/- tree signs
git-svn-id: trunk@17231 -
2008-11-05 03:55:15 +00:00
paul
2cb12dde77 lcl: draw treeview expand/collapse signs using ThemeServices
git-svn-id: trunk@17221 -
2008-11-04 15:32:34 +00:00
paul
fbede377a2 lcl: ThemeServices.ColorToRGB returns default conversion when Details is nil (#0012167)
git-svn-id: trunk@16772 -
2008-09-27 17:16:26 +00:00
mattias
3bafcd6115 LCL: fixed encoding
git-svn-id: trunk@15913 -
2008-07-29 21:25:45 +00:00
paul
372a450379 lcl: add support for '&' in themed text drawing
git-svn-id: trunk@15293 -
2008-06-03 00:48:10 +00:00
paul
6e460c2b91 lcl: make checked non-hot non-themed toolbutton more windows like (not 100% similarity though)
git-svn-id: trunk@15251 -
2008-05-27 06:58:54 +00:00
paul
3108f60f93 lcl:
- Publish TListView ShowHint, ParentShowHint (9708).
- Correct TTabControl drawing. Don't clear tab area since it is painted by notebook. Draw pane area with ThemeServices. 
- Teach gtk ThemeServices to draw notebook pane.

git-svn-id: trunk@15027 -
2008-05-01 18:26:50 +00:00
paul
483a34bcfc default theme engine: draw MDI title buttons flat
git-svn-id: trunk@13655 -
2008-01-06 17:16:55 +00:00
paul
d36fa6b624 theme engine: handle title bar button in IsDisabled, IsHot and IsPushed
git-svn-id: trunk@13652 -
2008-01-06 10:08:52 +00:00
paul
f3c33609c4 default theme drawing for window title buttons (need for docking)
git-svn-id: trunk@13622 -
2008-01-04 19:14:49 +00:00
paul
b9556171fe TCheckListbox: improve drawing under win32 (disabled state and do all through ThemeServices), saving/loading grayed states
TCheckListBoxEditor: handle grayed states

git-svn-id: trunk@13365 -
2007-12-18 04:39:03 +00:00
mattias
9a550b80fd codetools: FindDeclarationAndOverload now starts at property names, proc names, vars, consts and types
git-svn-id: trunk@13006 -
2007-11-24 19:11:42 +00:00
paul
0e703314c8 extend default ThemeServices toolbar parts drawing
git-svn-id: trunk@12892 -
2007-11-16 09:31:11 +00:00
paul
b101883850 change WideString to String in TThemeServices to prevent use of widestring manager
git-svn-id: trunk@12888 -
2007-11-16 02:25:06 +00:00
paul
5abd76bf7f use imagelist state drawing by theme services
git-svn-id: trunk@12782 -
2007-11-08 10:26:45 +00:00
paul
0c359236ac themes: add size of drop down part of toolbutton
git-svn-id: trunk@12570 -
2007-10-23 22:59:41 +00:00
paul
b36835a6f7 win32: wrong speedbutton painting if state is down (issue #0009833)
git-svn-id: trunk@12286 -
2007-10-02 02:48:55 +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
paul
80c4aac4ea - small bug in TThemeServices.IsChecked
git-svn-id: trunk@11597 -
2007-07-23 05:28:17 +00:00
paul
3447519a82 changing a bit themes and qtthemes
git-svn-id: trunk@11539 -
2007-07-17 07:58:47 +00:00
paul
72d601e943 (QT)
- QT bindings updated to 1.43
- QT ThemeServices is working now. Can paint Buttons (w/wo Flat), CheckBox, RadioButton, Header

git-svn-id: trunk@11523 -
2007-07-16 09:26:28 +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
paul
2f657c4c3f - restore font color after drawing text by ThemeServices
git-svn-id: trunk@11433 -
2007-07-06 11:11:38 +00:00
paul
4512cc87b8 - carbon header painting
git-svn-id: trunk@11288 -
2007-06-06 03:24:08 +00:00
paul
59aa486876 - another way to show splitter points under gtk1
- buildlazarusdialog adjusted as suggested by Darius

git-svn-id: trunk@11287 -
2007-06-06 02:19:44 +00:00
paul
d30b9718ac - merging part of gtk2themes with gtkthemes
- adjusting splitter drawing (may fix gtk bug with wrong dots alignment)

git-svn-id: trunk@11277 -
2007-06-04 09:38:47 +00:00
paul
c3d53b8c80 - header parts painting
- processing text flags

git-svn-id: trunk@11275 -
2007-06-04 07:54:47 +00:00
paul
060ce0c803 - draw radio button and checkbox through ThemeServices for win32 (no XP)
git-svn-id: trunk@11252 -
2007-06-01 08:33:54 +00:00
paul
8fc54eb966 drawing carbon splitter through ThemeServices (with -dUseThemes)
git-svn-id: trunk@11235 -
2007-05-31 07:31:16 +00:00
paul
8eefc8e23f splitter and pairsplitter improvements:
1. ability to control pairsplitter cursor for gtk
2. ability to control pairsplitter internal splitter cursor for others
3. default values for pairsplitter cursor (crHSplit/crVSplit)
4. painting splitter through themes for win32/xp/gtk2 (disabled through -dUseThemes)
5. Clean up

git-svn-id: trunk@11214 -
2007-05-29 09:19:34 +00:00
jesus
28a2530ec6 LCL: default implementation of themed headers
git-svn-id: trunk@11185 -
2007-05-23 18:47:59 +00:00
mattias
759a269ca6 gtk intf: resize messages for fixed/client widgets are now kept back and sent for main widgets
git-svn-id: trunk@11184 -
2007-05-23 17:32:10 +00:00
paul
2d1bc7a00f - initial implementation of TCarbonThemeServices (for speedbutton themed painting)
git-svn-id: trunk@11171 -
2007-05-21 07:07:56 +00:00
paul
5ab5cd17da - painting speedbutton through ThemeServices if themes are not enabled (use -dUseThemes to check)
git-svn-id: trunk@11166 -
2007-05-19 18:15:58 +00:00
paul
dc5845e19a - implement speedbutton theme painting (disabled through define UseThemes now)
git-svn-id: trunk@11163 -
2007-05-18 14:14:13 +00:00
paul
e45bc069f0 - initial implementation of lazarus ThemeServices
- win32 calls to Widgetset.ThemesActive redirected to ThemeServices

git-svn-id: trunk@11161 -
2007-05-18 02:18:52 +00:00