Commit Graph

95 Commits

Author SHA1 Message Date
bart
f6a9533a52 Win32: comments regarding issue #0037105.
git-svn-id: trunk@63241 -
2020-05-28 16:44:59 +00:00
bart
a8d3315c24 Win32: fix TBitBtn not showing glyph and caption after r62947 #c6a922e9c2. Issue #0037105. Also properly fixes the original issue #0036678. Patch by Anton Kavalenka.
git-svn-id: trunk@63227 -
2020-05-26 21:56:26 +00:00
juha
c6a922e9c2 LCL-Win32: BitButton leaks GDI objects. Issue #36678, patch from Anton Kavalenka.
git-svn-id: trunk@62947 -
2020-04-11 16:27:05 +00:00
wp
37f0823e7f LCL: Fix TBitBtn ignoring the Margin property on Windows (issue #34379)
git-svn-id: trunk@59270 -
2018-10-08 10:37:31 +00:00
ondrej
32d9cf118f Win32: bitbtn: handle glyphs only if they are really visible
git-svn-id: trunk@57925 -
2018-05-13 12:52:26 +00:00
ondrej
49d41ac113 Win32, Qt, Qt5, Gtk2: add support for image list to TSpeedButton and TBitBtn. Issue #33645
git-svn-id: trunk@57696 -
2018-04-25 05:40:28 +00:00
ondrej
557b843294 LCL: high-dpi image list: support retina (for now Cocoa only)
git-svn-id: trunk@57240 -
2018-02-03 22:58:50 +00:00
ondrej
454fc69b9e LCL: High-DPI ImageList: rename *ForImagePPI to *ForPPI
git-svn-id: branches/HiDPIImageList@57068 -
2018-01-13 04:25:01 +00:00
ondrej
90f22ba7fd LCL: High-DPI ImageList: LCL runtime and win32
git-svn-id: branches/HiDPIImageList@57039 -
2018-01-10 12:46:42 +00:00
michl
8cf176ad0c LCL: Win32: Prevent AV at closing form.
git-svn-id: trunk@56429 -
2017-11-17 20:11:20 +00:00
ondrej
b769322f40 lcl: themes: add TThemeOption.toUseGlyphEffects. Use it for TToolButton, TSpeedButton, TBitBtn, TButtonGlyph
git-svn-id: trunk@50962 -
2015-12-21 05:37:05 +00:00
ondrej
3a6697bc77 codetools, lazutils, win32: less hints
git-svn-id: trunk@50822 -
2015-12-15 16:27:39 +00:00
bart
157c7c738e Win32: Start removing Windows 9x specific code.
git-svn-id: trunk@50769 -
2015-12-13 16:28:05 +00:00
bart
f82432a859 Win32: Remove the use of IfDef's for WindowsUnicodeSupport, since it does not make sense anymore (it is always defined).
git-svn-id: trunk@50515 -
2015-11-27 18:19:40 +00:00
juha
653207f24f LCL-Win32: Initialize variables based on compiler warnings. Contains ToDo items.
git-svn-id: trunk@48479 -
2015-03-24 17:51:18 +00:00
juha
abf9a845da Deprecate wrappers for LazUTF8 functions in LCLProc.
git-svn-id: trunk@47604 -
2015-02-06 18:25:31 +00:00
paul
e036e4b080 lcl: revert r41655 #00944bbf41 since it causes problems on windows XP
git-svn-id: trunk@41698 -
2013-06-13 07:31:40 +00:00
paul
00944bbf41 win32: set control text for TBitButton also although it does not draw it natively (issue #0024135)
git-svn-id: trunk@41655 -
2013-06-10 08:29:53 +00:00
zeljko
39c54740fe win32: trial to fix regression from r41513 #dbf54a7429. issue #23255 and probably #24549
git-svn-id: trunk@41536 -
2013-06-04 09:32:34 +00:00
zeljko
dbf54a7429 Win32: fixed TBitBtn.Spacing when glyph isn't assigned or size is 0.issue #23255
git-svn-id: trunk@41513 -
2013-06-03 13:17:20 +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
paul
9f4bb027ae win32: erase paint buffer on creation
git-svn-id: trunk@30264 -
2011-04-11 01:40:28 +00:00
paul
2d450a59f1 repeat r30232 and revert r30231 #0962e03d29 - the fail was in that revision
git-svn-id: trunk@30234 -
2011-04-07 07:58:09 +00:00
paul
0962e03d29 win32: fix drawing of bitbtn under windows vista/7 (issue #0015139)
git-svn-id: trunk@30231 -
2011-04-07 06:50:57 +00:00
paul
e24e12ac8d lcl, win32: cleanup
git-svn-id: trunk@29244 -
2011-01-29 09:05:57 +00:00
paul
6380ade6ac lcl, win32: handle clDefault font color in controls
git-svn-id: trunk@28308 -
2010-11-18 02:50:43 +00:00
paul
65ab258cc6 win32: draw disabled text if bitbtn is disabled even when themes are enabled (issue #0017106)
git-svn-id: trunk@27006 -
2010-08-04 10:29:37 +00:00
paul
bc8f5f3d69 lcl: map LM_PAINT to WM_PAINT message number, don't perform any special handling if control has no doublebuffering and Message.DC = 0
win32: don't use doublebuffing and other hacks for TBitBtn wm_paint handler - pass the message to LCL as is (windows 7 glue is not visible on focused bit buttons, to be done for regular buttons too)

git-svn-id: trunk@25400 -
2010-05-14 09:55:36 +00:00
paul
8b1b85e16d lcl: move button flags to TCustomButton.CreateParams
git-svn-id: trunk@25398 -
2010-05-14 09:16:51 +00:00
paul
a20e1dcaac lcl: change use of CreateParams:
- move TForm.PopupParent handling to CreateParams (it only chooses a right Parent handle)
  - check also ParentWindow property when setting WndParent in CreateParams
win32: use TCreateParams WndParent property for CreateWindow

git-svn-id: trunk@23840 -
2010-03-05 08:14:49 +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
vincents
f2aa35fb07 win32 interface: destroy buttonlist when a bitbtn is destroyed, fixes gdi object leak (issue #14211)
git-svn-id: trunk@21137 -
2009-08-08 08:34:51 +00:00
paul
87a2fea05c win32: rename TWindowInfo -> TWin32WindowInfo, GetWindowInfo -> GetWin32WindowInfo, etc because of conflict with winapi functions and structures
git-svn-id: trunk@20836 -
2009-07-12 04:27:59 +00:00
paul
1b5a77a7e7 win32: respect show accelerator windows option for controls (windows 2000 and next)
git-svn-id: trunk@20666 -
2009-06-19 03:28:59 +00:00
paul
38f98bdfb0 win32: reimplement BitBtn text + image drawing under Vista, Windows 7 (use 32bit alpha bitmaps + text functions which supports alpha) fixes issue #0013920
git-svn-id: trunk@20583 -
2009-06-11 15:45:23 +00:00
paul
1235f2dd11 win32: revert r20538 #dda7ce7306 (fixes bug #0013940)
git-svn-id: trunk@20550 -
2009-06-09 14:01:40 +00:00
paul
dda7ce7306 win32: use ThemeServices to draw TBitBtn (maybe fix issue #0013920)
git-svn-id: trunk@20538 -
2009-06-09 06:27:08 +00:00
paul
885c4849a4 win32: don't count glyph size in TWin32WSBitBtn.GetPreferredSize if glyph is not shown
git-svn-id: trunk@20534 -
2009-06-09 03:04: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
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
vincents
1f3f833a84 win32 interface: use UTF16 <-> UTF8 conversion functions from LCLProc instead of UTF8Encode/UTF8Decode from the RTL to work around fpc bug #13075
patch by: Theo
fixes issue #13067

git-svn-id: trunk@18769 -
2009-02-20 08:33:44 +00:00
paul
6fd6f8e904 win32: workaround showing accelerator chars (bug #0013056)
git-svn-id: trunk@18481 -
2009-01-29 03:30:24 +00:00
paul
3058282d40 win32: rewrite DrawBitBtnImage to overcome vista bug/feature with transparent text on buttons (bugs #0012558; #0012270; #0011184), disabled BitButtons on xp classic theme looks better now too
git-svn-id: trunk@18471 -
2009-01-28 08:22:46 +00:00
paul
2721a7be42 win32: apply font color when painting a bitbtn (bug #0010601)
git-svn-id: trunk@18391 -
2009-01-22 14:40:36 +00:00
martin
c0109e8c01 Fix RangeCheck, introduced in rev 18190 #12e937579c
git-svn-id: trunk@18196 -
2009-01-07 18:54:51 +00:00
paul
12e937579c win32: use better approach to fix MeasureText for bitbtn
git-svn-id: trunk@18190 -
2009-01-07 15:07:07 +00:00
paul
ae9d552d60 win32: fix MeasureText for use with custom drawn controls (bug #0012934)
git-svn-id: trunk@18189 -
2009-01-07 15:01:05 +00:00
paul
0bdc86d766 win32: fix glyph is not centered in TBitBtn when Caption is empty (by Luiz Americo, bug #0012930)
git-svn-id: trunk@18181 -
2009-01-07 08:06:29 +00:00
paul
b2de706c04 win32: convert StrCaption, WindowTitle to String from PChar
git-svn-id: trunk@18127 -
2009-01-05 10:21:14 +00:00
paul
efe9d531c3 widgetset: make WS classes method explicitly published
win32: fix WS classes. move methods to published sections

git-svn-id: trunk@17576 -
2008-11-25 02:29:28 +00:00