Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: NewFiremonkey Slide Menu Component



Permlink Replies: 10 - Last Post: Mar 5, 2018 11:44 AM Last Post By: peiman f Threads: [ Previous | Next ]
Graham Murt

Posts: 70
Registered: 5/15/07
NewFiremonkey Slide Menu Component
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 16, 2015 2:02 AM
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
peiman f

Posts: 106
Registered: 4/16/14
Re: NewFiremonkey Slide Menu Component
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 4, 2017 5:24 AM   in response to: Graham Murt in response to: Graham Murt
Graham Murt wrote:
Hi there,
Graham

this not working with 10.2
Graham Murt

Posts: 70
Registered: 5/15/07
Re: NewFiremonkey Slide Menu Component
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 4, 2017 11:55 AM   in response to: peiman f in response to: peiman f
peiman f wrote:
Graham Murt wrote:
Hi there,
Graham

this not working with 10.2

Comprehensive report. Thanks.
Brian Hamilton ...

Posts: 556
Registered: 10/14/04
Re: NewFiremonkey Slide Menu Component
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 4, 2017 12:28 PM   in response to: Graham Murt in response to: Graham Murt
Graham Murt wrote:
peiman f wrote:
Graham Murt wrote:
Hi there,
Graham

this not working with 10.2

Comprehensive report. Thanks.

I can test here with 10.2 if you like :)
Graham Murt

Posts: 70
Registered: 5/15/07
Re: NewFiremonkey Slide Menu Component
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 4, 2017 12:57 PM   in response to: Brian Hamilton ... in response to: Brian Hamilton ...
Brian Hamilton Hamilton wrote:
Graham Murt wrote:
peiman f wrote:
Graham Murt wrote:
Hi there,
Graham

this not working with 10.2

Comprehensive report. Thanks.

I can test here with 10.2 if you like :)

Yeah, Go for it. I’ve got apps developed on 10.2 in the App Store and Play store which use my components so it was really just a post to let the initial poster that his big report was a bit “lacking” ;-)
peiman f

Posts: 106
Registered: 4/16/14
Re: NewFiremonkey Slide Menu Component
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 4, 2017 1:04 PM   in response to: Brian Hamilton ... in response to: Brian Hamilton ...
Brian Hamilton Hamilton wrote:
Graham Murt wrote:
peiman f wrote:
Graham Murt wrote:
Hi there,
Graham

this not working with 10.2

Comprehensive report. Thanks.

I can test here with 10.2 if you like :)

it seems the github not uptodate
Graham Murt

Posts: 70
Registered: 5/15/07
Re: NewFiremonkey Slide Menu Component
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 4, 2017 1:37 PM   in response to: peiman f in response to: peiman f
peiman f wrote:
Brian Hamilton Hamilton wrote:
Graham Murt wrote:
peiman f wrote:
Graham Murt wrote:
Hi there,
Graham

this not working with 10.2

Comprehensive report. Thanks.

I can test here with 10.2 if you like :)

it seems the github not uptodate

Software development is full of very challenging problems to solve. Reading a Readme file on GitHub which has a large font is not one of them.

https://github.com/gmurt/KernowSoftwareFMX
Helge Lange

Posts: 14
Registered: 7/28/01
Re: NewFiremonkey Slide Menu Component
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 6, 2017 2:22 PM   in response to: Graham Murt in response to: Graham Murt
In Delphi 10.2 I have a problem with the SlideMenu when I have no items it crashes when clicking somewhere
Also the content of the form moves up when the menu slides in and moves back into places when closing the menu
Graham Murt

Posts: 70
Registered: 5/15/07
Re: NewFiremonkey Slide Menu Component
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 6, 2017 11:18 PM   in response to: Helge Lange in response to: Helge Lange
Helge Lange wrote:
In Delphi 10.2 I have a problem with the SlideMenu when I have no items it crashes when clicking somewhere
Also the content of the form moves up when the menu slides in and moves back into places when closing the menu

Hi Helge,

The slide menu component is really only developed for mobile platforms where it should work well.

I developed the components to develop mobile apps with so they may not work 100% correctly for Windows Fmx apps.

Graham
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: NewFiremonkey Slide Menu Component
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 4, 2017 8:49 PM   in response to: peiman f in response to: peiman f
peiman f wrote:

it seems the github not uptodate

If you want help, you should provide more detail about what the problem actually is. So far, all you've said amounts
to: "it doesn't work". That helps absolutely no-one; including yourself.

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com
peiman f

Posts: 106
Registered: 4/16/14
Re: NewFiremonkey Slide Menu Component
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 5, 2018 11:44 AM   in response to: Graham Murt in response to: Graham Murt
Graham Murt wrote:
Hi there,

i have to use this for a app and i need to show menu from right to left
you provided a 'mpright' option
it working good
but when the menu is right to left
texts must aligned right and icon must move to left

how can i do these changes
and do you have any plan to add these futures for this components?
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02