zeljko
b03327f896
LCL: TCustomBitBtn.Spacing default changed to 4 to be delphi compatibile.issue #24541
...
git-svn-id: trunk@41509 -
2013-06-03 11:37:30 +00:00
juha
7b162087fd
Improve license headers in sources, part 1. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
...
git-svn-id: trunk@41387 -
2013-05-24 18:30:06 +00:00
sekelsenmat
b6fd6f59e1
Large patch from Giuliano Colla: Adds pallete images to CD controls, improves TCDButton to be more similar to TBitBtn, improves the speed of mouse/resize message handling in LCL-CustomDrawn-X11 and starts implementing MessageDlg in LazDialogs
...
git-svn-id: trunk@38612 -
2012-09-11 08:04:30 +00:00
mattias
fe2701f866
lcl gtk2: using translated button captions if resourcestrings translated, bug #22623
...
git-svn-id: trunk@38243 -
2012-08-14 21:37:27 +00:00
mattias
5957631f25
LCL: fixed visibility of implemented interfaces
...
git-svn-id: trunk@37067 -
2012-04-28 18:16:59 +00:00
mattias
1d8586a848
gtk2: clean up
...
git-svn-id: trunk@36791 -
2012-04-15 11:46:16 +00:00
mattias
774703c6a9
lcl: TSpeedButton: implemented AutoSize=true
...
git-svn-id: trunk@34398 -
2011-12-25 00:05:58 +00:00
sekelsenmat
5e67d91117
applies patch from bug #20252 : [Patch] BitBtn with Kind<>bkCustom should not save Caption to LFM but be translated via lclstrconsts
...
git-svn-id: trunk@32648 -
2011-10-03 08:55:56 +00:00
paul
be294f7218
lcl: set ModalResult to mrClose if BitBtn.Kind = bkClose (issue #0019197 )
...
git-svn-id: trunk@30380 -
2011-04-19 08:04:05 +00:00
blikblum
f5d51f780f
lcl: simplify LoadGlyphFrom*
...
git-svn-id: trunk@30345 -
2011-04-17 12:19:56 +00:00
mattias
c7d2d778a0
LCL: TSpeedButton: started AutoSize, added parameter Drawing to GetGlyphSize and GetTextSize
...
git-svn-id: trunk@29122 -
2011-01-19 12:53:12 +00:00
paul
d5cb0e2fbe
lcl: redo MouseEnter/MouseLeave notifications:
...
- move application mouse events notification from various message handlers to the WND proc of TWinControl
- don't assume that control at mouse is the current control which has mouse events. If some control has a mouse capture set then it has the mouse messages and not the control at mouse
- don't perform a control search in TApplication.DoBeforeMouseMessage - it already has an argument which contains the new mouse control (fixes bug #0016715 )
- fix CM_MOUSEENTER, CM_MOUSELEAVE message handlers so Parent controls will always get CM_ notification before the event handler and inspite of who is the message owner
git-svn-id: trunk@27770 -
2010-10-20 08:02:22 +00:00
paul
e914afd958
lcl: set default TSpeedButton.Color value to clBtnFace
...
git-svn-id: trunk@27768 -
2010-10-20 05:51:22 +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
622f0ba392
lcl: fix GetControlClassDefaultSize - use TSize instead of TPoint
...
git-svn-id: trunk@25204 -
2010-05-05 07:59:04 +00:00
paul
0464afa852
lcl: remove TCustomButton, TButton redeclaration
...
git-svn-id: trunk@23676 -
2010-02-10 07:45:35 +00:00
paul
2e2fcd58fc
lcl: bidi mode support for buttons from Zaher Dirkey (#issue #0014933 )
...
git-svn-id: trunk@22448 -
2009-11-05 14:35:36 +00:00
mattias
4985679568
LCL: TSpeedButton: published AutoSize
...
git-svn-id: trunk@21432 -
2009-08-24 10:10:37 +00:00
paul
3f5dc06930
lcl: implement TMenuItem.GlyphShowMode, TApplication.ShowMenuGlyphs, TApplicationProperties.ShowMenuGlyphs
...
git-svn-id: trunk@20192 -
2009-05-25 08:38:20 +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
f602e242f8
lcl: add TCustomBitBtn.LoadGlyphFromStock, simplify LoadGlyphFromLazarusResource
...
git-svn-id: trunk@19789 -
2009-05-04 04:34:39 +00:00
paul
beb1e199bb
lcl: add helper function to get stock button and dialog images and captions:
...
- GetButtonCaption,
- GetButtonIcon
- GetDialogCaption
- GetDialogIcon
git-svn-id: trunk@19784 -
2009-05-03 14:59:50 +00:00
paul
f02c53c71c
merge lcl-smartlink branch:
...
------------------------------------------------------------------------
r19294 | paul | 2009-04-10 11:17:35 +0800 (Птн, 10 Апр 2009) | 1 line
lcl, win32: start optimizations: imglist (all), controls (all), combtrls (statubar)
------------------------------------------------------------------------
r19305 | martin | 2009-04-10 21:53:27 +0800 (Птн, 10 Апр 2009) | 1 line
Moved "DoneRegisterCheck" to global LCL
------------------------------------------------------------------------
r19306 | martin | 2009-04-10 22:14:57 +0800 (Птн, 10 Апр 2009) | 1 line
Moved "DoneRegisterCheck" to global LCL (more)
------------------------------------------------------------------------
r19307 | martin | 2009-04-10 22:22:44 +0800 (Птн, 10 Апр 2009) | 1 line
changed case true => True
------------------------------------------------------------------------
r19308 | paul | 2009-04-10 22:28:28 +0800 (Птн, 10 Апр 2009) | 1 line
fix file case
------------------------------------------------------------------------
r19311 | martin | 2009-04-10 23:09:16 +0800 (Птн, 10 Апр 2009) | 1 line
Moved Registration of TCustomCalendar
------------------------------------------------------------------------
r19312 | martin | 2009-04-10 23:28:03 +0800 (Птн, 10 Апр 2009) | 1 line
Moved PropertyToSkip for TCalender
------------------------------------------------------------------------
r19314 | paul | 2009-04-10 23:50:30 +0800 (Птн, 10 Апр 2009) | 1 line
merge r13913 #999e8b059d
------------------------------------------------------------------------
r19315 | paul | 2009-04-10 23:53:07 +0800 (Птн, 10 Апр 2009) | 1 line
cleanup WSCalendar
------------------------------------------------------------------------
r19316 | paul | 2009-04-11 00:37:44 +0800 (Сбт, 11 Апр 2009) | 1 line
finish with ComCtrls
------------------------------------------------------------------------
r19318 | martin | 2009-04-11 01:37:40 +0800 (Сбт, 11 Апр 2009) | 1 line
Moved dialogs
------------------------------------------------------------------------
r19319 | martin | 2009-04-11 01:47:30 +0800 (Сбт, 11 Апр 2009) | 1 line
Moved dialogs
------------------------------------------------------------------------
r19320 | martin | 2009-04-11 02:47:52 +0800 (Сбт, 11 Апр 2009) | 1 line
Moved ExtCtrls, ExtDlgs
------------------------------------------------------------------------
r19321 | martin | 2009-04-11 03:23:32 +0800 (Сбт, 11 Апр 2009) | 1 line
Moved PropertyToSkip
------------------------------------------------------------------------
r19322 | martin | 2009-04-11 03:37:39 +0800 (Сбт, 11 Апр 2009) | 1 line
Moved StdCtrls
------------------------------------------------------------------------
r19323 | martin | 2009-04-11 04:05:50 +0800 (Сбт, 11 Апр 2009) | 1 line
Moved Buttons
------------------------------------------------------------------------
r19325 | paul | 2009-04-11 11:02:26 +0800 (Сбт, 11 Апр 2009) | 1 line
remove DirSel
------------------------------------------------------------------------
r19326 | paul | 2009-04-11 11:11:37 +0800 (Сбт, 11 Апр 2009) | 1 line
RegisterArrow
------------------------------------------------------------------------
r19327 | paul | 2009-04-11 11:32:09 +0800 (Сбт, 11 Апр 2009) | 1 line
register WS classes only for TCustomXXX classes if they are available (like TCustomScrollBar instead of TScrollBar) and only for those descendants which really differ (like TRadioButton, TToggleButton)
------------------------------------------------------------------------
r19328 | paul | 2009-04-11 11:40:00 +0800 (Сбт, 11 Апр 2009) | 1 line
RegisterCustomCheckBox
------------------------------------------------------------------------
r19329 | paul | 2009-04-11 11:57:22 +0800 (Сбт, 11 Апр 2009) | 1 line
RegisterXXX for Forms
------------------------------------------------------------------------
r19330 | paul | 2009-04-11 12:13:05 +0800 (Сбт, 11 Апр 2009) | 1 line
RegisterCustomGrid + move of RegisterPropertyToSkip
------------------------------------------------------------------------
r19331 | paul | 2009-04-11 12:24:29 +0800 (Сбт, 11 Апр 2009) | 1 line
RegisterXXX for Menus
------------------------------------------------------------------------
r19332 | paul | 2009-04-11 12:35:16 +0800 (Сбт, 11 Апр 2009) | 1 line
RegisterXXX for PairSplitter
------------------------------------------------------------------------
r19333 | paul | 2009-04-11 12:47:39 +0800 (Сбт, 11 Апр 2009) | 1 line
RegisterXXX for Spin
------------------------------------------------------------------------
r19334 | paul | 2009-04-11 12:58:55 +0800 (Сбт, 11 Апр 2009) | 1 line
RegisterCustomRubberBand
------------------------------------------------------------------------
r19335 | paul | 2009-04-11 13:31:43 +0800 (Сбт, 11 Апр 2009) | 1 line
remove 2 initialization sections
------------------------------------------------------------------------
r19336 | paul | 2009-04-11 13:46:26 +0800 (Сбт, 11 Апр 2009) | 1 line
remove TPopupNotifier.png from LCL
------------------------------------------------------------------------
r19338 | paul | 2009-04-11 13:54:03 +0800 (Сбт, 11 Апр 2009) | 1 line
cleanup
------------------------------------------------------------------------
r19341 | paul | 2009-04-11 14:59:27 +0800 (Сбт, 11 Апр 2009) | 1 line
cleanup
------------------------------------------------------------------------
r19343 | martin | 2009-04-11 19:59:18 +0800 (Сбт, 11 Апр 2009) | 1 line
Reduced Unit-Circles, by moving Register* into WS* units
------------------------------------------------------------------------
r19344 | martin | 2009-04-11 20:22:49 +0800 (Сбт, 11 Апр 2009) | 1 line
Dummy file for gtk
------------------------------------------------------------------------
r19345 | martin | 2009-04-11 21:06:55 +0800 (Сбт, 11 Апр 2009) | 1 line
Initial move of gtk1 register
------------------------------------------------------------------------
r19346 | martin | 2009-04-11 21:19:48 +0800 (Сбт, 11 Апр 2009) | 1 line
Missing dependencies in gtk1 wsfactory
------------------------------------------------------------------------
r19347 | martin | 2009-04-11 22:36:42 +0800 (Сбт, 11 Апр 2009) | 1 line
Declare register* in interface, to keep external linker happy
------------------------------------------------------------------------
r19348 | martin | 2009-04-11 23:34:16 +0800 (Сбт, 11 Апр 2009) | 1 line
Declare register* in interface, to keep external linker happy
------------------------------------------------------------------------
r19349 | martin | 2009-04-11 23:39:20 +0800 (Сбт, 11 Апр 2009) | 1 line
moved uses for factory
------------------------------------------------------------------------
r19350 | martin | 2009-04-11 23:41:57 +0800 (Сбт, 11 Апр 2009) | 1 line
corrected a few accidental "Result := False"
------------------------------------------------------------------------
r19351 | paul | 2009-04-12 00:04:15 +0800 (Вск, 12 Апр 2009) | 1 line
removed unused units
------------------------------------------------------------------------
r19352 | paul | 2009-04-12 00:05:26 +0800 (Вск, 12 Апр 2009) | 1 line
qt: move RegisterWS calls to qtwsfactory
------------------------------------------------------------------------
r19354 | paul | 2009-04-12 01:04:04 +0800 (Вск, 12 Апр 2009) | 1 line
wince: move RegisterWS calls to WinCEWSFactory
------------------------------------------------------------------------
r19356 | martin | 2009-04-12 01:39:56 +0800 (Вск, 12 Апр 2009) | 1 line
moved GTK2
------------------------------------------------------------------------
r19357 | martin | 2009-04-12 01:45:31 +0800 (Вск, 12 Апр 2009) | 1 line
moved GTK2 / missing units
------------------------------------------------------------------------
r19358 | martin | 2009-04-12 01:57:43 +0800 (Вск, 12 Апр 2009) | 1 line
Fixed one return value from register
------------------------------------------------------------------------
r19360 | martin | 2009-04-12 02:47:42 +0800 (Вск, 12 Апр 2009) | 1 line
Gtk2 , needs 2 registrations for WinControl
------------------------------------------------------------------------
r19361 | martin | 2009-04-12 02:57:58 +0800 (Вск, 12 Апр 2009) | 1 line
Gtk2 , needs 2nd registrations
------------------------------------------------------------------------
r19368 | paul | 2009-04-12 13:09:59 +0800 (Вск, 12 Апр 2009) | 1 line
cleanup
------------------------------------------------------------------------
r19373 | paul | 2009-04-12 13:45:17 +0800 (Вск, 12 Апр 2009) | 1 line
wince: forgotten file
------------------------------------------------------------------------
r19374 | paul | 2009-04-12 14:04:04 +0800 (Вск, 12 Апр 2009) | 1 line
carbon: move RegisterWSComponent to CarbonWSFactory
------------------------------------------------------------------------
r19375 | paul | 2009-04-12 14:27:47 +0800 (Вск, 12 Апр 2009) | 1 line
cleanup
------------------------------------------------------------------------
git-svn-id: trunk@19376 -
2009-04-12 08:46:31 +00:00
paul
6e808b8716
lcl: publish missed events for TBitBtn (#issue #0013350 )
...
git-svn-id: trunk@19030 -
2009-03-19 01:33:30 +00:00
paul
0c3dd5eb0e
lcl: skip properties which exists in VCL and does not exists in LCL TForm.OldCreateOrder and TBitBtn.Style (part of issue #0001182 )
...
git-svn-id: trunk@18514 -
2009-01-31 11:36:09 +00:00
paul
e04fd0e3a7
lcl: fix enabled handling of speedbutton (it could enter an endless loop before with repaint bugs #0008689 , #0012911 )
...
git-svn-id: trunk@18102 -
2009-01-04 11:26:04 +00:00
paul
d9491a4528
lcl: fix header
...
git-svn-id: trunk@18002 -
2008-12-31 03:07:17 +00:00
paul
6e2e2c1ff2
lcl: update visibility of methods to prevent compiler warnings
...
- move KeyDown, KeyUp, DoMouseWheelDown, DoMouseWheelUp, ColorIsStored, Paint, and other misc methods from public to protected
- move some descendants methods from lower visibility to higher
- fix use of protected KeyDown, Paint inside few ide units
git-svn-id: trunk@17564 -
2008-11-24 08:15:23 +00:00
paul
11fd229957
formatting, cleanup
...
git-svn-id: trunk@16799 -
2008-09-30 01:46:39 +00:00
paul
fa7ae42825
lcl: add TCustomBitBtn.LoadGlyphFromLazarusResource
...
git-svn-id: trunk@16648 -
2008-09-19 14:18:30 +00:00
paul
3374c666b8
lcl: publish OnUTF8KeyPress
...
git-svn-id: trunk@16520 -
2008-09-10 09:22:59 +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
e90a4cab8b
* fixed transparency of speedbutton glyph (issue #11571 )
...
git-svn-id: trunk@15668 -
2008-07-03 23:47:36 +00:00
paul
1843642237
lcl: rearrange some class fields as suggested by Luiz to reduce occupied memory
...
git-svn-id: trunk@15201 -
2008-05-22 02:10:13 +00:00
vincents
3d2bb7d1e3
LCL: published ParentFont property for TBitBtn, TPage and TNotebook (issue #11307 )
...
git-svn-id: trunk@15181 -
2008-05-19 13:06:20 +00:00
marc
c81003eefa
* Introduced TCustomBitmap as base class for all pixelbased imageclasses. Currently backward comatible (and equal to) TBitmap
...
* Added resource loading support to TPicture and Glyps to avoid image quality loss when converted to TBitmap
* Removed copy paste code for imagelist resource loading
* Moved some graphic classes to their own ini file
git-svn-id: trunk@14876 -
2008-04-17 23:43:11 +00:00
paul
11de6af8b9
decapitalize all procedure and function keywords to make all looks the same
...
git-svn-id: trunk@14375 -
2008-03-03 08:06:26 +00:00
paul
7c484cc832
implement drawing different state images (Up, Down, Disabled, Hot) for gtk1/gtk2 bitbtns
...
git-svn-id: trunk@13331 -
2007-12-14 17:53:50 +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
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
paul
38ac66bbd3
- speedup imagelist a bit (thanks to Marc)
...
- make speedbutton glyph more shiny when mouse over the button
git-svn-id: trunk@12780 -
2007-11-08 09:58:45 +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
mattias
223e59af66
LCL: fixed AlignControls when ClientRect changes during update, LCL: AutoSize now uses WithThemeSpace as default, gtk1 intf: implemented GetPreferredSize for WithThemeSpace, LCL: changed TButton/TBitBtn.BorderSpacing.InnerBorder from 4 to 0, IDE: removed InnerBorder values from IDE dialogs
...
git-svn-id: trunk@12615 -
2007-10-28 00:33:23 +00:00
mattias
18fa72e639
LCL: TBitBtn: implemented NumGlyphs from Giuliano Colla
...
git-svn-id: trunk@12467 -
2007-10-14 22:23:19 +00:00
mattias
6264aac23c
LCL: fixed using parent borderspacing, fixed anchor spacing for parallel controls, fixed endless loop autosize interdependencies, implemented auto fixing anchor circles, implemented auto fixing center anchoring, fixed calculation of static childsizing layouts, fixed autosizing for controls without preferred size by providing default sizes also used in creation, fixed TSizeConstraints.MinMaxWidth/Height
...
git-svn-id: trunk@12461 -
2007-10-14 12:54:29 +00:00