I use wordpad for editing my perl scripts and it would be really nice to have the line numbers on the left, so I attempted a similar GUI program but quickly gave up. If the program displayed the current position in the status bar at the bottom, that would work as well. So I really like your idea, but don't know exactly how to help you. Maybe Aldo needs to add some code to the Rich Edit object to do that. If he won't do that, you'll probably have to try and calculate your position manually. I would love to see your code if you are willing to share. ---------------------------------------------------------------------------- --------------------- Tim Thomas Unix Systems Administrator Lockheed Martin EIS · Denver Data Center 303-430-2281 · Pager 303-266-7971 mailto:[EMAIL PROTECTED] Pager: mailto:[EMAIL PROTECTED] ---------------------------------------------------------------------------- --------------------- > -----Original Message----- > From: Eric C. Hansen [SMTP:[EMAIL PROTECTED]] > Sent: Friday, November 05, 1999 9:11 AM > To: [EMAIL PROTECTED] > Subject: [perl-win32-gui] What row and column is the cursor sitting > at in a RichEdit control? > > How can you determine which row and column the cursor is sitting at in a > RichEdit control? I am working on a Notepad.exe like program, written in > GUI Perl, using a RichEdit control. One thing missing from Windows > Notepad.exe is the display of which row and column the cursor is sitting > on. > Since I work with fixed length, non-delimited data files, it is important > for me to be able to know which column the cursor is on, so I can tell > where > a field in a record starts and ends without manually counting the column > positions. > > Thanks! > Eric