PB 4.7 and gadget colours

Mac OSX specific forum
jesperbrannmark
Enthusiast
Enthusiast
Posts: 536
Joined: Mon Feb 16, 2009 10:42 am
Location: sweden
Contact:

PB 4.7 and gadget colours

Post by jesperbrannmark »

Hi all.
As talked about before there is no support for Setgadgetitemcolor in say.. listicongadget... among others. I think this was due to using carbon instead of cocoa (as is available from 4.7 beta1).... But still there is no Setgadgetitemcolor support in listicongadget and pb 4.7.
Correct me if i was wrong, but shouldn't this be a nice native API call when using Cocoa ?

Code: Select all

OpenWindow(0,100,100,640,480,"HEJ")
ListIconGadget(0,0,0,640,480,"Hej",100)
For i=1 To 10
  AddGadgetItem(0,-1,"Hejsan"+Str(i))
Next
SetGadgetItemColor(0,2,#PB_Gadget_BackColor,RGB(255,0,255),0)
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow