Anyone able to give me a few pointers on maxgui.MaxGUITextAreaScintilla

Started by Pappons, May 07, 2019, 17:21:10

Previous topic - Next topic

Pappons

Hi guys,

I am trying to figure out how to use MaxGUITextAreaScintilla instead of a textarea. Would anyone be able to send me in the right direction?

I did some snooping around in MaxGUITextAreaScintilla.mod/common.bmx and saw the list of functions, from there I had hoped I would be able to create the scintilla component like below:


Local window:TGadget=CreateWindow("My Window",130,20,800,600,,15|WINDOW_ACCEPTFILES)
Local handle:Byte Ptr=bmx_mgta_scintilla_getsci(window)
Print handle


But the value of the handle is 0, so I'm assuming I need to do something else instead?

Thanks in advance!

Derron

Checkout https://github.com/bmx-ng/maxide/blob/master/maxide.bmx

basically you just create a textarea as always - but import the scintilla module before.


bye
Ron