Sponsored Content
Full Discussion: Tooltip Question
Top Forums Web Development Tooltip Question Post 302228777 by i9300 on Monday 25th of August 2008 11:46:31 AM
Old 08-25-2008
Tooltip Question

Just wondering if someone has some advice on dynamic tooltip. By that I mean, I want the text inside the tooltip to be automagically generated from a text file.
I have not included any code example because, there are tons of tooltip examples but I can't find one that will use a text file to populate the tooltip.

Thanks for any help
-Chris
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Next Question:

what is the function of swap in linux why i have to create apsolutely a particion for the swap when i install (i installed lnx4win mandrake and made an automat. disk particion and the install program one of my disk partitions that was 3gb devidet in 4 one native 700mb swap 600mb and the others i... (1 Reply)
Discussion started by: user666
1 Replies

2. Linux

I have a question...

hello,I want to get a free linux(English).How to get it?? (2 Replies)
Discussion started by: Jerry_wang
2 Replies

3. UNIX for Dummies Questions & Answers

A question?

using my unix os, can i do any autoexec.bat editing in order to execute selected programs that i use most often? :confused: (1 Reply)
Discussion started by: alecks1975
1 Replies

4. UNIX for Dummies Questions & Answers

Question

I was given a computer that was wiped clean that has a unix system installed.I want to know how do I format the hardrive so I can install windows XP Professional (1 Reply)
Discussion started by: gemini61
1 Replies

5. Shell Programming and Scripting

question

how do i write a script that'll open what i entered and scan it for a certain line of text. for example, i enter a filename (that exists) and in that file i want to scan a certain word that'll show how much of that word appears throughout the file. (2 Replies)
Discussion started by: mrhenry
2 Replies

6. Shell Programming and Scripting

IF question

Hi there I'm new to bash and unix for that matters. Just started yesterday, having to do a script for work, outputting HTML from various system info's. And me having coded Rexx for years ... then this is a little different :-) My question is simple .... I have an IF that does not work - >... (9 Replies)
Discussion started by: Mettemusens
9 Replies

7. UNIX for Dummies Questions & Answers

Help me these Question??

1. How the Unix system identify the Other User to access for file permission? 2. What command we use to convert the extension of a file name? 3. What command use to convert other editing file to Unix based text file? Please answer of these Question???Its necessary for me?? (3 Replies)
Discussion started by: pradipta_pks
3 Replies

8. Shell Programming and Scripting

Question help

sorry wrong section. (0 Replies)
Discussion started by: Scripter12345
0 Replies
tooltip(3tk)							Tooltip management						      tooltip(3tk)

__________________________________________________________________________________________________________________________________________________

NAME
tooltip - Tooltip management SYNOPSIS
package require Tcl 8.4 package require msgcat 1.3 package require tooltip ?1.4.4? ::tooltip::tooltip command ?options? ::tooltip::tooltip pathName ?option arg? message _________________________________________________________________ DESCRIPTION
This package provides tooltips, small text messages that can be displayed when the mouse hovers over a widget, menu item, canvas item, listbox item or text widget tag. COMMANDS
::tooltip::tooltip command ?options? Manage the tooltip package using the following subcommands. clear index Prevents the specified widgets from showing tooltips. pattern is a glob pattern and defaults to matching all widgets. delay ?millisecs? Query or set the hover delay. This is the interval that the pointer must remain over the widget before the tooltip is dis- played. The delay is specified in milliseconds and must be greater than 50ms. With no argument the current delay is returned. fade ?boolean? Enable or disable fading of the tooltip. The is enabled by default on Win32 and Aqua. The tooltip will fade away on Leave events instead disappearing. disable off Disable all tooltips enable on Enables tooltips for defined widgets. ::tooltip::tooltip pathName ?option arg? message This command arranges for widget pathName to display a tooltip with message message. The tooltip uses a late-binding msgcat call on the passed in message to allow for on-the-fly language changes in an application. If the widget specified is a menu, canvas or text widget then additional options are used to tie the tooltip to specific menu entries, canvas items or text tags. -index index This option is used to set a tooltip on a menu item. The index may be either the entry index or the entry label. The widget must be a menu widget but the entries do not have to exists when the tooltip is set. -items name This option is used to set a tooltip for canvas widget or listbox items. For the canvas widget, the item must already be present in the canvas widget and will be found with a find withtag lookup. For listbox widgets the item(s) may be created later but the programmer is responsible for managing the link between the listbox item index and the corresponding tooltip. If the listbox items are re-ordered, the tooltips will need amending. If the widget is not a canvas or listbox then an error is raised. -tag name The -tag option can be used to set a tooltip for a text widget tag. The tag should already be present when this command is called or an error will be returned. The widget must also be a text widget. EXAMPLE
# Demonstrate widget tooltip package require tooltip pack [label .l -text "label"] tooltip::tooltip .l "This is a label widget" # Demonstrate menu tooltip package require tooltip . configure -menu [menu .menu] .menu add cascade -label Test -menu [menu .menu.test -tearoff 0] .menu.test add command -label Tooltip tooltip::tooltip .menu.test -index 0 "This is a menu tooltip" # Demonstrate canvas item tooltip package require tooltip pack [canvas .c] set item [.c create rectangle 10 10 80 80] tooltip::tooltip .c -item $item "Canvas item tooltip" # Demonstrate listbox item tooltip package require tooltip pack [listbox .lb] .lb insert 0 "item one" tooltip::tooltip .lb -item 0 "Listbox item tooltip" # Demonstrate text tag tooltip package require tooltip pack [text .txt] .txt tag configure TIP-1 -underline 1 tooltip::tooltip .txt -tag TIP-1 "tooltip one text" .txt insert end "An example of a " {} "tooltip" TIP-1 " tag. " {} KEYWORDS
balloon, help, hover, tooltip COPYRIGHT
Copyright (c) 1996-2008, Jeffrey Hobbs tooltip 1.4.4 tooltip(3tk)
All times are GMT -4. The time now is 10:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy