Re: [Lazarus] Lazarus IDE crash

2017-03-18 Thread Ondrej Pokorny via Lazarus
On 18.03.2017 10:53, C Western via Lazarus wrote: Is it just me? No, not only you: http://bugs.freepascal.org/view.php?id=31561 Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] *** GMX Spamverdacht *** Re: TSplitter refuses to move to the left with mouse (but moves via code)

2017-03-23 Thread Ondrej Pokorny via Lazarus
On 23.03.2017 10:34, Jürgen Hestermann via Lazarus wrote: TSplitter.MinSize is the (min) size of the splitter itself. It has nothing to do with the location of the splitter (just its size). You are wrong: http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delp

[Lazarus] fpDebug error "Debug information not available"

2017-03-28 Thread Ondrej Pokorny via Lazarus
Hello, I want to test the fpDebug debugger. I followed http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Need-testers-for-the-a-new-debugger-td4037911.html When I run a LCL application, I get the following error within Lazarus IDE: [Window Title] project1 - Lazarus IDE v1.7 [Content] No

Re: [Lazarus] RadioGroup MouseWheel behaviour

2017-03-28 Thread Ondrej Pokorny via Lazarus
On 28.03.2017 23:54, Sandro Cumerlato via Lazarus wrote: I consider a bug the behaviour of the MouseWheel when used over a RadioGroup Item. In the example I'd like to scroll the page content even if the mouse is over a RadioGroup Item. Fixed: http://mantis.freepascal.org/view.php?id=31608 Tha

Re: [Lazarus] ScrollBox and Touchscreen interaction

2017-04-07 Thread Ondrej Pokorny via Lazarus
Lazarus version? Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] ScrollBox and Touchscreen interaction

2017-04-07 Thread Ondrej Pokorny via Lazarus
On 07.04.2017 23:17, Sandro Cumerlato via Lazarus wrote: Current SVN trunk. Under Windows 10. Sorry for the missing info. Mouse wheel messages are correctly passed through. The problem is with touchpad double-finger scrolling because usually the mouse driver takes care of it - it finds the TW

Re: [Lazarus] Form emulated Showmodal

2017-04-20 Thread Ondrej Pokorny via Lazarus
On 20.04.2017 17:46, Alexey via Lazarus wrote: For CudaText i need my emulation of ShowModal. It must return w/o waiting form to close (like show). But form must show like modal (all others must disable, and on closing -last disabled form must enable). Smth exists already? Not possible, AFAI

Re: [Lazarus] How to deploy a Lazarus app for Windows?

