Forum > General

Inline Assembler/ GTK

(1/1)

Guest_N!X:
Hi, I have two questions:

1.)How can I use inline-assmbler in Linux-Lazarus?
and are there any example codes?

2.)Is it possile to use GTK direct in Lazarus?
(example codes)

thanks, N!X :wink:

Vincent Snijders:

--- Quote from: "Guest_N!X" ---Hi, I have two questions:

1.)How can I use inline-assmbler in Linux-Lazarus?
and are there any example codes?

--- End quote ---

yes, see the fpc manual: http://www.freepascal.org/docs-html/prog/progch3.html#x98-960003

--- Quote ---2.)Is it possile to use GTK direct in Lazarus?
(example codes)

thanks, N!X :wink:
--- End quote ---

Yes, this is possible. If you choose the project type to be Program or Custom Program, then the LCL is not used nor the designer. You can program direct with gtk. See for (gtk1) examples: http://www.freepascal.org/packages/gtk.html

Guest_N!X:
But i can't mix LCL and GTK? (Like VCL and WinAPI in Delphi)

Vincent Snijders:
I think you can, but I am not aware of tutorials.
I would not advise it either.

Marc:
You can mix the LCL with your own widgets

For the time being you may cast  the TWinControl.Handle to a PGtkWidget but the Handle definition may change at any time

In the future you should use GetWidgetHandle(Handle) (or something like that).
I don't know yet at what place I'll implement it, but expect it to come soon.

Navigation

[0] Message Index

Go to full version