Modify

Opened 5 years ago

Closed 4 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 Changed 5 years ago by Melba23

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 Changed 5 years ago by Melba23

  • Owner set to Melba23
  • Status changed from new to assigned

comment:3 Changed 4 years ago by Melba23

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 Changed 4 years ago by Melba23

  • Milestone set to 3.3.15.3
  • Resolution set to Fixed
  • Status changed from assigned to closed

Fixed by revision [12305] in version: 3.3.15.3

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Melba23.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.