2017-04-27 Thread Ondrej Pokorny via Lazarus
On 28.04.2017 0:46, Giuliano Colla via Lazarus wrote: I have no idea of where to start from, in order to create a setup.exe which will take advantage of the Windows installer. Try InnoSetup. AFAIK Lazarus IDE setup is built with it as well. Ondrej -- ___

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-04-30 Thread Ondrej Pokorny via Lazarus
On 30.04.2017 18:37, Marcos Douglas B. Santos via Lazarus wrote: Are you working on projects that have these problems? Could you tell me which is the best approach to deal with it? Speaking from my experience, the only approach (not only the best one but the only one) is not to use characters

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-03 Thread Ondrej Pokorny via Lazarus
On 03.05.2017 11:03, Juha Manninen via Lazarus wrote: I am puzzled why there were so many misleading and confusing replies, also from knowledgeable Lazarus developers. Remember, the question was about making sources compatible with Delphi. The person (Marcos Douglas) did not know details of how s

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-03 Thread Ondrej Pokorny via Lazarus
On 03.05.2017 11:21, Juha Manninen via Lazarus wrote: Windows already supports Unicode in everything ... except for console output! Why is that? You can start the console with UTF-8 codepage: http://stackoverflow.com/questions/14109024/how-to-make-unicode-charset-in-cmd-exe-by-default Then y

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-03 Thread Ondrej Pokorny via Lazarus
On 03.05.2017 21:47, Juha Manninen via Lazarus wrote: How many people are editing their sources in both Delphi and Lazarus? Me, but I keep the files ASCII-only because I need to target all Delphi versions down to D5 :/ My customers really demand it, unfortunately. I'd like to kill these dinos

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Ondrej Pokorny via Lazarus
On 05.05.2017 11:06, Graeme Geldenhuys via Lazarus wrote: On 2017-05-05 07:43, Michael Van Canneyt via Lazarus wrote: As far as I know, you don't need any tricks to work with unicode filenames or output in 3.0.2. Maybe with exception of TStrings and TFileStream. Again, I didn't have time to fol

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Ondrej Pokorny via Lazarus
On 05.05.2017 11:17, Michael Van Canneyt via Lazarus wrote: On Fri, 5 May 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-05-05 07:43, Michael Van Canneyt via Lazarus wrote: As far as I know, you don't need any tricks to work with unicode filenames or output in 3.0.2. Maybe with exception o

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Ondrej Pokorny via Lazarus
On 05.05.2017 11:24, Graeme Geldenhuys via Lazarus wrote: On 2017-05-05 10:17, Michael Van Canneyt via Lazarus wrote: Something like: sl.LoadFromFile('some_utf8_file.txt', CP_UTF8); sl.LoadFromFile('some_utf16_file.txt', CP_UTF16); sl.LoadFromFile('some_latin1_file.txt', CP_Latin1); Not

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Ondrej Pokorny via Lazarus
On 05.05.2017 11:23, Michael Van Canneyt via Lazarus wrote: Yes, this somewhat alleviates the problem; but this still is a single-byte TStrings, as opposed to the WideString TStrings of Delphi. It's also still a single-byte filename argument. Yes but you forget that unicode is also single-byte

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Ondrej Pokorny via Lazarus
On 05.05.2017 12:08, Mattias Gaertner via Lazarus wrote: On Fri, 5 May 2017 10:56:41 +0100 Graeme Geldenhuys via Lazarus wrote: [...] or work with large amount of 8-bit strings. Why would you want to? Unicode supports all languages, Maybe there is a misunderstanding. Let me rephrase my ques

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Ondrej Pokorny via Lazarus
On 05.05.2017 12:01, Michael Van Canneyt via Lazarus wrote: On Fri, 5 May 2017, Ondrej Pokorny via Lazarus wrote: Believe me, I use it in production without any problems: I have unicode-aware TStrings, I can read files with unicode names, I can do everything with plain FPC trunk. I am aware

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Ondrej Pokorny via Lazarus
On 05.05.2017 12:55, Jürgen Hestermann via Lazarus wrote: A situation where it may be a problem is when reading (UTF-16 encoded) text files. No, not at all. If you convert the file on the fly, there is almost 0 performance penalty. Ondrej -- ___ La

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Ondrej Pokorny via Lazarus
On 05.05.2017 13:02, Graeme Geldenhuys via Lazarus wrote: On 2017-05-05 10:41, Ondrej Pokorny via Lazarus wrote: Just use "DefaultSystemCodePage := CP_UTF8" and every single-byte string is unicode enabled. So does that mean you don't have to also call the following two functi

Re: [Lazarus] intercepting keyboard events

2017-05-08 Thread Ondrej Pokorny via Lazarus
On 08.05.2017 17:42, Michael Van Canneyt via Lazarus wrote: Is there something that must be called/set when creating the control to make it receive focus ? If you mean receiving focus by clicking on it then yes, you need to call SetFocus in MouseDown. It's also a good idea to check the csNoFo

Re: [Lazarus] visual appearance of ReadOnly state widgets

2017-05-10 Thread Ondrej Pokorny via Lazarus
On 10.05.2017 15:40, Graeme Geldenhuys via Lazarus wrote: Is it normal for read-only LCL widgets to look identical to their Read/Write state? Yes. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/

Re: [Lazarus] what do i see left of the Scrollbar?

2017-05-11 Thread Ondrej Pokorny via Lazarus
On 11.05.2017 12:11, Graeme Geldenhuys via Lazarus wrote: Now all that remains is to make it clickable, so you jump to the part of the file where you clicked. It is clickable :) Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://

Re: [Lazarus] what do i see left of the Scrollbar?

2017-05-11 Thread Ondrej Pokorny via Lazarus
On 11.05.2017 13:12, Graeme Geldenhuys via Lazarus wrote: On 2017-05-11 11:50, Ondrej Pokorny via Lazarus wrote: It is clickable :) Umm, it doesn't work here. Clicking via LClick or RClick doesn't have any affect. I'm using Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2,

Re: [Lazarus] fixes_1_8 - What happened with default height of DBGrid's rows?

