MENU (DO NOT CLOSE ON SELECT ITEM)

MENU (DO NOT CLOSE ON SELECT ITEM)

Postby avista » Wed Sep 02, 2009 9:14 am

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
avista
 
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Re: MENU (DO NOT CLOSE ON SELECT ITEM)

Postby Antonio Linares » Thu Sep 03, 2009 10:47 am

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

Re: MENU (DO NOT CLOSE ON SELECT ITEM)

Postby avista » Fri Sep 04, 2009 2:25 pm

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)

Postby avista » Wed Sep 09, 2009 3:17 pm

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

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)

Postby Antonio Linares » Thu Sep 10, 2009 11:06 pm

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


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 1 guest