473,386 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Scaling Tk scrollbar handles

None of the online references that I'm using or can find tell you if
this can be done. It's standard practice in GUI's to have the handle of
a scrollbar sized to be the proportion of total ammount of viewable data
to the ammount you can see in the current view region. (I think that
explains it, you know what I mean.) I have a scrollbar attached to a
canvas, and it scrolls properly, but it always has a tiny little handle.
Is there anything I can do about this?

Jul 18 '05 #1
3 2050

"Gordon Airport" <uc*@ftc.gov> schrieb im Newsbeitrag
news:K9********************@comcast.com...
None of the online references that I'm using or can find tell you if
this can be done.


???
This is really no secret!
E.g. look at at New Mexico Tech
http://www.nmt.edu/tcc/help/pubs/lang.html
There are two very concise as well as comprehensive documents. One about Tk,
one about Python.

scrollbar.set(a,b)

where a is the fraction (0..1) where the thumb shall start and b where it
should end...

Kindly
Michael P

Jul 18 '05 #2
Thanks, I hadn't seen those. There are quite a few documents about this
out there with highly variable readability, comprehensiveness, and
up-to-date-edness. I think I've been relying on the effbot documents too
much.

Jul 18 '05 #3
Gordon Airport wrote:
None of the online references that I'm using or can find tell you if
this can be done. It's standard practice in GUI's to have the handle of
a scrollbar sized to be the proportion of total ammount of viewable data
to the ammount you can see in the current view region. (I think that
explains it, you know what I mean.) I have a scrollbar attached to a
canvas, and it scrolls properly, but it always has a tiny little handle.


by default, the canvas tells the scrollbars that the canvas surface is
unbounded (-maxfloat to +maxfloat); no matter how you scroll around,
you're only seeing a very small portion of the available coordinate
space.

to get the behaviour you're after, set the "scrollregion" option.

for some more background and code samples, see:

http://www.effbot.org/zone/tkinter-s...rns.htm#canvas
http://www.effbot.org/zone/tkinter-s...rns.htm#canvas

</F>


Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Henk Verhoeven | last post by:
(Reply on this newsgroup to an email - reply by email did not work) Wolfman wrote: > > Hi, > I found your Email in the php Newsgroup. > I was looking for some way to resize some graphiks on my...
22
by: Colin McGuire | last post by:
I apologize for posting yet another scrollbar question. Here is my code. All I want is for a diagonal line to appear from coordinates (0,0) to (width,height) in a usercontrol regardless of whether...
1
by: johnperkins | last post by:
I am curious as to why the scrollbar.scroll event gets called twice Here is an example of my code Private Sub vsbMoveCar_Scroll(ByVal sender As System.Object, ByVal e As...
5
by: Frank Rizzo | last post by:
I reload the items in the listview on a regular schedule (i.e. clear the listview, then load it up with fresh values). I want add a convinience to the user whereby my application remembers the...
4
by: Thiru .Net | last post by:
hi wagner, i have a doubt in panel control in windows application. i have a panel control wherein i have put a picturebox control. i show picture into picturbox control. now i need to zoom in...
1
by: placid | last post by:
Hi all, This is the following code i have, Public Class Form1 Inherits System.Windows.Forms.Form Dim A, B, c, U, x, y As Double Dim Red, Green, Blue As Integer
17
by: IanIpp | last post by:
We have a 3 month old quad processor/dual core server running SQL Server 2005 and already it is getting close to hitting the CPU wall. An 8 way CPU box is prohibitively expensive and out of the...
1
by: batista | last post by:
Hello to all, I'm using the HScrollBar Control in one of my apps. Now the problem is how to detect that when did the scrollbar reached its right end or left end.? Please Any...
2
by: Rich | last post by:
Hello, Some database applicatins have a tooltip feature where when you are dragging the scrollbar of the table view a tooltip appears next to the mouse cursor displaying the approximate record...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.