| ||||
cursor text in tcl/expect Posted by skumar003 (skumar003), 12 February 2003 Wahtis the syntax for implementing the display text once the mouse is over a button or toolbar.I am looking for the button option. The book I have does not mention anything about it. Posted by admin (Graham Ellis), 13 February 2003 You're probably looking for a bind command rather than an option to the button command. Events ("happenings" if you like) can be set in three ways1. Those which are automatically provided - for example, the changing of the colour of a button when you move over it 2. Those which are set by the component commands, using options such as -command and -textvariable. 3. The less predictable requirements, such as changing the text on one component when you move over another, which are typically set with a bind. The following program puts up two buttons and a label. When you move over the upper button, it switches text on the label on and off (and when you press the button, the text toggles between two possible values ...) Code:
Posted by skumar003 (skumar003), 13 February 2003 Thank you. This helps.The text is shown when the cursor moves over a button on th eframe. Can we do it. Can we do it in the form of a bubble? Eg: Like the message" move forward one page" when we move the mouse over forward in the browser netscape? [b][/b] Posted by admin (Graham Ellis), 13 February 2003 Pop ups can be created as toplevel widgets in Tk ... I suggest you start by having a look through any manuals you have on Tk, which probably have a lot of charts and diagrams to help you, and then ask further if they leave any questions unanswered.This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
| ||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |