October 17, 2019, 05:35:29 PM

Author Topic: Anyone able to give me a few pointers on maxgui.MaxGUITextAreaScintilla  (Read 261 times)

Offline Pappons

  • Jr. Member
  • **
  • Posts: 1
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:

Code: [Select]
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!

Offline Derron

  • Hero Member
  • *****
  • Posts: 2484
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.