Re: [Lazarus] Convert LFM to pure code

2019-10-22 Thread Torsten Bonde Christiansen via lazarus
Great, thanks! -Torsten On 22/10/2019 21.21, Mattias Gaertner via lazarus wrote: On Tue, 22 Oct 2019 19:53:22 +0200 Torsten Bonde Christiansen via lazarus wrote: Hi all. Is there a simple tool, plugins, or similar that allows me to easily convert a .lfm file into pure pascal code? I know

[Lazarus] Convert LFM to pure code

2019-10-22 Thread Torsten Bonde Christiansen via lazarus
Hi all. Is there a simple tool, plugins, or similar that allows me to easily convert a .lfm file into pure pascal code? I know the lfm format is somewhat similar to pascal, but if such a thing already exist I would make my life a little easier :) /Torsten --

Re: [Lazarus] FileExistsUTF8() difference between Unix/Windows

2019-09-18 Thread Torsten Bonde Christiansen via lazarus
On 18/09/2019 23.23, Bart via lazarus wrote: On Wed, Sep 18, 2019 at 9:01 PM Torsten Bonde Christiansen via lazarus wrote: Is it a bug that FileExistsUTF8(...) reports true/false differently for folders in Unix and Windows. Thet are just wrappers for fpc's FileExists() nowadays.

[Lazarus] FileExistsUTF8() difference between Unix/Windows

2019-09-18 Thread Torsten Bonde Christiansen via lazarus
Is it a bug that FileExistsUTF8(...) reports true/false differently for folders in Unix and Windows. On a unix platform (Mac/Linux tested) FileExistsUTF8() will return true to both folders and files On windows platform FileExistsUTF8 will return true on files, but false on folders. Best re

Re: [Lazarus] Wizard pages

2018-12-05 Thread Torsten Bonde Christiansen via lazarus
Thanks - i will have a look at it. -Torsten. On 04/12/2018 23.25, Luiz Americo Pereira Camara via lazarus wrote: Yuo can try https://github.com/blikblum/luipack/tree/master/luicontrols/demos/wizard from package LuiControls Luiz Em ter, 4 de dez de 2018 às 16:59, Torsten Bonde Christiansen

[Lazarus] Wizard pages

2018-12-04 Thread Torsten Bonde Christiansen via lazarus
Hi List. Is there any such thing as a TWizard Form/Frame/Page/Component in Lazarus? One that you can fairly easy build a set of wizard pages with title, text, and maybe a checkbox or input field of some sort. If not do you know of a place where i may be able to find such a component? Any hel

Re: [Lazarus] Cross-compile Linux -> Win fails in win32lclintf.inc

2018-05-23 Thread Torsten Bonde Christiansen via Lazarus
On 2018-05-23 21:54, Mattias Gaertner via Lazarus wrote: On Wed, 23 May 2018 21:17:10 +0200 Ondrej Pokorny via Lazarus wrote: [...] The rule is: Lazarus supports at least the 2 latest stable FPC versions. This means 3.0.4 and 3.0.2 currently. And trunk - when possible. Okay, thanks. I gues

Re: [Lazarus] Cross-compile Linux -> Win fails in win32lclintf.inc

2018-05-23 Thread Torsten Bonde Christiansen via Lazarus
On 2018-05-23 15:35, Martok via Lazarus wrote: SameStr was introduced in FPC 3.0.2. I'm pretty sure Lazarus trunk requires 3.0.4 anyway? Where was that documented, again? That may very well be the case... i haven't been paying close attention to any notes in that regards. Can a core Lazarus

[Lazarus] Cross-compile Linux -> Win fails in win32lclintf.inc

2018-05-23 Thread Torsten Bonde Christiansen via Lazarus
For some time now i have had the problem on my linux install that crosscompiling Lazarus trunk from linux -> win32 (also win64) fails with this error: win32lclintf.inc(123,7) Error: Identifier not found "SameStr" Is anyone else getting this error also? I'm using: Lazarus 1.9.0 r58010 FPC 3.0.

Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Torsten Bonde Christiansen via Lazarus
On 2018-05-18 14:22, Zbyněk Fiala via Lazarus wrote: As for chrome embedding; https://github.com/dliw/fpCEF3 I used it couple years ago and it worked very well.https://github.com/zbyna/vcfToGigaset FpCEF3 is maintained so far. Even fpCEF3 has problems running well under linux - so I would lo

Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Torsten Bonde Christiansen via Lazarus
On 2018-05-18 12:00, Anthony Walter via Lazarus wrote: This is an open source set of controls I am working on which will be released soon on gtihub. The browser is based on the wekbit engine, and it's accompanied by a collection of native controls and other code to make working with related mat

Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Torsten Bonde Christiansen via Lazarus
On 2018-05-18 11:46, Michael Van Canneyt via Lazarus wrote: On Fri, 18 May 2018, zeljko wrote: On 05/18/2018 10:46 AM, Michael Van Canneyt via Lazarus wrote: I thought it was perhaps chrome embedded ? Maybe, there are Delphi bindings around for chrome embedded Indeed and for lazarus as

