Disabled state of TcxButton not visible

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #37181
    HeDiBo
    Participant

    In this project it shows there's no way to view a disabled state of a Developer Express TcxButton:

    [attachment=8009:acDevExButton.zip]

    This is the effect of running this project (both buttons are disabled):

    [attachment=8010:acDevExButton.jpg]

    #55800
    Support
    Keymaster

    Hello!

    Try new release, please, some changes were added there.

    #55831
    HeDiBo
    Participant
    'Support' wrote:

    Hello!

    Try new release, please, some changes were added there.

    Hi Serge,

    I already sent you a private mail, but that got no response. I do not get any notification by email if there is a response to my item. So, this response of you has not been noticed by me, simply because I did not get an email notification.

    Can you please look into this, it makes this forum quite useless for me.

    I re-checked my settings and as far as I can see, I should be receiving notifications by email.

    Regards ;-}

    Dick

    #55832
    HeDiBo
    Participant
    'Support' wrote:

    Hello!

    Try new release, please, some changes were added there.

    It still fails to show disabled statel!!

    This is the start of my acLFPainter.pas:

    Code:
    //{$DEFINE VER16_1_4} // cxGrid version 16.1.4 and newer
    //{$DEFINE VER14_1_2}
    //{$DEFINE VER13_2_2}
    //{$DEFINE VER12_2_3}
    {$DEFINE VER12_1_6}
    //{$DEFINE VER26}
    {$DEFINE VER23}
    #55842
    Support
    Keymaster

    Hello!

    Your version of the DevEx is 12.1.6?

    #55879
    HeDiBo
    Participant
    'Support' wrote:

    Hello!

    Your version of the DevEx is 12.1.6?

    I think it is 11.2.9 The setting with Ver12_1_6 is the only one that works.

    Again: I do not receive notifications by e-mail if you respond to an issue. PLEASE look into this.

    #55920
    Support
    Keymaster

    Notifications must work now.

    #55925
    HeDiBo
    Participant
    'Support' wrote:

    Notifications must work now.

    Thank you. They do!!

    #55934
    Support
    Keymaster

    cxButton is alphablended if disabled, but text is not changed, because old DevEx packages doesn't allow to change a color of text in disabled button.

    #55938
    HeDiBo
    Participant
    'Support' wrote:

    cxButton is alphablended if disabled, but text is not changed, because old DevEx packages doesn't allow to change a color of text in disabled button.

    Thanks, I think it never worked.

    Again, I did not receive notification of your answer. It's not in my spam box either. It's just not sent!

    #56145
    HeDiBo
    Participant
    'Support' wrote:

    cxButton is alphablended if disabled, but text is not changed, because old DevEx packages doesn't allow to change a color of text in disabled button.

    I'm not sure I agree with you. The TcxButton has an array of colors (property Colors) of which DisabledText is one. So, there is a way, apparently, to display disabled text with a different color.

    #56157
    Support
    Keymaster

    For a skinning of the DevExpress controls the LookAndFeel painters used, this is a special technology implemented by DevExpress for skinning of their controls.

    For drawing of buttons the DrawButton procedure used:

    Code:
    procedure DrawButton(ACanvas: TcxCanvas; R: TRect; const ACaption: string; AState: TcxButtonState;
    ADrawBorder: Boolean = True; AColor: TColor = clDefault; ATextColor: TColor = clDefault;
    AWordWrap: Boolean = False; AIsToolButton: Boolean = False

    You can find it in the acLFPainter.pas

    Text is drawn there, but DevEx engine draws text later and we can't change a color there.

    And we haven't access to the button's colors palette or local TcxButtonPainter, because cxLookAndFeelPainter used there we can override some procedures only.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.