Opened 4 years ago

Closed 4 years ago

#3757 closed Bug (Fixed)

Colors in GuiListView functions are switched

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


As per:

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 4 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.


comment:2 Changed 4 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.


comment:4 Changed 4 years ago by Melba23

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

Fixed by revision [12305] in version:

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

as closed The owner will remain Melba23.

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

Note: See TracTickets for help on using tickets.