Hello,
It's possible to have a scroll bar with a label, but i don't think you
can manage text scrolling.
Easy way, it's to use a multiline TextEdit with Label look.
my $Multitext = $Window->AddTextfield (
-name => "Multitext",
-multiline => 1,
-vscroll => 1,
-pos => [ 0, 0 ],
-size => [100, 60 ],
-readonly => 1,
# ReadOnly
-popstyle => WS_BORDER, # Remove
Border
-popexstyle => WS_EX_CLIENTEDGE , # Remove ClientEdge
);
$Multitext->Text ("line1\r\nline2\r\nline3"); # Set text : \r\n for
new line
$Multitext->Append("\r\nline4"); # Append text
Laurent.
----- Original Message -----
From: Tomáš Rendl
Hello,
I have a novice request, so I hope someone will be able to help me. I want
to print out several lines of text on the screen. I would like to use a
label with a scrollbar, so that the user could browse through the printed
text. Is that possible? Or is there some other control suited better to my
needs?
Thanks
Tomas