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

2016-05-21 Thread Ondrej Pokorny
I didn't know it either. But it was quite easy to find out: 1.) Debug Lazarus IDE within another instance. 2.) In the IDE-to-debug create a project with TPageControl and 2 tabs. 3.) Set breakpoint to "TCustomTabControl.ShowCurrentPage" in the debugger IDE. 4.) Change pages with the OI in the ID

Re: [Lazarus] Example of TObjectList sorting

2016-05-21 Thread Denis Kozlov
On 21 May 2016 at 13:49, Richard Mace wrote: > ​Would I call the List.sort externally, or would the List call sort when > an Add has happened, as I don't seem to have a ".sort" method on my > TObjectList? > You need to call List.Sort yourself, it is not sorted automatically when you add more ele

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 PageControl

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. TO

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 -- ___ Lazar

[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 Error

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 somebody show me an example of the code tha