Re: [Lazarus] TPageControl OnChange calling issue

2016-11-13 Thread Ondrej Pokorny via Lazarus
On 05.10.2016 14:07, Michael Schnell via Lazarus wrote: On 05.10.2016 12:40, Ondrej Pokorny via Lazarus wrote: I am against. LCL is designed to be Delphi-compatible so the default events are what they are and they behave how they behave. This of course is granted by a property that is not

Re: [Lazarus] {Spam?} Re: Modal windows on Cocoa

2016-11-13 Thread Ondrej Pokorny via Lazarus
On 14.11.2016 8:11, Michael Van Canneyt via Lazarus wrote: When I tried to change it, the IDE sends me to 'Additions and overrides' But when I press 'Set LCLWidgetType', nothing visible happens, and the IDE becomes unresponsive. (Presumably some dropdown list is hidden behind the modal project

Re: [Lazarus] {Spam?} Re: Modal windows on Cocoa

2016-11-14 Thread Ondrej Pokorny via Lazarus
On 14.11.2016 8:18, Michael Van Canneyt via Lazarus wrote: Good news. When is 1.6.2 expected ? It's been already tagged so expect it soon. 1.6.2 took so long because we waited for FPC 3.0.2. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-14 Thread Ondrej Pokorny via Lazarus
On 14.11.2016 11:39, Michael Schnell via Lazarus wrote: On 13.11.2016 21:37, Ondrej Pokorny via Lazarus wrote: On 05.10.2016 14:07, Michael Schnell via Lazarus wrote: If not set it will be the old OnChange behavior. Or they other way round: nboOldOnChange? Or do you have any other name

[Lazarus] TextHint rewrite

2016-11-14 Thread Ondrej Pokorny via Lazarus
Let me continue the "Memo.Lines.Add seems to be slow with Lazarus 1.6" - TextHint discussion: 1.) Unfortunately it's not possible to create the custom paint event "PaintAfterInterface" for all TWinControls on Win32. So it doesn't make sense to implement it. 2.) Some of Lazarus developers don'

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-14 Thread Ondrej Pokorny via Lazarus
Then there's the problem with what behavior should be default. If we say LCL is VCL compatible then it is clear, but the more I think about it the more I feel Delphi behavior is just strange. Probably thinking is not appropriate here... The same problem is with TComboBox Style=csDropDownList.

Re: [Lazarus] Lazarus Release 1.6.2

2016-11-15 Thread Ondrej Pokorny via Lazarus
Thank you for your efforts - please send the patch to mantis so that DB maintainers don't oversee it! Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-16 Thread Ondrej Pokorny via Lazarus
On 16.11.2016 10:30, Michael Schnell via Lazarus wrote: On 15.11.2016 18:28, Bart via Lazarus wrote: Mode switches are about coding (how the compiler should behave), not about how components should behave once compiled. Of course I do know that they are used in that way. I just wanted to say

Re: [Lazarus] Clarification about VirtualTreeView repositories (lazarus-ccr/virtualtreeview-new deprecation)

2016-11-22 Thread Ondrej Pokorny via Lazarus
On 22.11.2016 18:53, Mattias Gaertner via Lazarus wrote: On Tue, 22 Nov 2016 14:28:31 -0300 Luiz Americo Pereira Camara via Lazarus wrote: Currently there are three repositories of VirtualTreeView LCL port. In Lazarus-CCR: virtualtreeview: first port, long unmaintained virtualtreeview-new: o

Re: [Lazarus] Non-visual component tray

2016-11-28 Thread Ondrej Pokorny via Lazarus
On 28.11.2016 11:01, Graeme Geldenhuys via Lazarus wrote: Finally somebody has implemented a non-visual component tray add-on (sitting next to your visual designed form). Good that it's a Lazarus solution! Something I've been saying for years - and that should come standard with Delphi and L

Re: [Lazarus] AutoAdjustLayout fixes

2016-11-30 Thread Ondrej Pokorny via Lazarus
On 30.11.2016 18:57, Alexey via Lazarus wrote: Juha, I tried to improv http://mantis.freepascal.org/view.php?id=30995 and i tried other LCL controls which need this too. SpinEdit/FloatSpinedit/Check/Radiobtn/Group/Panel.. now i see that no more fixes needed. SpinEdit's are childs of TCustomEdit

Re: [Lazarus] TextHint rewrite

2016-12-02 Thread Ondrej Pokorny via Lazarus
On 02.12.2016 17:40, Alexey via Lazarus wrote: On 14.11.2016 17:32, Ondrej Pokorny via Lazarus wrote: For now I rewrote the TextHint emulation Can we have Italic style of textHint , like before? In e.g. IDE filter boxes WinAPI doesn't support changing text hint font - it is not italic.

Re: [Lazarus] IDE main window?

