Re: [Lazarus] Insufficient keyboard modifiers support in IDE

2017-05-11 Thread Graeme Geldenhuys via Lazarus
On 2017-05-11 13:47, Alexey via Lazarus wrote: Hm, on OSX, IDE shows key grab dialog [in keymapping opts] with additional checkbox, "Meta". It is what yo need? Attached is a screenshot of what I see. Both in Lazarus v1.7 and v1.9 using the IDE compiled with LCL-GTK2. Note that there is che

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

2017-05-11 Thread Graeme Geldenhuys via Lazarus
On 2017-05-11 13:03, Mattias Gaertner via Lazarus wrote: Maybe you altered some options? Editor options / Mouse / Advanced / Gutter / Overview Thanks Mattias, that did the trick. I had nothing defined under the "Overview" section - both under Linux and FreeBSD. Regards, Graeme -- __

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

2017-05-11 Thread Graeme Geldenhuys via Lazarus
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, running under CentOS 6.6. Maybe I should update my Lazarus? I then tested m

[Lazarus] Insufficient keyboard modifiers support in IDE

2017-05-11 Thread Graeme Geldenhuys via Lazarus
Hi, I'm using an Ergodox keyboard, and have a shortcut layer setup in my keyboard layout. This allows me a single key press, yet sends a complex key sequence to the OS. The same can be achieved with normal keyboards and some extra software. This is extremely useful, and more about that can b

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

2017-05-11 Thread Graeme Geldenhuys via Lazarus
On 2017-05-11 10:21, Martin Frb via Lazarus wrote: An overview of the entire file (all lines) It’s amazing all the functionality (information wise) in such a little widget. :) Now all that remains is to make it clickable, so you jump to the part of the file where you clicked. Regards, G

Re: [Lazarus] visual appearance of ReadOnly state widgets

2017-05-10 Thread Graeme Geldenhuys via Lazarus
On 2017-05-10 17:21, zeljko wrote: For example in fpGUI read-only widgets look visibly different. See attached animated GIF. Looks pretty wrong to me. It's big difference between ReadOnly and Enabled. Well, they visually indicate to the end-user the ReadOnly or Enabled state, without the user

Re: [Lazarus] visual appearance of ReadOnly state widgets

2017-05-10 Thread Graeme Geldenhuys via Lazarus
On 2017-05-10 16:05, Alexey via Lazarus wrote: I suggested pch [gray color for disabled] for Grids, not accepted yet. Can do pch for Treeview and etc. Thanks for your feedback and warning about some controls with Enabled = False state. Regards, Graeme --

Re: [Lazarus] visual appearance of ReadOnly state widgets

2017-05-10 Thread Graeme Geldenhuys via Lazarus
On 2017-05-10 15:08, Alexey via Lazarus wrote: It is made like in Delphi's r/o combobox. Well, then both are broken. In Lazarus better use Enabled:=false and it has indication for some controls. 1) The problem with Enabled = False is that in then greys the text too. Thus making in very

Re: [Lazarus] visual appearance of ReadOnly state widgets

