Re: [Lazarus] Detect that component selected in OI.

2016-05-21 Thread Vojtěch Čihák
That's something else. I need something that will be part of component. Something like overriden SetFocus; or so. So far I tried CMDesignHitTest and DoEnter but it didn't work. It's like when you design Form with PageControl and two TabSheets. You select the second TabSheet in OI and

Re: [Lazarus] Detect that component selected in OI.

2016-05-21 Thread Howard Page-Clark
On 21/05/16 18:48, Vojtěch Čihák wrote: is there some event (message or method) triggered when component is selected in OI? It's just like PageControl and its TabSheets. When you select TabSheet in OI, component is repainted in form designer. I oberved the code but I didn't find solution.

Re: [Lazarus] cthread library for fpc 3.0 on raspberry pi. - SOLVED

2016-05-21 Thread Graeme Geldenhuys
On 2016-05-21 18:45, Donald Ziesig wrote: > Simply adding the line {$define > UseCThreads} into the define.inc file caused the execution to succeed > and play sounds., Well done Donald. Glad you got it sorted out. ;-) Regards, Graeme -- ___

[Lazarus] Detect that component selected in OI.

2016-05-21 Thread Vojtěch Čihák
Hi,   is there some event (message or method) triggered when component is selected in OI? It's just like PageControl and its TabSheets. When you select TabSheet in OI, component is repainted in form designer. I oberved the code but I didn't find solution.   Thanks, V. --

Re: [Lazarus] cthread library for fpc 3.0 on raspberry pi. - SOLVED

2016-05-21 Thread Donald Ziesig
On 05/20/2016 06:04 PM, Donald Ziesig wrote: Hi All! I'm still trying to play audio on my Raspberry Pi B 2 using FPC 3.0 and Lazarus 1.7 using UOS. After help from Graeme and Mattias, (many thanks) I was able to get UOS to compile, but when I try to run the demo programs I get Runtime

Re: [Lazarus] Example of TObjectList sorting

2016-05-21 Thread Richard Mace
Hi Denis, Thanks for your reply. On 9 May 2016 at 13:24, Denis Kozlov wrote: > On 9 May 2016 at 12:48, Richard Mace wrote: > >> I have a TObjectList that contains many objects that have a property >> called "Position" which is an integer. >> >> Could