Opened 15 months ago

Last modified 9 months ago

#3973 assigned Bug

GUICtrlSetColor does not work on GUICtrlCreateRadio — at Version 3

Reported by: KaFu Owned by:
Milestone: Component: AutoIt
Version: 3.3.16.1 Severity: None
Keywords: Cc:

Description (last modified by mLipok)

GUICtrlSetColor does not work on GUICtrlCreateRadio for me.

#include <GUIConstantsEx.au3>
GUICreate("My GUI radio")
Local $idRadio1 = GUICtrlCreateRadio("Radio 1", 10, 10, 120, 20)
GUICtrlSetColor(-1, 0xffffff)
GUISetState(@SW_SHOW)
While 1
        $idMsg = GUIGetMsg()
        Select
                Case $idMsg = $GUI_EVENT_CLOSE
                        ExitLoop
        EndSelect
WEnd

Change History (3)

comment:1 Changed 15 months ago by pixelsearch

Concerning this issue, Zedna created a thread on the Forum in 2020 :
https://www.autoitscript.com/forum/topic/201774-guictrlsetcolor-on-checkboxradiobutton-doesnt-work-on-windows-10/

Nine's workaround solved it (a one-liner based on _WinAPI_SetWindowTheme) then Zedna adapted it for older versions of AutoIt.

comment:2 Changed 15 months ago by KaFu

Good catch, thanks for the workaround link!

comment:3 Changed 15 months ago by mLipok

  • Description modified (diff)
Note: See TracTickets for help on using tickets.