v
Not logged inv
SearchAsk a QuestionReport an IssueMake a SuggestionMy Questions and Issues
Issue Details
Find By ID

ApplicationMenu's bottom pane button action

Issue Details

Log in to Track Changes or Edit
Q106244
Question
Dan Wiegenfeld
Yes
Processed
Answered
.NET
XtraBars Suite
8.1.4.0
Windows Vista
Microsoft Visual Studio 2008
6/13/2008 6:42:46 AM
-> Created by Dan Wiegenfeld 6/11/2008 11:03:47 AM

Attachment: PopupControlContainer.zip (84417 bytes)

Hi,

I have a RibbonForm that uses ApplicationMenu containing "Close" BarButtonItem and PopupControlContainer.
The PopupControlContainer is used as BottomPane for the ApplicationMenu and contains a "Close" SimpleButton.

Both buttons should only perform Me.Close() and the application catches the FormClosing event to show a "Yes, No, Cancel" MessageBox regards to the closing action (usually used to ask the user if he wants to save changes before closing, close without saving, and cancel closing).

When I press the BarButtonItem I get the expected behavior, but when I press the SimpleButton in the PopupControlContainer, no matter which button I pressed on the MessageBox dialog, it acts as I pressed "No"

Please check the attached project.

Thanks.

<- Reviewed by DevExpress Team 6/12/2008 7:57:25 AM
<- Processed (Answered) by DevExpress Team 6/12/2008 11:19:50 AM

Attachment: Q106244.zip (13670 bytes)

Hi Dan,

When you click the SimpleButton, the ApplicationMenu popup form is still active. So, the modal MessageBox dialog can't work properly. To overcome this issue, close the popup menu before closing the form:

[VB.NET]

Private Sub SimpleButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
SimpleButton1.Click
        RibbonControl.Manager.CloseMenus()
        Me.Close()
    End Sub

I have modified your project accordingly. It is attached. Please let us know if this makes sense.

Thanks,
Michael.

-> Reactivated by Dan Wiegenfeld 6/12/2008 2:30:23 PM

Thanks Mihcael for the quick reply.
This was exactly what I was missing ;)

<- Processed (Answered) by DevExpress Team 6/13/2008 6:42:46 AM

Hi Dan,

I am happy to hear that my assistance was helpful to you. Please do not hesitate to contact us if you experience problems when using our products. We will be happy to help you at any time.

Thanks,
Michael.

Log in to Track Changes or Edit

Peer-to-Peer Discussion in DevExpress Forums

No discussion on this article has been started yet.

Please login to start discussion.

v
v
Search
Searching Tips