batkins has asked for the wisdom of the Perl Monks concerning the following question:

I have two mostly unrelated Tk questions:

1. Is there any way to prevent the scrollbars in a window from changing size as you move them?

2. Is there any way to save changes to the Tk option database so that they'll be loaded next time?

I've checked through the docs and can't seem to find anything about these.

TIA,

Bill

Replies are listed 'Best First'.
Re: random perl/tk questions
by PodMaster (Abbot) on Jun 12, 2003 at 06:31 UTC
    1. Is there any way to prevent the scrollbars in a window from changing size as you move them?
    If you're talking about the size of the slider (the little knob you move around, that's what the docs call it) then it appears that you cannot control it's size, as the api does not allow for this (examine tkScrollbar.h).

    You could probably hack this together via c, but why would you want this?

    You can always emulate a Scrollbar using a Tk::Canvas.

    I've checked through the docs and can't seem to find anything about these.
    Did you check http://perltk.org? You never know ...

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.