Hi Jack,

The scrollbed field is defined as:

$frames{'name-r'}  = $frames{'name'}->Scrolled  ('ROText', -height => 8,
-scrollbars => 'e',  )->pack( -side => 'right', -expand => 1, -fill => 'x',

It can scroll up/down and contains text.

I want to do a "search" and therefore the script should display the part
where the search string is located within this scrolled field.

I dont know how to write that part of the script because I dont know how to.
I hope you understood my question.

So basically, I want the script to automatically scroll to the location
where
this text is located.

I have tried playing with:
$frames{'name-r'}->set(0.5, 0.6)
$frames{'name-r'}->see(0.5)
with no success - I totally dont have a clue what these two did too.

Hoping for help.

Dan.




On Sun, Dec 7, 2008 at 1:07 PM, Jack <[EMAIL PROTECTED]> wrote:

>
> _______________________________
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Daniel Burgaud
> Sent: December-06-08 7:16 PM
> To: Perl-Win32-Users
> Subject: Q on TK Scrolled: how do scroll?
>
>
> >I have a TK scrollbar defined as follows:
>
> >$frames{'name-r'}  = $frames{'name'}->Scrolled  ('ROText', -height => 8,
> -scrollbars => 'e',  )->pack( -side => 'right', -expand => 1, -fill => 'x',
> );
>
> >My problem is:
>
> >How do I command it to show the middle, the bottom, the top of the
> scrollbar?
>
> ###############################
> I can likely help - but I really don't understand your question.
> What do you mean by "show the middle, bottom and top"?
>
> Perhaps you can post a small sample program that demonstrates your problem.
>
> Jack
>
>
> _______________________________________________
> Perl-Win32-Users mailing list
> Perl-Win32-Users@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to