vis_files/button.js
/// Initialises the buttons used on pages
Initialises the buttons used on pages
Initialises the buttons used on pages
function buttoninit()
{
	over = -1; canover = -1;
	nbut = 0; ncanbut = 0;
	var menubut = set_menubut();
	setsize(menubut);
	generate_plots();
	addbutton("",0,0,menux,heightpage,-1,MENUBACKBUT,-1,-1);
	addbutton("",menux,canh,width-menux,heightpage-canh,-1,MENUBACKBUT,-1,-1);
	addbutton("",menux,0,width-menux,canh,-1,CORNERSBUT,-1,-1);
	addbutton("",menux,canh,width-menux,25,-1,LOWERBARBUT,-1,-1);
  addbutton("",15,20,0,0,-1,LOGOBUT,-1,-1);
	add_menubut(menubut);
	buttonplot();
	if(drag == 0) mousemove(mx,my);
}
function buttoninit ( ) { over = - 1 ; canover = - 1 ; nbut = 0 ; ncanbut = 0 ; var menubut = set_menubut ( ) ; setsize ( menubut ) ; generate_plots ( ) ; addbutton ( "" , 0 , 0 , menux , heightpage , - 1 , MENUBACKBUT , - 1 , - 1 ) ; addbutton ( "" , menux , canh , width - menux , heightpage - canh , - 1 , MENUBACKBUT , - 1 , - 1 ) ; addbutton ( "" , menux , 0 , width - menux , canh , - 1 , CORNERSBUT , - 1 , - 1 ) ; addbutton ( "" , menux , canh , width - menux , 25 , - 1 , LOWERBARBUT , - 1 , - 1 ) ; addbutton ( "" , 15 , 20 , 0 , 0 , - 1 , LOGOBUT , - 1 , - 1 ) ; add_menubut ( menubut ) ; buttonplot ( ) ; if ( drag == 0 ) mousemove ( mx , my ) ; }
Initialises the buttons used on pages
Initialises the buttons used on pages