Modify

Opened 6 years ago

Closed 6 years ago

#3757 closed Bug (Fixed)

Colors in GuiListView functions are switched

Reported by: careca Owned by: Melba23
Milestone: 3.3.15.3 Component: Standard UDFs
Version: 3.3.14.5 Severity: None
Keywords: Cc:

Description

As per:
https://www.autoitscript.com/forum/topic/202419-question-about-setting-listview-colors/?tab=comments#comment-1452645

An RGB color needs to be switched,(_WinAPI_SwitchColor)
before it is used in any _GUICtrlListView *color* function such as
_GUICtrlListView_SetBkColor, or else, it's going to come out different than expected.
It's very simple to see in the mentioned post.
I looked at the script in question, made different ones, and all got the same result, so i do believe this is not intended, nothing in the function notes refers to any special case, or anything like that.

Attachments (0)

Change History (4)

comment:1 by Melba23, 6 years ago

I see there is an internal _ReverseColorOrder function in the GUIListView library which is used to reverse the colour returned by the _GetBkColor function, but nowhere else. I will look to see if using this in ALL the colour functions solves the problem.

M23

comment:2 by Melba23, 6 years ago

Owner: set to Melba23
Status: newassigned

comment:3 by Melba23, 6 years ago

Altering the library functions to accept RGB would be seriously script-breaking. I am going to add comments to the Help file pages for GUICtrlListView_SetColor* functions explaining the need for BGR colours and suggesting _WinAPI_SwitchColor as the best way to convert.

M23

comment:4 by Melba23, 6 years ago

Milestone: 3.3.15.3
Resolution: Fixed
Status: assignedclosed

Fixed by revision [12305] in version: 3.3.15.3

Modify Ticket

Action
as closed The owner will remain Melba23.

Add Comment


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