Re: [Lazarus] Let's make a web browser

2018-05-18 Thread Torsten Bonde Christiansen via Lazarus
On 2018-05-18 09:18, Michael Van Canneyt via Lazarus wrote: Question: Where are the components you used, and where can I find the demo source code ? +1 -Torsten. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.or

[Lazarus] FPC mailing list down?

2018-05-14 Thread Torsten Bonde Christiansen via Lazarus
Hi. I have tried sending two mails in the last 8 hours to the FPC-Pascal mailing list, but none of them has made it through. Is the maildeamon down? The last email i got from the list is dated 2018-05-13 00:22 Best regards, Torsten. -- ___ Laz

Re: [Lazarus] Changes to bugreport #33331 completely changes long standing behaviour

2018-04-04 Thread Torsten Bonde Christiansen via Lazarus
On 2018-04-04 10:05, Juha Manninen via Lazarus wrote: On Tue, Apr 3, 2018 at 11:52 AM, Torsten Bonde Christiansen via Lazarus wrote: The old behaviour (sending OLD current node in OnChanging, sending NEW/SELECTED node in OnChange) is consistent across other components as well. Please list

Re: [Lazarus] Changes to bugreport #33331 completely changes long standing behaviour

2018-04-04 Thread Torsten Bonde Christiansen via Lazarus
On 2018-04-04 09:22, Werner Pamler via Lazarus wrote: Am 03.04.2018 um 14:41 schrieb Maxim Ganetsky via Lazarus: I reopened this bug report. Please comment there. But since other opinions are required we should discuss here - the bug tracker is not the place for discussion. I applied the chan

Re: [Lazarus] Changes to bugreport #33331 completely changes long standing behaviour

2018-04-03 Thread Torsten Bonde Christiansen via Lazarus
On 2018-04-03 14:41, Maxim Ganetsky via Lazarus wrote: 03.04.2018 11:52, Torsten Bonde Christiansen via Lazarus пишет: Dear List. The bug report: https://bugs.freepascal.org/view.php?id=1 has completely changed the behavious of how TTreeview behave! The old behaviour (sending OLD

[Lazarus] Test

2018-04-03 Thread Torsten Bonde Christiansen via Lazarus
please disregard this message -Torsten -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] Changes to bugreport #33331 completely changes long standing behaviour

2018-04-03 Thread Torsten Bonde Christiansen via Lazarus
Dear List. The bug report: https://bugs.freepascal.org/view.php?id=1 has completely changed the behavious of how TTreeview behave! The old behaviour (sending OLD current node in OnChanging, sending NEW/SELECTED node in OnChange) is consistent across other components as well. The bug rep

Re: [Lazarus] Object inspector bug - exception

2018-03-06 Thread Torsten Bonde Christiansen via Lazarus
On 2018-03-06 11:18, Lubos Pintes via Lazarus wrote: Hello, Can you reproduce this? In Lazarus, execute this key sequence: F11, Ctrl+Tab, Tab, o, n, k Then this exception is raised: [Window Title] Lazarus IDE v1.9.0 - project1 [Content] List index (-1) out of bounds. Press OK to ignore and risk

[Lazarus] TAChart cannot compile with fpc 3.0.0 after rev. 57277

2018-02-20 Thread Torsten Bonde Christiansen via Lazarus
Hi all. After rev. 57277 there is a statement (line 536, pos 24) in tachartaxis.pas which uses the overloaded operater "+" for TPoint. I don't think this exist in fpc 3.0.0 and hence trunk no longer compiles. Is this on purpose - ie. is it required to use fpc 3.0.4 to compile trunk or is thi

[Lazarus] Linking run parameters with build mode

2018-01-16 Thread Torsten Bonde Christiansen via Lazarus
Hi List. In a not to distant past multiple run-modes were introduced and this is a very nice feature. Now I wonder if it is (would be) possible to link the run modes with build modes? This would be a nice feature, as i could eg. select "Build Win32" mode (cross compile from linux) and then t

