Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Question about how to implement user control over text box height

by zentara (Archbishop)
on Jul 06, 2017 at 14:37 UTC ( #1194385=note: print w/replies, xml ) Need Help??


in reply to Question about how to implement user control over text box height

Hi, I think the problem is that you are using a Scrolled ROText widget, and therefore your $textbox is actually a scrolled widget, and will not respond to the -height option. I think you should test this with a plain ROText widget, and put the ROText widget into a scrolled pane to get the scrolling. Busy now, but I will try to see if I can get that idea to work. You can also try using the Subwidget method to get the real text widget.
my $realtextbox = $textbox->Subwidget('Scrolled');
and try to manipulate the $realtextbox's -height option.

If worse comes to worse, you could completely packForget the $mw, and rebuild it, but that would cause an annoying screen flicker, and necessitate saving any text data, and reinserting it after the rebuild.


I'm not really a human, but I play one on earth. ..... an animated JAPH
  • Comment on Re: Question about how to implement user control over text box height
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2018-10-23 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (125 votes). Check out past polls.

    Notices?