Octavian Rasnita wrote Teddy >You need to read the content of that file with: <snip>
You're correct, and I didn't explain that I had already populated a local var with the content of the text file IO::File->new. Teddy >Then insert the $content in the Win32::GUI control you want. That's what I was asking..."but did not see a method to assign the content to the control". Here's what I see available thru the docs.. * Constructor o new Win32::GUI::Textfield(PARENT, %OPTIONS) * Methods o LineFromChar(INDEX) o MaxLength([CHARS]) o Modified([FLAG]) o PasswordChar([CHAR]) o ReadOnly([FLAG]) o ReplaceSel(STRING, [FLAG]) o Select(START, END) o SelectAll() o Selection() o Undo() * Events o Change() o GotFocus() o LostFocus() Which method should I use? TIA, Mark ----- Original Message ----- From: "Mark Sutfin" <[EMAIL PROTECTED]> To: <perl-win32-gui-users@lists.sourceforge.net> Sent: Wednesday, August 03, 2005 23:02 PM Subject: [perl-win32-gui-users] Control for Displaying the contents of a text file? Hello, Newbie has just started experimenting with Win32::GUI. Great stuff. I see that GetOpenFileName() returns the file I selected from the dialog box. Which control(s) might easily display the contents of this text file? I was guessing textfield...? But did not see a method to assign the content to the control... TIA, Mark