More Functions for Editor

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
olafmagne
New User
New User
Posts: 4
Joined: Tue Jun 04, 2019 11:22 am

More Functions for Editor

Post by olafmagne »

Hello

I would like to have something similair to BlitzBasics(B+)editor-functions like

getgatgetline():returns the row, the caret is actually in
getgatgedcolum():returns the colum the caret is actually in
getgadgetlineindex():returns the textindex of the caret of the entire text
formatgadgetitemtext():formats the gadgetitemtext in both color and font (italic/bold)

and better suport for keyboard in GUI-apps

I think it would be nice to have cross-platform functions instead of api-calls

My opinion
Olaf
User avatar
Tenaja
Addict
Addict
Posts: 1949
Joined: Tue Nov 09, 2010 10:15 pm

Re: More Functions for Editor

Post by Tenaja »

Some of those features might be nice. In the meantime, search for srod's goscintilla library. I think he's implemented it.
olafmagne
New User
New User
Posts: 4
Joined: Tue Jun 04, 2019 11:22 am

Re: More Functions for Editor

Post by olafmagne »

Tenaja wrote:... In the meantime, search for srod's goscintilla library.....
I heard about goscintilla,but,its a library i have to distribute with an .exe
some of the features mentioned are only two three line of code,
not a big thing, what i mean is that text-/editor-gadgets can have more
possibilitys to manipulate/formate text since this is what we do whit an editor
and whith api, code is no longer Xplatform

Olaf
User avatar
Tenaja
Addict
Addict
Posts: 1949
Joined: Tue Nov 09, 2010 10:15 pm

Re: More Functions for Editor

Post by Tenaja »

olafmagne wrote: I heard about goscintilla,but,its a library i have to distribute with an .exe
...
You typing that proved you haven't seen it. At the worst, you can copy the 3 lines of code and paste it into yours.
Post Reply