Jump to content

Disabled Input on tab item not greyed out


 Share

Recommended Posts

Does anyone know why a disabled input is not greyed out on a tab item? Item is disabled and does not accept input, but it does not turn grey like the input ctrl does outside of a tab item. See the difference in my example below...both are disabled but have different background colors.

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)

$Form1 = GUICreate("Form1", 378, 159, 432, 283)

    $MainTab1 = GUICtrlCreateTab(5, 10, 200, 140)
    GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")

    
    $MainTabSheet1 = GUICtrlCreateTabItem("Test")
    $Input1 = GUICtrlCreateInput("Input1", 20, 64, 121, 21)
    GUICtrlSetState($Input1, $GUI_DISABLE)
    
    GUICtrlCreateTabitem (""); end tabitem definition
    
    $Input2 = GUICtrlCreateInput("Input1", 220, 64, 121, 21)
    GUICtrlSetState($Input2, $GUI_DISABLE)
    
    GUISetState(@SW_SHOW)

    GUISetOnEvent($GUI_EVENT_CLOSE, "close")

While 1
    Sleep(100)
WEnd

Func close()
    Exit
EndFunc ;=> close

Thanks,

Mike.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...