No worries then, I'll handle it myself for now.
So, consider this a feature request then?

Moderator: gnozal
Code: Select all
If OpenWindow(0,200,200,200,100,"Calendar Colors",#PB_Window_SystemMenu)
If CreateGadgetList(WindowID(0))
d=Date()
DateGadget(0,10,10,90,21,"",d)
DateGadget(1,10,40,90,21,"",Date(Year(d),Month(d),Day(d),0,0,0),#DTS_TIMEFORMAT)
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
EndIf
I have no experience with calendar gadgets, I will have to do some research.PB wrote:Any chance that PureCOLOR could support coloring these gadgets?
Code: Select all
; Make sure XP Skins are enabled!
If OpenWindow(0, 200, 200, 200, 200, "",#PB_Window_SystemMenu)
CreateGadgetList(WindowID(0))
PanelGadget(0, 8, 8, 180, 180)
AddGadgetItem (0, -1, "Panel 1")
AddGadgetItem (0, -1, "Panel 2")
AddGadgetItem (0, -1, "Panel 3")
CloseGadgetList()
PureCOLOR_SetGadgetColor(0, #PB_Gadget_BackColor, #Red)
Repeat : Until WaitWindowEvent()= #PB_Event_CloseWindow
EndIf
I know, there are lots of issues with XP Skins ...PB wrote:You're going to hate me now that I've started using your lib, gnozal.
Run this with XP skins enabled, and move the mouse over the tabs.
The text on them disappears. The Help file says SetGadgetColor can
be used with all gadgets except buttons, so...
Could you post some working code that shows the problem ?Rook Zimbabwe wrote:I love this utility!
XP Skin support not enabled.
PB4.2 though...
I do have one issue... at times when a button is colored, in a new window, it will all be BLACK.
This only happens on a button where there are different colors for UP and DOWN states.
I have to wait for the next PB4.20 beta ... http://www.purebasic.fr/english/viewtopic.php?t=30803GG wrote:Any chance to have a PureColor library for PB 4.20 ?
Code: Select all
MessageRequester("Purecolor 4.10","PureColor : "+PureCOLOR_Version()+" - "+" Tag : "+Date$+" - "+dbpath$,#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered|#PB_Window_SizeGadget); : doesn't print "PureColor : "
Code: Select all
Version$ = PureCOLOR_Version()
MessageRequester("Purecolor 4.10","PureColor : "+Version$+" - "+" Tag : "+Date$+" - "+dbpath$,#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered|#PB_Window_SizeGadget); : doesn't print "PureColor : "
Code: Select all
If OpenWindow(0, 200, 200, 200, 100,"PureCOLOR Menu", #PB_Window_SystemMenu|#PB_Window_TitleBar)
;
If CreateMenu(0, WindowID(0))
MenuTitle("File")
PureCOLOR_MenuItem(0, 1,"New"+Chr(9)+"Ctrl+N")
PureCOLOR_MenuItem(0, 2,"&Open"+Chr(9)+"Ctrl+O", Icon1)
PureCOLOR_MenuItem(0, 4,"&Save As..."+Chr(9)+"Ctrl+A")
MenuBar()
PureCOLOR_MenuItem(0, 5,"Exit")
MenuTitle("Edit")
PureCOLOR_MenuItem(0, 6,"Copy"+Chr(9)+"Ctrl+C")
MenuTitle("Edit")
PureCOLOR_MenuItem(0, 7,"Copy"+Chr(9)+"Ctrl+C")
;
PureCOLOR_SetMenuOptions(0, -1, -1, RGB(0,0,255), #Black, RGB(87, 162, 96), -1, -1, -1, -1)
;
PureCOLOR_ActivateColoredMenu(0)
PureCOLOR_SetMenuOptions(0, -1, -1, #Green, -1, -1, #Red, -1, -1, -1)
EndIf
;
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_CloseWindow
Break
ElseIf Event = #PB_Event_Menu
Debug EventMenu()
EndIf
ForEver
;
EndIf
There is currently no option to color the menu title text specifically, but using the existant options : now the menu title text is blue ...Marco2007 wrote:HI,
does anyone know. how to color the Menutitles? As you can see, they are white...
Code: Select all
If OpenWindow(0, 200, 200, 200, 100,"PureCOLOR Menu", #PB_Window_SystemMenu|#PB_Window_TitleBar)
;
If CreateMenu(0, WindowID(0))
MenuTitle("File")
PureCOLOR_MenuItem(0, 1,"New"+Chr(9)+"Ctrl+N")
PureCOLOR_MenuItem(0, 2,"&Open"+Chr(9)+"Ctrl+O", Icon1)
PureCOLOR_MenuItem(0, 4,"&Save As..."+Chr(9)+"Ctrl+A")
MenuBar()
PureCOLOR_MenuItem(0, 5,"Exit")
MenuTitle("Edit")
PureCOLOR_MenuItem(0, 6,"Copy"+Chr(9)+"Ctrl+C")
MenuTitle("Edit")
PureCOLOR_MenuItem(0, 7,"Copy"+Chr(9)+"Ctrl+C")
;
PureCOLOR_SetMenuOptions(0,#Blue, -1, #Green, #Yellow, #Blue, #Red, -1, -1, -1)
PureCOLOR_ActivateColoredMenu(0)
EndIf
;
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_CloseWindow
Break
ElseIf Event = #PB_Event_Menu
Debug EventMenu()
EndIf
ForEver
;
EndIf
gnozal wrote:There is currently no option to color the menu (title) text specifically, but using the existant options : now the menu title text is blue ...Marco2007 wrote:HI,
does anyone know. how to color the Menutitles? As you can see, they are white...Code: Select all
If OpenWindow(0, 200, 200, 200, 100,"PureCOLOR Menu", #PB_Window_SystemMenu|#PB_Window_TitleBar) ; If CreateMenu(0, WindowID(0)) MenuTitle("File") PureCOLOR_MenuItem(0, 1,"New"+Chr(9)+"Ctrl+N") PureCOLOR_MenuItem(0, 2,"&Open"+Chr(9)+"Ctrl+O", Icon1) PureCOLOR_MenuItem(0, 4,"&Save As..."+Chr(9)+"Ctrl+A") MenuBar() PureCOLOR_MenuItem(0, 5,"Exit") MenuTitle("Edit") PureCOLOR_MenuItem(0, 6,"Copy"+Chr(9)+"Ctrl+C") MenuTitle("Edit") PureCOLOR_MenuItem(0, 7,"Copy"+Chr(9)+"Ctrl+C") ; PureCOLOR_SetMenuOptions(0,#Blue, -1, #Green, #Yellow, #Blue, #Red, -1, -1, -1) PureCOLOR_ActivateColoredMenu(0) EndIf ; Repeat Event = WaitWindowEvent() If Event = #PB_Event_CloseWindow Break ElseIf Event = #PB_Event_Menu Debug EventMenu() EndIf ForEver ; EndIf
No problem here with '#PureCOLOR_BackgroundImage demo' and PB4.10 ; did you use the PB4.10 PureCOLOR version http://freenet-homepage.de/gnozal/PureCOLOR__.zip ?kinglestat wrote:Using PB 4.10
When trying example PUREColor_Test_10 I get
POLINK Error, _PB_GetGadgetItemText unresolved external
I tried with threaded and non-threaded libraries...same
ay ideas?