ListIcon SetGadgetItemColor - PB 4.02 win
Posted: Wed May 02, 2007 12:05 pm
Hi,
I apologise if this has already been reported.
Run the following with xp themes enabled and select an item:
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 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 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.