I trying to create a function on TCL that works the same like one that i have in Javascript.
the one in javascript get the screen's width and choose the respective header
script language=JavaScript
////////////////////////////////////
// Resolution Definition //
////////////////////////////////////
if(screen.width==800){
resol=0
}else{
if(screen.width==1024){
resol=1
} else {
resol = (screen.width - 1024)/2
}
}
/script
*****************************
I believe the tcl function would be something like that:
set test [winfo width ]
if { [winfo width equal "1024"] } {
set show_header 0
} else {
set show_header 1
}
Does anyone know what the the tcl function to get the user screen's width??