2017-05-16 Thread Ondrej Pokorny via Lazarus
On 16.05.2017 18:08, Gabor Boros via Lazarus wrote: Hi All, I switched from revision 54808 to 54920 and got different row heights. What happened? Is this a regression? Probably yes and problably I am responsible. Please report to Mantis. Ondrej --

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-16 Thread Ondrej Pokorny via Lazarus
On 16.05.2017 20:44, Michael Van Canneyt via Lazarus wrote: Anything else I can do ? (except dumping linux mint, obviously...) Maybe this is an option for you until it gets properly fixed: you could build the IDE for Qt. (You can still develop your own applications for Gtk2 even if the IDE is

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-16 Thread Ondrej Pokorny via Lazarus
On 16.05.2017 21:08, Michael Van Canneyt via Lazarus wrote: Surely, if the situation is that bad, then things would have been fixed a long time ago, no ? IIRC people complained about Gtk2 resizing their windows under some window managers for several years. If I am not mistaken nobody really t

Re: [Lazarus] German lazarus forum down

2017-05-16 Thread Ondrej Pokorny via Lazarus
Schade, dass das Treffen so weit ist aus Tschechien :/ Sonst würde ich kommen. Lazarus 1.8 hat sicherlich einiges zu bieten. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Ondrej Pokorny via Lazarus
On 17.05.2017 17:38, Luca Olivetti via Lazarus wrote: FWIW it does the same with linux/gtk2 and, boy, the ide is *ugly*: giant, blurred, icons everywhere, giant fonts in the tabs of the components' palette, giant fonts in the object inspector...you get the drift. The fonts in the editor seems f

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Ondrej Pokorny via Lazarus
On 17.05.2017 17:47, Luca Olivetti via Lazarus wrote: El 17/05/17 a les 17:43, Ondrej Pokorny via Lazarus ha escrit: On 17.05.2017 17:38, Luca Olivetti via Lazarus wrote: FWIW it does the same with linux/gtk2 and, boy, the ide is *ugly*: giant, blurred, icons everywhere, giant fonts in the

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Ondrej Pokorny via Lazarus
On 17.05.2017 18:55, Luca Olivetti via Lazarus wrote: El 17/05/17 a les 17:52, Ondrej Pokorny via Lazarus ha escrit: You use 150% scaling (96 DPI = 100%), so Lazarus is also scaled by 150%. It's a new feature :) Well, if it is, it's broken: every other application (either kde or

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Ondrej Pokorny via Lazarus
On 17.05.2017 23:08, Andreas Frieß via Lazarus wrote: I see with the last patches something goes wrong after r54880 with frames and grid (specially TsWorkSheetGrid). Lazarus claims, the is no valid parent and didnot load and crash. It is only happen if you use frames ? The trouble is, i can on

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Ondrej Pokorny via Lazarus
On 18.05.2017 9:38, Luca Olivetti via Lazarus wrote: This seems to fix it, maybe fpc 2.6.4 doesn't manage well a "in" with a range of integers? Thank you for the patch, applied! Does the bug have a report in mantis so that I can resolve it? Ondrej -- _

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Ondrej Pokorny via Lazarus
On 18.05.2017 17:02, Mattias Gaertner via Lazarus wrote: On Thu, 18 May 2017 16:57:40 +0200 Luca Olivetti via Lazarus wrote: [...] Index: components/codetools/ide/codyidentifiersdlg.pas === --- components/codetools/ide/codyidentif

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Ondrej Pokorny via Lazarus
On 18.05.2017 17:20, Mattias Gaertner via Lazarus wrote: True. I'll do that. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Ondrej Pokorny via Lazarus
On 18.05.2017 17:20, Mattias Gaertner via Lazarus wrote: On Thu, 18 May 2017 17:14:03 +0200 Ondrej Pokorny via Lazarus wrote: [...] IMO, we should create a new option for CodeTools to override string result types for Ctrl+Shift+C. It could be both easy to implement and easy to understand: if

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Ondrej Pokorny via Lazarus
On 18.05.2017 21:48, Ondrej Pokorny via Lazarus wrote: On 18.05.2017 17:20, Mattias Gaertner via Lazarus wrote: True. Should I enable it by default? I implemented it in r54976 and made it default because all 8-bit string types are equivalent for the compiler, so it makes perfect sense not

Re: [Lazarus] intercepting keyboard events

2017-05-22 Thread Ondrej Pokorny via Lazarus
On 22.05.2017 15:57, Graeme Geldenhuys via Lazarus wrote: On 2017-05-08 17:46, zeljko via Lazarus wrote: Just to be sure that control actually can take focus put this ControlStyle := ControlStyle - [csNoFocus]; into constructor of your control. And what if that doesn't work? I've set that in t

Re: [Lazarus] intercepting keyboard events

2017-05-22 Thread Ondrej Pokorny via Lazarus
On 22.05.2017 16:05, Graeme Geldenhuys via Lazarus wrote: On 2017-05-22 15:01, Ondrej Pokorny via Lazarus wrote: For an example look how it is done in TCustomDBGrid.MouseDown. + The control can always get focused by the Tab key, if TabStop=True. I'll double check that as well, just

Re: [Lazarus] Use rare Win32 API in LCLIntf.SetForegroundWindow

2017-05-23 Thread Ondrej Pokorny via Lazarus
On 23.05.2017 19:38, Alexey via Lazarus wrote: What do you think about using this rare API [beginning from WinXP] in LCLIntf fnction? It will make LCL function work more stable: window will always go to foreground. I used it in CudaText. It works. https://github.com/Alexey-T/CudaText/blob/mast

Re: [Lazarus] Codetools OnBeforeCompile/After events

2017-05-25 Thread Ondrej Pokorny via Lazarus
On 26.05.2017 8:21, Lars via Lazarus wrote: Does something like OnBeforeCompile/OnAfterCompile exist in codetools? Yes, they exists. "OnAfterCompile": LazarusIDE.AddHandlerOnProjectBuildingFinished(@MyEvent); LazarusIDE.AddHandlerOnLazarusBuildingFinished(@MyEvent); Ondrej --

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Ondrej Pokorny via Lazarus
On 26.05.2017 12:47, Graeme Geldenhuys via Lazarus wrote: I want to implement a Lazarus IDE feature "open type" - that's if it doesn't already exist (please let me know). Imagine, you need to have a look at the "TFoo" class. But, where is the "TFoo" class? Is it in the "Boo" project or maybe in

Re: [Lazarus] TFont.Assign not complete

2017-05-31 Thread Ondrej Pokorny via Lazarus
On 30.05.2017 15:10, Alexey via Lazarus wrote: Also good to copy PixelsPerInch to do good copy PixelsPerInch must not be assigned. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] (Local) variable value hints

2017-06-06 Thread Ondrej Pokorny via Lazarus
On 06.06.2017 21:54, Mark Morgan Lloyd via Lazarus wrote: Bearing in mind things like the %H hint that Lazarus uses to suppress warning messages, is there anything comparable that can be applied to a variable so that when the IDE pops up a value during debugging it will always be shown in a cer

Re: [Lazarus] Trunk is broken

2017-06-07 Thread Ondrej Pokorny via Lazarus
On 07.06.2017 10:38, Gabor Boros via Lazarus wrote: I tried to compile trunk(55263) with FPC 3.0.2 on Win32 but got this: Are you sure you use FPC 3.0.2? IMO you use an old revision of fixes_3_0 or trunk branch which you have to update. Ondrej -- _

Re: [Lazarus] (Local) variable value hints

2017-06-07 Thread Ondrej Pokorny via Lazarus
> So does that mean that the IDE has to be tailored for a specific project? Yes. Install a custom package to extend the IDE. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] (Local) variable value hints

