Jump to content
Kip

SciLexer UDF

Recommended Posts

Hi!

How I can create horizontal and vertical scroll bars to can see all text?

Use a line as:

$Sci = CreateWindowEx($WS_EX_CLIENTEDGE, "Scintilla", "SciLexer", BitOR($WS_CHILD, $WS_VISIBLE, $WS_HSCROLL, $WS_VSCROLL, $WS_TABSTOP, $WS_CLIPCHILDREN), $x, $y, $W, $H, $hWnd, 0, 0, 0)

.

Edited by Michel Claveau

Share this post


Link to post
Share on other sites

Hi!

Use a line as:

$Sci = CreateWindowEx($WS_EX_CLIENTEDGE, "Scintilla", "SciLexer", BitOR($WS_CHILD, $WS_VISIBLE, $WS_HSCROLL, $WS_VSCROLL, $WS_TABSTOP, $WS_CLIPCHILDREN), $x, $y, $W, $H, $hWnd, 0, 0, 0)

.

I used Kip example, and doesn't have horizontal and vertical scroll bars.

Your line is already a part of CreateEditor function from _SciLexer.au3 but the function not create scroll bars.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Aha! This is very nice. But how can it support the AutoIt syntax? I want to make a very nice portable Autoit editor with this, but I need syntax. :mellow:

EDIT: Why does the example start with all the text highlighted?

And How can I resize or delete the edit so I can maximize/restore the window?

EDIT: I can delete the window with WinClose.

Edited by TehWhale

Share this post


Link to post
Share on other sites

EDIT: Why does the example start with all the text highlighted?

Add Sci_SetSelection($Sci, 0,0) after you created the gui.

And How can I resize or delete the edit so I can maximize/restore the window?

Already has been answered.

I want to make a very nice portable Autoit editor with this, but I need syntax.

Read my first post.

Share this post


Link to post
Share on other sites

Add Sci_SetSelection($Sci, 0,0) after you created the gui.

Already has been answered.

Read my first post.

Thanks for the first answer. :mellow:

And about the resize, there was a user who asked about it, but nobody answered him.

And theres nothing about syntax in your first post. I even used Ctrl+F to search the topic for it, after I even read it. Nothing. Can you point me out on number two and three?

Share this post


Link to post
Share on other sites

And theres nothing about syntax in your first post. I even used Ctrl+F to search the topic for it, after I even read it. Nothing. Can you point me out on number two and three?

I think you need to buy some pair of glasses, cause it's all there.

Looks like someone has removed his posts. Anyway... resizing can be done with the normal WinMove function.

Edited by Kip

Share this post


Link to post
Share on other sites

Once again I think your mistaken.

Title says enough (For who don't know, scilexer is an editing control, like the one SciTE uses)

It now supports multiple editors, and allows you to write your own lexer.

Functions:

Kip :mellow:

Old version (where AutoIt is the standard language)

SciLexer.zip

New version (which allows you to create your own lexer):

I recommend to use the new version

Edit: AutoIt now isn't the standard language anymore

Where in there does it have ANYTHING to do with syntax?

And there is nothing in this topic about resizing. Could you give me an answer? I searched this topic throughly and with the find box. Nothing.

EDIT: Thanks for the answer to the WinMove. What about syntax?

Edited by TehWhale

Share this post


Link to post
Share on other sites

Title says enough (For who don't know, scilexer is an editing control, like the one SciTE uses)

Kip :mellow:

Edit: AutoIt now isn't the standard language anymore

why autoit is not a standard language anymore? (if don't want to tell it in public than PM) or do you have any alternative of autoit?

can you put a example along with more description? i still don't know what is this.

Share this post


Link to post
Share on other sites

Doesnt that say enough.

I think I might of asked for the wrong thing then. I need it to tell me what params there are for the function just like SciTe. I'll post my code when I get the chance.

EDIT: Also, why does it not resize the scroll bar? It is really big when theres nothing on there, and if you type some stuff, and delete it, it keeps going and never gets smaller.

Edited by TehWhale

Share this post


Link to post
Share on other sites

Also, why does it not resize the scroll bar?

Horizontal or vertical?

I think I might of asked for the wrong thing then. I need it to tell me what params there are for the function just like SciTe. I'll post my code when I get the chance.

You a tooltip under the function when you're typing? (CallTip)

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

×
×
  • Create New...