Commit Graph

69 Commits

Author SHA1 Message Date
dmitry
75accac5aa lcl: forcing menus icon bitmap refresh on Imagelist change. #35658
git-svn-id: trunk@61307 -
2019-06-01 05:57:36 +00:00
juha
7b837567c3 LCL: Support TMenuItem.Assign(TMenuItem) and TMenu.Assign(TMenu). Issue #33345, patch from AlexeyT.
git-svn-id: trunk@57557 -
2018-03-23 10:15:47 +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
mattias
49719205f8 lcl: TMenu: raise exception if something else is freeing the FItems
git-svn-id: trunk@54984 -
2017-05-18 23:52:54 +00:00
mattias
99c767eda8 lcl: debug menu shortcuts
git-svn-id: trunk@51661 -
2016-02-19 09:15:38 +00:00
ondrej
62ef2702b3 lcl: add ownerdrawn menu support (for now win32 only). Issue #26969
git-svn-id: trunk@51466 -
2016-01-31 20:11:28 +00:00
sekelsenmat
0c65ba0007 delphi-compat: TMenu.GetHandle creates the handle
git-svn-id: trunk@47735 -
2015-02-13 12:22:54 +00:00
juha
904709043a LCL: Disable menu shortcut keys when parent menu is disabled. Issue #21720, patch from Mukhin Alexey
git-svn-id: trunk@46111 -
2014-09-02 22:21:29 +00:00
juha
ecd140c985 Improve license headers in sources, part 2. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41389 -
2013-05-25 09:22:25 +00:00
juha
4e6e7a17b8 LCL: rename Menus.Shortcut function back to its Delphi compatible name.
git-svn-id: trunk@29859 -
2011-03-15 18:16:38 +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
70fdb2d0ee lcl: don't check for TMenuItem.Owner during streaming to be able to write TMenuItem with children to custom streams by patch of Anton Kavalenka (issue #0018106)
git-svn-id: trunk@28560 -
2010-11-30 03:27:59 +00:00
paul
64f66bd4d7 lcl: send CM_MENUCHANGED and CM_TABSTOPCHANGED messages
git-svn-id: trunk@27937 -
2010-10-29 07:28:13 +00:00
paul
6070876176 lcl: formatting
git-svn-id: trunk@26730 -
2010-07-19 03:15:12 +00:00
paul
c24efa3adf lcl: cleanup + formatting
git-svn-id: trunk@24178 -
2010-03-23 08:11:26 +00:00
paul
d4aa924e22 lcl: don't report that shortcut is handled if shortcut menu item is disabled
git-svn-id: trunk@23604 -
2010-01-30 18:47:58 +00:00
paul
a35c06eeb7 lcl: when menu shortcut is executed perform action update and click starting from the parent to node (this is delphi compatible behavior). Fixes issue #0015427
git-svn-id: trunk@23311 -
2009-12-28 10:48:40 +00:00
paul
e1d98bf7d7 lcl: minor fix for GetHelpContext
git-svn-id: trunk@22743 -
2009-11-24 09:31:20 +00:00
paul
a49f888148 lcl: implement TMenu.GetHelpContext
git-svn-id: trunk@22742 -
2009-11-24 09:30:33 +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
10df6e55fe lcl: don't handle menu shortcuts in the csDesigning state
git-svn-id: trunk@21814 -
2009-09-22 02:36:10 +00:00
paul
834d683851 lcl: make TMenu.SetImages safer and more correct
git-svn-id: trunk@21781 -
2009-09-20 07:54:14 +00:00
paul
3a6fe8e7aa lcl: formatting + cleanup
git-svn-id: trunk@20861 -
2009-07-15 06:51:57 +00:00
paul
c01c5e7c6f lcl: formatting
git-svn-id: trunk@20858 -
2009-07-15 03:30:29 +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
6af0fb9bc9 lcl: fix asterisk position in the copyright comment
git-svn-id: trunk@19477 -
2009-04-18 04:03:13 +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
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +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
paul
eaa9030572 lcl: fix compilation after bidimode changes
git-svn-id: trunk@14845 -
2008-04-16 01:52:15 +00:00
paul
6dd71e054c TMenu, TMenuItem:
- update icon on changes of imagelist and bitmap
- fix HasIcon - now it looks at Bitmap.IsEmpty too (issue #0010313)

git-svn-id: trunk@13125 -
2007-12-03 07:30:37 +00:00
paul
d5c7e43700 - BidiMode patch from Zaher Dirkey (0008996) part 1
git-svn-id: trunk@11408 -
2007-07-02 07:00:51 +00:00
mattias
5afdbd9657 gtk intf: added menu items short cut labels, popup sub menu of menu bar shortcuts
git-svn-id: trunk@10591 -
2007-02-05 19:47:39 +00:00
mattias
6eb4930179 fixed references to COPYING.LCL
git-svn-id: trunk@9243 -
2006-05-05 05:52:08 +00:00
micha
a9e0c4e0f2 only use initialized value of FShortcutHandled, not previous one
git-svn-id: trunk@8149 -
2005-11-14 18:29:29 +00:00
micha
68d4ba68c5 improve memo/edit keystroke "handled" property, which is, message result
add ability to continue processing shortcut events (fixes issue #1308)

git-svn-id: trunk@8062 -
2005-11-05 10:19:27 +00:00
vincents
a0311c2cba removed cvs logs
git-svn-id: trunk@7541 -
2005-08-22 12:30:03 +00:00
vincents
7e441f98c9 remove ===-lines in cvs log comments, so removelog awk script does its work correctly
git-svn-id: trunk@7538 -
2005-08-22 10:05:31 +00:00
mattias
0b4faac301 various Delphi compatibilities from C Western
git-svn-id: trunk@6910 -
2005-03-07 00:52:51 +00:00
micha
6fa632827f implement shortcut handling, tcustomlabel accelerator focuscontrol functionality
git-svn-id: trunk@6725 -
2005-02-03 15:10:23 +00:00
vincents
68ed2f8fe4 don't create handle for unvisible menu item
git-svn-id: trunk@6494 -
2005-01-07 13:04:08 +00:00
mattias
2efd1ba30a destroying clean up
git-svn-id: trunk@6334 -
2004-12-05 13:25:47 +00:00
mattias
5c02893c8b destroying TMenu Handle when Set Parent=nil
git-svn-id: trunk@6333 -
2004-12-05 13:20:29 +00:00
vincents
3ec726878e Destroy menu handle, when destroying form handle.
git-svn-id: trunk@6227 -
2004-11-10 20:53:18 +00:00
micha
f9d650d137 convert LM_CREATE message to interface methods
remove SendMsgToInterface, CNSendMessage and related methods
remove TWidgetSet.IntSendMessage3; all LCL to interface messages have been converted

git-svn-id: trunk@6073 -
2004-09-24 21:34:14 +00:00
mattias
ce11f9f6e2 implemented mainunit hints for include files
git-svn-id: trunk@5393 -
2004-04-10 17:58:57 +00:00
micha
912d81b51e revert intf split
git-svn-id: trunk@5225 -
2004-02-23 08:19:05 +00:00
micha
8c520fe744 split interface into non-lcl and lcl-component dependent parts
git-svn-id: trunk@5224 -
2004-02-22 22:52:59 +00:00
micha
3cd2333df2 attachmenutowindow cleanup
git-svn-id: trunk@4898 -
2003-12-18 08:50:13 +00:00
micha
615e8484ee new interface method to attach a menu to window
git-svn-id: trunk@4733 -
2003-10-26 17:34:41 +00:00