Background colors for buttons

  • We are moving an applicaton programmed in C# from NetDCU8 and NetDCU11 to NetDCU14.


    Some of our buttons have a background color. This works on the NetDCU8 and NetDCU11. But on the NetDCU14 the button is displayed in white and the text on the button is light grey.


    This is the code from the designer:
    this.CmdYes.BackColor = System.Drawing.Color.Green;
    this.CmdYes.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold);
    this.CmdYes.ForeColor = System.Drawing.Color.Lavender;
    this.CmdYes.Location = new System.Drawing.Point(0, 14);
    this.CmdYes.Name = "CmdYes";
    this.CmdYes.Size = new System.Drawing.Size(48, 83);
    this.CmdYes.TabIndex = 15;
    this.CmdYes.Text = "JA";
    this.CmdYes.Click += new System.EventHandler(this.CmdYes_Click);


    Display Properties -> Appearance -> Scheme is set to Windows Standard.


    Is there any visual styles setting I have to set?

  • Currently I have either the beta version XIPV210_CE6Core_121217 fixing the CAN problem or the offical XIPV210_CE6Core_130122 installed.


    I cannot check it here in the home office because I haven't the board.with me.


    I have created a complete new standard application for .Net 2.0 with just a button in the dialog and made the background color green.


    The light grey text is not a problem because we choose it for better contrast against(?) the green background.


    The problem is just that the background color is missing. The background color of a label is working.

  • Hello,
    we will release a kernel (today), where you can adjust the HW acceleration settings by registry. The problem should disappear while use SW acceration only.


    Code
    1. reg open \drivers\display\lcd
    2. reg set value AccelLevel dword 0
    3. reg save
    4. reboot

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • This didn't fix the problem:


    [HKEY_LOCAL_MACHINE\Platform]
    "KernelVersion"="NetDCU14 V1.04"
    "KernelVersionDate"="Mar 25 2013"
    "KernelVersionTime"="16:38:41"


    [HKEY_LOCAL_MACHINE\Drivers\Display\LCD]
    "VidMemBase"=dword:4f000000
    "Mode"=dword:00000064
    "AccelLevel"=dword:00000000


    "AccelLevel" was 4 before.


    The background color is not displayed on buttons.

  • Hello,


    exactly same problem for us, background button color is not working for VS2005 application with kernel v1.04


    A new kernel v1.05 have been released yesterday that we have not tested yet, but in any case, the changelog does not indicate any changes to this issue.


    Any idea ?


    UPDATED: v1.05 does not solve the problem

  • Hello,
    we investigate the „problem with the buttons background colorâ€. Basically the variable SYSGEN_XPSKIN“ is responsible for this behavior. We can offer following solutions:


    1.) Order a custom image "without" SYSGEN_XPSKIN.
    2.) Set COLOR_BTNFACE in [HKEY_LOCAL_MACHINE\SYSTEM\GWE] to 0
    3.) Set BtnOldSkin=1 in [HKEY_LOCAL_MACHINE\SYSTEM\GWE] -> needs image >= V1.06 (or BETA image, date = 132205 or later).

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hello,


    I tested the solution 3.


    I used the beta kernel XIPV210_CE6Core_130522_BETA and used


    reg open \SYSTEM\GWE
    reg set value BtnOldSkin dword 1


    The user interface is now in the same old stile it was with NetDCU8 and NetDCU11 which dosn't matter for us. But more important the background color is back again.

  • Hello,


    Quote

    But, if we like to mantein the new look of the buttons, which is the solution ?

    So "3.)" would be the best solution, but in general XPSKIN and "button background color" adjustment is not possible anymore.


    You may create your own button control deviated from a superior control class, but i dont know if this resolves the problem. An other possibilitie is to use bitmaps for the backgound.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.