Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Bug in Win32 Perl/Tk Scrolled ROText widget with optional scrollbars

by zentara (Archbishop)
on Oct 29, 2006 at 12:21 UTC ( [id://581136]=note: print w/replies, xml ) Need Help??


in reply to Bug in Win32 Perl/Tk Scrolled ROText widget with optional scrollbars

Well I'm running on linux, and your script appears to run fine. I enter google.com (to get alot of text) and the scrollbars appear.

When the widget is first filled with text, though, even if the "East" (right-side) scrollbar appears, the slider bar does not appear. After resizing the whole GUI, however, the ROText window is resized, causing the scrollbar slider to appear as it should have done. Another way to make the slider "pop into view" is to click the left mouse inside the ROText window, and move the mouse outside of the window (still holding the button down).

I can't say for sure if it's your problem, but in many other Text widget scripts ( as you know ), it's often neccessary to do a $text->update to bring text into view.

But this seems to be in the scrolled container that holds the text widget. So maybe you could try

# do a 1 event loop iteration # process any Tk events like mouse moves/button presses/etc 1 while $MW->DoOneEvent( ALL_EVENTS | DONT_WAIT ); # or even a simple $mw->update; #or get the scrollbar and update it $scrollbar->update

I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://581136]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-28 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found