Page 1 of 1

MENU (DO NOT CLOSE ON SELECT ITEM)

Posted: Wed Sep 02, 2009 9:14 am
by avista
Is it possible MENU to stay opened (not to close) after selecting (activating) seme MENUITEM and after the finished action to return to selected item in menu

Best regards,

Re: MENU (DO NOT CLOSE ON SELECT ITEM)

Posted: Thu Sep 03, 2009 10:47 am
by Antonio Linares
No, it is not possible using Windows standard menus.

A solution is to create a user defined Class that looks like a popup menu, so you have full control on it.

Re: MENU (DO NOT CLOSE ON SELECT ITEM)

Posted: Fri Sep 04, 2009 2:25 pm
by avista
Thanks Antonio ...
but i dont think that i can to create a user defined Class alone ...

Best regards,

Re: MENU (DO NOT CLOSE ON SELECT ITEM)

Posted: Wed Sep 09, 2009 3:17 pm
by avista
Hi Antonio ...
So can you help to create a new MENU class ....or if you have it ?

Best regards,

Re: MENU (DO NOT CLOSE ON SELECT ITEM)

Posted: Thu Sep 10, 2009 11:06 pm
by Antonio Linares
You may review FWH\source\TPanel.prg which it is a very simple and easy to understand Class and use it as a skeleton to build your own popup menu Class.

Think about the differences between a panel and a popup menu: an array of items, you have to paint them, and select one of them with the mouse or the keyboard. It is a good exercise to understand how to build new Classes :-)