[Lazarus] TTabcontrol color strangeness

2015-10-09 Thread Luca Olivetti
Hello, If I use a TTabControl in windows xp with the classic theme, the color is the same as the solid color of the desktop and there's no property to change it. Shouldn't at least be the color of a normal window? This doesn't happen with the teletubbies theme (where it takes a light gray

[Lazarus] Accessing GPIO on RaspberryPi2 from Lazarus/FPC

2015-10-09 Thread Alfred
Please have a look at: http://www.afterwarp.net/products/pxl https://github.com/yunkot/pxl Forum post: http://forum.lazarus.freepascal.org/index.php/topic,29852.0.html?PHPSESSID=bf43911005bf788ab072b3d73d1bfb4f Pxl is a very well written library, capable of doing a lot, with the inclusion of

Re: [Lazarus] Accessing GPIO on RaspberryPi2 from Lazarus/FPC

2015-10-09 Thread Bo Berglund
On Fri, 09 Oct 2015 07:31:52 +, Alfred wrote: >Please have a look at: >http://www.afterwarp.net/products/pxl >https://github.com/yunkot/pxl > >Forum post: >http://forum.lazarus.freepascal.org/index.php/topic,29852.0.html?PHPSESSID=bf43911005bf788ab072b3d73d1bfb4f > >Pxl

Re: [Lazarus] lazcontrols filters

2015-10-09 Thread Bart
On 10/9/15, Ondrej Pokorny wrote: > But if we assume that it is possible in TComboBox with OwnerDraw, there > must be a way how to do it even on Gtk2. Or is OwnerDraw linked with > some Gtk2-ComboBox property? It may be possible, but TextHint vailability cannot depend on

Re: [Lazarus] lazcontrols filters

2015-10-09 Thread Bart
On 10/8/15, Ondrej Pokorny wrote: > Isn't is possible to paint the TextHint text manually into the combobox > / edit? At least TCustomEdit does not have a canvas, so that won't work (would have been so much easier than the current implementation). Does TComboBox have a

Re: [Lazarus] Prevent from deadlock while writing something large to a pipe

2015-10-09 Thread Kiên Nguyễn Tiến Trung
Thank you. I will try again with multi threading. 2015-10-09 22:10 GMT+07:00 Sven Barth : > Am 09.10.2015 16:37 schrieb "Kiên Nguyễn Tiến Trung" : > > > > I want to send a big amount of data to a child process through pipe. > However, it is stated

[Lazarus] Prevent from deadlock while writing something large to a pipe

2015-10-09 Thread Kiên Nguyễn Tiến Trung
I want to send a big amount of data to a child process through pipe. However, it is stated in the documentation that writing too much into the pipe may cause a deadlock. TProcess.Input Input is a stream which is connected to the process' standard input file handle. Anything written to this stream

Re: [Lazarus] lazcontrols filters

2015-10-09 Thread Ondrej Pokorny
On 09.10.2015 18:43, Bart wrote: On 10/8/15, Ondrej Pokorny wrote: Isn't is possible to paint the TextHint text manually into the combobox / edit? At least TCustomEdit does not have a canvas, so that won't work (would have been so much easier than the current

Re: [Lazarus] lazcontrols filters

2015-10-09 Thread Bart
On 10/9/15, Ondrej Pokorny wrote: > TComboBox must have a canvas because it supports OwnerDrawing. You're right. And if OwnerDrawing is False then everything you write tothe cnavs gets erased whenever the control paints itself. So, maybe not the way to go. Bart --

Re: [Lazarus] lazcontrols filters

2015-10-09 Thread Ondrej Pokorny
On 09.10.2015 19:38, Bart wrote: You're right. And if OwnerDrawing is False then everything you write tothe cnavs gets erased whenever the control paints itself. So, maybe not the way to go. True. I was able to paint custom shapes on TEdit on Windows with this approach:

Re: [Lazarus] Prevent from deadlock while writing something large to a pipe

2015-10-09 Thread Sven Barth
Am 09.10.2015 16:37 schrieb "Kiên Nguyễn Tiến Trung" : > > I want to send a big amount of data to a child process through pipe. However, it is stated in the documentation that writing too much into the pipe may cause a deadlock. That is not necessarily a deadlock. It just