Commit Graph

140 Commits

Author SHA1 Message Date
maxim
52d72af31a LCL: do not mention in comments no longer existing TMenuBar class, bug #26799
git-svn-id: trunk@46387 -
2014-09-30 23:20:20 +00:00
juha
cda481e98c LCL: add a MainMenu.Height property. Issue #26054
git-svn-id: trunk@44834 -
2014-04-28 12:50:44 +00:00
sekelsenmat
a29c6d9dec Applies patch from bug #17519 to fix regression in WinCE menus
git-svn-id: trunk@42069 -
2013-07-13 05:12:09 +00:00
mattias
9a518d7730 LCL: setting Action.OnExecute no longer changes the TMenuItem.OnClick
git-svn-id: trunk@41416 -
2013-05-26 12:47:37 +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
mattias
e25cb27f70 LCL: TMenuItem.AddHandler: changed AsLast to AsFirst for consistency and implemented it
git-svn-id: trunk@39783 -
2013-01-06 18:58:47 +00:00
mattias
62fb47e350 LCL: TMenuItem.AddHandler: changed AsLast to AsFirst for consistency and implemented it
git-svn-id: trunk@39782 -
2013-01-06 18:58:26 +00:00
maxim
ae9b3c702a LCL: reverted changes to menus.pp from r36666 #844e616738 (by Paul's request)
git-svn-id: trunk@36717 -
2012-04-10 21:41:46 +00:00
juha
844e616738 IDE etc.: unify 3 dots in GUI string to have a space ( ...).
git-svn-id: trunk@36666 -
2012-04-09 08:24:59 +00:00
martin
b9adcfa385 ShortCutToKey param as "out" instead of "var"
git-svn-id: trunk@34940 -
2012-01-25 23:25:10 +00:00
marc
a52a38101c lcl: add missing vcl compatible ValidMenuHotkeys
git-svn-id: trunk@34472 -
2011-12-28 17:42:50 +00:00
juha
67081e51b3 LCL: Implement procedure TMenuItem.Add(const AItems: array of TMenuItem), Issue #19889
git-svn-id: trunk@31975 -
2011-08-13 12:31:37 +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
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
64f66bd4d7 lcl: send CM_MENUCHANGED and CM_TABSTOPCHANGED messages
git-svn-id: trunk@27937 -
2010-10-29 07:28:13 +00:00
mattias
cc6da5151d LCL: added ignore VCL property TMainMenu.AutoMerge, feature 17462
git-svn-id: trunk@27484 -
2010-09-26 21:12:56 +00:00
paul
47c3b8be53 lcl, win32: cleanup
git-svn-id: trunk@26732 -
2010-07-19 05:43:57 +00:00
paul
424162b12c lcl: TMenuItem.Command is a 16bit value, not a 32 bit
git-svn-id: trunk@26731 -
2010-07-19 03:15:45 +00:00
sekelsenmat
29d3c92962 Improvements to the wince menu code
git-svn-id: trunk@26506 -
2010-07-07 14:16:23 +00:00
paul
c24efa3adf lcl: cleanup + formatting
git-svn-id: trunk@24178 -
2010-03-23 08:11:26 +00:00
paul
a49f888148 lcl: implement TMenu.GetHelpContext
git-svn-id: trunk@22742 -
2009-11-24 09:30:33 +00:00
paul
ecc39989c4 lcl: add TPopupMenu.HelpContext property
git-svn-id: trunk@22741 -
2009-11-24 09:22:35 +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
7d3d566314 lcl: make TActionLink.SetImageIndex argument delphi compatible TImageIndex -> Integer
git-svn-id: trunk@22727 -
2009-11-23 15:08:19 +00:00
paul
dd8b4c7a0b lcl: add TMenuItemEnumerator class, TMenuItem.GetEnumerator method
git-svn-id: trunk@22408 -
2009-11-03 15:49:16 +00:00
paul
538e53caad lcl: use TImageIndex instead of Integer in more cases
git-svn-id: trunk@22138 -
2009-10-13 09:24:26 +00:00
paul
eb1e1f863c lcl: use TImageIndex type instead of Integer for TMenuItem.ImageIndex property
git-svn-id: trunk@22129 -
2009-10-13 07:42:59 +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
sekelsenmat
9d1b80451a Changes all dynamic methods in the ide, lclintf and lcl to virtual methods, because they are the same in fpc and dynamic is a legacy directive
git-svn-id: trunk@21280 -
2009-08-18 14:44:25 +00:00
paul
b5301d1c72 lcl: check children handles on menu item LM_ACTIVATE message (fixes win32 part of issue #0014144)
git-svn-id: trunk@20859 -
2009-07-15 03:35:04 +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
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
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
bbd473e2ef lcl: set default values for properties of TMenuItem
git-svn-id: trunk@18012 -
2009-01-01 17:00:54 +00:00
paul
d9491a4528 lcl: fix header
git-svn-id: trunk@18002 -
2008-12-31 03:07:17 +00:00
mattias
0b0d219245 fixed some visibilities
git-svn-id: trunk@17521 -
2008-11-22 16:13:03 +00:00
mattias
8759733936 LCL: added ssMeta, scMeta to Shortcuts, carbon: Cmd now sets ssMeta, Ctrl now sets ssCtrl, Alt now sets ssAlt, IDE: changed Mac OS X key mapping scheme
git-svn-id: trunk@15911 -
2008-07-29 21:21:33 +00:00
vincents
283d4dfd56 LCL: added parameterless TPopupMenu.Popup from Benito van der Zander (issue #11726)
git-svn-id: trunk@15840 -
2008-07-23 07:28:04 +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
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
paul
30d1e0adcc set application hint when user selects menu items:
- TMenuItem.IntfDoSelect
- win32, qt, gtk2 implementation

git-svn-id: trunk@15002 -
2008-04-29 07:06:44 +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
9a0a3d9bfd qt: The OnClose event of TPopupMenu is not fired when is closed (part of 0009436)
git-svn-id: trunk@13958 -
2008-02-03 08:28:25 +00:00
paul
710239fce1 gtk: The OnClose event of TPopupMenu is not fired when is closed - patch from Luiz Americo with modifications (part of 0009436)
git-svn-id: trunk@13956 -
2008-02-03 07:03:11 +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
f1ce28907c Menus:
- improved TMenuItem ImageIndex / Bitmap logic
- draw win32 menus with effects (disabled, selected, normal)

git-svn-id: trunk@12794 -
2007-11-09 06:29:07 +00:00
marc
31f9b02560 * fixed compilation on fpc 2.0.4
git-svn-id: trunk@12711 -
2007-11-03 02:41:12 +00:00
vincents
fd83263261 LCL: made menu caption and hint translatable (#9876)
git-svn-id: trunk@12389 -
2007-10-09 08:27:16 +00:00
vincents
70af0c3bc1 lcl: made TPopupMenu.DoClose a virtual protected method, like DoPopup (bug #9426) from Luiz
git-svn-id: trunk@11808 -
2007-08-13 21:39:05 +00:00