Edit Control plays IDE

BlitzMax Forums/MaxGUI Module/Edit Control plays IDE

TeraBit(Posted 2006) [#1]
Hi All,

Been playing with the code of my Edit Control Applet and made it behave like an IDE!

I Still haven't done the cut/paste code, but the scrollbars are in. :)

It's got syntax colors and stuff like that.

This time I've included all the source so you can all nose around and have a play.

Download it here


Beaker(Posted 2006) [#2]
Looks good so far. Hope you aren't gonna leave in the tab>spaces thing. Hated that in PureBasic (until recently).


grable(Posted 2006) [#3]
Nice work =)

I was playing around with it and added double clicking to select words/lines, if someone wants it.

add some needed fields to TEditControl
	Field DoubleClickTiming:Int = 200
	Field DoubleClickTimer:Int, GotFirstClick:Int

replace the EVENT_MOUSEUP in OnEvent()


add these new actions to Action()
			Case "DBLCLK"
				SelectWordAt( Line,Column)
			Case "DBLCLKGT"
				' select line
				HLine = Line
				HColumn = 0
				Column = Dat[Line].Length - 1

and lastly, add this method for selecting words/identifiers


im gonna play with this some more. Again, good work TeraBit =)