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
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 , 6 years ago
comment:2 by , 6 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:3 by , 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 , 6 years ago
| Milestone: | → 3.3.15.3 |
|---|---|
| Resolution: | → Fixed |
| Status: | assigned → closed |
Fixed by revision [12305] in version: 3.3.15.3

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