ListIcon SetGadgetItemColor - PB 4.02 win

Windows specific forum
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

ListIcon SetGadgetItemColor - PB 4.02 win

Post by srod »

Hi,

I apologise if this has already been reported.

Run the following with xp themes enabled and select an item:

Code: Select all

OpenWindow(0, 100, 100, 300, 100, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CreateGadgetList(WindowID(0))
  ListIconGadget(0, 5, 5, 290, 90, "Name", 100, 0)
  AddGadgetColumn(0, 1, "Address", 250)
  AddGadgetItem(0, -1, "Harry Rannit"+Chr(10)+"12 Parliament Way, Battle Street, By the Bay")
    SetGadgetItemColor(0, 0,  #PB_Gadget_BackColor, #Red, 0)
  AddGadgetItem(0, -1, "Ginger Brokeit"+Chr(10)+"130 PureBasic Road, BigTown, CodeCity")
    SetGadgetItemColor(0, 1,  #PB_Gadget_BackColor, #Red, 0)

  Repeat
    Event = WaitWindowEvent()
  Until Event = #PB_Event_CloseWindow
I see redrawing problems with the listicon (column 0) on resizing column 0 or moving the window offscreen and back etc.

I could of course remove xp styles from the listicon, but I'd rather not do this.


**EDIT: okay, seems to be a Windows thing as the same thing happens when I use straight api to colour the items.
I may look like a mule, but I'm not a complete ass.
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

Done all that you said but I couldn't get a single glitch out of it. :?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

You have xp themes enabled?
I may look like a mule, but I'm not a complete ass.
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

Most definately.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

That's weird, must be my barmy machine! I'm running XP pro sp2.

I wonder if anyone else gets the same problem?
I may look like a mule, but I'm not a complete ass.
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

By themes you do mean 'enable xp skin support' don't you?

Or am I missing something here, like some kind of Microsoft theme-y thing?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Yes, that's exactly what I mean.

Every example I can find throws up exactly the same problem. This is strange.

Wonder if it is my graphics driver?
I may look like a mule, but I'm not a complete ass.
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

I see no problems, too.
Maybe a corrupt DLL or Window Style?
Windows 7 & PureBasic 4.4
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

I'm with you srod, same redraw problems when I select an item.
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Ah, it was getting a little lonely! :)

I was just investigating the version of the common controls library installed on my machine; 5.82.2900.2982.

I'll rummage around the web to see if anyone else has reported this.
I may look like a mule, but I'm not a complete ass.
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

I've got 5.82.2900.2180
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

I've got the same as srod. But I'm using xp home, maybe if Sparkie updates to the same then that might cure the problem for him, if indeed this is the cause of the problem.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Derek wrote:I've got the same as srod. But I'm using xp home, maybe if Sparkie updates to the same then that might cure the problem for him, if indeed this is the cause of the problem.
Unlikely then that the common controls lib is at fault if everything runs fine on your machine with the same version.
I may look like a mule, but I'm not a complete ass.
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

Like you said before, maybe a graphics driver problem, but for some reason I doubt it. I'm sure if your driver was at fault it would have shown up before now. :?

Anyone else out there got the program working or not?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> Done all that you said but I couldn't get a single glitch out of it. :?

Same. No problems here. Srod, can you post a screenshot to show what happens?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply