Setting TAdvMetroTile to disabled hides image

Hello!

When setting the .Enabled property to false the image and text disappears.

Enabled

image

Disabled

image

It has changed behaviour in on of the latest updates of the VCL UI pack, because the has been no changes, I just recompiled the program and noted this. A month before the disabled state of the control showed the picture and the text.

Additional info: I found that is the same in the Delphi editor in design time. Setting to disabled hides the picture and text.

    object btnDel: TAdvMetroTile
      Left = 6
      Top = 159
      Width = 112
      Height = 47
      Action = actDelete
      Appearance.Color = clRed
      Appearance.BorderColor = clHighlight
      Appearance.TextColor = clWhite
      Appearance.HoverColor = 15907840
      Appearance.HoverBorderColor = 15907840
      Appearance.HoverTextColor = clWhite
      Appearance.DownColor = 11576180
      Appearance.DownBorderColor = 11576180
      Appearance.DownTextColor = clWhite
      Appearance.DisabledColor = clSilver
      Appearance.DisabledBorderColor = clSilver
      Appearance.DisabledTextColor = clSilver
      BorderStyle = bsNone
      Caption = 'Bri'#353'i'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWhite
      Font.Height = -12
      Font.Name = 'Segoe UI Semibold'
      Font.Style = []
      Layout = tlPicLeft
      Picture.Data = {
        89504E470D0A1A0A0000000D4948445200000020000000200806000000737A7A
        F4000000017352474200AECE1CE90000000467414D410000B18F0BFC61050000
        00097048597300000EC300000EC301C76FA864000002C2494441545847ED973D
        68535114C7FB42860E11141C3A3874E82058306004870E1D3254A8D8A1A0A39B
        0E0E821D1CBA3B747470E8E0E850A10E4A0B0E0A222E4A87082E824307871614
        2A746849FCFD2FE786D398F7953C7469E070CFBDEF7CFFCF3DEF6562E2F4F79F
        2B9044FFBD5EAF0EBFC87A85B5017D4E92641BDA1F37C66EB7BB888D8750137B
        679DCF9781C7E934421F594FFC38FB012D8C1300FA33D0D1A06DED39DF91F306
        CCD761022674C4F36BA30681EE86D979C67AFE2F3B083C36813DF816F41E3A50
        E6B12A0A7094002CB943ABC0D4501B72E8325D36A516EB4541E02AD3C7AE6830
        C2DE6CBF4DD54168373A81FF091F1CC16F7A58549DA28EA31C3A4F2C80D534DD
        04A13774661BC15FAC3710FC06DF827FC7BAC53A67CA67D83F879F2D11C814FA
        93E85DADD56A9FD22058B52885FBB2F01666D0BDD89CEA05E8425AA3669DABC2
        9901A35C8FCD9672550ED40F9032D175BD6D72D303FB39ED23E98A5962EBB915
        13EEF1BA0CE0DE61DFF406D8CF4BC60D93B0976377267BE1EEABAA5901F427A1
        0DA4A6F0876F809D30FBC25E136C4558E666322080EE317AE7A0DF6575833CD1
        AF5B165B96F93C670F2C6365DEDF1B34F12C4C55CED2AF5F9188B0215C65E890
        250C923C08783E89BCFA467A2B45FC64CA280BDF1765787467C60E00874B968D
        9A6A290F8218306B676CE76EA2ED58E68FB220E099AEF49E05BC56590018BC13
        7B0107E1FDC0FADD28EE7735741C44ED2A0350669B45F1B7262C746D4FCC81BC
        88ED26A41AE6F95DEEBC607AC5ECD77BE5DFFDC87AD6E19F39FD7C54B915D04B
        08850D68F807855923F3308AC97E9BECAF57963A012C14C15EC3CA266721EC63
        80B915B0ACF48E50056E41FB64FBDA6558E7D94DF61F387F011D5796BD374476
        4F6325E0EFBB19B1E6CE4B8FDE5A8968FD27D965A7E7CF2F95B0574ED4C6B0FE
        2774D4F1519BF3B60610A42FA9913FDFCB45732A5D6105FE009C5C490266F901
        D80000000049454E44AE426082}
      PictureAutoColor = False
      PictureAutoSize = False
      PictureMarginVert = 15
      ParentFont = False
      TabOrder = 8
      TextMarginVert = 10
      Version = '1.1.5.1'
    end

I would kindly ask for help :slight_smile:

We investigated this and traced this regression.
This is fixed and next release will have this fix.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.