Age | Commit message (Collapse) | Author |
|
The whole HandlePaint() method is already covered by BeginDraw/EndDraw in a parent
class.
|
|
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.
|
|
|
|
|
|
instance.
|
|
|
|
|
|
* This gives us a bit more flexibility regarding the menu looks.
|
|
Popup menus can of course be used without a Main MenuBar, so I have
to do some extra checking first before I call InternalReset.
|
|
FClicked.
|
|
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.
|
|
* 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.
|
|
* 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!!! :-/
|
|
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.
|
|
handler.
|
|
* 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.
|
|
This allows us more flexibility in how to draw menu items.
|
|
* 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.
|
|
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.
|
|
|
|
|
|
|
|
* 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
|
|
* 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.
|
|
This will be implemented soon.
Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
|
|
* UI Designer has been updated to reflect the new gui unit names.
|