Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,

                                    In the TcxButton.OnClick event, button's down state doesn't correspond to the actual down state. I need this urgently since I have based much of my code on this event.

                                    Thanks in advance
                                    Kiril

                                    Steps to Reproduce:

                                    Click the button

                                0

                                Hi Kiril,

                                Sorry, but it's not quite clear.
                                Could you please provide us with step-by-step instruction on how to reproduce your problem?

                                Thanks,
                                Dimitros

                                0

                                Hi Dimitros,

                                In OnClick procedure actual Down is not equal to the button down.

                                Thanks,
                                Kiril

                                DemoButton.zip
                                0

                                Hi Kiril,

                                Thank you for the sample. It was very helpful.
                                This behavior is by design. The Button's OnClick event is fired before the button's state is changed. Therefore, you see a wrong value of the Down property.
                                Please refer to the attached sample.

                                Thanks,
                                Dimitros

                                dx_sample.zip
                                0

                                Hi Dimitros,

                                Why is that?

                                Thanks,
                                Kiril

                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Your Privacy - Legal Statements

                                Copyright © 1998-2013 Developer Express Inc.
                                ALL RIGHTS RESERVED
                                All trademarks or registered trademarks
                                are property of their respective owners