[Lazarus] Identifier completion broken in r57037?

2018-01-10 Thread Torsten Bonde Christiansen via Lazarus
Hi All. After updating trunk today the identifier completion seems broken for me: 1) Using CTRL+Space in empty space, does nothing - it used to bring up a complete list of identifiers/keywords/etc... 2) Using CTRL+Space on 1+ characters correctly brings up a list of identifiers matching alread

Re: [Lazarus] String Grid Component

2017-11-27 Thread Torsten Bonde Christiansen via Lazarus
On 2017-11-27 18:11, Werner Pamler via Lazarus wrote: Am 27.11.2017 um 17:51 schrieb Torsten Bonde Christiansen via Lazarus: [...]  so that i can copy/paste the data to the clipboard. Hmm... You must be aware that the DrawGrid does not own any data. Therefore it cannot copy anything to the

Re: [Lazarus] String Grid Component

2017-11-27 Thread Torsten Bonde Christiansen via Lazarus
On 2017-11-27 16:48, Werner Pamler via Lazarus wrote: Am 27.11.2017 um 16:21 schrieb Werner Pamler via Lazarus: (a) What is "fast"? If I populate a standard TStringGrid with 100.000 rows x 100 columns (= 10 millions of cells) it takes about 9 seconds on my PC - if BeginUpdate/EndUpdate is used.

[Lazarus] String Grid Component

2017-11-27 Thread Torsten Bonde Christiansen via Lazarus
Hi List. I am looking for grid component that can display string. Simple enought and i know of a few already, but the ones i know of cannot do both of the following requirements i have: a) Fast (very low delay on 100.000+ lines of test) b) Allow selecting multiple cells spanning rows and colo

Re: [Lazarus] Guessing the encoding of some text

2017-11-17 Thread Torsten Bonde Christiansen via Lazarus
On 2017-11-17 10:03, Alexey via Lazarus wrote: ChsDet is in IDE OnlinePackageManager, "trivial changes" aren't needed. Alexey Oh super! thanks, Torsten. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/

Re: [Lazarus] Guessing the encoding of some text

2017-11-16 Thread Torsten Bonde Christiansen via Lazarus
On 2017-11-17 00:57, Zoë Peterson via Lazarus wrote: On 11/16/2017 4:25 AM, Torsten Bonde Christiansen via Lazarus wrote: Does Lazarus or FPC include other convinient tools that may detect the encoding of (the content of) a file? What do others do in this situation? If you need cross

[Lazarus] Guessing the encoding of some text

2017-11-16 Thread Torsten Bonde Christiansen via Lazarus
Hi List. I am reading some text of some .csv files, but the encoding of the files is not always the same. In fact it may vary greatly from a lot of european encodings, UTF8 and asian encoding. I have tried using the function GuessEncoding(..) in LConvEncoding.pas, but from the source code I

[Lazarus] Dropping files on TCustomEdit

2017-10-06 Thread Torsten Bonde Christiansen via Lazarus
Hi List. In my application i have started testing dropping files onto the main form. Most of the components i am using on the form happily accepts the file drops, but apparently this does not seem to be the case with any decendants of TCustomEdit (eg. TEdit, TMemo). On the main form i have ch

[Lazarus] TabControl stopped working from rev. 55890

2017-09-22 Thread Torsten Bonde Christiansen via Lazarus
Hi List. Due to a change in wincontrol.inc regarding TabStop the TabControl has stopped working completely. It causes an A/V during create. Simple test: Start a new application, try placing a Tab Control (not Page Control - that one works) on the form => crash. Regards, Torsten. -- __

Re: [Lazarus] Why Laz2_DOM, laz2_XMLRead, and laz2_XMLWrite?

2017-09-21 Thread Torsten Bonde Christiansen via Lazarus
On 2017-09-20 21:19, Mattias Gaertner via Lazarus wrote: On Wed, 20 Sep 2017 20:38:23 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: [...] Currently not, I think. All the more reason to move everything to FCL in a unified codebase. +1 Or use your suggestion and use something like Ty

Re: [Lazarus] fpCEF3 questions

2017-09-14 Thread Torsten Bonde Christiansen via Lazarus
On 2017-09-14 15:05, dev.dliw--- via Lazarus wrote: With main menu: - notice the lacking tabs, this is more prominent if not using a pagecontrol, but any other wincontrol to host the browser. I see. The problem is, that the menu does not change the position of the controls on the form. E