2017-06-07 Thread Ondrej Pokorny via Lazarus
On 07.06.2017 13:20, Ondrej Pokorny via Lazarus wrote: > So does that mean that the IDE has to be tailored for a specific project? Yes. Install a custom package to extend the IDE. Or: extend the IDE with some default formatters, add an IDE option page (and/or project option page) where

Re: [Lazarus] Bugtracker question

2017-06-08 Thread Ondrej Pokorny via Lazarus
On 08.06.2017 9:00, Petr Kristan via Lazarus wrote: I set bad Category in bug #0031901. How can I change it to "LCL"? Or somebody who has an access, change it please. Category "Patches" is OK as well :) Ondrej -- ___ Lazarus mailing list Lazarus@list

Re: [Lazarus] True/False in Object Inspector

2017-06-11 Thread Ondrej Pokorny via Lazarus
On 11.06.2017 8:05, kapibara via Lazarus wrote: It seems no longer possible to toggle a property true/false with double click. Is this a bug? It works here. What OS/WS? What settings (checkboxes or comboboxes for bool values)? Ondrej -- ___ Lazarus

Re: [Lazarus] Codetools in distress

2017-06-13 Thread Ondrej Pokorny via Lazarus
On 13.06.2017 15:21, Joost van der Sluis via Lazarus wrote: Am I the only one who has problems with the codetools? Seems like it can not handle out-parameters in functions anymore. What CT function is not working in particular? I tested with: program CTTest1; uses SysUtils, Classes; funct

Re: [Lazarus] Codetools in distress

2017-06-13 Thread Ondrej Pokorny via Lazarus
On 13.06.2017 16:03, Joost van der Sluis via Lazarus wrote: Now when I add Variants to the uses, nothing works anymore. (Try identifier-completion in VarIsError -> move cursor to VarIs -> ctrl-space) Same happens when you add contnrs to the uses-section. Do you also have that problem? Works

Re: [Lazarus] Codetools in distress

2017-06-13 Thread Ondrej Pokorny via Lazarus
On 13.06.2017 23:05, Joost van der Sluis via Lazarus wrote: Any clue why 'fpc' is not defined according to the codetools? I have no idea :( I'll ping Mattias directly. I am quite sure he'll know what to look for from your information :) Ondrej -- _

Re: [Lazarus] fixes_1_8 - What happened with default width of DBGrid's columns?

2017-06-15 Thread Ondrej Pokorny via Lazarus
On 15.06.2017 14:43, Gabor Boros via Lazarus wrote: I switched from revision 54808 to 55332 and got different default column widths. Reported as bug. I hope Ondrej fix it ASAP. ASAP is a loose time definition but the fix should happen for RC3. Ondrej --

