Re: [Lazarus] Bug when using frames

2019-04-15 Thread Michael Van Canneyt via lazarus
On Mon, 15 Apr 2019, Juha Manninen via lazarus wrote: On Mon, Apr 15, 2019 at 10:52 AM Michael Van Canneyt via lazarus wrote: When you work with frames, you cannot change the frame in the designer when the frame is used in other frames/forms. Maybe related to : https://bugs.freepascal.org/

Re: [Lazarus] How to use RunCommandIndir() in a thread?

2019-04-15 Thread Michael Thompson via lazarus
G'day, Sorry for not replying earlier, I'm under the pump at work. I run multiple ffprobe calls, each in their own thread. I can report there is no problem. So ffprobe itself is threadsafe. I also use a (Lazarus) app called dmMediaConverter that calls ffmpeg in threads to convert video, so aga

Re: [Lazarus] Bug when using frames

2019-04-15 Thread Juha Manninen via lazarus
On Mon, Apr 15, 2019 at 10:52 AM Michael Van Canneyt via lazarus wrote: > When you work with frames, you cannot change the frame in the designer when > the frame is used in other frames/forms. Maybe related to : https://bugs.freepascal.org/view.php?id=20026 or https://bugs.freepascal.org/view.p

Re: [Lazarus] Treeview bug

2019-04-15 Thread Juha Manninen via lazarus
On Mon, Apr 15, 2019 at 11:00 AM Michael Van Canneyt via lazarus wrote: > When you set Multiselect = True, the treeview (Linux, GTK) sends OnChange > messages with Nil node. > > procedure TCustomTreeView.OnChangeTimer(Sender: TObject); The name OnChangeTimer hints the handler is for a timer. Is i

Re: [Lazarus] How to use RunCommandIndir() in a thread?

2019-04-15 Thread Bo Berglund via lazarus
On Mon, 15 Apr 2019 14:49:49 +0200, Bo Berglund via lazarus wrote: >PlayProc.execute; // <== Will this really return before done? Just checked and it will unless the poWaitOnExit option is speciufied. One can use a call to Running in the loop toi check if it is still active. So I guess if I

Re: [Lazarus] How to use RunCommandIndir() in a thread?

2019-04-15 Thread Bo Berglund via lazarus
On Mon, 15 Apr 2019 00:59:16 +0200, Bo Berglund via lazarus wrote: >I havr written a wrapper for some ffmpeg functions to make them easier >to work with. >However, some of the functions are rather longish so the GUI >application gets unresponsive... >I would like to fix this perhaps by running th

Re: [Lazarus] DesignPPI property in TDataModule

2019-04-15 Thread Sergey Bodrov via lazarus
пн, 15 апр. 2019 г. в 14:42, Ondrej Pokorny via lazarus < lazarus@lists.lazarus-ide.org>: > Yes, there is TDataModule.DesignPPI that makes sure the positions > > (Left/Top properties) of the non-visual components are scaled correctly. > > > By the way, the default value of 96 should not be written

Re: [Lazarus] DesignPPI property in TDataModule

2019-04-15 Thread Ondrej Pokorny via lazarus
On 15.04.2019 13:24, Ondrej Pokorny via lazarus wrote: On 15.04.2019 13:07, Sergey Bodrov via lazarus wrote: TDataModule.DesignPPI property cause error popups in Lazarus/Delphi multiplatform project. Yes, there is TDataModule.DesignPPI that makes sure the positions (Left/Top properties) of th

Re: [Lazarus] DesignPPI property in TDataModule

2019-04-15 Thread Ondrej Pokorny via lazarus
On 15.04.2019 13:07, Sergey Bodrov via lazarus wrote: What sense in PPI for non-visual design-time component? What do you mean? There is no PPI property in non-visual design-time components. If it used by child DPI-aware components like TImageList, then IMHO better get PPI from TApplicatio

Re: [Lazarus] Bug when using frames

2019-04-15 Thread Marcos Douglas B. Santos via lazarus
On Mon, Apr 15, 2019 at 5:06 AM Ondrej Pokorny via lazarus wrote: > ... > I rather create all my frames in runtime, which I also did in Delphi. > Even Delphi lost properties/events (set event handlers to nil) of > controls in frames quite frequently. +1 Much better create them, docking on a panel

[Lazarus] DesignPPI property in TDataModule

2019-04-15 Thread Sergey Bodrov via lazarus
What sense in PPI for non-visual design-time component? If it used by child DPI-aware components like TImageList, then IMHO better get PPI from TApplication. TDataModule.DesignPPI property cause error popups in Lazarus/Delphi multiplatform project. -- *Bodrov Sergey* software development, IT co

Re: [Lazarus] Bug when using frames

2019-04-15 Thread Ondrej Pokorny via lazarus
On 15.04.2019 09:52, Michael Van Canneyt via lazarus wrote: Before I dive in the bugtracker and create 3 bug reports, are these known issues ? I don't know if there are bug reports about it but I have been facing the same issues ever since as well. I didn't have the motivation to work on the

[Lazarus] Treeview bug

2019-04-15 Thread Michael Van Canneyt via lazarus
Hi, When you set Multiselect = True, the treeview (Linux, GTK) sends OnChange messages with Nil node. procedure TCustomTreeView.OnChangeTimer(Sender: TObject); begin FChangeTimer.Enabled := False; //debugln('TCustomTreeView.OnChangeTimer'); FCallingChange := True; try Change(FSelec

[Lazarus] Bug when using frames

2019-04-15 Thread Michael Van Canneyt via lazarus
Hi, When you work with frames, you cannot change the frame in the designer when the frame is used in other frames/forms. - Create frame. - Add Control on frame (eg button) - Drop frame on a form or frame, keep open - Add event handler in original frame (e.g. Button.OnClick) -> event handler i