MENU (DO NOT CLOSE ON SELECT ITEM)

Post Reply
User avatar
avista
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

MENU (DO NOT CLOSE ON SELECT ITEM)

Post 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,
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MENU (DO NOT CLOSE ON SELECT ITEM)

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
avista
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Re: MENU (DO NOT CLOSE ON SELECT ITEM)

Post by avista »

Thanks Antonio ...
but i dont think that i can to create a user defined Class alone ...

Best regards,
User avatar
avista
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Re: MENU (DO NOT CLOSE ON SELECT ITEM)

Post by avista »

Hi Antonio ...
So can you help to create a new MENU class ....or if you have it ?

Best regards,
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: MENU (DO NOT CLOSE ON SELECT ITEM)

Post 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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply