Add button to tab bar

I am attempting to add a button into a tab bar (much like your sample viewer view examples pane does) I am using the tabbar property and entered a defined ibutton into it. The picker now shows up but no button.

isc.IButton.create({autoFit:true, title:"Printer Friendly", icon:"ico_yellow.png", ID:"ButtonFamResultPrint", 
 layoutAlign:"right", height:18, autoDraw:false})

isc.TabSet.create({
    destroyPanes:"false",
    tabs:[
        {
            pane:HLayout4,
            title:"Child1",
            ID:"ScDirFamChild1"
        },
        {
            title:"Child2",
            ID:"ScDirFamChild2"
        },
        {
            title:"Child3",
            ID:"ScDirFamChild3"
        },
        {
            title:"Child4",
            ID:"ScDirFamChild4"
        }
    ],
    ID:"TabSetFamDetails",
	tabBarControls:["tabScroller","tabPicker","ButtonFamResultPrint"],
    autoDraw:false

})

Any ideas?

Firstly, you need to use ButtonFamResultPrint - unquoted - which is pointer to the widget itself, rather than “ButtonFamResultPrint” (the widget’s ID as a string).

Secondly it appears we have an issue in the 5.6 release with the autoFit:true setting in this particular case - you will need to get rid of this setting and assign the width of your button explicitly for now.
Thanks for bringing this issue to our attention, we’ll be sure to look into it.

Great I’ll try that…

Also, one other note. In the visual builder when I attempt to set a default value for a checkbox it shuts down the browser on me.

Hi Jrmayhew,
This is a specific problem with checkbox items in the visual builder in 5.6.
A fix for this will be present in the upcoming 5.7 build.

Sorry for the inconvenience - for now you can just specify your defaultValue directly in your code for any checkbox items you use.

Regards
Isomorphic Software