Can somebody tell me the function or code to add a button into a specific gui control?
Is this right?
function nameofcontrol::addTab(%this,%tab)
{
nameofcontrol.add(nameofbutton);
if(getWord(nameofbutton.position,0) > 0)
{
nameofbutton.position = 0 SPC 0;
}
else
{
nameofbutton.position = getWord(nameofbutton.position,0) SPC 0;
}
%width = 0;
for(%i = 0;%i < nameofbutton.getCount();%i++)
{
%width += 80;
}
nameofbutton.extent = %width SPC 25;
}