paul
8a7e588df6
win32: don't fill bitbtn content with Brush since other button area cannot be painted with color different from system (fixes #0010910 )
...
git-svn-id: trunk@14928 -
2008-04-22 08:40:24 +00:00
vincents
9ed9aa3295
win32 interfaces: added some defines to enable unicode support easily.
...
git-svn-id: trunk@14801 -
2008-04-11 11:22:20 +00:00
vincents
a630267f5b
win32 interface: fixed compilation with fpc 2.2.0 and 2.3.1
...
git-svn-id: trunk@14134 -
2008-02-14 13:20:14 +00:00
sekelsenmat
3ff0a0bd5b
Partial implementation of an utf-8 capable SetBlockWord on SynEdit. Enclosed on ifdef NEW_UTF8_SETWORDBLOCK. Also added helper functions on LCLProc for converting an utf-8 string into an array of chars for algorithms that require fast access to a char by position.
...
git-svn-id: trunk@13868 -
2008-01-24 20:56:30 +00:00
vincents
695b0d7fe6
win32 interface: fix bug #10414
...
* don't draw disable child controls on a disabled form, for example after showmodal
* use iswindowenabled to get the actual enabled state of a bitbtn, bitbtn.enabled is not updated when disabling child controls of a disabled control
git-svn-id: trunk@13315 -
2007-12-13 11:44:45 +00:00
paul
2e413c5941
use obj.Reference.Handle instead of obj.Handle in lcl since obj.Handle is deprecated now (for converted gdi objects)
...
git-svn-id: trunk@13307 -
2007-12-13 02:01:24 +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
79d45194b8
dont draw disabled state image for bitbtn in designer
...
git-svn-id: trunk@12817 -
2007-11-10 18:01:58 +00:00
paul
329a78831a
TRawImage:
...
- protect PerformEffect from all formats except desired (prevent potential misuse)
- add one more format for painting glyphs of non themed disabled buttons (1 bit instead of grey)
- draw disabled glyph of non themed button with introduced effect (under win32)
git-svn-id: trunk@12808 -
2007-11-10 09:44:50 +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
vincents
dc6e93e2e0
win32 interface: fixed unicode bitbtn captions
...
git-svn-id: trunk@12423 -
2007-10-12 10:23:25 +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
57286f6635
win32 interface: fixed changing color of bitbtn (bug #9286 )
...
git-svn-id: trunk@11814 -
2007-08-14 11:47:38 +00:00
vincents
baebd22616
LCL: moved TButton from buttons unit to stdctrls (bug #9137 ), compilation tested on windows for gtk2, qt and win32 widgetset
...
git-svn-id: trunk@11367 -
2007-06-25 08:34:41 +00:00
paul
0b6ce0bd99
BiDiMode patch from zaher dirkey (report 0008955)
...
git-svn-id: trunk@11209 -
2007-05-28 09:06:36 +00:00
paul
554e4107ef
- Themes moved to interface section from implementation
...
- Build lazarus dialogs use ThemeServices to draw buttons (disabled through UseThemes define)
git-svn-id: trunk@11174 -
2007-05-22 06:06:11 +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
vincents
bf9399bd9d
win32 interface: fixed several range errors
...
git-svn-id: trunk@10869 -
2007-04-04 15:12:31 +00:00
marc
e4deb6932e
* made ActiveDefaultButtonChanged naming more consistent with other routines
...
* added some handle checks
git-svn-id: trunk@10733 -
2007-03-10 02:48:32 +00:00
vincents
6bf3603e9e
LCL: use autosizing and anchoring to layout InputDialog (bug #1536 )
...
git-svn-id: trunk@10229 -
2006-11-22 11:26:28 +00:00
vincents
436f4fbaef
win32 interface: 64 bit fixes from Florian
...
git-svn-id: trunk@9920 -
2006-09-17 20:47:15 +00:00
vincents
b8ef0bd35b
add class method modifier to the implementation of class methods (fixes fpc 2.1.1 compilation)
...
git-svn-id: trunk@9366 -
2006-05-27 20:30:46 +00:00
mattias
e81c0f77a0
added WithThemSpace parameter to GetPreferredSize
...
git-svn-id: trunk@9331 -
2006-05-21 15:47:28 +00:00
mattias
6eb4930179
fixed references to COPYING.LCL
...
git-svn-id: trunk@9243 -
2006-05-05 05:52:08 +00:00
micha
d9e9f1570f
win64 fixes (from peter, modified)
...
git-svn-id: trunk@9221 -
2006-05-01 21:45:12 +00:00
vincents
a7874c9287
implemented TWin32WSBitBtn.SetColor (issue #1212 )
...
git-svn-id: trunk@8531 -
2006-01-16 14:54:45 +00:00
micha
8e93ee346b
ignore Set/RemoveEventHandler calls with nil parameter
...
git-svn-id: trunk@8465 -
2006-01-07 18:40:40 +00:00
micha
5cd1f55087
fix uninitialized var, and do some more optimization
...
git-svn-id: trunk@8459 -
2006-01-06 22:11:09 +00:00
micha
891e102965
fix BitBtn.NumGlyphs for win32 (issue #1210 )
...
git-svn-id: trunk@8396 -
2005-12-30 21:33:04 +00:00
micha
122df55eae
implement preferred size calculation for buttons and bitbtns
...
seperate text size calculation into general function
git-svn-id: trunk@7746 -
2005-09-19 21:40:26 +00:00
micha
ecb0ca3867
fix default bitbtn text to be black instead of grey (bug #1115 )
...
git-svn-id: trunk@7670 -
2005-09-11 14:09:51 +00:00
marc
68321456bb
* Renamed InterfaceObject to WidgetSet
...
- Removed some logs
* Changed mainloop to a callback through the interface
git-svn-id: trunk@7585 -
2005-08-28 23:38:18 +00:00
micha
9e7bfb96b9
implement tbitbtn.spacing for win32
...
allow -1 for tbitbtn.spacing; means center text
fix transparent (xpm typically) images drawing on bitbtns
git-svn-id: trunk@7388 -
2005-07-21 09:43:14 +00:00
micha
fbb495bee3
implement active default control switching
...
pressing return key executes active default control action
git-svn-id: trunk@7080 -
2005-04-17 18:41:15 +00:00
micha
eb7bf28fa9
remove usage of fcompstyle: split up twswincontrol.settext
...
git-svn-id: trunk@6187 -
2004-11-02 21:08:23 +00:00
micha
2b55646f6f
splitup of CreateComponent to widgetset CreateHandle methods
...
git-svn-id: trunk@6137 -
2004-10-15 09:51:09 +00:00
micha
4c7a853aca
convert LM_SHORTCUT message to interface methods
...
git-svn-id: trunk@6018 -
2004-09-17 10:56:26 +00:00
micha
9331f9ce12
convert LM_BTNDEFAULT_CHANGED message to interface method
...
git-svn-id: trunk@5970 -
2004-09-11 14:54:01 +00:00
micha
bb66c88f50
use new lcl interface methods instead of messages (for win32; twsbitbtn)
...
git-svn-id: trunk@5847 -
2004-08-25 15:04:44 +00:00
mattias
cd9a3b8c9f
added TCustomButton, TCustomBitBtn, TCustomSpeedButton
...
git-svn-id: trunk@5682 -
2004-07-15 10:43:39 +00:00
marc
897fe72887
* Fixes some typos and changes uses clause cases
...
git-svn-id: trunk@5317 -
2004-03-17 19:59:56 +00:00
marc
34c1c7f47b
* Interface reconstruction. Created skeleton units, classes and wscontrols
...
git-svn-id: trunk@5311 -
2004-03-17 00:34:37 +00:00