Re: [Lazarus] fpCEF3 questions

2017-09-14 Thread Torsten Bonde Christiansen via Lazarus
On 2017-09-14 13:10, dev.d...@gmail.com wrote: Hi Torsten, working with the framework is causing headaches being the author of fpCEF, I can confirm that ;) Is it correct, that you are using one of the latest versions of fpCEF on Linux? Absolutely correct. I'm using the currently available 3.

[Lazarus] fpCEF3 questions

2017-09-14 Thread Torsten Bonde Christiansen via Lazarus
Hi List. I am trying to work with the Chromium Embedded Framework from (https://github.com/dliw/fpCEF3) and (http://wiki.freepascal.org/fpCEF3) but parts of working with the framework is causing headaches... :) 1) I need to hook into the scrollbars such that i manually can position the view.

[Lazarus] Measuring text width in a TEdit

2017-05-29 Thread Torsten Bonde Christiansen via Lazarus
Hi List. I want to know the placement of the caret (in pixels, not character count) in a TEdit. However i am struggeling to fint a method that will allow me to do so. If i try to calculate it using the assigned font, I have the problem that TEdit.Font.GetTextWidth always returns the default

Re: [Lazarus] compiling svn Lazarus -> error

2017-04-28 Thread Torsten Bonde Christiansen via Lazarus
Same here! -Torsten. On 2017-04-28 11:05, John Landmesser via Lazarus wrote: does anyone got the same error when compiling svn Lazarus? Revision 54762 Lazarus 1.9.0 r54742 FPC 3.0.0 x86_64-linux-gtk2 Revision 54762 message: (3104) Compiling directorycacher.pas /home/john1/lazarus/components

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-21 Thread Torsten Bonde Christiansen via Lazarus
How do i use icon scaling for user project? Regards Torsten. On 2017-02-22 00:33, Ondrej Pokorny via Lazarus wrote: Update: I worked further today (unfortunately...) I also added icon scaling support to the IDE. The IDE now can load 150% and 200% versions of the icons. If a High-DPI icon is m

[Lazarus] "protected" as class property incorrectly highlighted

2017-02-01 Thread Torsten Bonde Christiansen via Lazarus
Hi List. I ran into this situation by random - but examplified here (using Lazarus IDE): As "protected" is not a reserved word (http://www.freepascal.org/docs-html/current/ref/refse3.html#x11-11.3) in any modes I think this is a bug in the highlighter. Should I report it to the bugt

[Lazarus] SynEdit - marking a line

2016-11-17 Thread Torsten Bonde Christiansen via Lazarus
Hi List. I have just recently started playing with SynEdit and all it's features, but so far things have been going good. The examples in lazarus are fine and have helped a lot! However i would like to mark a whole line, much like done in in the IDE when placing breakpoints etc.? I would b

Re: [Lazarus] Question about TRichMemo

2016-11-03 Thread Torsten Bonde Christiansen via Lazarus
On 2016-11-02 03:50, silvioprog via Lazarus wrote: Hello, First, thanks forthis great component ! :-) So, what do you think about distributing it on Lazarus components directory and it cames installed by default in t

Re: [Lazarus] TPageControl cannot change parent

2016-10-17 Thread Torsten Bonde Christiansen via Lazarus
On 2016-10-14 18:30, Mattias Gaertner via Lazarus wrote: On Fri, 14 Oct 2016 12:16:25 +0200 Torsten Bonde Christiansen via Lazarus wrote: [...] In the designer it is not posible to use the builtin feature of "Change Parent" (from the context menu) with a TPageControl. Other control

[Lazarus] TPageControl cannot change parent

2016-10-14 Thread Torsten Bonde Christiansen via Lazarus
Hi List. In the designer it is not posible to use the builtin feature of "Change Parent" (from the context menu) with a TPageControl. Other controls seems to work fine (although i have not tested all of them). To recreate the problem slap a TPanel and a TPageControl on the mainform and add a

Re: [Lazarus] GTK2 version and backspace key in Edit fields

2016-10-11 Thread Torsten Bonde Christiansen via Lazarus
I have no idea about the versioning with the glib2/gtk2 lib, but I can confirm that the patch works here: Free Pascal Compiler version 3.0.0 Compiler date : 2015/11/26 Compiler CPU target: x86_64 Lazarus trunk: r53093 glib2: 2.48.2 gtk2: 2.24.31 Torsten. On 2016-10-10 23:08, Juha Man