Page 1 of 1

Favorites

Posted: Tue Jul 05, 2016 7:45 am
by skiman
Hi,

Customers sometimes are asking me to have 'favorites' in my application. They would like to have an option to add certain 'menu options' to their favorites toolbar.

I was thinking to use the 'right button' on a menu item to get a popup with the option 'add to favorites'. At that moment I would need to have the menu text from the current selected option, and also the action for the option. this way I could save it in a database to process. With access to that database, a user would have the possibility to sort, and to delete options from their favorites.

Anyone who has done this before or any suggestions to do this?

Re: Favorites

Posted: Tue Jul 05, 2016 4:54 pm
by rdonnay
DC_XbpMenuShift() is used to post a codeblock to call when the shift key is
held down while clicking a menu item. This is a handy feature to make it easy
to give users the ability to create their own shortcuts from any existing menu system.

Look at the sample program .\samples\menu\menushortcuts.prg

Re: Favorites

Posted: Wed Jul 06, 2016 2:44 am
by skiman
Thanks, I will look at it.