Re: [Lazarus] LCL on Mac 64 bit

2017-06-15 Thread Ondrej Pokorny via Lazarus
On 15.06.2017 17:19, Mattias Gaertner via Lazarus wrote: On Thu, 15 Jun 2017 17:07:06 +0200 Andrea Mauri via Lazarus wrote: The Mac native 64bit API is Cocoa and it exists for the LCL. It is missing some feature though. Maybe Felipe can tell more details. Alternatively you can use qt, which i

Re: [Lazarus] LCL on Mac 64 bit

2017-06-15 Thread Ondrej Pokorny via Lazarus
On 15.06.2017 18:08, zeljko wrote: Both qt4 and qt5 works as 64bit w/o problems. I'm using it for our mac apps (complete lazarus build is qtlcl 64bit). This is great (and what I expected). We definitely should change the "10.5 to 10.12, LCL only 32bit, non LCL apps can be 64bit." information

Re: [Lazarus] Is this a bug?

2017-06-16 Thread Ondrej Pokorny via Lazarus
On 16.06.2017 9:12, Wolf via Lazarus wrote: If the call to "halt;" is commented out, there is no memory leak reported. Is this intentional? Yes, halt kills the program without finalizing anything. No code is executed afterwards. Everything that is allocated at the time Halt is executed result

Re: [Lazarus] Is this a bug?

2017-06-16 Thread Ondrej Pokorny via Lazarus
On 16.06.2017 9:33, Mattias Gaertner via Lazarus wrote: On Fri, 16 Jun 2017 09:25:24 +0200 Ondrej Pokorny via Lazarus wrote: On 16.06.2017 9:12, Wolf via Lazarus wrote: If the call to "halt;" is commented out, there is no memory leak reported. Is this intentional? Yes, halt

[Lazarus] Compiler Commands defines/functions

2017-06-21 Thread Ondrej Pokorny via Lazarus
Hello! Where can I find a list of defines/functions that I can use for "Execute after command"? http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Compiler_Commands In particular I want to get the path to $TargetFile() - i.e. the target EXE path. Ondrej -- ___

Re: [Lazarus] Compiler Commands defines/functions

2017-06-21 Thread Ondrej Pokorny via Lazarus
On 21.06.2017 16:19, Ondrej Pokorny via Lazarus wrote: Where can I find a list of defines/functions that I can use for "Execute after command"? Found it :) http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames Ondrej -- _

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-07-02 Thread Ondrej Pokorny via Lazarus
On 26.05.2017 13:11, Graeme Geldenhuys via Lazarus wrote: It seems it already exists (as Mattias pointed out) - we just didn’t know about it. :) All that remains is to assign a shortcut to it, if a default one doesn't exist. I absolutely fell in love with FPC/Lazarus now. It offers everything

Re: [Lazarus] Strange Font.Height

2017-07-04 Thread Ondrej Pokorny via Lazarus
On 04.07.2017 22:58, Valdas Jankūnas via Lazarus wrote: code (WS: GTK2): i := Canvas.TextHeight('I'); writeln(i); Canvas.Font.Height := i; i:= Canvas.TextHeight('I'); writeln(i); Canvas.Font.Height := i; i:= Canvas.TextHeight('I'); writeln(i); I get: 24 33 45 I think that "Canv

Re: [Lazarus] Scaling of toolbar icons

2017-07-08 Thread Ondrej Pokorny via Lazarus
On 09.07.2017 0:22, Werner Pamler via Lazarus wrote: Ondrej, you implemented scaling of the images used for the toolbar and menu of the IDE. Where can I find these methods? IDEImagesIntf.pas Are they available for standard imagelists for non-IDE usage? No, the current solution is Lazarus sp

Re: [Lazarus] IDE gutter icons

2017-07-08 Thread Ondrej Pokorny via Lazarus
On 08.07.2017 21:26, FTurtle via Lazarus wrote: What are parameters for high-DPI versions of gutter icons? I am not sure there is high-DPI support for gutter icons yet. I have to check. But the parameters/file names have to be the same (*_150, *_200). Ondrej -- __

Re: [Lazarus] Strange Font.Height

2017-07-09 Thread Ondrej Pokorny via Lazarus
On 09.07.2017 17:14, Valdas Jankūnas via Lazarus wrote: PPI of Font differs from rest PPI. Is this intended or a bug? It depends what your code is. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listin

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-12 Thread Ondrej Pokorny via Lazarus
On 13.07.2017 2:11, Graeme Geldenhuys via Lazarus wrote: There was ONE thing I did like about Delphi - the "File -> New -> XML Data Binding" option, where it generates interfaces and classes to work with XML data or a schema. That was pretty useful. Does Lazarus have something like that yet

Re: [Lazarus] MenuItem's new methods

