@DA - I am unable to replicate your problem. Here is a code snippet that I used to set radio buttons to both a panel and a frame as well as changing their colors on both. On a panel, you can see that the radio does not have a transparent background by default.
sync on
sync rate 0
MAXIMIZE WINDOW
startBlue "ID","####"
RadioWindow=createWindow(260,280,260,250,"Window 1",WINDOW_FIXED,WINDOW_TOOLWINDOW,0,0)
RadioFrame1=createFrame(10,10,230,75,"Digital Awakening",RadioWindow)
Radio1=createRadioButton(10,20,100,20,"Alquerian",RadioFrame1)
Radio2=createRadioButton(10,45,100,20,"Wolf",RadioFrame1)
RadioPanel1=createPanel(10,70,230,75,RadioWindow)
Radio3=createRadioButton(10,20,100,20,"Cash",RadioPanel1)
Radio4=createRadioButton(10,45,100,20,"Zotoaster",RadioPanel1)
do
if spacekey()=1
setGadgetColor Radio1,RGB(rnd(128)+128,rnd(128)+128,rnd(128)+128),0
setGadgetColor Radio3,RGB(rnd(128)+128,rnd(128)+128,rnd(128)+128),0
setGadgetColor RadioPanel1,RGB(rnd(128)+128,rnd(128)+128,rnd(128)+128),0
setGadgetColor RadioFrame1,RGB(rnd(128)+128,rnd(128)+128,rnd(128)+128),0
endif
sync
loop
When the DBP window has the focus (not the RadioWindow) hit the spacebar to modify the colors of the gadgets.
Attached is the output of the code (2 spliced screenies), the bottom radios are on a panel, where the top ones are in a frame.
Hope this helps!
"We are what we repeatedly do. Excellence, therefore, is not an act, but a habit." - Aristotle
