Bug Report T335888
Visible to All Users

Ribbon - TcxBarEditItem - ColorComboBox located on a toolbar within a secondary form is not assigned a color selected within the editor's standard or DevExpress color editor dialog if the Application.ModalPopupMode property is set to pmNone

created 9 years ago

Hi,

I have an issue with the BarEditItem set with the TcxColorComboBoxProperties.

I create a vcl project with an empty form, drop a ribbon and a barmanager, then add a group with a toolbar and finally add an cxEditItem (ColorComboBox) with the value AllowSelectColor  (True), ColorDialogShowFull (True) and ColorDialogType = cxcdtAdvanced set at design time.

When i run the application and select a custom color using the color dialog, the value is correctly assigned to the baredititem.

Next step, i add a second vcl form with a new ribbon, this one automatically use the barmanager on the first form. This second form is not created by the application, i create it later in the first form of the application. The components are nearly the same but when i select a color in the second form using the color dialog, the value is not assigned to the baredititem.EditValue.

I'm not sure if this is a normal behavior for the baredititem / colorcomboboxproperties, but i really need this to work in my application.

I provide a sample application that demonstrate this issue.

Steps to reproduce :

  1. Run the application.
  2. Select a custom color (Advanced Mode) in the first Form (2016 Style - orange)
  3. The color is correctly assigned and we can see the value by clicking the on the Button "Show Color".
  4. Do the same steps in the second Form -> The value is not correctly assigned.
Comments (3)
DevExpress Support Team 9 years ago

    Hello Haderach,

    I have reviewed your project, but was not able to perform the steps you provided. The toolbar with the editor is hidden on your Form3 form. However, after I set its Visible property to True, I reproduced this issue. I see that the drop-down list works correctly in this case, but the advanced dialog is unable to change the color. I have forwarded this ticket to our developers for research.

    I should mention that it is not a common approach to use a single Bar Manager for multiple forms. Many of the Express Bars features will not work correctly in this case. It is more reliable to use one Bar Manager instance for each form.

      Hi Paulo,
      I didn't mentionned it, but i already try the same approach with two bar manager, one for each Forms and the result is still the same. You're right when you say that it works with the standard dropdown list.
      I also test it with a Tdxbarcolorcombo in Advanced mode, and it seems to work as expected but i need the OnEditValueChanged event provided by the cxEditItem.

      DevExpress Support Team 9 years ago

        Thanks. I have also tested two Bar Managers and they work the same way. I just wanted to inform you that using two Bar Managers is a better approach.

        Answers approved by DevExpress Support

        created 9 years ago (modified 9 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.

          Comments (1)

            Thanks it works as expected with the update version.

            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.