Jump to content

Lines count in text editor


fastnick1oo
 Share

Recommended Posts

It's been a long time since I've been here. But nvm.

I was looking thrue forum and still got nothing.

How can I make line count which will display on left side od edit control. Like one in SciTE.

I need it for my text editor.

I did something similar but it used two controls, when I scrolled one, the other stayed in same place (thats my main problem).

Thx4hlp.

SciTE - much better than notepad. ; ]
Link to comment
Share on other sites

  • Moderators

It's been a long time since I've been here. But nvm.

I was looking thrue forum and still got nothing.

How can I make line count which will display on left side od edit control. Like one in SciTE.

I need it for my text editor.

I did something similar but it used two controls, when I scrolled one, the other stayed in same place (thats my main problem).

Thx4hlp.

http://www.autoitscript.com/forum/index.ph...c=40372&hl=

Look at how he did it here.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

_API_SendMessage ($hWnd, $EM_GETLINECOUNT, 0, 0)

look for AutoIt3Lib for it to work and my RichEdit control to have an example

-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]
Link to comment
Share on other sites

in AutoIt. To get edit field with lines count on the left.

Is it possible?

Btw: arcker i was trying to run RichEdit, but I got too much errors.

sure it should be possible, but i think it will be hard

you don't need to run richedit to see if it works, just copy the part of the code needed (look at the function linecount or in my last AutoItPad, in the A3LRichEdit.au3)

-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...