##################################################################### # balloon.tcl - procedures used by balloon help # # Copyright (C) 1996-1997 Stewart Allen # # This is part of vtcl source code # Adapted for general purpose by # Daniel Roche # thanks to D. Richard Hipp for the multi-headed display fix # version 1.2 ( Sep 21 2000 ) # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Modification history: # 5-Jul-2001 FMP added -justify left to the balloon help label; # enable_balloons ##################################################################### # Sourced by tkemc # Uses emchelp.tcl for specific widget help messages ##################################################################### set do_balloons 0 proc enable_balloons {e} { global do_balloons set do_balloons $e } bind Bulle { global do_balloons if {$do_balloons} { set Bulle(set) 0 set Bulle(first) 1 set Bulle(id) [after 500 {balloon %W $Bulle(%W) %X %Y}] } } bind Bulle