ZJ_Mike has asked for the wisdom of the Perl Monks concerning the following question:
$Object->AddTextfield( -name => "Birthchart", -left => 75, -top => 90, -width => 250, -height => 250, -vscroll =>1, -multiline => 1, -prompt => "Birthchart", ); {#do something here.... } $Object->Birthchart->Append($Content);
The problem is: it automatically takes me to the end of the output but I want to read the output from the beginning without having to scroll up. It's okay to scroll down later.
I can use the following code $Object->Birthchart->GetFirstVisibleLine(); to obtain the number of the uppermost visible line, but how can I set the number of the uppermost visible line to 0? or just reset the scrollbar to the top position?
The code $Object->Birthchart->ResetFirstVisibleLine(); doesn't work. And I also tried the following code $Object->Birthchart->ScrollPos(1,0); Still doesn't work. The scrollbar seems to be reset but I still have to click on the scrollbar to view the beginning of the textfield content.
Any ideas / suggestions? Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can I reset the vertical scroll position in Perl using Win32::GUI?
by Anonymous Monk on Dec 31, 2009 at 09:49 UTC | |
by Anonymous Monk on Dec 31, 2009 at 10:26 UTC | |
by ZJ_Mike (Initiate) on Dec 31, 2009 at 11:01 UTC | |
by Anonymous Monk on Dec 31, 2009 at 12:57 UTC | |
by ZJ_Mike (Initiate) on Dec 31, 2009 at 14:00 UTC |