简体   繁体   中英

TCL TK: Scroll on Top Window

I'm to write an application which compares some sections of logs side by side by using nested text boxes in nested frames. these nested frames are overflowing the window size and I would like to contain and control with scroll. How can I do this?

-Syva

Check the documentation for the scrollbar command, which has a simple example of use near the end: https://www.tcl-lang.org/man/tcl/TkCmd/scrollbar.htm#M34

If you are doing side-by-side comparison you may want to use a single scrollbar to control two text widgets. You can find examples of how to do this at: https://wiki.tcl-lang.org/page/multi+scrolling

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM