467,105 Members | 1,018 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,105 developers. It's quick & easy.

how to make readonly text area in perl

i want to make my text area readonly. is there any way to do that in perl.

any help,appreciate.......
Oct 22 '08 #1
  • viewed: 5222
2 Replies
Expert 256MB
Please be more clear while posting questions. If you are referring to Textbox in Perl-Tk, you can set this by using the '-state' option. After inserting required data in textbox, you may configure the state as 'disabled'. E.g.

Expand|Select|Wrap|Line Numbers
  1. my  $tx= $fr->Scrolled( 'Text', '-scrollbars' => 'e', '-background' => 'white',       
  2.   )->pack( -fill => 'both', -expand => 1, -side => 'bottom' );
  3. $tx->insert('insert', "characters of line1\n");
  4. $tx->insert('insert',"characters of line2\n"');
  5. $tx->insert('insert',"characters of line3\n");
  6. $tx->insert('insert',"characters of line4\n");
  7. $tx->configure('-state'=> 'disabled'); ## set the state as disabled (non-editable)
- Nithin
Oct 22 '08 #2
thanks a lot nithin it worked.sorry i mean text box.ok.
Oct 22 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Vumani Dlamini | last post: by
3 posts views Thread by Michael SL | last post: by
6 posts views Thread by scottyman@comcast.net | last post: by
1 post views Thread by Xah Lee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.