We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Distinguishing source of form close in MDI - XP Menus

Thread ID:

Created:

Updated:

Platform:

Replies:

16872 Jul 26,2004 12:10 PM Aug 31,2004 01:30 PM Windows Forms 7
loading
Tags: Tools
Paul Laudeman
Asked On July 26, 2004 12:10 PM

Hello, We''re using the Syncfusion XP menus in our MDI application and I need to be able to determine how a form was closed. If a Form is maximized and I click the "X" button of the form, the only event that is generated when I click the "X" is the Closing event. If I close the Form through some programmatically the Closed event is fired, too, and I have no way to distinguish between the actual source of the closing. If I use the regular toolbar that ships with the Winforms framework, I can override the WndProc method and look for the WM_SYSCOMMAND message and the SC_CLOSE parameter to detect when the user clicks the "X". This works when the form is both maximized and in the Normal state. (See http://www.syncfusion.com/faq/winforms/search/862.asp for an example). When using the Syncfusion XP menu and the main toolbar style is set to IsMainMenu, however, the WM_SYSCOMMAND message is not generated when the MDI child is maximized and the "X" is clicked, and I am not sure what else I could check. Thanks for any guidance, -Paul

Administrator [Syncfusion]
Replied On July 27, 2004 04:51 PM

Hi Paul, I have requested the folks at the development team for their inputs on this issue, and will update you as soon as I have more information available. We appreciate your patience and cooperation. Regards, Guru Patwal Syncfusion, Inc.

Paul Laudeman
Replied On July 28, 2004 06:49 AM

Thanks Guru, and please keep me posted! -Paul

Administrator [Syncfusion]
Replied On July 29, 2004 09:27 AM

Hi Paul, We could recreate this error here, and have classified this as a shortcoming of our XPMenus framework. A QA report #509 has been logged in this regard, and we will try our very best to address this issue at the earliest. We appreciate your feedback, and thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On July 30, 2004 02:15 PM

Hi Paul, This issue (QA# 509) has been taken care of internally and the fixes are expected to be included in the next release of Essential Suite. The main-menus will now generate the WM_SYSCOMMAND with SC_CLOSE and SC_MINIMIZE when the user clicks/selects the corresponding buttons/menu items in the system buttons/system menus portion of the main-menu. Let me know if you need any other information. Thanks for considering Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Sandeep Singh Rawat
Replied On August 28, 2004 03:00 AM

When I right click on close(X) button (top right) it opens up a menu which includes the option close. After that when I click anywhere else window get closed. Do u hav any solution regarding this. >Hi Paul, > >This issue (QA# 509) has been taken care of internally and the fixes are expected to be included in the next release of Essential Suite. The main-menus will now generate the WM_SYSCOMMAND with SC_CLOSE and SC_MINIMIZE when the user clicks/selects the corresponding buttons/menu items in the system buttons/system menus portion of the main-menu. Let me know if you need any other information. Thanks for considering Syncfusion products. > >Regards, >Guru Patwal >Syncfusion, Inc.

Administrator [Syncfusion]
Replied On August 30, 2004 09:17 AM

Hi Sandy, Thanks for your feedback on this issue. This is indeed a shortcoming in our TabbedMDIManager framework''s context-menu, and I have notified the development team in this regard. We will try our very best to fix this at the earliest, and I will notify you when this is done. We appreciate your patience and cooperation. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On August 31, 2004 01:30 PM

Hi Sandy, This issue has now been taken care of internally, and fixes are expected to be incorporated in the next release of Essential Suite (post v2.1.0.9 releases). We appreciate your feedback, and thanks for your continued interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;