Hi there,
I've created a new Facebook style drawer component which I've uploaded to GitHub so that others can take a look (and maybe give feedback

)
The standard Multiview component didn't really fit my needs.. it seemed a bit clunky to me and I thought their must be a simpler way to add slide-out menus to apps.
So this is my take on the drawer component. TksSlideMenu features include...
- inherits from non-visual tcomponent so can be easily dropped onto any form without affecting existing layouts.
- add menu items with images with a single call
- bitmap/screen caching for optimal sliding/animation performance
- options for a menu header with title and image
- settings for fonts, colours etc
- property to specify whether the menu should slide in from the left of the screen, or the right of the screen
- choice of animations (push, overlap and reveal)
You can view an image of the component here...
https://github.com/gmurt/KernowSoftwareFMX/blob/master/left_menu.png
GitHub source code and demo...
https://github.com/gmurt/KernowSoftwareFMX
Still more to do, need to make the menu items scrollable rather than fixed (looking at this today) but I think it's a nice, clean way of implementing menus in your apps.
Tested with Delphi XE7 and XE8 on Windows and iOS. Hopefully Android should be fine also but haven't got around to testing this just yet.
Any thoughts, suggestions, feedback, please let me know.
Kind regards,
Graham
Connect with Us