Modify

#3973 assigned Bug

GUICtrlSetColor does not work on GUICtrlCreateRadio

Reported by: KaFu Owned by: Jon
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

Attachments (0)

Change History (5)

comment:1 by pixelsearch, on Aug 23, 2023 at 2:44:45 PM

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 by KaFu, on Aug 24, 2023 at 9:35:50 AM

Good catch, thanks for the workaround link!

comment:3 by mLipok, on Aug 25, 2023 at 9:46:57 PM

Description: modified (diff)

comment:4 by Jpm, on Aug 26, 2023 at 3:53:54 PM

Owner: set to Jpm
Status: newassigned

Thanks fix (workaround) sent to Jon

comment:5 by Jpm, on Feb 20, 2024 at 3:40:59 PM

Owner: changed from Jpm to Jon

Modify Ticket

Action
as assigned The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.