2017-07-20 Thread Ondrej Pokorny via Lazarus
On 20.07.2017 11:57, Alexey via Lazarus wrote: Pls tell: is it possible to make MenuItems themes (application wide in all menus, or MainMenu)? this needs global OnDrawItem which will be used by LCL. Can you add it? For this you have the methods in TPopupMenu/TMainMenu. You should be able to

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-20 Thread Ondrej Pokorny via Lazarus
On 20.07.2017 13:33, Graeme Geldenhuys via Lazarus wrote: And EMBT thinks they can still justify the HUGE price tag?? What are Delphi Developers actually paying for? They should vote with their wallet and stop upgrading until EMBT actually starts fixing things. So I'll reiterate Job well d

Re: [Lazarus] Breaking change

2017-07-23 Thread Ondrej Pokorny via Lazarus
On 23.07.2017 12:50, Michael Van Canneyt via Lazarus wrote: Directly passing an interface where (T)REFIID is expected, will no longer be possible. What is the fix? "@GetTypeData(TypeInfo(IShellItem))^.Guid" ? Ondrej -- ___ Lazarus mailing list Lazar

Re: [Lazarus] Breaking change

2017-07-23 Thread Ondrej Pokorny via Lazarus
On 23.07.2017 18:11, Michael Van Canneyt via Lazarus wrote: That is one possible fix, yes. Maybe we can add a leightweight function for this to the typinfo unit. Actually it works well with a local variable. I fixed it in r55562. I hope it's fine so. Ondrej -- __

Re: [Lazarus] Please consider adding Application Explorer to lazarus components folder

2017-07-24 Thread Ondrej Pokorny via Lazarus
On 24.07.2017 0:08, Anthony Walter via Lazarus wrote: I think this tool should be added to the lazarus components folder. Actually we are going the other way - decentralize components and packages. Such a tool should be added to the online package manager. Please contact Balasz (if he missed

Re: [Lazarus] TCustomControl.Caption setter needs Invalidate

2017-07-29 Thread Ondrej Pokorny via Lazarus
On 30.07.2017 0:50, Alexey via Lazarus wrote: TCustomControl.Caption setter (ie TControl.SetText) misses Invalidate call. So, my ATButtons (ATButton based on CustomControl) miss visual update, when user changes app i18n. TCustomControl doesn't paint the caption so it doesn't need the Invalidat

Re: [Lazarus] TCustomControl.Caption setter needs Invalidate

2017-07-30 Thread Ondrej Pokorny via Lazarus
On 30.07.2017 9:32, Anthony Walter wrote: While we're at it, why is THintWindow.Paint moved to public? Please fix back to protected. Correct. Moved to protected. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus

Re: [Lazarus] High DPI ?

2017-08-05 Thread Ondrej Pokorny via Lazarus
On 05.08.2017 14:16, Michael Van Canneyt via Lazarus wrote: How can I check that the IDE has actually enabled/activated HDPI and uses big icons/button images? Check for Application.Scaled := True in lazarus.pp. This enables Hi-DPI features. --- Another problem could be that the widgetset se

Re: [Lazarus] High DPI ?

2017-08-05 Thread Ondrej Pokorny via Lazarus
On 05.08.2017 15:39, Michael Van Canneyt via Lazarus wrote: Since I have the same setup as the reporter I have applied the patch provided in this bugreport, and then HighDPI works on Linux. The buttons and images have a reasonable size, font looks normal... So, from my point of view, that patch

Re: [Lazarus] String vs WideString

2017-08-15 Thread Ondrej Pokorny via Lazarus
On 15.08.2017 21:34, Mattias Gaertner via Lazarus wrote: On Tue, 15 Aug 2017 21:22:10 +0200 Luca Olivetti via Lazarus wrote: [...] *If* code that worked before (and dare I say without abusing the language) suddenly breaks, the bug is in the compiler and not in the library. ... unless of cours

Re: [Lazarus] The new kid is growing up fast

2017-08-15 Thread Ondrej Pokorny via Lazarus
Too bad that Eugene didn't decide to improve Lazarus Cocoa bindings :) Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] String vs WideString

2017-08-17 Thread Ondrej Pokorny via Lazarus
On 17.08.2017 16:34, Graeme Geldenhuys via Lazarus wrote: On 2017-08-17 13:40, Marcos Douglas B. Santos via Lazarus wrote: Sorry, but every single warning is a... warning... that needs to be resolved. I feel exactly the same. :-) It took me ages to figure out how to change my code so I coul

Re: [Lazarus] String vs WideString

2017-08-18 Thread Ondrej Pokorny via Lazarus
On 16.08.2017 22:40, Sven Barth via Lazarus wrote: Trunk supports Insert() and Delete() on dynamic arrays, Concat() and + are on the near term ToDo list. I eagerly wait for these (and for anonymous methods) :) Ondrej -- ___ Lazarus mailing list Lazar

