Jump to content
Sign in to follow this  
fastnick1oo

Lines count in text editor

Recommended Posts

fastnick1oo

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. ; ]

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
fastnick1oo

Nice editor, but I was looking for some AI code. :/

Edited by fastnick1oo

SciTE - much better than notepad. ; ]

Share this post


Link to post
Share on other sites
arcker

_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]

Share this post


Link to post
Share on other sites
fastnick1oo

Ok... I'll say it more "visial".

I want to do something like this:

Posted Image

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.


SciTE - much better than notepad. ; ]

Share this post


Link to post
Share on other sites
arcker

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]

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.