Andrzej Borucki
2013-09-27 07:26:32 UTC
I am programming now under Windows, but want write portable software.
First way of calling Scintilla functions is SendMessage (works only with
Windows?)
In Pascal it will:
Result := Windows.SendMessage(Self.Handle, AMessage, WParam, LParam)
second way (only way in non Wndows?) is using DirectFunction and
DirectPointer:
Result := FDirectFunction(FDirectPointer, AMessage, WParam, LParam);
In DScintilla project in Delhpi is :
procedure TDScintillaCustom.WMCreate(var AMessage: TWMCreate);
begin
inherited;
FDirectFunction := TDScintillaFunction(Windows.SendMessage(
WindowHandle, SCI_GETDIRECTFUNCTION, 0, 0));
FDirectPointer := Pointer(Windows.SendMessage(
WindowHandle, SCI_GETDIRECTPOINTER, 0, 0));
end;
retrieve function and pointer by SendMessage. But in Linux how to do?
Scintilla.dll has two entries:
Scintilla_DirectFunction
***@16
in .so probably will be the same
I can get function by GetProcAddress but can't get address of pointer.
How program Scintilla in Linux?
First way of calling Scintilla functions is SendMessage (works only with
Windows?)
In Pascal it will:
Result := Windows.SendMessage(Self.Handle, AMessage, WParam, LParam)
second way (only way in non Wndows?) is using DirectFunction and
DirectPointer:
Result := FDirectFunction(FDirectPointer, AMessage, WParam, LParam);
In DScintilla project in Delhpi is :
procedure TDScintillaCustom.WMCreate(var AMessage: TWMCreate);
begin
inherited;
FDirectFunction := TDScintillaFunction(Windows.SendMessage(
WindowHandle, SCI_GETDIRECTFUNCTION, 0, 0));
FDirectPointer := Pointer(Windows.SendMessage(
WindowHandle, SCI_GETDIRECTPOINTER, 0, 0));
end;
retrieve function and pointer by SendMessage. But in Linux how to do?
Scintilla.dll has two entries:
Scintilla_DirectFunction
***@16
in .so probably will be the same
I can get function by GetProcAddress but can't get address of pointer.
How program Scintilla in Linux?
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.