2017-05-10 Thread Graeme Geldenhuys via Lazarus
On 2017-05-10 15:26, Vojtěch Čihák via Lazarus wrote: your fpGUI read-only controls looks like disabled, which may be confusing. In fpGUI, with Enabled = False, the text is greyed out too. Same for buttons in ComboBoxes, Edit Button widgets etc. In read-only mode the text is still in Black (o

[Lazarus] visual appearance of ReadOnly state widgets

2017-05-10 Thread Graeme Geldenhuys via Lazarus
Hi, Is it normal for read-only LCL widgets to look identical to their Read/Write state? For example in fpGUI read-only widgets look visibly different. See attached animated GIF. But with a LCL application I'm working on, read-only widgets don't have any indication that they are read-only at all.

Re: [Lazarus] TColorButton gives errors in console output

2017-05-08 Thread Graeme Geldenhuys via Lazarus
On 2017-05-08 18:35, Alexey via Lazarus wrote: >>> I presume this should not happen, and is a bug in LCL-GTK2? > Can you post somewhere small proj? I made proj with one btn, I don't see > this error. The usage is in part of a large form and project, but I'll see what I can do of course. I'll post

[Lazarus] TColorButton gives errors in console output

2017-05-08 Thread Graeme Geldenhuys via Lazarus
Hi, I have a form with many TColorButton widgets (defined in LCL's Dialog unit). Whenever I load that form, I see tons of errors as follows in the console window. $0071B5C5 line 729 of lazloggerbase.pas $00800975 line 5554 of gtk2/gtk2winapi.i

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

2017-05-07 Thread Graeme Geldenhuys via Lazarus
On 2017-05-07 11:17, Florian Klaempfl via Lazarus wrote: > Then something is wrong/broken :) I rest my case. :-P Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

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

2017-05-07 Thread Graeme Geldenhuys via Lazarus
On 2017-05-07 09:10, Florian Klaempfl via Lazarus wrote: >> Yeah, that would be the logical thing to do. > > Why? What makes a string literal UTF-8? > As Mattias said, the fact that the source unit is UTF-8 encoded. Defined by a BOM marker, or -Fcutf8 or {$codepage utf8}. If the source unit is U

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

2017-05-05 Thread Graeme Geldenhuys via Lazarus
On 2017-05-05 12:49, Juha Manninen via Lazarus wrote: > A wrong information easily propagates, thus it is important to get this right. No worries, I agree. Thanks for correcting my terminology. Regards, Graeme -- ___ Lazarus mailing list Lazarus@lis

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

2017-05-05 Thread Graeme Geldenhuys via Lazarus
On 2017-05-05 12:17, Mattias Gaertner via Lazarus wrote: > I wonder if it would help if FPC would store UTF-8 string literals as > UTF-8 Yeah, that would be the logical thing to do. FPC not doing that is what really confused me. Regards, Graeme --

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

2017-05-05 Thread Graeme Geldenhuys via Lazarus
On 2017-05-05 11:55, Jürgen Hestermann via Lazarus wrote: > I use UTF-8 internally and > convert to/from UTF-16 for all Windows API functions and > I never found any problem with it. > The time that the API functions requires is so much longer than the > time for string conversion that it does not

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

2017-05-05 Thread Graeme Geldenhuys via Lazarus
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 functions (which LCL does). SetMultiByteConversionCodePage(CP_UTF8); SetMulti

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

2017-05-05 Thread Graeme Geldenhuys via Lazarus
On 2017-05-05 11:01, Michael Van Canneyt via Lazarus wrote: > We claim Delphi compatibility. > So IMHO we must provide a UTF-16 Delphi compatible RTL. In the end it’s about supporting Unicode. Does it really matter what internal encoding it is to achieve the “Unicode support” goal? Regards, G

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

2017-05-05 Thread Graeme Geldenhuys via Lazarus
On 2017-05-05 10:41, Mattias Gaertner via Lazarus wrote: > I wonder what they do when you need to access the raw 8-bit file names, OSX, iOS, Android and Linux all use UTF-8 as standard, so filename access is not going to be any problem. Windows is moving more and more towards UTF-16 everywhere, s

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

2017-05-05 Thread Graeme Geldenhuys via Lazarus
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 yet. These are the exceptions I was talking ab

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

2017-05-05 Thread Graeme Geldenhuys via Lazarus
On 2017-05-05 10:17, Ondrej Pokorny via Lazarus wrote: > I don't know about 3.0.x but you can do it in trunk 3.1.1. I posted a > patch for it (r34475). Fantastic! Glad to see somebody was thinking in the same train of thought as I did. :) Is that scheduled to be back-ported to FPC 3.0.x? Regar

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

2017-05-05 Thread Graeme Geldenhuys via Lazarus
On 2017-05-05 09:59, Michael Schnell via Lazarus wrote: > (Most obvious drawback: not flexibly typed TStrings.) I know not everybody likes Generics, but that is where I see Generics could come in very handy. A single TStrings implementation that supports multiple string types. Or just implement a

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

2017-05-05 Thread Graeme Geldenhuys via Lazarus
On 2017-05-05 09:31, Kostas Michalopoulos via Lazarus wrote: > After all, BMP does include practically all languages used today. The bottom line: Unicode Standard <> BMP only! If you think that, then rather promote your application as a UCS-2 compliant application, not a Unicode compliant app

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

2017-05-05 Thread Graeme Geldenhuys via Lazarus
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 follow FPC 3.x development much, and I was too confused wi

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

2017-05-05 Thread Graeme Geldenhuys via Lazarus
On 2017-05-05 00:15, Mattias Gaertner via Lazarus wrote: > I added a FAQ: > http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus#What_happens_when_I_use_.24codepage_utf8.3F Ah, thanks for that explanation. > AFAIK you are using UTF-8 in AnsiString in FPC 2.6.4. That works in > many cas

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

2017-05-04 Thread Graeme Geldenhuys via Lazarus
On 2017-05-04 21:53, Juha Manninen via Lazarus wrote: > It is briefly explained here: I haven't been following FPC 3.x development much because I think the Unicode changes are terribly confusing. A case in point. Looking at the Wiki page you listed, I read the following: " Since FPC 3.0 you mus

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

2017-05-04 Thread Graeme Geldenhuys via Lazarus
On 2017-05-04 15:56, Juha Manninen via Lazarus wrote: > I have seen comments saying that treating UTF-16 as fixed width > encoding is OK because the characters outside BMP are so rare. It is > like saying that a buggy spreadsheet app is OK because it calculates > the sums wrong only sometimes. I

Re: [Lazarus] Startup environment: to Gui, or not to GUI?

2017-05-04 Thread Graeme Geldenhuys via Lazarus
On 2017-05-04 11:18, Mark Morgan Lloyd via Lazarus wrote: > In case it helps anybody avoid wasted time: looking carefully at what > I've been doing, it turns out that it's not possible to make an > LCL-based program running on unix (i.e. with X11 etc.) And it wouldn’t be right if I didn’t offer

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

2017-05-04 Thread Graeme Geldenhuys via Lazarus
On 2017-05-04 09:56, Tony Whyman via Lazarus wrote: > I don't believe that string indexing even works for UTF8 strings at > present - at least not in a simple s[i] way. It's simple, STOP using index arrays into strings. It doesn't work for Unicode! Use specialised code-point iterators or somethin

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

2017-05-04 Thread Graeme Geldenhuys via Lazarus
On 2017-05-04 10:15, Graeme Geldenhuys via Lazarus wrote: > * A "character seen on the screen" could be made up of multiple code > points. eg: U+0065 (e) + U+0302 (^) gives you ê. So it might look like > one "character", it is *not*. Applying better typography to th

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

2017-05-03 Thread Graeme Geldenhuys via Lazarus
On 2017-05-03 20:47, Juha Manninen via Lazarus wrote: > If you share and edit the sources between Delphi and Lazarus then you > cannot use the full Unicode. Quite comical considering that the FPC team always makes such a big fuss about "we want Delphi compatibility", and now it seems to be worse

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

2017-05-03 Thread Graeme Geldenhuys via Lazarus
On 2017-05-03 13:37, Tony Whyman via Lazarus wrote: > Is Delphi/FPC string handling that much worse than 'C'? I can’t answer about C, but compared to Java and Qt’s solution, Delphi and FPC’s solutions are terrible and very confusing. Regards, Graeme --

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

2017-05-03 Thread Graeme Geldenhuys via Lazarus
On 2017-05-03 10:25, Ondrej Pokorny via Lazarus wrote: > 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 you have full unicode (utf-8) support. Or use the much better console alternatives. The

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

2017-05-03 Thread Graeme Geldenhuys via Lazarus
On 2017-05-03 01:21, Marcos Douglas B. Santos via Lazarus wrote: > Sorry about that. I stopped using Delphi at version 7, that uses ANSI. > I thought that Delphi nowadays was using UTF16. They (Delphi) loves to follow Microsoft. Files are stored in UTF-8 (this is the norm), but they use UTF-16 int

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

2017-05-03 Thread Graeme Geldenhuys via Lazarus
On 2017-05-02 09:30, Juha Manninen via Lazarus wrote: > From FPC's point of view our UTF-8 solution is a hack. FPC's point of view or Marco's point of view? Just curious - so what is FPC’s “correct” solution then for using UTF-8 and the preferred encoding? What's the alternative they offer? [ra

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Graeme Geldenhuys via Lazarus
On 2017-04-23 09:49, Michael Van Canneyt via Lazarus wrote: > *If* something needs to be removed, I would remove the listbox. > It only takes up a lot of space, and it's mostly empty. +1 It is takes up a lot of space with not much or no benefit at all. Regards, Graeme -- fpGUI Toolkit - a

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Graeme Geldenhuys via Lazarus
On 2017-04-23 09:37, Sandro Cumerlato via Lazarus wrote: > IMHO left ListBox is better because error states are visible even if tab is > not selected. That is why I said to place status icons in the tabs itself next to the text "Compiler", "FPC Sources" etc. It will accomplish the same thing. But

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Graeme Geldenhuys via Lazarus
On 2017-04-23 07:21, Alexey via Lazarus wrote: > This dialog has one tabset -from PageControl, and another - from left > Listbox/Listview. Confusing. Better leave one Listbox. I kind-of see what you mean - duplicated information. The idea was probably to have the "error state" available for all s

Re: [Lazarus] Form emulated Showmodal

2017-04-21 Thread Graeme Geldenhuys via Lazarus
On 2017-04-20 16:46, Alexey via Lazarus wrote: > It must return w/o waiting form to close (like show). But form must show > like modal (all others must disable, and on closing What you describe makes no sense. You want to show a for non-Modal, but want it to act like application modal. In that c

Re: [Lazarus] Why lazarus is sorely needed: A plea for stability and backwards compatibility

2017-04-20 Thread Graeme Geldenhuys via Lazarus
On 2017-04-20 10:02, Michael Van Canneyt via Lazarus wrote: > Total number of downloads: well over 1500. > Lines of code in our app: 1900 (spread over 20 files). That is totally insane. The worst dependency hell ever! And then one of those dependencies get broken or discontinued and your are scre

Re: [Lazarus] Quick Video: A Web Application

2017-04-20 Thread Graeme Geldenhuys via Lazarus
On 2017-04-20 08:54, Santiago A. via Lazarus wrote: > Of course, GUIs are massive time consuming. Have you ever create a form > by hand in runtime? Yes, many times. If you want to see the real ease of that (without needing a GUI Designer), then take a look at Java's MiGLayout layout engine. Absolu

Re: [Lazarus] Quick Video: A Web Application

2017-04-19 Thread Graeme Geldenhuys via Lazarus
On 2017-04-19 15:58, Michael Schnell via Lazarus wrote: > Lazarus would b able to seamlessly create such programs (even more up to > date, versatile and fast: using WebAssembly compiled from Pascal instead > of hand crafted Java Script). I believe that is what Michael van Canneyt is working on.

Re: [Lazarus] Quick Video: A Web Application

2017-04-19 Thread Graeme Geldenhuys via Lazarus
On 2017-04-19 14:54, Anthony Walter via Lazarus wrote: > This isn't a free pascal or lazarus project, but something I wrote using > typescript quite a while ago. That's very impressive. I'm still amazed at what is actually possible via a web browser - other than just viewing web pages. Thanks for

[Lazarus] Code formatting help needed with Case statement

2017-04-19 Thread Graeme Geldenhuys via Lazarus
Hi, I'm using the built-in JEDI Code Formatter. When I format my code, the case statement ends up looking as follows: case Visited.ObjectState of posCreate: begin // my code goes here end; posUpdate: begin // my code goes here end; po

Re: [Lazarus] Modifying the "File -> New Unit" template

2017-04-11 Thread Graeme Geldenhuys via Lazarus
On 2017-04-11 11:46, Mattias Gaertner via Lazarus wrote: > Right click in the IDE coolbar on the "New unit" button to select > another template. I meant I want to modify the code that Lazarus IDE gives once I click “File -> New Unit”. I don't want a completely different template. eg: this is the d

[Lazarus] Modifying the "File -> New Unit" template

2017-04-11 Thread Graeme Geldenhuys via Lazarus
Hi, Is there a way to modify the standard “file -> new unit” code template that is used? Or is what we see hard-coded into the Lazarus IDE executable? I'm using Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-gtk 2 Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal h

Re: [Lazarus] Startup environment: to Gui, or not to GUI?

2017-04-11 Thread Graeme Geldenhuys via Lazarus
On 2017-04-11 10:15, Mark Morgan Lloyd via Lazarus wrote: > Is there an orthodox way that a Lazarus program can very early on look > at how it's been started and decide whether it can usefully fall back to > a text mode, e.g. to display help info on stdout rather than a messagebox? In the past I

Re: [Lazarus] Change in source editor behaviour ?

2017-03-30 Thread Graeme Geldenhuys via Lazarus
On 2017-03-30 22:21, silvioprog via Lazarus wrote: > This has happened to me too. :-) And to me. I removed the key mapping to get rid of the problem. Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.

Re: [Lazarus] Lazarus IDE uses old keyboard layout after OS changed it.

2017-03-29 Thread Graeme Geldenhuys via Lazarus
On 2017-03-29 11:47, Mattias Gaertner via Lazarus wrote: > It works here on LCL-GTK2 Ubuntu. Umm. I can give more details on the VM I see this happen the most. I'm running CentOS 6.6 using JWM window manager and have two scripts that I run to switch keyboard layouts. Here is one such script. ===

[Lazarus] Lazarus IDE uses old keyboard layout after OS changed it.

2017-03-29 Thread Graeme Geldenhuys via Lazarus
Hi, Is this a known issues? If I run Lazarus IDE (LCL-GTK2) on either Linux or FreeBSD, and say my keyboard layout is set to US. Now if I change the keyboard layout to say Dvorak while Lazarus IDE is open, then Lazarus IDE still uses the US layout (I think), while the rest of the OS and any runnin

Re: [Lazarus] Where can I get the component lazpdf?

2017-03-24 Thread Graeme Geldenhuys via Lazarus
On 2017-03-24 18:34, frans via Lazarus wrote: > There is a new component available to create pdf fies, lazpdf. I don't know about the code from the magazine, but I can say that there is now a PDF engine included as standard with FPC 3.0.2 and later, in the fcl-pdf directory. Regards, Graeme -

Re: [Lazarus] Support for lldb ?

2017-03-19 Thread Graeme Geldenhuys via Lazarus
On 2017-03-18 13:20, Michael Van Canneyt via Lazarus wrote: > Is support for lldb for Lazarus planned ? Maybe it's time the fpdebug (native Object Pascal debugger) gets some more attention, or the FPC team starts implementing there own debugger. What good is a compiler without a debugger (somethin

Re: [Lazarus] Support for lldb ?

2017-03-19 Thread Graeme Geldenhuys via Lazarus
On 2017-03-18 13:20, Michael Van Canneyt via Lazarus wrote: > After 2 days of struggle trying to get gdb to work on mac os sierra, > I've given up. Apple clearly wants you to use lldb. I feel your pain, but at the hardware level. G*D DAMN APPLE! They are driving me insane! What an evil company, pu

Re: [Lazarus] https website for Lazarus

2017-03-16 Thread Graeme Geldenhuys via Lazarus
On 2017-03-13 21:50, Marc Weustink via Lazarus wrote: > It is one of my plans to enable it for the lazarus sites. And now with Firefox 52, it gives you a "in your face" warning that you are logging into a unsecure website. Only only the crossed out padlock in the URL, but also a popup warning bel

Re: [Lazarus] https website for Lazarus

2017-03-16 Thread Graeme Geldenhuys via Lazarus
On 2017-03-14 12:07, Anthony Walter via Lazarus wrote: > If you have a subject you want people to explore, you need to > represent it well. Apple does a lot of things wrong (these days), but they also do a lot of things right when it comes to design. Using good Typography (via CSS only) can look

Re: [Lazarus] https website for Lazarus

2017-03-14 Thread Graeme Geldenhuys via Lazarus
On 2017-03-14 10:38, Anthony Walter via Lazarus wrote: > I just thought I'd share my experience with http://www.getlazarus.org > I added https to it a few months ago using let's encrypt. The experience > was pretty easy. Indeed, Let's Encrypt is really easy to use and implement. > The only hiccu

Re: [Lazarus] JCF not formatting uses clause

2017-03-13 Thread Graeme Geldenhuys via Lazarus
On 2017-03-13 13:06, Graeme Geldenhuys via Lazarus wrote: > This seems like a bug in JCF (include with Lazarus), because I can run > the original jcfGui.exe binary from the original JCF project on > SourceForge, and it correctly formats the below code, and aligns the > uses clause li

[Lazarus] JCF not formatting uses clause

2017-03-13 Thread Graeme Geldenhuys via Lazarus
Hi I have the following unit. No matter what I try, I can't get JCF to correct the indentation of the uses clause shown below. Anybody know what setting I need to change - or is this not supported in Lazarus's JCF? This seems like a bug in JCF (include with Lazarus), because I can run the origina

Re: [Lazarus] Mac users: High-DPI

2017-03-10 Thread Graeme Geldenhuys via Lazarus
On 2017-03-09 21:25, Alexey via Lazarus wrote: > No problem so? Something different. See attached screenshot. You got to laugh at Canonical (ie: Ubuntu) for thinking this is a good design! The menu and window title all being garbled. Can't they just leave menus the way they were - or if they want

Re: [Lazarus] Animation library

2017-03-09 Thread Graeme Geldenhuys via Lazarus
On 2017-03-09 16:11, Lars via Lazarus wrote: > > Except for the fact that VM's suffer from corrupt hard drive file > problem. Not a problem if you run a ZFS RAID-Z1 (which I do), or RAID-Z2 or RAID-Z3 environment. Read a bit (or look on YouTube) about ZFS - it's f**ken brilliant! A file-system r

Re: [Lazarus] Mac users: High-DPI

2017-03-09 Thread Graeme Geldenhuys via Lazarus
On 2017-03-09 15:10, Michael Ring via Lazarus wrote: > A Hackintosh could be an alternative for you, haven't used one for a > longgg time but installation was quite straightforward. I believe the last few releases of VirtualBox allows you to install OSX without requiring a hacked OSX

Re: [Lazarus] Animation library

2017-03-08 Thread Graeme Geldenhuys via Lazarus
On 2017-03-08 18:35, Lars via Lazarus wrote: > When I finally get around to installing freebsd, if I can remember. JWM runs on any X11 system... Linux, FreeBSD, Solaris etc. But yes, FreeBSD is a brilliant choice. I much prefer it over Linux too. > What do you do when you need to run a Windows la

Re: [Lazarus] Animation library

2017-03-08 Thread Graeme Geldenhuys via Lazarus
I replied in a private email. Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Animation library

2017-03-07 Thread Graeme Geldenhuys via Lazarus
On 2017-03-07 19:02, Lars via Lazarus wrote: > Do you use JWM just for testing, or JWM all the time for all work? I've been using JWM non-stop for the last 4 years! I'll never return to a bloated "desktop environment" again. Things I like about it: * I only activate the global shortcuts I need l

Re: [Lazarus] Animation library

2017-03-01 Thread Graeme Geldenhuys via Lazarus
On 2017-03-01 19:47, José Mejuto via Lazarus wrote: > I wish to know if somebody think this is useful, to expand it, or just > don't take more time developing it and keep it to my projects. By all means please do continue if you have the time and energy. :) We were simply testing your work - it's

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

2017-02-28 Thread Graeme Geldenhuys via Lazarus
On 2017-02-28 19:37, Lars via Lazarus wrote: > can someone explain why you would use "$IF defined" instead of $IFDEF... In that case a piece of code applied to both Linux and FreeBSD platforms. I didn't see the need to duplicate the code with IFDEF statements - thus making code management more wor

[Lazarus] Jedi Code Formatter (JCF) issues

2017-02-28 Thread Graeme Geldenhuys via Lazarus
Hi, Is there an actual JCF (included with Lazarus) maintainer? I've recently been using it quite a bit and noticed a couple of problems. I'll obviously try and fix them myself (free time is very limited, but I'll try my best). The two most important ones for me: * Some code formatting is not app

Re: [Lazarus] Animation library

2017-02-27 Thread Graeme Geldenhuys via Lazarus
On 2017-02-27 13:53, José Mejuto via Lazarus wrote: > > Correct, swapped compilers :-( a few days ago :-(. Just change > declaration of NRect from TRect to TAnimationRect and a bit below the: Before I read your reply I simply adjusted the code as follows (which worked): NRect.Right := NRect

Re: [Lazarus] Animation library

2017-02-27 Thread Graeme Geldenhuys via Lazarus
On 2017-02-27 12:55, José Mejuto via Lazarus wrote: > It has been tested with Lazarus 1.6 and fpc 3.0.0 in Windows, but Linux > should work also. I tried to compile the "Animated Controls Sample" project and got the following errors under 64bit FreeBSD using FPC 3.0.1 ==

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

2017-02-27 Thread Graeme Geldenhuys via Lazarus
On 2017-02-27 07:25, Kostas Michalopoulos via Lazarus wrote: > IMO the > best approach for vector icons is what Haiku OS is doing by using a custom > icon format that is designed for small sizes and -more importantly- > different elements in an icon can have a LOD range Indeed, Haiku came up with

Re: [Lazarus] Format code on Save

2017-02-23 Thread Graeme Geldenhuys via Lazarus
On 2017-02-23 09:08, Mattias Gaertner via Lazarus wrote: >> Also, what does the AddHandlerOnSaveEditorFile()'s "AtLast" parameter >> mean and do? > > Prepend or append to the list of handlers. Ah, thank. That would come in handy if the IDE Options ever have a GUI to manage such actions. eg: Eclip

Re: [Lazarus] Feature Request: IDE user defined recorded macros

2017-02-23 Thread Graeme Geldenhuys via Lazarus
Scratch that! I should have done better searching before I posted. I apparently asked a similar question back in 2015 and found my answer here... http://wiki.freepascal.org/IDE_Window:_Editor_Macros Sorry for the noise. :-/ Regards, Graeme --

[Lazarus] Feature Request: IDE user defined recorded macros

2017-02-23 Thread Graeme Geldenhuys via Lazarus
Hi, Are there any plans to add user recorded macros support to Lazarus IDE? Many text editors have this built-in, and allows for a huge amount of “extending the editor’s features” without modify the underlying program's source code. We can simply record a sequence of actions, give it a name, assi

Re: [Lazarus] Format code on Save

2017-02-23 Thread Graeme Geldenhuys via Lazarus
On 2017-02-23 07:52, Mattias Gaertner via Lazarus wrote: >> But I noticed that with every save (Ctrl+S), the YourEvent gets called >> twice? Any idea why that is, and if it was by design or a bug? > > Check parameter SaveStep. I tried both sefsBeforeWrite and sefsAfterWrite - it made no differenc

Re: [Lazarus] How to get access to TKeyCommandRelationList via the IDE Interfaces?

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-02-23 00:08, Mattias Gaertner via Lazarus wrote: > You can list all registered names with Ah, that was very useful thanks. I managed to fin the 'jcfCurrentEditorWindow' command, but there doesn't seem to be a 'jcfAbout' command. So the latter will explain why my "proof of concept" didn't w

Re: [Lazarus] Format code on Save

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-01-27 14:37, Mattias Gaertner via Lazarus wrote: > I added the event. > > uses LazIDEIntf > > LazarusIDE.AddHandlerOnSaveEditorFile(@YourEvent); A bit late, but thank you for adding that functionality. I've now managed to create my IDE add-on and it works. But I noticed that with every

Re: [Lazarus] How to get access to TKeyCommandRelationList via the IDE Interfaces?

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-02-22 23:53, Graeme Geldenhuys via Lazarus wrote: > Umm, that's exactly what I tried, but in never finds the command. As a work-around I went through the MenuIntf, found the JCF menu. Iterated that until I found the 'jcfAbout' menu. I then call it's MenuItem.Click

Re: [Lazarus] How to get access to TKeyCommandRelationList via the IDE Interfaces?

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-02-22 23:45, Mattias Gaertner via Lazarus wrote: > uses IDECommands; > > Cmd:=IDECommandList.FindCommandByName('name'); > ExecuteIDECommand(Sender,Cmd.Command); Umm, that's exactly what I tried, but in never finds the command. The code is as follows: ===

[Lazarus] How to get access to TKeyCommandRelationList via the IDE Interfaces?

2017-02-22 Thread Graeme Geldenhuys via Lazarus
Hi, I'm creating a IDE add-on package and using the IDEIntf. Now I have access to the IDECommands global variable, but most of its methods are abstract. Searching the IDE source code it seems the IDECommands is often casted to TKeyCommandRelationList before methods are called. The TKeyCommandRel

Re: [Lazarus] "Procedure list" level depth dependend?

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-02-14 17:03, Jürgen Hestermann via Lazarus wrote: > Is there a restriction to show only functions of level depth 1? > If yes, why? > I did not found any options influencing this. I tested with Lazarus v1.3 and Lazarus v1.7. I can confirm that older Lazarus versions seem to limit itself to

Re: [Lazarus] "Procedure list" level depth dependend?

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-02-22 11:49, Jürgen Hestermann via Lazarus wrote: > > The shortcut is Alt+G. > > Yes, you are right. It's Alt+G (not Ctrl+G). Technically it's user configurable, so can be anything. ;-) Mine is set as Ctrl+G. :) Regards, Graeme -- ___ La

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

2017-02-22 Thread Graeme Geldenhuys via Lazarus
On 2017-02-22 10:35, Ondrej Pokorny via Lazarus wrote: > It wasn't a bug but a missing feature. You surely can find the issue on > mantis Fantastic, I'll take a look in Mantis. Thanks. Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazar

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

2017-02-22 Thread Graeme Geldenhuys via Lazarus
Hi, 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 implementation. Now in my Lazarus v1.3 I did see under IDE

Re: [Lazarus] Cannot commit to ccr

2017-02-20 Thread Graeme Geldenhuys via Lazarus
On 2017-02-20 09:25, Werner Pamler via Lazarus wrote: > Now I had the (straightforward...) idea to look for "sourceforge > service", and there's a lot of tickets on this issue > (https://sourceforge.net/p/forge/site-support/). So, hopefully they will > fix it soon... If only everybody used Git,

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

2017-02-16 Thread Graeme Geldenhuys via Lazarus
On 2017-02-16 11:18, Ondrej Pokorny via Lazarus wrote: > Well, you mixed up DEFINED and DECLARED macros. Dope!!! Thanks for spotting that. I need more coffee. ;-) Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key

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

2017-02-16 Thread Graeme Geldenhuys via Lazarus
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 $DEFINE lines in two places, which I don't r

[Lazarus] $IF for Linux and FreeBSD platforms?

2017-02-16 Thread Graeme Geldenhuys via Lazarus
Hi, Is the following allowed in LCL specific code? {$IFDEF LCLGTK2} {$IF declared(Linux) or declared(FreeBSD)} {$define something} {$endif} {$endif} The IDE shows that CodeTools knows about the FreeBSD variable, but the code doesn't seem to work, because later in the code the "something

Re: [Lazarus] Run parameters

2017-02-11 Thread Graeme Geldenhuys via Lazarus
On 2017-02-11 10:22, Michael Van Canneyt via Lazarus wrote: > Logically, I would I think these parameters belong in the .lps file ? I fully agree, they should be stored in the .lps - I don't care about lists or build modes and all that jazz. The accidental committing of user credentials into a cod

Re: [Lazarus] debugging interface method calls

2017-02-01 Thread Graeme Geldenhuys via Lazarus
On 2017-02-01 21:09, Ondrej Pokorny via Lazarus wrote: > > Having a real pascal debugger would be the killer feature. Indeed! > Do you know the state of fpDebug? Who does develop it? Do you? > https://github.com/graemeg/fpdebug doesn't show much recent progress :( The one on my github page is

Re: [Lazarus] debugging interface method calls

2017-02-01 Thread Graeme Geldenhuys via Lazarus
On 2017-02-01 20:27, David Emerson via Lazarus wrote: > > http://mantis.freepascal.org/view.php?id=30541 Thanks - no idea how you found that. :) You (or somebody else), please teach me how searching in Mantis works. The same goes for the Lazarus Forum. I can never find anything I search for - ev

Re: [Lazarus] debugging interface method calls

2017-02-01 Thread Graeme Geldenhuys via Lazarus
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. :-/ Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using F

Re: [Lazarus] debugging interface method calls

2017-02-01 Thread Graeme Geldenhuys via Lazarus
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, and that is very annoying indeed. I believe I alrea

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

2017-01-30 Thread Graeme Geldenhuys via Lazarus
On 2017-01-30 11:47, Mattias Gaertner via Lazarus wrote: > > It did correctly deduce the datatype Boolean, did it not? Yes it did. > The only missing thing is to place it at the right place, Indeed. The code I wrote was "BuildProject.Verbose := ...", so it should query the data type of the Bui

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

2017-01-30 Thread Graeme Geldenhuys via Lazarus
On 2017-01-30 11:37, Michael Van Canneyt wrote: > I'm not sure that I want the IDE to modify another class than the one I am > working in at the moment, when I press "code completion" ? Well, then maybe introduce another action - an intermediate step that the developer must confirm. Again, Eclips

[Lazarus] Feature Request: more intelligent code completion

2017-01-30 Thread Graeme Geldenhuys via Lazarus
Hi, I've using the Eclipse IDE for a while now, and the developer is really spoilt with intelligent code/class completion. I'm wondering if Lazarus IDE could benefit of some of those features too. For example - improved (more intelligent) code completion. I have this code: =

Re: [Lazarus] SVG Editor or Viewer

2017-01-30 Thread Graeme Geldenhuys via Lazarus
On 2017-01-30 04:39, Lars via Lazarus wrote: > Does anyone know of any Lazarus projects or code that views SVG files... As Adrian mentioned, AggPas (native Pascal port of Anti-Grain Geometry) supports SVG and an example is included. fpGUI's repository includes the most up to date (features and bug

Re: [Lazarus] Running an app on boot

2017-01-25 Thread Graeme Geldenhuys via Lazarus
On 2017-01-25 15:28, Santiago A. via Lazarus wrote: > fpgui needs a "graphic environment", Windows or X (or Mac?) . Doesn't it? There is a port to Ultibo that doesn't require X11 or GDI. Take a look at the section “Ultibo with fpGUI support” on http://fpgui.sourceforge.net/community.shtml Regar

Re: [Lazarus] Format code on Save

2017-01-25 Thread Graeme Geldenhuys via Lazarus
On 2017-01-25 14:15, Mattias Gaertner via Lazarus wrote: > on the current source editor and uses ReplaceLines, so it keeps all > marks and adds one undo step. Nice. That is much better indeed. So a 'before save' would then be the useful one. > An 'after save' could be added, but that would mean

Re: [Lazarus] Running an app on boot

2017-01-25 Thread Graeme Geldenhuys via Lazarus
On 2017-01-25 13:26, Paul Breneman via Lazarus wrote: > Or switch to a Raspberry Pi and use https://Ultibo.org ? And then you can also use fpGUI Toolkit to keep things small and “lite” (no large 3rd party libraries required or there dependencies. eg: GTK, Qt etc). Regards, Graeme -- ___

<    1   2   3   4   5   6   >