> On 13 May, 14:07, Robert Heller <hel@deepsoft.com> wrote:
> > At 13 May 2007 05:05:32 -0700 Niv <kev.pars@mbda.co.uk> wrote:
> > > I intend to create a list of available resources that can be found by
> > > searching through a known set of directories, each aailable resource
> > > is then presented as a set of checkbuttons.
> > > Is it now possible to hover over each button in turn so that info on
> > > the relevant resource is presented in a text box. This is so that the
> > > user can determine if theresource is wantedor not.
> > Bind to the <Enter> and <Leave> events:
> > button .b1 -text {Pigs} -command "ProcessResource Pigs"
> > button .b2 -text {Cows} -command "ProcessResource Cows"
> > button .b3 -text {Goats} -command "ProcessResource Goats"
> > button .b4 -text {Chickens} -command "ProcessResource Chickens"
> > label .help -text {}
> > pack .b1
> > pack .b2
> > pack .b3
> > pack .b4
> > pack .help
> > proc ShowHelp {message} {
> > .help configure -text "$message"
> > }
> > proc ClearHelp {} {
> > .help configure -text {}
> > }
> > proc AddHelp {button help} {
> > bind $button <Enter> [list ShowHelp "$help"]
> > bind $button <Leave> ClearHelp
> > }
> > AddHelp .b1 "This is the pig resource"
> > AddHelp .b2 "This is the cow resource"
> > AddHelp .b3 "This is the goat resource"
> > AddHelp .b4 "This is the chicken resource"
> > > TIA, Niv
> > --
> > Robert Heller -- 978-544-6933
> > Deepwoods Software -- Linux Installation and Administrationhttp://www.deepsoft.com/ -- Web Hosting, with CGI and Database
> > hel@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk
> Thanks chaps.
> I think the tooltip approach may be better as I want the info for each
> radio button to be held in a separate file, one file per button, tThe
> text(?) file will be part of the resource, giving resource function
> etc), and the info to open in a separate, temporay "bubble"
Note: most (all?) of the tooltip packages implement various sorts of > Regards, Niv.
--