paul
a452a818da
win32: paint menu text with a transparent text background (by cobines, issue #0018424 )
...
git-svn-id: trunk@35911 -
2012-03-13 00:58:52 +00:00
paul
6faa5c4309
win32: don't double decrease/increase right position by menu check size because it is already increased/decreased
...
git-svn-id: trunk@35603 -
2012-02-27 09:18:47 +00:00
paul
730a003f33
win32: fix spacing for menu item drawing on classic windows by cobines with modifications (issue #0018424 )
...
git-svn-id: trunk@35346 -
2012-02-13 06:42:22 +00:00
maxim
ac02acd3d9
LCL: fixed non-ASCII accelerator keys handling, bug #19223
...
git-svn-id: trunk@32158 -
2011-09-02 19:59:14 +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
30c63a22c2
revert r30232 #5f678a92c9 - something fails with it
...
git-svn-id: trunk@30233 -
2011-04-07 07:33:23 +00:00
paul
5f678a92c9
win32: remove win32uxtheme.pas - it can be replaced by UxTheme from win32units-base now
...
git-svn-id: trunk@30232 -
2011-04-07 06:56:47 +00:00
paul
0f67489727
win32: fix FindMenuItemAccelerator function - use Visible Index of menu item instead of real index (issue #0018256 )
...
git-svn-id: trunk@29897 -
2011-03-18 08:34:14 +00:00
juha
5d796b9cbb
LCL: Remove OldShortCut from SetShortCut parameters and add the real shortcut keys there.
...
git-svn-id: trunk@29872 -
2011-03-16 16:53:36 +00:00
juha
4e95f6a390
LCL: Show menu shortcuts also when they are sequencial keys combinations (like Ctrl+Q, B)
...
git-svn-id: trunk@29853 -
2011-03-15 14:05:55 +00:00
paul
13cb137a99
win32: formatting, cleanup
...
git-svn-id: trunk@29780 -
2011-03-10 06:35:10 +00:00
paul
f5461a5c18
win32: draw menubar with COLOR_MENU in case of non flat menus (bug #0017867 )
...
git-svn-id: trunk@28270 -
2010-11-16 13:25:54 +00:00
paul
78a7d0a8a8
win32: correct vista+ menu size for other DPIs (issue #0017878 )
...
git-svn-id: trunk@28196 -
2010-11-13 02:16:03 +00:00
paul
9bd782a63e
lcl:
...
- add GetDefaultColor to TControl which asks Parent in case widgetset returns clDefault color for it;
- return clDefault instead of clWindow for generic TControl
win32, wince: use TControl.GetDefaultColor in all the places where we used TWSControlClass
git-svn-id: trunk@28172 -
2010-11-10 04:15:43 +00:00
paul
9bcde488e1
win32: fix MenuBar drawing for selected items (issue #0017752 )
...
git-svn-id: trunk@28034 -
2010-11-02 06:14:05 +00:00
paul
47c3b8be53
lcl, win32: cleanup
...
git-svn-id: trunk@26732 -
2010-07-19 05:43:57 +00:00
paul
dcb25bd1e6
win32: fix drawing of 3D and Flat menu bars: choose right colors, draw edges for 3d (issue #0015723 )
...
git-svn-id: trunk@24009 -
2010-03-15 09:58:13 +00:00
paul
cc5896f4e7
lcl: add TPopupMenu.Alignment, TPopupMenu.TrackButton
...
win32: implement TPopupMenu.Alignment, TPopupMenu.TrackButton
git-svn-id: trunk@22732 -
2009-11-24 07:58:44 +00:00
paul
98a2219391
win32: another trial to solve vista menu bar repainting problem (issue #0014894 )
...
git-svn-id: trunk@22595 -
2009-11-15 13:48:25 +00:00
paul
8064b14d92
win32: draw menu bar background once per repaint for all the menu bar (fixes bug #0014894 )
...
git-svn-id: trunk@22410 -
2009-11-03 19:21:34 +00:00
paul
07fc3954f6
win32: workaround windows bug when SetMenuItemInfo destroy/corrupts hSubMenu handle
...
git-svn-id: trunk@22092 -
2009-10-10 03:53:54 +00:00
paul
e477c10fea
win32: menus:
...
- remove submenu flag from the menu item if there are no more child items there
- set submenu flag only when GetMenuItemInfo result is True
- don't try to double destroy menu item handle
- show debug messages in the console in case of errors
git-svn-id: trunk@22080 -
2009-10-09 09:28:13 +00:00
paul
76f7d9f596
win32: correct vista menu bar drawing when there is only one menu item
...
git-svn-id: trunk@21932 -
2009-10-01 01:55:55 +00:00
paul
6eec759d6e
win32: request wm_measureitem for the menu item on item caption/bitmap change
...
git-svn-id: trunk@21915 -
2009-09-29 12:28:41 +00:00
paul
d21ae9f636
win32: don't override various menu flags (rtl for example) when we change caption/icon/or checked state
...
git-svn-id: trunk@21912 -
2009-09-29 09:31:17 +00:00
paul
0ef68ba7f4
win32: fix few issues with right-to-left popup menu drawing (bug #0014686 )
...
git-svn-id: trunk@21911 -
2009-09-29 08:28:16 +00:00
paul
0c54c5658c
win32: fix vista drawing of Right-To-Left submenus (issue #0014669 )
...
git-svn-id: trunk@21850 -
2009-09-24 23:23:14 +00:00
paul
48e060d9f7
lcl: MainMenu refactoring and other menu changes:
...
- AttachMenuToWindow api changed. Now it accepts a window handle and a menu handle instead of TMenu component. This change is made to reduce interfaces dependency from the LCL (in order to reduce exe file size)
- TMainMenu.WindowHandle is introduced for delphi compatibility
- Don't show a main menu for the bsDialog windows (delphi compatibility)
- Explicitly request MainMenu to notify form about destruction
git-svn-id: trunk@21844 -
2009-09-24 09:14:53 +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
b5da1c1954
win32: fix drawing menu accelerators if they are disabled
...
git-svn-id: trunk@20663 -
2009-06-18 11:33:58 +00:00
paul
5db2c43ab0
win32: fix vista/w7 menu drawing when themes are not enabled (bug #0013986 )
...
git-svn-id: trunk@20644 -
2009-06-17 01:46:09 +00:00
paul
7a80764617
win32: popup menu for vista/w7
...
- override system drawing of submenu arrow, use own painting (right colors now)
- don't use own calculations for right to left layouts, ask windows to do this for us
git-svn-id: trunk@20638 -
2009-06-16 04:38:20 +00:00
paul
26309ffc92
win32: don't draw standard menu item bg for separator items on vista/w7
...
git-svn-id: trunk@20632 -
2009-06-15 09:28:51 +00:00
paul
3e152cc862
win32: don't show accelerator char in menu if windows ask
...
git-svn-id: trunk@20611 -
2009-06-13 08:27:12 +00:00
paul
f50ffbfbc7
win32: implement vista/w7 menubar drawing
...
git-svn-id: trunk@20610 -
2009-06-13 04:54:27 +00:00
paul
a7eca7b2d5
win32: draw popup menu in Vista style on vista/w7
...
git-svn-id: trunk@20606 -
2009-06-12 16:20:19 +00:00
paul
013956d49b
win32: formatting
...
git-svn-id: trunk@20584 -
2009-06-11 16:22:25 +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
dc17234e14
win32: use cached system brush to draw highlight in the menu instead of creating new brush every time
...
git-svn-id: trunk@18739 -
2009-02-18 02:40:10 +00:00
paul
cac90a2be9
lcl, win32: use cLineCaption instead of '-' for separator menu
...
win32: change menu item enabled state when we change caption since we can change caption from '-' to normal caption and vice versa (fixes bug #0012055 )
git-svn-id: trunk@18581 -
2009-02-05 14:54:47 +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
paul
1f78623bce
win32:
...
- cleanup (reduce warnings)
- fix wheel handling
git-svn-id: trunk@16179 -
2008-08-22 03:01:44 +00:00
mattias
2996a3c332
rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
...
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
paul
a859359c93
win32: further fix menu colors
...
git-svn-id: trunk@15303 -
2008-06-04 08:24:45 +00:00
paul
35de6bcdec
win32: draw menu bar with adequate color when themes are enabled and COLOR_MENUBAR <> COLOR_MENU
...
git-svn-id: trunk@15250 -
2008-05-27 06:05:10 +00:00
paul
dbddffe2cb
lcl: bidi mode patch from Ido with modifications
...
git-svn-id: trunk@14991 -
2008-04-27 14:24:22 +00:00
marc
bc64373e6d
* Made TWSMenu.SetBidiMode the same as TWSWinControl
...
git-svn-id: trunk@14840 -
2008-04-15 22:06:01 +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
paul
5cbad91fbf
win32: formatting
...
git-svn-id: trunk@14514 -
2008-03-14 07:30:52 +00:00