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

Ribbon - The dialog opened via the popup menu is unexpectedly closed on mouse clicking

Issue Details

Log in to Track Changes or Edit
AB11484
Bug Report
Phil Holt
Yes
Processed
By Design
No
.NET
XtraBars Suite
6.3
Windows XP
Microsoft Visual Studio 2005
3/16/2007 10:48:11 AM
-> Created by DevExpress Team 3/15/2007 3:23:19 PM
<- Updated by DevExpress Team 3/15/2007 3:24:17 PM

Attachment: WindowsApplication5.zip (10505 bytes)

I have an application that uses the RibbonControl, in it I have a DropDown Button menu item which has a popup menu item, in the popup menu item I have a ButtonEdit control, in this ButtonEdit control I handle the button click event to show a standard FolderBrowseDialog... Once the user selects a path I want to updated the ButtonEdit editbox control. The issue I have is that once the FolderBrowseDialog is display I only get to click it once (does not matter where I click it) and then the FolderBrowseDialog is close immediately. I am not sure what is closing the dialog but because of this problem I don't get to select a folder path etc... Thanks in advance

<- Processed (By Design) by DevExpress Team 3/16/2007 10:48:11 AM

Hello,

We've investigated this issue. Unfortunately the windows architecture doesn't allow us to fix this problem. The popup window needs to be closed when a dialog is opened.
In your scenario, you can prevent the dialog from being closed. To do this, you need to close the popup window before opening the dialog, as in the code below:

void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) {
    (barButtonItem1.DropDownControl as DevExpress.XtraBars.PopupMenu).HidePopup();
    folderBrowserDialog1.ShowDialog();
}

Thank you, Alex.

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