Bug Report Q581184
Visible to All Users

TcxPageControl - Clicking tab buttons on a page created using a drag-and-dock operation has no effect

created 11 years ago

From1 := TFrom1.Create(Nil);
From1.ManualDock(cxPageControl1, nil, alNone);
From1.Show;
cxPageControl1.ActivePageIndex := cxPageControl1.PageCount - 1;
cxPageControl1.Properties.CloseButtonMode := cbmActiveTab;
OnCanCloseEx events at the click of ActiveTab CloseButton not going through
How can I use the OnCanCloseEx events ?

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    created 11 years ago (modified 11 years ago)

    Hello,
    As you can see in the "TcxCustomTabControl.OnCanCloseEx" help topic, this event enables you to respond to closing a tab.
    So, you can prevent closing some tabs. I've created a simple example for you where you can close only the first tab. Please take a look at the attachment.

      Show previous comments (4)
      DevExpress Support Team 11 years ago

        Would you please modify the sample from my previous post, provide us with step-by-step instructions on how to reproduce the problem, and describe your current and expected results?

          Modify the sample attached.
          This sample does not CanCloseEx event.

          DevExpress Support Team 11 years ago

            In your modified sample, you cannot close the Form Tab. AmI right? For other tabs, the OnCanCloseEx event is fired.
            If so, would you please describe your scenario in great detail?

            Other Answers

            created 11 years ago (modified 11 years ago)

            Only had to change the properties
            cxPageControl.DockSite: = True;
            Form1.DragKind: = dkDock

              Comments (1)
              DevExpress Support Team 11 years ago

                Ok. We will examine this behavior, but it can take some time. Your patience is appreciated.

                Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

                Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.