cursor text in tcl/expect
Posted by skumar003 (skumar003), 12 February 2003Wahtis 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 2003You'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 ways
1. 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 ...)
Posted by skumar003 (skumar003), 13 February 2003Thank 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?
Like the message" move forward one page" when we move the mouse over forward in the browser netscape?
Posted by admin (Graham Ellis), 13 February 2003Pop 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.
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: firstname.lastname@example.org • WEB: http://www.wellho.net • SKYPE: wellho