bug bakcolor in listview cause-> [windowBlinds] fixed

Just starting out? Need help? Post your questions and find answers here.
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

bug bakcolor in listview cause-> [windowBlinds] fixed

Post 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
Image instead of this one Image
Last edited by dobro on Fri Nov 29, 2019 5:26 pm, edited 2 times in total.
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: bug bakcolor in listview ? v5.71

Post 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
A+
Denis
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: bug bakcolor in listview ? v5.71

Post by dobro »

ok thanks for your answer.

Merci Denis , et bonne fêtes , je retesterai ça :)
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: bug bakcolor in listview ? v5.71

Post by Denis »

:wink:
A+
Denis
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: bug bakcolor in listview ? v5.71

Post 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

:? :?
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: bug bakcolor in listview ? v5.71

Post 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 ?
A+
Denis
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: bug bakcolor in listview ? v5.71

Post by dobro »

arf!!

it seems to work when I remove the Xp themes from the compilation parameters :shock:
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: bug bakcolor in listview ? v5.71 [no problem sorry ]

Post 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 :D
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: bug bakcolor in listview ? v5.71 [sorry is my system]

Post 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 :)
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
mk-soft
Always Here
Always Here
Posts: 6251
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: bug bakcolor in listview ? v5.71 [sorry is my system]

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: bug bakcolor in listview ? v5.71 [sorry is my system]

Post 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 :)
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
Post Reply