Still not working. Could you see my code. where bug..
Code: Select all
#SCI_SETTABWIDTH = 2036
#SCI_SETUSETABS = 2124
#SCI_GETDIRECTPOINTER = 2185
#SCI_GETDIRECTFUNCTION = 2184
#SCI_SETTEXT = 2181
#STYLE_DEFAULT = 32
#SCLEX_PUREBASIC = 67
global scilexer.l
scilexer = OpenLibrary(#PB_Any, "SciLexer.dll")
If scilexer = 0
MessageRequester("Error", "Couldn't open SciLexer.dll")
End
EndIf
OpenWindow(0, 0, 0, 600, 400, #PB_Window_SystemMenu, "Scintilla test")
GetClientRect_(WindowID(0), rect.RECT)
scihWnd = CreateWindowEx_(#WS_EX_CLIENTEDGE, "Scintilla", "", #WS_CHILD | #WS_VISIBLE | #WS_TABSTOP, 0, 0, rect\right, rect\bottom, WindowID(0), 0, GetModuleHandle_(0), 0)
SciEdi_WndData = SendMessage_(scihWnd,#SCI_GETDIRECTPOINTER,0,0)
SciEdi_PtrData = SendMessage_(scihWnd,#SCI_GETDIRECTFUNCTION,0,0)
CallFunctionFast(SciEdi_PtrData,SciEdi_WndData,#SCI_SETTEXT,0,"Try use tab on me. Not working. why? Help me..")
Width = 4
Flag = 1
CallFunctionFast(SciEdi_PtrData,SciEdi_WndData,#SCI_SETTABWIDTH,Width,0)
CallFunctionFast(SciEdi_PtrData,SciEdi_WndData,#SCI_SETUSETABS,Flag,0)
Repeat
event.l = WaitWindowEvent()
Until event = #PB_Event_CloseWindow
DestroyWindow_(scihWnd)
CloseLibrary(scilexer)