Well, this is probably how you wanted it, right?
if check display mode(1024,768,32)=1
set display mode 1024,768,32
else
set display mode 640,480,32
endif
sync on : sync rate 60
start bbb gui "Media\Ruby.msstyles"
windows set font 7,"Arial",0,0,0,0
dbpro_w=get dbpro window() : set main window dbpro_w
wm1=make window(3,29,200,600,"",dbpro_w, WS_OVERLAPPEDWINDOW)
tab=make tab control(0,0,200,600,TCS_FIXEDWIDTH,wm1)
w1=make window(1200,22,200,600,"",tab,wm1) : tab insert item tab,"TAB 1",0,w1
`w2=make window(0,22,200,600,"",tab,WS_CHILD) :
tab insert item tab,"TAB 2",1,w1
`w3=make window(0,22,200,600,"",tab,WS_CHILD) :
tab insert item tab,"TAB 3",2,w1
tab set selected item tab,0
tab set item size tab,50,20
`This command creates a button with text
`b1=make button(20,20,100,20,"button 1",w2)
`l=make label(1,0,100,100,"First tab",w1)
`l=make label(1,0,100,100,"Second tab",w2)
`l=make label(1,0,100,100,"Third tab",w3)
set window on
make object box 1,2,2,2
do
repeat
get event
h=event get handle()
m=event get message()
if h=get main window()
if m=WM_CLOSE
a=make message box("Are you sure you want to quit?","BBB Gui plugin",MB_YESNO)
if a=IDYES then end bbb gui : end
endif
endif
until m=0
yrotate object 1,object angle y(1)+1
sync
loop
However, the problem now is that you can't put buttons or text on the tabs now.
The code that I just gave you is NOT how it's supposed to be done.
If I'm not mistaken, you don't want to see a difference between the tabs' color (red) and the color beneath the tabs (white), right?
Well, in that case, there are other window skins available, where those two colors are the same.
Did this help you?
Cheers
Slayer rules!!! Yeaaah, man!