Re: [Lazarus] fpReport released

2017-08-21 Thread Ondrej Pokorny via Lazarus
On 21.08.2017 1:38, Graeme Geldenhuys via Lazarus wrote: On 2017-08-20 21:16, Andreas Frieß via Lazarus wrote: The freetype dll searched by the fpreport was freetype-6.dll, but the actual freetype-2.3.5-1-bin.zip has only a freetype6.dll. (Renaming is not a problem for me) It seems FreeType ha

Re: [Lazarus] crDrag cursor is now 2x bigger

2017-09-07 Thread Ondrej Pokorny via Lazarus
Michl added high-resolution cursors recently. Obviously Gtk2 picks up the wrong size. Win32 works fine. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] FPReport file names

2017-09-13 Thread Ondrej Pokorny via Lazarus
On 13.09.2017 10:44, Michael Van Canneyt via Lazarus wrote: On Wed, 13 Sep 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-09-12 19:01, Alexey via Lazarus wrote: It is new. Please rename (it's easy for new component) all files: usually its good with one prefix. E.g. fprep_*.*. hahaha...

Re: [Lazarus] FPReport file names

2017-09-13 Thread Ondrej Pokorny via Lazarus
On 13.09.2017 12:03, Michael Van Canneyt via Lazarus wrote: On Wed, 13 Sep 2017, Ondrej Pokorny via Lazarus wrote: The benefit of writing fpreport.exporthtml versus fpreportexporthtml is zero. You forgot one thing: third-party libraries. E.g. your fpReport could use the "fprep"

Re: [Lazarus] FPReport file names

2017-09-13 Thread Ondrej Pokorny via Lazarus
On 13.09.2017 15:33, Mattias Gaertner via Lazarus wrote: Also were is there an ambiguity anyway (given all units are used with their full name)? The compiler reads (in my above example) the token sequence ID Point ID and thus can find the unit without any backtracking just as for ordinary methods

Re: [Lazarus] FPReport file names

2017-09-13 Thread Ondrej Pokorny via Lazarus
On 13.09.2017 12:28, Michael Van Canneyt wrote: On Wed, 13 Sep 2017, Ondrej Pokorny via Lazarus wrote: On 13.09.2017 12:03, Michael Van Canneyt via Lazarus wrote: On Wed, 13 Sep 2017, Ondrej Pokorny via Lazarus wrote: The benefit of writing fpreport.exporthtml versus fpreportexporthtml is

Re: [Lazarus] FPReport file names

2017-09-13 Thread Ondrej Pokorny via Lazarus
On 13.09.2017 21:17, Mattias Gaertner via Lazarus wrote: Everything looks like the compiler uses the same algorithm -> it first resolves a then b then c and so on, it doesn't need to go backwards. It's not so simple. See my example for Sven: ... uses unitdots.unit1, unitdots; type TPrgBright

Re: [Lazarus] FPReport file names

2017-09-13 Thread Ondrej Pokorny via Lazarus
On 13.09.2017 20:33, Graeme Geldenhuys via Lazarus wrote: On 2017-09-13 19:17, Michael Van Canneyt via Lazarus wrote: Similarly, every field in a database I create is always uniquely named. So if I ask "where is field TX_ID' I get exactly 1 field, in 1 table. Graeme Geldenhuys can testify that I

Re: [Lazarus] FPReport file names

2017-09-13 Thread Ondrej Pokorny via Lazarus
On 13.09.2017 22:23, Michael Van Canneyt via Lazarus wrote: create table customer (   C_ID INT Primary key,   C_FIRSTNAME VARCHAR(30),   C_LASTNAME VARCHAR(50) ); CREATE table invoice (   I_ID INT PRIMARY KEY,   I_CUSTOMER_FK INT,   I_DATE DATE ); ALTER TABLE INVOICE ADD CONSTRAINT R_INVOICE_CU

Re: [Lazarus] Converting all code to use UnicodeString

2017-09-25 Thread Ondrej Pokorny via Lazarus
On 25.09.2017 20:02, Marcos Douglas B. Santos via Lazarus wrote: May I code using just "string"? Yes. LCL is ANSI/UTF8 only, so is TStrings. You can write Lazarus+Delphi compatible code without a lot of problems. Just use the string type. The only thing you have to be aware is that in Delphi

Re: [Lazarus] Hi-DPI for own components

2017-10-03 Thread Ondrej Pokorny via Lazarus
On 03.10.2017 22:39, Vojtěch Čihák via Lazarus wrote: Hi, if I want hi-DPI for my own components, it is enough to draw two additional icons with suffix _150 and _200 and bundle it to package? Yes. Ondrej -- ___ Lazarus mailing list Lazarus@lists.laz

Re: [Lazarus] App don't appear on taskbar of 2nd monitor

2017-10-06 Thread Ondrej Pokorny via Lazarus
I have 2 monitors on a win 10 machine and I am not aware it should behave like this (you either duplicate the task bar or you have one task bar on one display with all windows, afaik). Ondrej On 06.10.2017 11:29, Alexey via Lazarus wrote: It seems was a Win8/Win10 report. (I dont have monito

Re: [Lazarus] Adding a component to a form using keyboard

2017-10-09 Thread Ondrej Pokorny via Lazarus
On 09.10.2017 9:58, Lubos Pintes via Lazarus wrote: Hello, I have a problem to add a button to a form using keyboard. Ctrl+Alt+P, write "tbut" to the edit field and press Enter. Nothing was added... why? Because you have to click with a mouse on the form where the button has to be placed. C

Re: [Lazarus] Forward procedure completion failure

2017-10-11 Thread Ondrej Pokorny via Lazarus
On 11.10.2017 16:00, Lubos Pintes via Lazarus wrote: Just wanted to try the cool feature, adding a procedure body to implementation. So I wrote a procedure header, pressed Ctrl+Shift+C, and found this in a message window: uiacore.pas(9,1) Error: unknown section keyword interface found I tried t

Re: [Lazarus] Replacing accented letters

2017-10-11 Thread Ondrej Pokorny via Lazarus
On 11.10.2017 17:31, Koenraad Lelong via Lazarus wrote: Software is intended for Windows. In this case you may use WinAPI as well: https://stackoverflow.com/a/1892432/1231269 Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://

Re: [Lazarus] Replacing accented letters

2017-10-13 Thread Ondrej Pokorny via Lazarus
On 13.10.2017 15:32, Koenraad Lelong via Lazarus wrote: Op 11-10-17 om 17:45 schreef Ondrej Pokorny via Lazarus: On 11.10.2017 17:31, Koenraad Lelong via Lazarus wrote: Software is intended for Windows. In this case you may use WinAPI as well: https://stackoverflow.com/a/1892432/1231269

Re: [Lazarus] Annoyance with 1.8RC5

2017-10-15 Thread Ondrej Pokorny via Lazarus
On 15.10.2017 17:05, Donald Ziesig via Lazarus wrote: What can I do about this? Find the revision that broke it and fill a bug report. And please give information about your OS and WS. I assume you are on Linux/Gtk2. Ondrej -- ___ Lazarus mailing l

Re: [Lazarus] Weird object variables access [SOLVED] - Delphi mode bug!

2017-10-25 Thread Ondrej Pokorny via Lazarus
On 24.10.2017 23:18, Michael Van Canneyt via Lazarus wrote: On Tue, 24 Oct 2017, Giuliano Colla wrote: Il 24/10/2017 14:10, Michael Van Canneyt via Lazarus ha scritto: A valid method can never be stored in a pointer, since the former is actually 2 pointers (method/data) and the latter is just

Re: [Lazarus] Weird object variables access [SOLVED] - Delphi mode bug!

2017-10-25 Thread Ondrej Pokorny via Lazarus
On 25.10.2017 11:14, Michael Van Canneyt wrote: On Wed, 25 Oct 2017, Ondrej Pokorny via Lazarus wrote: Yes, the code is wrong. But the reason is that myMethod is assigned in FormCreate. The later "@myMethod := pMethod;" assignment overwrites only half of the myMethod:TProc varia

Re: [Lazarus] Annoyance with 1.8RC5

2017-10-27 Thread Ondrej Pokorny via Lazarus
On 15.10.2017 19:53, Donald Ziesig wrote: ok I'll try The easiest way is to get SVN sources and then bisect the guilty version: http://wiki.freepascal.org/How_To_Help_Developing_Lazarus . Read "Dealing with regressions". Ondrej -- ___ Lazarus mail

Re: [Lazarus] "Ambiguous unit found" message

2017-11-06 Thread Ondrej Pokorny via Lazarus
On 31.10.2017 10:01, Werner Pamler via Lazarus wrote: Trying to update my VirtualTreeViews version 4 to version 5 I ran into the problem that the registration unit seems to be duplicate now. I hope to be able to fix this, but what I want to say is that the message dialog telling me of this is

Re: [Lazarus] "Ambiguous unit found" message

2017-11-06 Thread Ondrej Pokorny via Lazarus
On 06.11.2017 17:11, Sven Barth via Lazarus wrote: Am 06.11.2017 13:48 schrieb "Ondrej Pokorny via Lazarus" mailto:lazarus@lists.lazarus-ide.org>>: A secret insider tip: use Ctrl+C to copy the full text into clipboard. Does this work on all widgetsets? I know that Window

  1   2   3   4   5   >