Geoffrey Spear wrote:
Does anyone out there know if it's possible to add a vertical
scrollbar to a multiline textfield that's displayed inside an MDIChild
window?
An identical call to AddTextfield with multiline and autovscroll
options turned on produces a textfield with a scrollbar in a regular
window but one with no scrollbar in an MDIChild. Am I missing
something, or is this a bug?
I've just upgraded to 1.04 and confirmed that the behavior continues.
Works fine for me. It's difficult to offer any advice, as you didn't
offer any code, but if what you've written is accurate then you're
possibly missing the -vscroll => 1 option? If I take the MDI sample
distributed with V1.04 (find it in
C:\Perl\site\lib\Win32\GUI\demos\MDI.pl - adjust as necessary for your
perl install location), and add '-vscroll => 1' to the Textfield
constructor at around line 66:
$Child->AddTextfield (
-name => "Edit",
-multiline => 1,
-pos => [0,0],
-size => [100,100],
-vscroll => 1,
)
Then that does just what you're asking for (at least it does for me)
Regards,
Rob.