2016-12-06 Thread Ondrej Pokorny via Lazarus
On 06.12.2016 10:05, Mark Morgan Lloyd via Lazarus wrote: The one thing that doesn't scale is the Lazarus IDE status bar, where the display of cursor position gets truncated as soon as a unit is >1000 lines. Could somebody get this to track the overall form width- I'd submit a patch myself if I

[Lazarus] New high DPI features in 1.7

2016-12-09 Thread Ondrej Pokorny via Lazarus
Hello, I have worked on high DPI features recently. If you want to play with high DPI support, follow this instruction: http://wiki.lazarus.freepascal.org/High_DPI#High_DPI_in_Lazarus_1.7_and_above For Lazarus IDE itself: Recompile the IDE with LCLScaleForms compiler define before testing La

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 9:44, Michael Van Canneyt via Lazarus wrote: Question: What will happen if I design on a HighDPI system, and then open the project on a 96-DPI system ? The forms will be rescaled correctly. I.e. the IDE designer itself is DPI aware. Ondrej -- __

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Ondrej Pokorny via Lazarus
"DesignTimePPI" that stores the value at which the form/frame was designed. On 09.12.2016 9:53, Graeme Geldenhuys via Lazarus wrote: On 2016-12-09 08:47, Ondrej Pokorny via Lazarus wrote: The forms will be rescaled correctly. I.e. the IDE designer itself is DPI aware. Does it now finally

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 11:52, Erwin van den Bosch via Lazarus wrote: Thanks for the good work Ondrej! A big step forward. I will test it in the next few days and hopefully can give some feedback. Although this is a step forward I think working with pixels is something from the past as with the Sinclair

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 12:38, Erwin van den Bosch via Lazarus wrote: Op 9-12-2016 om 12:18 schreef Ondrej Pokorny via Lazarus: On 09.12.2016 11:52, Erwin van den Bosch via Lazarus wrote: Thanks for the good work Ondrej! A big step forward. I will test it in the next few days and hopefully can give some

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 10:15, Michael Van Canneyt via Lazarus wrote: On Fri, 9 Dec 2016, Ondrej Pokorny via Lazarus wrote: On 09.12.2016 9:51, Michael Van Canneyt wrote: No, they will be not. Every form/frame has the property "DesignTimePPI" that stores the value at which the form/frame was

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 14:19, Michael Van Canneyt via Lazarus wrote: I've pushed an update to SVN for fcl-pdf. The code can now do a partial embedding of a TTF font: just the characters used in the PDF will be embedded. This results in a much smaller PDF file. This is great news! But I have a problem

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 15:28, Michael Van Canneyt via Lazarus wrote: I forgot (again) to commit a file, fixed. Sorry. No problem. Now it compiles, thanks! I have a runtime exception, though (the relevant line is in #5): #0 fpc_raiseexception(0xc9, 0x5ca84a, 0x79cf5c8) at ..\inc\except.inc:158 #1 RUNER

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 16:51, Luca Olivetti via Lazarus wrote: I currently have some projects where I use ScaleBy to manually scale the forms depending on the monitor resolution[*], if I leave tform.scaled to false will it work as before? Yes, Scaled=False defaults to old behavior. Just make sure you d

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 16:59, Graeme Geldenhuys via Lazarus wrote: Can you tell us which font you are using, and maybe also what text you were trying to write to the PDF? Yes, that information would be very useful. If you can even supply the TTF font version number, that would be helpful too. If it r

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 17:06, Michael Van Canneyt via Lazarus wrote: On Fri, 9 Dec 2016, Ondrej Pokorny via Lazarus wrote: On 09.12.2016 16:59, Graeme Geldenhuys via Lazarus wrote: Can you tell us which font you are using, and maybe also what text you were trying to write to the PDF? Yes, that

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 17:06, Luca Olivetti via Lazarus wrote: But "After some time of testing LCLScaleForms will become default." What happens then when I open an old form It will have Scaled=True. or want to design a new one with no automatic scaling? Set Scaled=False explicitely in the object ins

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 17:19, Graeme Geldenhuys via Lazarus wrote: On 2016-12-09 16:16, Graeme Geldenhuys via Lazarus wrote: No errors or warnings were given. Same result with FPC 3.0.0 under 64-bit Linux (CentOS 6). Good, await a test project from me :) (Anyway, so that I don't look like a pain in t

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 17:21, Luca Olivetti via Lazarus wrote: El 09/12/16 a les 17:17, Ondrej Pokorny via Lazarus ha escrit: On 09.12.2016 17:06, Luca Olivetti via Lazarus wrote: But "After some time of testing LCLScaleForms will become default." What happens then when I open an old form

Re: [Lazarus] FCL-PDF change

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 18:01, Graeme Geldenhuys via Lazarus wrote: On 2016-12-09 15:36, Ondrej Pokorny via Lazarus wrote: I have a runtime exception, though (the relevant line is in #5): #0 fpc_raiseexception(0xc9, 0x5ca84a, 0x79cf5c8) at ..\inc\except.inc:158 #1 RUNERRORTOEXCEPT(201, 0x5ca84a

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 22:54, Josh via Lazarus wrote: Just download latest svn to test this. Thanks for the feedback! Immediate problem, opening current project I get message unknown property DesignTimeDPI so choose continue loading. DesignTimeDPI was published for a short time period (from 1st of

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 09.12.2016 23:34, Ondrej Pokorny via Lazarus wrote: My forms load, then get scaled. I have checked property of form and Scaled is unchecked False; PixelsPerInch=72 DesignTimePPu=72 The scaling makes my form hard to read and even harder to edit; I am using 3rd party controls and some fonts

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Ondrej Pokorny via Lazarus
On 10.12.2016 2:16, Josh via Lazarus wrote: error reading xxx.designtimedpi: unknow property:'DesignTimeDPI' Please open and resave the affected forms or delete DesignTimeDPI from all your LFMs and rebuild. Sorry for inconveniences. Ondrej -- ___ L

Re: [Lazarus] Clarification about VirtualTreeView repositories (lazarus-ccr/virtualtreeview-new deprecation)

2016-12-10 Thread Ondrej Pokorny via Lazarus
On 22.11.2016 19:02, Luiz Americo Pereira Camara via Lazarus wrote: GitHub. Is necessary to sync with main repository What branch do you recommend? There seem to be no Lazarus packages either in the v4, v5 or master: https://github.com/blikblum/VirtualTreeView-Lazarus/tree/lazarus_master/Pac

Re: [Lazarus] New high DPI features in 1.7

2016-12-10 Thread Ondrej Pokorny via Lazarus
On 10.12.2016 11:13, zeljko wrote: Is there any chance to have TApplication property which will disable Scaled (even when Scaled=True) for complete application (Design and RunTime) ? I thought about it already but I haven't solved one issue: how should that property be reliably read both in d

Re: [Lazarus] Clarification about VirtualTreeView repositories (lazarus-ccr/virtualtreeview-new deprecation)

2016-12-10 Thread Ondrej Pokorny via Lazarus
On 10.12.2016 10:30, Luiz Americo Pereira Camara via Lazarus wrote: What branch do you recommend? lazarus_v4 or lazarus_v5 Thank you! On 10.12.2016 10:29, Luiz Americo Pereira Camara via Lazarus wrote: The package file is on Source folder. The lazarus branches are the ones with "lazaru

Re: [Lazarus] New high DPI features in 1.7

2016-12-10 Thread Ondrej Pokorny via Lazarus
On 10.12.2016 14:40, Michael W. Vogel via Lazarus wrote: Oh, then we get a global switch to enable/disable high DPI support OS independet (as defined in the Windows manifest - and then this value has to take care about that switch). Nono, these settings have to stay completely independent. As

Re: [Lazarus] New high DPI features in 1.7

2016-12-10 Thread Ondrej Pokorny via Lazarus
On 10.12.2016 17:34, zeljko wrote: On 10.12.2016 15:23, Ondrej Pokorny via Lazarus wrote: On 10.12.2016 14:40, Michael W. Vogel via Lazarus wrote: Oh, then we get a global switch to enable/disable high DPI support OS independet (as defined in the Windows manifest - and then this value has to

Re: [Lazarus] Qt is broken, ATSynedit

2016-12-16 Thread Ondrej Pokorny via Lazarus
On 16.12.2016 16:09, Alexey via Lazarus wrote: The trunk updates broke ATSynedit on Qt. How to repeat: - install package ATSynedit - open demo: app/demo_editor - run it - on form with editor, drag vert-scrollbar; or: do mousewheel down ->> crash inside Qt Could you please bisect the guilty ver

Re: [Lazarus] TTabSheet extending - where is the editor in TPageControl or a hook

2016-12-29 Thread Ondrej Pokorny via Lazarus
On 29.12.2016 11:48, Andreas Frieß via Lazarus wrote: i want to extend the TTabSheet to TMyTabSheet, but i didnt find the editor for TPageControl to say not to use TTabSheet. The editor is normaly comming up if you make a rightclick in TPageControl and say, add, insert or move left/right a TTab

Re: [Lazarus] Feature Request: more intelligent code completion

2017-01-30 Thread Ondrej Pokorny via Lazarus
Ctrl+Shift+X is a new feature for upcoming 1.8: http://wiki.freepascal.org/Lazarus_1.8.0_release_notes It cannot create properties - neither in the current class nor in a different class. It's a rather easy feature to add because CodeTools already have everything that is needed for it. The "

Re: [Lazarus] debugging interface method calls

2017-02-01 Thread Ondrej Pokorny via Lazarus
On 01.02.2017 10:16, Graeme Geldenhuys via Lazarus wrote: On 2017-02-01 03:36, David Emerson via Lazarus wrote: It seems that when I am stepping through my code, when there is an interface function call, the debugger will not step into the function call. Is there a way to make it step in? No,

Re: [Lazarus] What is the estimated creation time of fixes_1_8 branch?

2017-02-01 Thread Ondrej Pokorny via Lazarus
On 01.02.2017 12:42, Mattias Gaertner via Lazarus wrote: Probably 1.8 will be released soon after FPC 3.0.2. I still have some open issues for 1.8. The really important is only one - High DPI. I couldn't work on it recently but IMO I should be able to finish it (to a reasonable state) until r

Re: [Lazarus] debugging interface method calls

2017-02-01 Thread Ondrej Pokorny via Lazarus
On 01.02.2017 21:28, David Emerson via Lazarus wrote: I tried all the debugging options: automatic; dwarf with sets; dwarf2; stabs; dwarf3 beta. None of them would step into the interface function call. fpc 3.0.0 / laz 1.6 / gdb 7.7.1 I tested as well. I was able to step in with automatic Debu

Re: [Lazarus] debugging interface method calls

2017-02-01 Thread Ondrej Pokorny via Lazarus
On 01.02.2017 21:54, Graeme Geldenhuys via Lazarus wrote: On 2017-02-01 20:27, David Emerson via Lazarus wrote: I guess I should try fpdebug! That was my hope too, but fpdebug is not supported on FreeBSD (what I use). It seems only Linux and Windows is currently supported. :-/ Having a real p

Re: [Lazarus] IDE Component-dialog: small button

2017-02-06 Thread Ondrej Pokorny via Lazarus
On 06.02.2017 3:28, wkitty42--- via Lazarus wrote: On 02/05/2017 07:41 PM, Alexey via Lazarus wrote: In this dialog, button Use is too narrow. Can i make diff, to make it wide, e.g. 80pix? ummm, it looks plenty big enough... all of the letters show with no clipping on either side... what am

Re: [Lazarus] IDE Component-dialog: small button

2017-02-06 Thread Ondrej Pokorny via Lazarus
On 06.02.2017 9:49, C Western via Lazarus wrote: It looks like a button that has been autosized; I must admit my feeling is that autosized buttons should have a minimum width You can use the Constraints property to set the minimum width in your own programs. Ondrej -- ___

Re: [Lazarus] IDE Component-dialog: small button

2017-02-06 Thread Ondrej Pokorny via Lazarus
On 06.02.2017 10:15, C Western via Lazarus wrote: Indeed, though this minimum width should also depend on the font size, so requires some programming on each form (though maybe a single fixed value would work in most cases). Constraints are scaled according to current DPI settings in Lazarus 1

Re: [Lazarus] DateTimePicker not installed?

2017-02-06 Thread Ondrej Pokorny via Lazarus
On 06.02.2017 1:52, Alexey via Lazarus wrote: I installed pkg DateTimeControls. picture added. You have to install the design-time package DateTimeCtrlsDsgn. We have this documented (sometimes we don't forget :) ) http://wiki.freepascal.org/Lazarus_1.8.0_release_notes#DateTimeCtrls_split_into

Re: [Lazarus] Synedit tab

2017-02-06 Thread Ondrej Pokorny via Lazarus
On 06.02.2017 11:20, Michael Schnell via Lazarus wrote: I tried to open an old project I once started to test using SynEdit. It does compile and work, but when trying to see the form I get an messages of not installed components. In fact the "sysEdit" tab that is described in the Wiki is not se

Re: [Lazarus] Widget set definitions

2017-02-13 Thread Ondrej Pokorny via Lazarus
On 13.02.2017 10:23, Mark Morgan Lloyd via Lazarus wrote: Presumably LCLQT and the rest are defined somewhere in the IDE or LCL, but where can I find this so that I can make sure that my code's kept in step? They are defined in the LCL package. See "package options -> usage -> custom" and "Co

Re: [Lazarus] TaskDialog asking

2017-02-15 Thread Ondrej Pokorny via Lazarus
On 14.02.2017 22:21, Alexey via Lazarus wrote: - use Timer in taskdialog: I dont see event OnTimer or smth (flag for timer exists!) What is it good for? I see that Delphi has it: http://docwiki.embarcadero.com/Libraries/XE7/en/Vcl.Dialogs.TCustomTaskDialog.OnTimer I didn't add this feature

Re: [Lazarus] $IF for Linux and FreeBSD platforms?

2017-02-16 Thread Ondrej Pokorny via Lazarus
On 16.02.2017 12:16, Graeme Geldenhuys via Lazarus wrote: On 2017-02-16 10:54, Graeme Geldenhuys via Lazarus wrote: The IDE shows that CodeTools knows about the FreeBSD variable, but the code doesn't seem to work, Doing the following though does work, but it means I have to duplicate all $DEFI

Re: [Lazarus] IDE message-window - noise

2017-02-17 Thread Ondrej Pokorny via Lazarus
On 17.02.2017 17:47, Alexey via Lazarus wrote: I often make little change in code, press F9/CtrlF9, then, if error, Messages window (with errors info) pops up AND goes to foreground. It's vary bad- that it makes foregnd, coz I cannot change code by keyboard. I must close Msg window then. Only

Re: [Lazarus] IDE message-window - noise

2017-02-17 Thread Ondrej Pokorny via Lazarus
On 17.02.2017 17:52, Alexey via Lazarus wrote: On 17.02.2017 19:50, Ondrej Pokorny via Lazarus wrote: IDE Options -> Messages Window -> Focus messages at compilation I know- it DONT work: i have it unchecked on 2 PCs. already. and still foreground Msg wnd. This shouldn't happ

Re: [Lazarus] Always on top: Object Inspector and Message Window

2017-02-19 Thread Ondrej Pokorny via Lazarus
On 19.02.2017 18:02, Bart via Lazarus wrote: On 2/19/17, kapibara via Lazarus wrote: I am also using XFCE, but on Debian 9 Please open a bugreport about it. Mention the revision that caused this for you. Don't forget to mention you use XFCE, it may be significant. No need, the issue has bee

[Lazarus] LCL High-DPI

2017-02-20 Thread Ondrej Pokorny via Lazarus
I'd like to announce that I finished the concept of DPI scaling in Lazarus / LCL. It's quite easy for the programmer. Documented here: http://wiki.lazarus.freepascal.org/High_DPI (details are in "High DPI in Lazarus 1.7 and above"). 1.) I made the Lazarus IDE High-DPI aware - the IDE itself

Re: [Lazarus] LCL High-DPI

2017-02-21 Thread Ondrej Pokorny via Lazarus
On 21.02.2017 19:13, Donald Ziesig via Lazarus wrote: One more question. Where can I find documentation for TControl.ScaleCoord() or ScaleCoord96()? It is not in the CCR. I will search the source. The difference is in the scale basis: ScaleCoord96: hard-coded 96. ScaleCoord: DesignTimePPI (

Re: [Lazarus] LCL High-DPI minor IDE issues

2017-02-21 Thread Ondrej Pokorny via Lazarus
Strange, it looks good here (the latest revision): https://s17.postimg.org/9a9oa9cyn/Linux_120_DPI.png I've been working on High DPI today so maybe it was broken at some point during the day (?) Ondrej On 21.02.2017 19:03, Donald Ziesig via Lazarus wrote: Hi Ondrej! I just ran into two i

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

2017-02-21 Thread Ondrej Pokorny via Lazarus
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 missing, the normal icon is upscaled (with the worst algorithm, but that's what is available in the IDE). Request: s

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

2017-02-22 Thread Ondrej Pokorny via Lazarus
On 22.02.2017 8:37, Torsten Bonde Christiansen via Lazarus wrote: How do i use icon scaling for user project? The LCL doesn't offer an automatic feature for that. You have to do it yourself - use different image lists for different scaling or load external images in the wanted scaling. The ID

Re: [Lazarus] Laz v1.3 Ctrl+Click "jump to implementation" behaviour

2017-02-22 Thread Ondrej Pokorny via Lazarus
On 22.02.2017 10:38, Graeme Geldenhuys via Lazarus wrote: I know v1.3 is an old version, but for specific reasons I can't upgrade (yet). Anyway, in this version of Lazarus (running under Windows), if I Ctrl+LeftClick, it jumps to the declaration of a method/procedure/function, and not actual impl

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

2017-02-24 Thread Ondrej Pokorny via Lazarus
On 22.02.2017 17:55, Donald Ziesig via Lazarus wrote: Hi Ondrej! I downloaded the latest lazarus from svn. Then make bigide. When I started lazarus, the CoolBar is empty (except for the Save icon which is the correct size). The component icons are definitely bigger than the last version, but

Re: [Lazarus] Hi-DPI property

2017-02-24 Thread Ondrej Pokorny via Lazarus
On 23.02.2017 0:37, Alexey via Lazarus wrote: Maybe add ApplicationProperties.n property, for new feature- >Enable LCL scaling for your application DPI awarness in Project Options -> Application -> "Use LCL scaling (Hi-DPI). I forgot about that. I'll check if it makes sense - usually you

Re: [Lazarus] LCL High-DPI

2017-02-24 Thread Ondrej Pokorny via Lazarus
On 22.02.2017 23:18, Michael Van Canneyt via Lazarus wrote: I have tried this. I see no effect whatsoever ? I have even specially opened 2 IDEs. One which is more than a year old, and the newly compiled one. They look identical. I checked, and I found Application.Scaled := True; in the source

Re: [Lazarus] LCL High-DPI Watch List is Blank.

2017-02-24 Thread Ondrej Pokorny via Lazarus
On 22.02.2017 19:40, Donald Ziesig via Lazarus wrote: After adding a few watches, it looks like this: It worked correctly yesterday before my latest re-install for improved Hi-Res buttons. The toolbar seems to have the problem with empty icons. It's strange that you don't get any text eit

Re: [Lazarus] LCL High-DPI

2017-02-24 Thread Ondrej Pokorny via Lazarus
On 22.02.2017 23:18, Michael Van Canneyt via Lazarus wrote: On Mon, 20 Feb 2017, Ondrej Pokorny via Lazarus wrote: I'd like to announce that I finished the concept of DPI scaling in Lazarus / LCL. It's quite easy for the programmer. Documented here: http://wiki.lazarus.free

Re: [Lazarus] Detecting anomalous DPI

2017-02-25 Thread Ondrej Pokorny via Lazarus
On 25.02.2017 16:16, Mark Morgan Lloyd via Lazarus wrote: But it would be very useful if a program could log the /actual/ DPI for support purposes. You have these properties: TScreen.PixelsPerInch and TMonitor.PixelsPerInch. You surely can log them. Ondrej --

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

2017-02-26 Thread Ondrej Pokorny via Lazarus
On 26.02.2017 16:33, Vojtěch Čihák via Lazarus wrote: Wouldn't be better (or would it be possible) to have *.svg icons in resources and generate *.png icons on start of IDE? Now you add 150% and 200%, later will come 250, 300% as 4k, 5k and 8k monitors come to market. You are welcome to i

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

2017-02-26 Thread Ondrej Pokorny via Lazarus
On 26.02.2017 17:01, Donald Ziesig via Lazarus wrote: I agree. I just spent most of two days rescaling the icons with gimp, then registering them. It looks good, but I sure would not want to have to repeat for 200%, etc. Do you mean that you took Lazarus original 16px icons, scaled them up t

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

2017-02-27 Thread Ondrej Pokorny via Lazarus
On 22.02.2017 17:55, Donald Ziesig via Lazarus wrote: When I started lazarus, the CoolBar is empty (except for the Save icon which is the correct size). I fixed that. The component icons are definitely bigger than the last version, but appear more like 125% rather than the 150% that I would e

Re: [Lazarus] Animation library

2017-02-27 Thread Ondrej Pokorny via Lazarus
On 27.02.2017 14:50, Graeme Geldenhuys via Lazarus wrote: According to FPC's types.pp unit, the TRect doesn't have a Width and Height property. FPC 3.0.2 should have it (through a class helper). Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazaru

Re: [Lazarus] Lazarus Release 1.6.4

2017-03-01 Thread Ondrej Pokorny via Lazarus
On 01.03.2017 19:19, Martok via Lazarus wrote: Yes, this is caused by one of the two changes pf 3.0.2. See http://wiki.lazarus.freepascal.org/User_Changes_3.0.2#Classes Jürgen appears to already have the fixed version, with the correct ifdefs: {$if FPC_FULLVERSION >= 30100} Res:=FSrcS

Re: [Lazarus] Lazarus Release 1.6.4

2017-03-01 Thread Ondrej Pokorny via Lazarus
On 01.03.2017 21:57, Bo Berglund via Lazarus wrote: Can it be built with some other FPC version, like 3.0 too? Yes. Starting from 2.6.4 all FPC versions are supported. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.laz

[Lazarus] Mac users: High-DPI

2017-03-09 Thread Ondrej Pokorny via Lazarus
Hello, there is an open issue in Mantis: http://mantis.freepascal.org/view.php?id=31037 Mac OSX widgetsets (Carbon, Cocoa) used 72 DPI as default. This brought problems with the new LCL-scaling that depends on default 96 DPI. Therefore I decided to change the default DPI on these widgetsets

Re: [Lazarus] Mac users: High-DPI

2017-03-09 Thread Ondrej Pokorny via Lazarus
On 09.03.2017 16:10, Michael Ring via Lazarus wrote: I build Lazarus about every other week from trunk and use it on my Mac. I have no idea on how to solve the issue but when you want me to test something on trunk let me know... Yes :) If you use Carbon or Cocoa: how does the latest Lazarus ID

Re: [Lazarus] Mac users: High-DPI

2017-03-09 Thread Ondrej Pokorny via Lazarus
On 09.03.2017 19:42, Alexey via Lazarus wrote: On 09.03.2017 16:01, Ondrej Pokorny via Lazarus wrote: will have the ScaleFactor equivalent (I'll keep PixelsPerInch). Probably more changes will be needed. On Windows: DesignTimePPI=96 -> DesignTimeScaleFactor=100 <- On Mac: DesignTime

Re: [Lazarus] Mac users: High-DPI

2017-03-09 Thread Ondrej Pokorny via Lazarus
On 09.03.2017 21:37, Alexey via Lazarus wrote: On 09.03.2017 21:58, Ondrej Pokorny via Lazarus wrote: can you tell why the Mac font becomes bigger? Because Font: Height := -MulDiv(Size, *PixelsPerInch*, 72); If you change 72 here too to 96, it will be okay? Yes, it would behave like

Re: [Lazarus] Mac users: High-DPI

2017-03-09 Thread Ondrej Pokorny via Lazarus
On 09.03.2017 20:41, Michael Ring via Lazarus wrote: Cocoa Build crashes on startup (It was never stable for me, so no worries here.) Yes, Cocoa is unfortunately in alpha-state :( Thank you for your screenshots - everything looks fine. I assume Carbon is using some kind of virtual DPI so

Re: [Lazarus] Mac users: High-DPI

2017-03-10 Thread Ondrej Pokorny via Lazarus
On 10.03.2017 4:22, Alexey via Lazarus wrote: On 10.03.2017 01:01, Ondrej Pokorny via Lazarus wrote: But actually I now tested the font problem on Mac: Lazarus 1.6: Font.Size=8 (or any other value) results in different visual font height on Windows and Mac. Lazarus trunk: Font.Size=8 (or any

Re: [Lazarus] Mac Hi-DPI 2

2017-03-10 Thread Ondrej Pokorny via Lazarus
On 10.03.2017 6:38, Alexey via Lazarus wrote: seems I cannot see how scaling works on Mac. Reason: MacOS don't scale coords of controls, and don't have event "scale changed". It scales using Retina thing when i call video mode "nnn x nnn hi-dpi". It means: only DPI changes, coords dont change (

Re: [Lazarus] Mac Hi-DPI 2

2017-03-11 Thread Ondrej Pokorny via Lazarus
On 11.03.2017 17:58, zeljko wrote: Qt4 - MacOSX 10.8.6 32 bit (qt4 library uses carbon for it's widgets) Qt5 - MacOSX 10.11 64 bit (qt5 library uses cocoa for it's widgets). When Application.Scaled = False fonts of some controls are resized to smaller fonts (DesignTimePPI on both macs says 72 )

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Ondrej Pokorny via lazarus
On 13.08.2020 14:10, Juha Manninen via lazarus wrote: TextHint in TMemo works only with widgetset's native support. It works with QT5 but not with GTK2. The emulation for TMemo turned out to be tricky. It may never be implemented, unless somebody provides a patch of course. If I am not mistaken

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Ondrej Pokorny via lazarus
On 13.08.2020 15:15, Juha Manninen via lazarus wrote: On Thu, Aug 13, 2020 at 3:23 PM Ondrej Pokorny via lazarus wrote: If I am not mistaken, TEdit has TextHint-emulation for WidgetSets without native support. There is no reason why the same emulation shouldn't work with TMemo. It doe

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Ondrej Pokorny via lazarus
On 13.08.2020 17:58, Juha Manninen via lazarus wrote: On Thu, Aug 13, 2020 at 6:50 PM Juha Manninen wrote: AFAIK it is not emulated on Windows. LCL-Win32 reports LCLCapability flag lcTextHint. Actually it is emulated for older Windows versions. function TWin32WidgetSet.GetLCLCapability has :

Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Ondrej Pokorny via lazarus
On 13.08.2020 21:33, Juha Manninen via lazarus wrote: On Thu, Aug 13, 2020 at 9:54 PM Ondrej Pokorny via lazarus wrote: So for TMemo we need the emulated code, which works now with a minor bug (the TextHint is not visible when the form is shown the first time). Strangely the bug is present

Re: [Lazarus] Mac: High DPI TImage and TTrayIcon

2020-09-20 Thread Ondrej Pokorny via lazarus
On 20.09.2020 14:17, Tobias Giesen via lazarus wrote: Hello, I am finally trying to give my app some high DPI icons and graphics. Many thanks for the High DPI demos, which help a lot! However I have no idea if it is possible to have a high DPI TImage and TTrayIcon? Is there maybe some runtime

Re: [Lazarus] Is there a TSpinButton component in Lazarus?

2020-09-20 Thread Ondrej Pokorny via lazarus
On 21.09.2020 00:49, Bo Berglund via lazarus wrote: When I thought that I was close to getting through all of the problems porting an application from Delphi (I think D7-D2007) to FPC/Lazarus I ran across TSpinButton, which is located on a form where config items are set up. Since Lazarus is unab

Re: [Lazarus] Debugging in Lazarus, cannot inspect values at breakpoints...

2020-09-30 Thread Ondrej Pokorny via lazarus
On 30.09.2020 10:55, Michael Van Canneyt via lazarus wrote: Does Lazarus offer the functionality Delphi has (since quite some time, I might add):  custom debug info visualizers ? See http://docwiki.embarcadero.com/RADStudio/Sydney/en/Debugger_Visualizers Seems like a useful addition. Don't kno

Re: [Lazarus] Debugging in Lazarus, cannot inspect values at breakpoints...

2020-09-30 Thread Ondrej Pokorny via lazarus
On 30.09.2020 11:33, Michael Van Canneyt wrote: On Wed, 30 Sep 2020, Ondrej Pokorny via lazarus wrote: Yes, I implemented them, IIRC. Don't remember the details, though. I added TDate, TDateTime and TTime formatters. It was quite a simple addon, should be easy to find in the sources.

Re: [Lazarus] Debugging in Lazarus, cannot inspect values at breakpoints...

2020-09-30 Thread Ondrej Pokorny via lazarus
On 30.09.2020 12:34, Martin Frb via lazarus wrote: On 30/09/2020 11:54, Ondrej Pokorny via lazarus wrote: Tooltip evaluation: works for me Watches: works for me Local Variables: doesn't work for me - strange, I have to re-check. I thought it worked here. Locals do not have the type info

Re: [Lazarus] Feature Request: Override/Implement methods

2020-10-08 Thread Ondrej Pokorny via lazarus
On 08.10.2020 02:02, Mattias Gaertner via lazarus wrote: As for overrides: Insert a new line in the class declaration, Ctrl+Space, select the parent method. This will create an override. And the same goes for interfaces. Ctrl+Space offers methods from interfaces as well. Ondrej -- _

Re: [Lazarus] Win 7 issue / Re: -dWINDOWS_LIGATURE [[Re: Font ligatures support]]

2020-10-09 Thread Ondrej Pokorny via lazarus
On 09.10.2020 04:33, Martin Frb via lazarus wrote: It might be dead simple (at least I hope) {$IFDEF WINDOWS_LIGATURE} function GetCharacterPlacementW(hdc: HDC; lpString: LPCWSTR; nCount, nMaxExtend: Integer; var lpResults: GCP_RESULTSW; dwFlags: DWORD): DWORD; stdcall; external 'gdi32' name '

Re: [Lazarus] Win 7 issue / Re: -dWINDOWS_LIGATURE [[Re: Font ligatures support]]

2020-10-09 Thread Ondrej Pokorny via lazarus
On 09.10.2020 14:11, Martin Frb via lazarus wrote: On 09/10/2020 09:06, Ondrej Pokorny via lazarus wrote: But the ligatures are not very promising. I get ':=' as ligature but nothing else. You probably will see more inside comments or strings, or if the highlighter is off. In m

Re: [Lazarus] AutoCommit

2020-11-13 Thread Ondrej Pokorny via lazarus
Usually we try to use the "default" feature of the newly added properties so that they are streamed only when really set and used. When they are not used, the LFM can still be loaded in a legacy version of Lazarus because the new properties are not streamed. Ondrej On 13.11.2020 17:47, Micha

Re: [Lazarus] AutoCommit

2020-11-13 Thread Ondrej Pokorny via lazarus
On 13.11.2020 22:37, Michael Van Canneyt via lazarus wrote: On Fri, 13 Nov 2020, Ondrej Pokorny via lazarus wrote: Usually we try to use the "default" feature of the newly added properties so that they are streamed only when really set and used. When they are not used, the LFM ca

Re: [Lazarus] AutoCommit

2020-11-13 Thread Ondrej Pokorny via lazarus
On 13.11.2020 21:23, Juha Manninen via lazarus wrote: On Fri, Nov 13, 2020 at 6:19 PM Larry Dalton via lazarus mailto:lazarus@lists.lazarus-ide.org>> wrote: So we lose some backwards portability? IIRC it has been called "forward compatibility" as opposed to "backward compatibility". Bac

Re: [Lazarus] AutoCommit

2020-11-14 Thread Ondrej Pokorny via lazarus
On 14.11.2020 11:26, Michael Van Canneyt wrote: On Sat, 14 Nov 2020, Ondrej Pokorny wrote: Then I saw the next chapter "Overriding properties". It wrongly described redeclaring of properties as overriding. I fixed that as well in r1778. I think the difference is rather artificial, but if you

Re: [Lazarus] AutoCommit

2020-11-14 Thread Ondrej Pokorny via lazarus
On 14.11.2020 18:02, Michael Van Canneyt via lazarus wrote: On Sat, 14 Nov 2020, Sven Barth via lazarus wrote: No, cause their intended default value could be True. Thus no special handling for them. You can of course say the same for all other types for which an implicit 'default' is impleme

Re: [Lazarus] Default project ?

2020-11-18 Thread Ondrej Pokorny via lazarus
On 18.11.2020 09:04, Bart via lazarus wrote: On Wed, Nov 18, 2020 at 8:43 AM Michael Van Canneyt via lazarus wrote: If you tell the IDE not to reload the last project when starting, it creates a default GUI application. Since 99,99% of my programs are console programs, And it would be nice if

Re: [Lazarus] error in https://www.freepascal.org/docs-html/rtl/math/floor.html

2020-11-19 Thread Ondrej Pokorny via lazarus
On 19.11.2020 13:23, Dr Engelbert Buxbaum via lazarus wrote: the example on the bottom was apparently copied from the documentation of the ceil function. The results were changed for floor, but the function call was not. Correct, thanks for reporting, I fixed that. BTW, this is FPC documenta

Re: [Lazarus] Default project ?

2020-11-19 Thread Ondrej Pokorny via lazarus
On 19.11.2020 18:07, Michael Van Canneyt via lazarus wrote: I'll post a feature request in the bugtracker. Yes, that is the best you can do :) Ondrej -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/la

<    1   2   3   4   5   >