No problem with PB4.3x, so I assume it's related to the new 2DDrawing library.kurzer wrote:I found a strange bug using PureColor and font-enabling for gadgets.
I'm on it.
Moderator: gnozal
No problem with PB4.3x, so I assume it's related to the new 2DDrawing library.kurzer wrote:I found a strange bug using PureColor and font-enabling for gadgets.
Code: Select all
If OpenWindow(0, 0, 0, 300, 300, "SetGadgetItemColor", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
SmartWindowRefresh(0, 1)
LI=ListIconGadget(#PB_Any, 10, 50, 280, 280, "Column 0", 100)
AddGadgetColumn(LI, 1, "Column 1", 100)
For i = 1 To 10
AddGadgetItem(LI, -1, "Text 1"+Chr(10)+"Text 2")
Next
BT=ButtonGadget(#PB_Any, 10, 10, 100, 30, "123")
; PureCOLOR_SetButtonColor(BT, $aaaa00, $8BEC84)
SetGadgetItemColor(LI, -1, #PB_Gadget_FrontColor, $0000FF, 1)
SetGadgetItemColor(LI, 3, #PB_Gadget_BackColor, $00FFFF, -1)
SetGadgetItemColor(LI, 9, #PB_Gadget_BackColor, $FFFF00, 1)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
I just tested your code.kurzer wrote:unfortunately I stumbled over another Pure_COLOR issue (which took me hours today )
It is not possible to highlight ListIcon rows, if you use PureCOLOR at the same time.
-> PB 4.40/4.41RC1, Win XP Home SP3
Code: Select all
If OpenWindow(0, 0, 0, 230,150, "Event-Handling Beispiel...", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ComboBoxGadget(3, 10, 80, 200, 20, #PB_ComboBox_Editable)
AddGadgetItem(3,-1,"TEST")
AddGadgetItem(3,-1,"1233452")
AddGadgetItem(3,-1,"qw354rq234512345")
PureCOLOR_SetGadgetColor(3,#PureCOLOR_SystemColor,#Red)
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
I have no idea (theme issue ?)ABBKlaus wrote:on windows XP SP3 there are redraw issue´s when text is typed into the editable combobox. Just type some text jump to the beginning and insert some text.
(on windows 7 i don´t have this issue)
Thanks for testing gnozal,gnozal wrote:I have no idea (theme issue ?)
I just tested your code.
No problem with NT4 and XP sp2 with or without themes.
Code: Select all
PureCOLOR_SetCellColorCallback(#Window,0) ; <- does not work
No, it isn't (it never was).ABBKlaus wrote:its not possible to reset a PureCOLOR_SetCellColorCallback()
Currently, the callback address is global (valid for all windows). So you can't remove it for one window.ABBKlaus wrote:If it is not the intented behaviour please add is as a feature request