Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

LMDExtSpinEdit cannot change background color

I have been changing the background color of LMDExtSpinEdit edit field to red to indicate wrong values.
Software is 3 years old.
This does not work anymore, background stays white.
Setting Color property does nothing.
LMD-Tools version is 2016.4 and newer.
Cannot retrace when the color settign first failed- can you check please ?

Comments

  • 4 Comments sorted by Votes Date Added
  • edited July 2016 Posts: 0Vote Up0Vote Down
    Most important information is missing: 
    Any theme (regardless whether system theme or VCL Styles) enabled or not (--> check ThemeMode property)? 
    If you want to use custom colors, switch off automatic themes/styles. This setting can also be controlled globally.
  • Tried all theme modes: ttmNone, ttmNative,ttmPlatform.
    ThemeGlobaleMode=false;
    Transparent=false;
    Still no effect if set Color=<any other than white>

    Same effect  with TLMDEdit.

    Sorry, this definitely worked with previous versions.
  • Ok, these elements are set into a TLMDGroupBox.
    If I set the ThemeMode of this group box to ttmNone,
    then the TLMDExtspinEdits and TLMDEdits within show the background colors.
    Funny, then it does not depend on any setting in the object itself,
    it doesnt care whether you set any ThemeMode, Transparent, ThemeGlobalMode...

    Ok, now I have I problem understanding why I have to adjust the setting in the parent of these elements...
    is there some logic behind it ?
  • Posts: 0 Accepted Answer Vote Up0Vote Down
    >>Funny, then it does not depend on any setting in the object itself,<<
    >>Ok, now I have I problem understanding why I have to adjust the setting in the parent of these elements...<<
    You did not mention that you use a parent container control - if you want different Theme/Styles support for parent and child controls, set ParentThemeMode property of the child Edit control to false. No need to change the parent control.

    >>it doesnt care whether you set any ThemeMode, Transparent, ThemeGlobalMode...<<
    Transparent property refers to the LMD-Tools sempi-transparency feature and is not related to Themes/Styles support.

Sign In or Register to comment.