Announcement

Collapse
No announcement yet.

On/Off Button text doesn't turn Grey when Disabled

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • On/Off Button text doesn't turn Grey when Disabled

    I am trying to use disabled On/Off buttons, and the text for the button is not grayed out. In the screen shot below, the six "Physical Switch x" On/Off buttons at the bottom are Disabled.

    I'm using an iPhone 6, running iOS 10.3.1. I am using a Smart.IO module attached to a STM32F1Discovery Kit (STM32VLDISCOVERY).

    Here is my code for creating those UI elements.

    Code:
    u10 = SmartIO_MakeOnOffButton(1, 0, 0, PhysicalSwitch);
    SmartIO_AddText(u10, "Physical Switch 1");
    SmartIO_DisableObject(u10);
    
    u11 = SmartIO_MakeOnOffButton(1, 1, 0, PhysicalSwitch);
    SmartIO_AddText(u11, "Physical Switch 2");
    SmartIO_DisableObject(u11);
    
    u12 = SmartIO_MakeOnOffButton(1, 2, 0, PhysicalSwitch);
    SmartIO_AddText(u12, "Physical Switch 3");
    SmartIO_DisableObject(u12);
    
    u13 = SmartIO_MakeOnOffButton(1, 3, 0, PhysicalSwitch);
    SmartIO_AddText(u13, "Physical Switch 4");
    SmartIO_DisableObject(u13);
    
    u14 = SmartIO_MakeOnOffButton(1, 1, 0, PhysicalSwitch);
    SmartIO_AddText(u14, "Physical Switch 5");
    SmartIO_DisableObject(u14);
    
    u15 = SmartIO_MakeOnOffButton(1, 2, 0, PhysicalSwitch);
    SmartIO_AddText(u15, "Physical Switch 6");
    SmartIO_DisableObject(u15);
    Click image for larger version

Name:	ts_page_1.jpg
Views:	2
Size:	40.7 KB
ID:	134
    Thanks,
    Brian

  • #2
    Thanks Brian, we will look into it.

    Comment

    Working...
    X