summaryrefslogtreecommitdiff
path: root/src/gui/fpg_menu.pas
AgeCommit message (Collapse)Author
2012-12-20menus: No need to call BeginDraw/EndDrawGraeme Geldenhuys
The whole HandlePaint() method is already covered by BeginDraw/EndDraw in a parent class.
2011-08-24menu: correctly handle keyboard shortcut events nowGraeme Geldenhuys
Before the menu only used to process the Alt+<key> events for the mainmenu bar (top level menus). Now we recursively run through all menu items looking for a hotkey match.
2011-07-12commented 2 line of code which really isn't needed in the menu painting processGraeme Geldenhuys
2010-11-30minor bugfix in menubar repainting after a popup window closes.Graeme Geldenhuys
2010-11-30TfpgMenuBar now offloads menu bar background painting to current fpgStyle ↵Graeme Geldenhuys
instance.
2010-11-30MenuBar now shows selected menu item of shown popup menu as indented bevelGraeme Geldenhuys
2010-11-30menu: consistent parameter name as used in TfpgMenuBar.Graeme Geldenhuys
2010-08-29menu theming: refactored out the menu painting, into the TfpgStyle classGraeme Geldenhuys
* This gives us a bit more flexibility regarding the menu looks.
2010-08-19Menus: Minor bugfix in popup menus. OpenerMenuBar is not always assigned.Graeme Geldenhuys
Popup menus can of course be used without a Main MenuBar, so I have to do some extra checking first before I call InternalReset.
2010-08-19MenuBar: bugfix - clicking disabled menu items should not toggle internal ↵Graeme Geldenhuys
FClicked.
2010-08-18MenuBar Open/Close popup menus bug.Graeme Geldenhuys
This change fixes the last issues, depending on the MenuOptions set. Now all menu options behave as they should. Clicking the second time on the same menu items now correctly closes the popup menu etc.
2010-08-18Popup Menu: fixes last selected item still focused bug.Graeme Geldenhuys
* When you selected a menu item, and then later open that popup menu again, that last selected item has focus. Now that focus is reset when the user selected a menu item. Another loooong overdue bug fix.
2010-08-18MenuBar: fixed menu selectio/focus issueGraeme Geldenhuys
* Menubar is not focusable, so our check for Is Focusable will never be true. * Menubar now has normal behaviour again. When you click, a menu opens, click again and menu closes. * Click to open menu and then move mouse over other menus, opens other popup menus. I can't believe this bug was over a year old!!! :-/
2010-06-29Popup menu: Added some spacing after menu item text.Graeme Geldenhuys
We had spacing in front of menu item text for in case we use an image. But this made text look off-centre, so we added some space after text as well.
2010-05-15When using ICommand (aka actions) it takes preferences over OnClick event ↵Graeme Geldenhuys
handler.
2010-05-12Moved Check image drawing out of TfpgMenuItem.DrawText()Graeme Geldenhuys
* As the method name indicates, it is only supposed to draw text. The check mark drawing is now done in TfpgPopupMenu.DrawItem(). The same location where submenu arrow etc is drawn. * We also now took advantage of the AItemFocused parameter to draw the check mark in inverted colors when selected.
2010-05-12TfpgPopupMenu's DrawItem() and DrawRow() now as AItemFocused propertyGraeme Geldenhuys
This allows us more flexibility in how to draw menu items.
2010-05-07Popup Menu now paints the Checkmark when a MenuItem.Checked = True.Graeme Geldenhuys
* Thanks to JP Anghel for the initial patch. * I added some mods by replacing magic numbers with a constant. * I also removed some old commented code.
2010-03-16MenuBar issues with visibility when created at runtime.Graeme Geldenhuys
A minor fix to correct visibility of child components when creating embedded forms which have menu bars. HandleShow is not called in such cases, so vital code was skipped. This code has now moved to HandlePaint which is always called.
2010-02-26Update copyright notice in all units.Graeme Geldenhuys
2009-12-29MenuBar color is not consistent with Popup Menu seperator items.Graeme Geldenhuys
2009-12-21Causes popup menus to overlap slightly so it is easier to see the z-order.Graeme Geldenhuys
2009-12-10Tweak of color usage and the look of popup menusGraeme Geldenhuys
* Color now more closely matches WinXP colors * Improved the border look of popup menus and any 3d bevels * Replaced standard text drawing with fpgStyle text drawing * Menu dividers are now 3D and not flat black line
2009-11-23Add a Hint property to TfpgMenuItem.Graeme Geldenhuys
* I'm unsure of how exactly I want to use it and how it can tie into a StatusBar component. I'll try and come up with some demo in the future.
2009-10-09Added "dummy" Checked property to Menus.Graeme Geldenhuys
This will be implemented soon. Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
2008-09-27* Phase 2 of the unit rename is complete. The gui units have now been renamed.graemeg
* UI Designer has been updated to reflect the new gui unit names.