--
Dave (from the UK)
Please note my email address changes periodically to avoid spam.
It is always of the form: month...@althorne.org
Hitting reply will work for a few months only - later set it manually.
http://chessdb.sourceforge.net/ - a Free open-source Chess Database
>
> Is it possible to position the scrollbars to the top of a document under
> computer control - let the user move them afterwards if they wish, but
> ensure that they at least start at the top? I have an image at the top
> which users of the software can easily miss and never think exists, as
> it scrolls off the top. In contrast, if they read the text which follows
> the image, it is obvious if there is a bit more left to see.
>
man canvas ... 'see'
man text ... 'see'
>
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
hel...@deepsoft.com -- Contract Programming: C/C++, Tcl/Tk
Of course. You can call any of the scrollbar subcommands directly.
Typically though, one moves the widget under control rather than the
scrollbars. For example ".text see 1.0".
> man canvas ... 'see'
> man text ... 'see'
I know this sounds odd, but I never realised the man pages existed. Of
course I should have done, as I see many of the web pages say they are
generated form the man pages. I've been using the web - although I guess
that is probably not a bad idea, as there are things like the wiki.
Man pages can get a bit much for large topics. Great for finding the
options to ls, but less so for documenting large projects.
Still, I might use them.
>
> Robert Heller wrote:
>
> > man canvas ... 'see'
> > man text ... 'see'
>
> I know this sounds odd, but I never realised the man pages existed. Of
> course I should have done, as I see many of the web pages say they are
> generated form the man pages. I've been using the web - although I guess
> that is probably not a bad idea, as there are things like the wiki.
>
> Man pages can get a bit much for large topics. Great for finding the
> options to ls, but less so for documenting large projects.
>
>
> Still, I might use them.
Yes do. The Tcl/Tk man pages are generally excellent. I fire up man
<some Tcl/Tk command> in a side-by-side (sort of) view frequently while
editing my Tcl/Tk code. I *wish* some of the other tools/packages had
man pages (even bad man pages). Man pages are easy for 'zeroing in' on
what you need to know and can be quickly and easily searched.
The snit and snitfaq man pages are also excellent and I use them too.
> At Sat, 20 Jan 2007 18:11:50 +0000 "Dave (from the UK)"
> <see-my-s...@southminster-branch-line.org.uk> wrote:
>
>>
>> Robert Heller wrote:
>>
>> > man canvas ... 'see'
>> > man text ... 'see'
>>
>> I know this sounds odd, but I never realised the man pages existed. Of
>> course I should have done, as I see many of the web pages say they are
>> generated form the man pages. I've been using the web - although I guess
>> that is probably not a bad idea, as there are things like the wiki.
>>
>> Man pages can get a bit much for large topics. Great for finding the
>> options to ls, but less so for documenting large projects.
>>
>>
>> Still, I might use them.
>
> Yes do. The Tcl/Tk man pages are generally excellent. I fire up man
> <some Tcl/Tk command> in a side-by-side (sort of) view frequently while
> editing my Tcl/Tk code.
And if you are linux & gui based you can use the excellent xman with search
facilities.
Ian
Eeer, sorry but: since when do the canvas has a 'see' command? I wanted it
since quite a while, but I certainly didn't find it in the man pages for
any tk version (at least from 8.3 to 8.5, man pages on
http://www.tcl.tk/man/). In what version should I look?
--
python -c "print ''.join([chr(154 - ord(c)) for c in
'U(17zX(%,5.zmz5(17l8(%,5.Z*(93-965$l7+-'])"
> Eeer, sorry but: since when do the canvas has a 'see' command? I wanted it
> since quite a while, but I certainly didn't find it in the man pages for
> any tk version (at least from 8.3 to 8.5, man pages on
> http://www.tcl.tk/man/). In what version should I look?
True, there isn't. I hacked up this codelet which works well in first
tests:
proc canvas'see {w tagorId} {
foreach {x0 y0 x1 y1} [$w bbox $tagorId] break
$w config -scrollregion [$w bbox all]
foreach {sx0 sy0 sx1 sy1} [$w cget -scrollregion] break
$w xview moveto [expr {$x0*1.0/($sx1-$sx0)}]
$w yview moveto [expr {$y0*1.0/($sy1-$sy0)}]
}