Page 1 of 1
bug bakcolor in listview cause-> [windowBlinds] fixed
Posted: Thu Nov 28, 2019 10:56 am
by dobro
on windows 10 latest version
this code does not color the background of my listview
if I compile in 64 bits ....Purebasic 5.71 LTS
and ....
if I compile in 32 bits, the executable created does not color the listview...
whereas in the ide, it works.
Code: Select all
enumeration
#Win
#List
#font
EndEnumeration
LoadFont(#font,"Arial",10,#PB_Font_Bold )
If OpenWindow(#win,0,0,270,140,"ListViewGadget",#PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListViewGadget(#list,10,10,250,120)
SetGadgetFont(#list, FontID(#font))
SetGadgetColor(#list, #PB_Gadget_BackColor ,RGB(136,213,0))
For a=1 To 12
AddGadgetItem (#list,-1,"Elément "+Str(a)+" de la boîte à liste") ; défini le contenu de la boîte de liste
Next
SetGadgetState(#list,9) ; sélectionne le dixième élément (la numérotation commmence à 0)
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
one time out of 2 or 3 gives this

instead of this one

Re: bug bakcolor in listview ? v5.71
Posted: Thu Nov 28, 2019 11:25 am
by Denis
Salut Dobro,
On my computer, both 32/64 compile and the background color is always Ok (with exe file or when compiling, tested 10 times).
Try to update your driver (carte vidéo) and tell us.
Microsoft Windows 10 Famille Build : 17763.864 (64 bits)
Carte mère : Aspire GX-781
Processeur : Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz (4 coeurs)
NVIDIA GeForce GTX 1060 3GB
Mémoire 8 Go
PureBasic 5.71 LTS
Re: bug bakcolor in listview ? v5.71
Posted: Fri Nov 29, 2019 12:53 am
by dobro
ok thanks for your answer.
Merci Denis , et bonne fêtes , je retesterai ça

Re: bug bakcolor in listview ? v5.71
Posted: Fri Nov 29, 2019 10:08 am
by Denis
Re: bug bakcolor in listview ? v5.71
Posted: Fri Nov 29, 2019 2:22 pm
by dobro
good after updating my graphics card
I still have this problem!!!
I don't know if it's from Purebasic or my system.
here is a video, where I try to compile in 32 bits
the code above
and the result always gives me a ListView with a White background, instead of Green!
https://youtu.be/NyJFxyUo7iI

Re: bug bakcolor in listview ? v5.71
Posted: Fri Nov 29, 2019 2:53 pm
by Denis
dobro, i confirm that it's Ok on my computer with 32 bit PB version, i always get backgroung color, always!
(it runs correctly with or without autonomous debugger))
Did you try to reinstall PB (clean way)?
Edit:
If you create an exe, is this the same ?
With or without xp themes, is this the same ?
Re: bug bakcolor in listview ? v5.71
Posted: Fri Nov 29, 2019 3:42 pm
by dobro
arf!!
it seems to work when I remove the Xp themes from the compilation parameters

Re: bug bakcolor in listview ? v5.71 [no problem sorry ]
Posted: Fri Nov 29, 2019 3:45 pm
by dobro
not in fact it works randomly !!
will try another version of PB to see
....
[reedit]
it must come from my windows ...
since I just tested from PB 5.71 to Pb 5.50
and I still have the problem
Thanks anyway Denis

Re: bug bakcolor in listview ? v5.71 [sorry is my system]
Posted: Fri Nov 29, 2019 5:15 pm
by dobro
For the information, I found the responsible
of my color problem!
it's the WindowsBlinds program!!!
this program is used to change the look of the windows windows
and until now, the theme I was using was working well
but apparently, you're making a mess of the Backcolor function.....
[in French]
Pour information, j'ai trouvé le responsable
de mon probleme de couleur !
il s'agit du programme WindowsBlinds !!
ce programme sert a changer le look des fenetres de windows
et jusqu'a maintenant, le theme que j'utilisais, fonctionnait bien
mais apparemment, seme le bazard sur la fonction Backcolor....
Probleme résolu

Re: bug bakcolor in listview ? v5.71 [sorry is my system]
Posted: Fri Nov 29, 2019 5:17 pm
by mk-soft
Seems to work with Windows 7 Pro, Window 10 Pro (1803)
- PB v5.70 and v5.71 (X86/X64)
- No third part libraries
- Window default themes
Re: bug bakcolor in listview ? v5.71 [sorry is my system]
Posted: Fri Nov 29, 2019 5:24 pm
by dobro
it's the WindowsBlinds program!!!
this program is used to change the look of the windows windows
and until now, the theme I was using was working well
but apparently, you're making a mess of the Backcolor function.....
ok for me !! Thanks
