Re: [Lazarus] IDE Spotter

2018-09-24 Thread R0b0t1 via Lazarus
On Sun, Sep 23, 2018 at 1:16 PM, Michael Van Canneyt via Lazarus
 wrote:
>
> Hello,
>
> I've polished something that was started during the Lazarus Pro conference
> in Bonn the last days, the IDE Spotter (this is a "Working Title").
>
> The idea is to have a command box such as it exists in Atom or Visual code
> studio.
>
> Press ALt-Shift-P (or Meta-Shift-P on Mac) to access it.
>
> Type the command you wish (e.g. open), navigate with arrows or click on the
> correct match. The command will be executed. You can type multiple words.
> all parts must be matched (and are colorized).
>
> You can find the package under 'components/idespotter' in SVN.
> It should also work under 1.8.4/2.0rc1 for those that want to try it.
>
> There are some options under Tools - Options - Environment - IDE Spotter.
>
> Ideas for improvements are currently:
> - Shrink window list if the match list is "small".
> - Search in recent files (projects/units/packages)
> - ... ?
>
> Please testdrive it. Ideas for improvements/comments/bugreports welcome
> (well, the latter not so much ;)).
>
> Thanks go to James Ralston for pitching the idea, and Mattias for including
> it in SVN !
>
> Michael.

This is a great idea. My window manager, i3, works very well with a
feature like this. Sadly a lot of actions are application specific and
require that specific application to support "hinting" (to work with a
general solution) or to implement their own solution.

You may want to look at https://pwmt.org/projects/girara/, which
provides a vim-like input for an application. It finds use in Zathura
(PDF reader) and Jumanji (browser, not usable iirc).

Cheers,
R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Building a C (or possibly C++) program into a Lazarus app

2018-08-10 Thread R0b0t1 via Lazarus
I have some posts on the forum asking about similar questions. I was
told FPC object files will link just fine with GNU tools, so you
should be able to.

To me it seemed it would be easier to keep the codebase in C++ but
then call into the LCL. Sadly that is quite a bit off.

On Fri, Aug 10, 2018 at 9:44 AM, Mark Morgan Lloyd via Lazarus
 wrote:
> Is it possible to link a C or possibly C++ program into a Lazarus one by
> simply calling its main() function? Has anybody actually done this?
>
> I've got a couple of C/C++ programs which are based on stdin/stdout user
> interaction (no curses etc.) but have thoroughly unpleasant keyboard
> requirements and odd output encoding. I find myself wondering whether they
> could be given a more friendly frontend by wrapping them in a Lazarus app,
> with an on-screen keyboard similar to what's found on a tablet etc.
>
> I would, obviously, be able to rename main() if necessary, as well as I/O
> functions.
>
> --
> Mark Morgan Lloyd
> markMLl .AT. telemetry.co .DOT. uk
>
> [Opinions above are the author's, not those of his employers or colleagues]
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Crosscompile to Android on arm?

2018-07-25 Thread R0b0t1 via Lazarus
On Wed, Jul 25, 2018 at 3:10 PM, Bo Berglund via Lazarus
 wrote:
> On Wed, 25 Jul 2018 13:57:54 -0500, R0b0t1 via Lazarus
>  wrote:
>
>>https://wiki.gentoo.org/wiki/Project:Android
>
> That page does not contain a single instance of the words "pascal" or
> "lazarus".
> Seems like it is a dead end for my question about crosscompiling an
> *existing* fpc/lazarus application targeting Android on arm (=
> phones)...
>

My apologies, I was a bit confused. Mr. Breneman mentioned compiling
for Android from Android in one of his posts. If you really wanted to
do that, following the steps on that page is probably the easiest way
to accomplish it. Though now I think there are some other
distro-unpackers that will run on unrooted phones. Gentoo is probably
the best and has the most up-to-date software.

If you mean to go from x86[_64] -> Android then I am very interested
in the answer to this question. At most I found
http://wiki.lazarus.freepascal.org/Android_tutorial some time ago.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Crosscompile to Android on arm?

2018-07-25 Thread R0b0t1 via Lazarus
https://wiki.gentoo.org/wiki/Project:Android

On Wed, Jul 25, 2018 at 7:04 AM, Bo Berglund via Lazarus
 wrote:
> I have a GUI program developed in FPC/Lazarus x64 on Windows.
> It is an IoT device configuration application which would benefit from
> being portable, i.e. executable on an Android phone. The devices in
> question will be placed in locations where configuration would be
> easier from a phone.
>
> Before I start digging in to the multiple pages I have found on the
> fpc/Android subject I want to ask if it would be feasible to
> cross-compile my Windows application for Android phone use?
>
> I have used standard GUI controls in Lazarus for the visual parts and
> Indy10 (via indylaz) for the TCP/IP communications stuff.
>
> Any advice welcome!
> But if it turns out to be a learning path several weeks long it is
> probably not worth the effort...
>
>
> --
> Bo Berglund
> Developer in Sweden
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus still not usable with VNC under Raspbian

2018-04-29 Thread R0b0t1 via Lazarus
On Fri, Apr 27, 2018 at 4:05 AM, Joe via Lazarus
 wrote:
> Hi, community,
>
> on Pi computers under Raspbian controlled over VNC the Lazarus code editor
> doesn't recognize keystrokes with AltGr and therefore characters like {[]}\
> can't be put in. That's a known issue since 2016
> (https://bugs.freepascal.org/view.php?id=30544#c107874).
>

This sounds like an issue with VNC. Can you ask there? VNC needs to
accurately reproduce what you are typing for Lazarus to see it.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Cool IDE add-on idea

2018-04-24 Thread R0b0t1 via Lazarus
On Mon, Apr 23, 2018 at 10:53 AM, Santiago A. via Lazarus
 wrote:
> These studies show that the most efficient is toolbar; second, keyboard
> shortcuts; third, second level menu option. With the objection that
> shortcuts needs a lot of practice to be better than menu.
>

How well did those studies account for potentially incomparable
workflows? I think I agree with what I think to be their conclusion -
if you have two similar workflows, graphical navigation may be faster,
because it is easier to guide thought with.

But what if I can skip all of the intermediate steps and go straight
to the action? Lots of CLI interfaces especially are domain specific
languages, and the actions can be encoded into key combinations.


On Tue, Apr 24, 2018 at 12:28 PM, Graeme Geldenhuys via Lazarus
 wrote:
> Saying that, designing a UI in Lazarus or Delphi is obviously faster
> with a mouse. ;-) But I also know of layout managers in Java where
> visual designers are not needed, and you can knock-up a well designed
> and scalable UI in no time using only code (eg: MiG Layout).
>
> Back to Lazarus - there are some dialogs that totally annoying me
> because they were not designed with keyboard users in mind. ie: Wrong
> default actions, or no default actions, wrong default focus item,
> incorrect tab order etc. The "Source -> Enclose in IFDEF" dialog comes
> to mind. The Package windows too. Some of these I have tweaked locally
> to suite my needs better - that goodness for open source projects. Hell,
> you can't even configure/customise shortcuts in Delphi IDE!!!
>

The things in the last paragraph especially are what I do not like. It
may be that taking inspiration from either Visual Studio or JetBrains
IDEs would be a good idea.

I am willing to help, but not very familiar with the Lazarus codebase.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Google vs Oracle case - does it affect LCL ?

2018-04-15 Thread R0b0t1 via Lazarus
On Sun, Apr 15, 2018 at 12:58 PM, Dmitry Boyarintsev via Lazarus
 wrote:
> On Sun, Apr 15, 2018 at 1:24 PM, Michael Van Canneyt via Lazarus
>  wrote:
>>
>> Take a routine that converts an integer to a string: Why would you
>> force someone to change what is an obvious name, simply because someone
>> else already used it ?
>
>
> I don't think that API is reviewed on per routine basis.  API is reviewed as
> a whole.
> Also, in 2010 the first trial in US (if jurisdiction matters) court decision
> was that APIs cannot be copyrighted.
>

To further clarify in the case of Wine, reverse engineering for
interoperability and the results thereof can not violate any IP law.
So this could not possibly affect either Wine or the LCL.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Cool IDE add-on idea

2018-04-14 Thread R0b0t1 via Lazarus
On Sat, Apr 14, 2018 at 10:47 AM, Graeme Geldenhuys via Lazarus
 wrote:
> Hi,
>
> I just discover this add-on for Eclipse. Every time you use the mouse to
> do something, it pops up (without interrupting your workflow) and lists
> the keyboard shortcut you could have used to accomplish that same task
> you just did with the mouse.
>
> That's an excellent way to learn shortcuts - which ultimately should
> make you work faster (at least that is normally true for developers).
>
> I wouldn't even know where to start with such a add-on for Lazarus IDE,
> but I just thought I would mention it - in case somebody wants to take
> up the challenge.
>
> :-)
>
> Regards,
>   Graeme

I would be extremely thankful if anyone had the time to at least start
on this. One of my main complains with Lazarus/FPC is that it is IDE
centric. The IDE is not that bad, but it is kind of hard to integrate
into my normal desktop (a tiling window manager).

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Terminal Component Available

2018-04-12 Thread R0b0t1 via Lazarus
There is a bit more to adapt all features of cmd.exe, especially
colors. The interface is handled by a windows DLL and kind of clunky,
so you need to hook functions. That is why I was wondering if it had
already been done.

On Thu, Apr 12, 2018 at 1:50 PM, Mark Morgan Lloyd via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
> On 12/04/18 05:45, R0b0t1 via Lazarus wrote:
>
>> Did you ever try to make it cross platform? I only ask as I have notfound
>> a good way to embed either PowerShell or cmd.exe.
>
>
> I did it years ago for cmd.exe on Delphi, I think it used pipes in some
> form.
>
> --
> Mark Morgan Lloyd
> markMLl .AT. telemetry.co .DOT. uk
>
> [Opinions above are the author's, not those of his employers or colleagues]
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Terminal Component Available

2018-04-11 Thread R0b0t1 via Lazarus
On Tue, Apr 10, 2018 at 10:12 PM, Anthony Walter via Lazarus
 wrote:
> I'm am starting a new thread because I've completed my task.
>
> Here is a terminal component for Lazarus that is easy to reuse.
>
> https://cache.getlazarus.org/archives/terminal.7z
>
> To install, make sure you're on Linux with a Gtk2 copy of Lazarus. Open
> package terminaldsgn.lpk, install, and rebuild the IDE. You'll have a
> TTerminal component on your pallet. Drop it on a form, press run, and you
> have your own terminal program.
>
> Here is a longish video walk through of how it works:
>
> https://cache.getlazarus.org/videos/vte-finished.mp4
>
> The source code is completely free, copy left, if anyone wants to reuse it.
>
> Notes, you need to be using Linux and have libvte for gtk2 installed to use
> the component. You can be running other platforms, but you'll just see the
> design time surface it you're not on Linux.
>

I appreciate your work.

Did you ever try to make it cross platform? I only ask as I have not
found a good way to embed either PowerShell or cmd.exe.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Test this please

2018-03-26 Thread R0b0t1 via Lazarus
On Sun, Mar 25, 2018 at 11:22 PM, Anthony Walter via Lazarus
 wrote:
> Any feedback would be appreciated.
>

Bad:

1) The webpage is fixed width, or has a minimum width.
2) I can't view videos, but this may be me.
3) The popover for viewing file content could be replaced with opening
a browser window (usually a tab).
4) Not as shiny as some web services.

Good:

1) It works!
2) Doesn't look horrible (i.e. bare HTML).
3) Keyboard navigation, keyboard shortcuts. Maybe add some more in
this regard? I find this is what I miss the most with web content.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Translating a small C program to pascal (on lazarus)

2018-02-26 Thread R0b0t1 via Lazarus
On Mon, Feb 26, 2018 at 12:20 PM, Carlos E. R. via Lazarus
 wrote:
> Hopefully, one program translates most of the declarations, and another
> a good part of the code :-)
>

I doubt that in general a program exists to do what you want, as it
would require having a front end for the C language and then something
close to a decompiler for Pascal.

However, this thread did clue me in to h2pas, which I hope can be used
to convert STM's header files for the embedded target project.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Garbage writing to console

2018-02-24 Thread R0b0t1 via Lazarus
On Sat, Feb 24, 2018 at 5:17 AM, Juha Manninen via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
> On Fri, Feb 23, 2018 at 11:15 AM, R0b0t1 via Lazarus
> <lazarus@lists.lazarus-ide.org> wrote:
>> Not to take the thread offtopic, ...
>
> You took it offtopic anyway.
> UTF-8 works just fine. Please read this page :
>  http://wiki.freepascal.org/Unicode_Support_in_Lazarus
> and start a new thread if you did not understand something.
>

It will not happen again, sir. I am a stain upon this mailing list.

My question was not about UTF-8 support in Lazarus. I know it works.
My question was about interoperability with Windows. Theoretically
there are some serious issues; I figured I would get a better response
asking someone using UTF-8 with Windows compared to a general poll.

Remorsefully,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Garbage writing to console

2018-02-23 Thread R0b0t1 via Lazarus
On Fri, Feb 23, 2018 at 3:25 AM, Michael Van Canneyt via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
>
>
> On Fri, 23 Feb 2018, R0b0t1 via Lazarus wrote:
>
>> On Fri, Feb 23, 2018 at 2:29 AM, Ondrej Pokorny via Lazarus
>> <lazarus@lists.lazarus-ide.org> wrote:
>>>
>>> OK, you mean it's a wiki page issue. I just didn't understand how we
>>> could
>>> solve it in Lazarus :)
>>>
>>
>> I am interested in this thread because I was under the impression that
>> UTF-8 support in Windows is fundamentally broken and should not be
>> used (it interferes with the C libraries).
>>
>> Not to take the thread offtopic, but can anyone comment on this in
>> practice?
>
>
> Where did you get that from ?
>
> You can perfectly use UTF8 in FPC code, but when calling a windows API, you
> should a) convert UTF8 to UTF16 (or WideString). If you use the correct
> types,
>the compiler will do it for you most of the time.
> b) Use the *W variant of a Windows system call.
>

The combination of those is the largest part of why
http://utf8everywhere.org/ and many independent developers recommend
avoiding Window's implementation of UTF-8. It doesn't end up doing you
any good, because you typically can not set the whole system to use
UTF-8 (because it is broken).

The brokenness (described at
https://social.msdn.microsoft.com/Forums/vstudio/en-US/e4b91f49-6f60-4ffe-887a-e18e39250905/possible-bugs-in-writefile-and-crt-unicode-issues?forum=vcgeneral)
is due to the UTF-8 codepage causing Windows to report multibyte
characters as a single character, and stdio assuming one byte per
character.

The Chinese/Japanese mappings apparently had these problems as well,
but a workaround was added.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Garbage writing to console

2018-02-23 Thread R0b0t1 via Lazarus
On Fri, Feb 23, 2018 at 2:29 AM, Ondrej Pokorny via Lazarus
 wrote:
> OK, you mean it's a wiki page issue. I just didn't understand how we could
> solve it in Lazarus :)
>

I am interested in this thread because I was under the impression that
UTF-8 support in Windows is fundamentally broken and should not be
used (it interferes with the C libraries).

Not to take the thread offtopic, but can anyone comment on this in practice?

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Form events firing order and count

2018-02-20 Thread R0b0t1 via Lazarus
On Mon, Feb 19, 2018 at 7:09 AM, Ondrej Pokorny via Lazarus
 wrote:
> True words. IMO we can apply the same to LCL events: the order/count is an
> implementation detail and depends on the underlying widgetset.
>

I agree, and am glad to find this was brought up. On the other hand, I
think it would be good to know what is going on in the event loop of
the application. There are some inconsistencies in naming and how
threading "works" or does not work that I am still baffled by. This is
likely not a Lazarus issue, and may be something inherited from
Delphi.

I think the goal could be aided with a high level document on what is
going on, as I've had it explained to me a number of times but am
still confused.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus Console text

2018-02-09 Thread R0b0t1 via Lazarus
On Sat, Feb 10, 2018 at 1:10 AM, Wolf via Lazarus
 wrote:
> Hi
>
> What must I do to change font on the Lazarus console - not the Kubuntu
> console - to a monospace font, and how do I change font color there?
>

Sorry for the noise, but I am also very interested in an answer to
this. I would like to be able to customize Lazarus more, and/or not
use it when possible (admittedly lazbuild does a fairly good job).

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Doe fpc/lazarus already have System-Threading or is it planned

2018-02-02 Thread R0b0t1 via Lazarus
On Fri, Feb 2, 2018 at 10:26 AM, Zoë Peterson via Lazarus
 wrote:
> On 2/2/2018 10:19 AM, Zoë Peterson wrote:
>>
>> System.Threading requires anonymous methods, which Free Pascal doesn't
>> currently support.
>
>
> Oops, Sven's right, it mostly doesn't use anonymous methods, so this isn't a
> blocker.
>
>

I've been looking for a replacement to
http://www.omnithreadlibrary.com/ for a long time. If I remember, the
dealbreaker is the library's codebase making heavy use of anonymous
functions and procedures.

Does System.Threading expose an API that could take either code
references or anonymous methods? I'm very interested.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Windows touch input

2018-01-21 Thread R0b0t1 via Lazarus
Hello friend,

2018-01-21 13:36 GMT-06:00 AlexeyT via Lazarus :
> How does Laz support touch input [e.g. on Surface from MS]. Where to read
> about it in wiki?
>

For most input, touch events are turned into mouse events. The most
basic events are WM_GESTURE[1] (received by default) and WM_TOUCH[2]
(opt-in) messages. WM_TOUCH will receive pen events. You may also
access these events using raw input and the WM_INPUT message, though
details on this are not as forthcoming.

However, from Windows 8 onward, there is a pointer API which unifies
pointer (generic), touch, pen, mouse, and touchpad input. Look at the
WM_POINTER*[3] messages for more details. The most control is granted
with this API, and you can, for example, get the pressure of the pen
on the screen as well as its pitch, roll, and yaw relative to the
screen.

You might also be interested in stylus/pen input, but it is much more
complicated.[4] If you wish to use another writing recognition
library, or do not need one, then you should be able to access these
events via WM_TOUCH, WM_POINTER*, or WM_INPUT. There is also a COM
object called a RealTimeStylus.[5]

Cheers,
 R0b0t1

[1]: 
https://msdn.microsoft.com/en-us/library/windows/desktop/dd353242(v=vs.85).aspx
[2]: 
https://msdn.microsoft.com/en-us/library/windows/desktop/dd317341(v=vs.85).aspx
[3]: 
https://msdn.microsoft.com/en-us/library/windows/desktop/hh454903(v=vs.85).aspx
[4]: 
https://msdn.microsoft.com/en-us/library/windows/desktop/ms704172(v=vs.85).aspx
[5]: 
https://msdn.microsoft.com/en-us/library/windows/desktop/dd940549(v=vs.85).aspx
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus on Power8 (ppc64le)

2017-12-29 Thread R0b0t1 via Lazarus
On Thu, Dec 28, 2017 at 5:41 AM, Alfred via Lazarus
 wrote:
> Hello,
>
> I am trying to run Lazarus on a IBM Power8 (ppc64le), OS=Debian.
> Problem: it does not run.
> (it does start, but errors out on an illegal free() )
>
> Details.
>
> Command line apps compiled native on Power8 do run.
> Command line apps compiled cross-compiled from Windows to Power8 do run.
> FPC rtti tests run flawless on ppc64le.
>
> Most simple GUI (only an empty form) app cross-compiled does not run.
> But they also do not generate any error. They just start and stop without
> any effect or message.
> (compiled with all debug info and -O0)
>
> Debugging with gdbserver should work (server runs ok with app), if I had a
> gdb for ppc64le on Windows.
>
> Any ideas ?
>

I have access to a ppc64le machine, but how did you build FPC for
ppc64le? From x86_64, or?

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Utf8Tosys and SysToUtf8

2017-12-22 Thread R0b0t1 via Lazarus
On Thu, Dec 21, 2017 at 7:33 AM, Kamen Ketev via Lazarus
 wrote:
> The program is being compiled and started, but my Cyrillic text in over 100
> files in text DB comes out with ? - ??? How can I fix the problem?
>
> Regards,
> Kamen
>

Hello,

Can you provide code? I recently had to port a project forward like
this and made many of the changes you are making. I noticed no
problems.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus 1.8

2017-12-15 Thread R0b0t1 via Lazarus
These are true things.

On Thu, Dec 14, 2017 at 7:23 PM, Donald Ziesig via Lazarus
 wrote:
> Many thanks to all who worked on 1.8.0.  It looks great and works better.
>
> Don Ziesig
>
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Problem accessing the lazarus forums...

2017-12-03 Thread R0b0t1 via Lazarus
On Sun, Dec 3, 2017 at 5:29 PM, Bo Berglund via Lazarus
 wrote:
> On Sun, 3 Dec 2017 23:34:39 +0100, Teresa Williams via Lazarus
>  wrote:
>
>>> So,
>>> can someone here please tell me where I should find the fpc.cfg file.
>>> When Lazarus 1.6 starts up it complains about not finding it and
>>> suggest that I should point it to the file. But I don't know where...
>>>
>>
>>It's linux - why bother with Google (or Statpage for privacy).  Just use
>>
>>sudo find / -name 'fpc.cfg' -print
>>
>>or whatever variation you want.
>
> Well, I already tried variations of that and came up empty-handed:
> ~ $ sudo find / -name 'fpc.cfg' -print
> ~ $
>
> Any other suggestion?
> (What about the lazarus forum?)
>

The package mlocate contains the locate and updatedb commands, and
produces quick results.

I typically use find with grep, though that may be slower. But I have
more control of the results.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread R0b0t1 via Lazarus
Sorry list, I'm trying to stop my double posting.

On Tuesday, November 28, 2017, R0b0t1 <r03...@gmail.com> wrote:
> Hello,
>
> On Tuesday, November 28, 2017, Mattias Gaertner via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
>> On Tue, 28 Nov 2017 10:46:01 -0600
>> R0b0t1 via Lazarus <lazarus@lists.lazarus-ide.org> wrote:
>>
>>>[...]
>>> To be clear, for some reason most of the time the unit (and every
>>> other unit) was rebuilding properly, but one time it didn't. Perhaps
>>> it is a linking issue?
>>
>> If you cannot reproduce it then your issue is not related to this
>> thread.
>>
>
> Seeing as the OP took years to reproduce his issue, I may not have that
informatuon for a long time. I realize what I experienced may not be
precisely relevant but it seemed close enough that I felt I shouldn't
remain silent.
>

It looks like I came across https://bugs.freepascal.org/view.php?id=25797,
this issue but with inline functions.

R0b0t1.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread R0b0t1 via Lazarus
Hello,

On Tuesday, November 28, 2017, Mattias Gaertner via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
> On Tue, 28 Nov 2017 10:46:01 -0600
> R0b0t1 via Lazarus <lazarus@lists.lazarus-ide.org> wrote:
>
>>[...]
>> To be clear, for some reason most of the time the unit (and every
>> other unit) was rebuilding properly, but one time it didn't. Perhaps
>> it is a linking issue?
>
> If you cannot reproduce it then your issue is not related to this
> thread.
>

Seeing as the OP took years to reproduce his issue, I may not have that
informatuon for a long time. I realize what I experienced may not be
precisely relevant but it seemed close enough that I felt I shouldn't
remain silent.

Cheers,
R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread R0b0t1 via Lazarus
Apologies for the additional post:

On Tue, Nov 28, 2017 at 10:44 AM, R0b0t1  wrote:
> Hello,
>
> On Mon, Nov 27, 2017 at 12:15 PM, Donald Ziesig via Lazarus
>  wrote:
>> Hi All!
>>
>> I have been having a problem for a long, long time when developing/debugging
>> code which is included in a package and which contains generics.
>>
>> It took me years :'(, but I finally figured out what I was doing so that I
>> could cause the issue to appear consistently. :-[
>>
>> My usual debugging process is:
>>
>> Edit the library code
>> Compile/Run
>> Debug.
>>
>> My current insight is:
>>
>> What would happen was that changes made to the library code would compile,
>> but not be included in the code which specializes the generic item.  When I
>> entered the debugger, I could see the newly changed code, but
>> single-stepping ignored my changes.  If I let the program run without
>> debugging, the resulting behavior was the same as it was before the edit.
>>
>> I have a work around for this (when I remember to use it):
>>
>> Edit the library code
>> Compile the package
>> Use Run | Cleanup and build ...
>> Debug
>>
>> TL;DR   Library packages which declare generics do compile, but do not get
>> included in the code that specializes them unless I "Cleanup and build" the
>> whole program.  (Workable, but much slower than programs without generics).
>>
>> I searched the bug tracker, but did not see anything resembling this
>> problem.  I would submit a bug report but I'm not sure whether this is an
>> IDE problem, a package problem or a compiler/linker problem.  Would someone
>> more familiar with this part of the architecture give me pointers?
>>
>
> I think this may be a bug, but I do not think it has to do with
> generics or packages. I encountered a very similar issue with a
> project I help maintain, where I fixed some issue in a unit but that
> unit was not automatically recompiled after being changed. I had to
> clean and rebuild the project. As you say, this is not extremely
> expedient.
>

To be clear, for some reason most of the time the unit (and every
other unit) was rebuilding properly, but one time it didn't. Perhaps
it is a linking issue?

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Compiling/linking/debugging package with generics

2017-11-28 Thread R0b0t1 via Lazarus
Hello,

On Mon, Nov 27, 2017 at 12:15 PM, Donald Ziesig via Lazarus
 wrote:
> Hi All!
>
> I have been having a problem for a long, long time when developing/debugging
> code which is included in a package and which contains generics.
>
> It took me years :'(, but I finally figured out what I was doing so that I
> could cause the issue to appear consistently. :-[
>
> My usual debugging process is:
>
> Edit the library code
> Compile/Run
> Debug.
>
> My current insight is:
>
> What would happen was that changes made to the library code would compile,
> but not be included in the code which specializes the generic item.  When I
> entered the debugger, I could see the newly changed code, but
> single-stepping ignored my changes.  If I let the program run without
> debugging, the resulting behavior was the same as it was before the edit.
>
> I have a work around for this (when I remember to use it):
>
> Edit the library code
> Compile the package
> Use Run | Cleanup and build ...
> Debug
>
> TL;DR   Library packages which declare generics do compile, but do not get
> included in the code that specializes them unless I "Cleanup and build" the
> whole program.  (Workable, but much slower than programs without generics).
>
> I searched the bug tracker, but did not see anything resembling this
> problem.  I would submit a bug report but I'm not sure whether this is an
> IDE problem, a package problem or a compiler/linker problem.  Would someone
> more familiar with this part of the architecture give me pointers?
>

I think this may be a bug, but I do not think it has to do with
generics or packages. I encountered a very similar issue with a
project I help maintain, where I fixed some issue in a unit but that
unit was not automatically recompiled after being changed. I had to
clean and rebuild the project. As you say, this is not extremely
expedient.

My apologies for not keeping more details, but I was quite happy to
have gotten it working at the time.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme

2017-11-06 Thread R0b0t1 via Lazarus
Hello again, very sorry for the three posts. It is the case I am not very
smart. Please excuse my poor reading comprehension.

On Monday, November 6, 2017, R0b0t1  wrote:
> Hello again,
>
> On Monday, November 6, 2017, R0b0t1  wrote:
>> Hello friend,
>>
>> On Monday, November 6, 2017, Landmesser John via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
>>> New Linux Distro Manjaro-XFCE and i use a dark theme.
>>>
>>> But that dark theme is bad for Lazarus IDE.
>>>
>>> Can i change that as an option for compiling the IDE?
>>>
>>> With Debian KDE there was in KDE Settings an option to prevent gtk-Apps
using color-settings.
>>>
>>> Perhaps an option in XFCE-Settings?
>>>
>>> I'll keep on googling ...
>>>
>>> Tipps are welcome!
>>>
>>
>> Theming is typically handled by your toolkit. For GTK, you will need to
modify files in a location like "~/.themes" or "~/.gtkrc-2."
>>
>> E.g. https://developer.gnome.org/gtk3/stable/theming.html and
https://wiki.archlinux.org/index.php/GTK%2B#Configuration.
>>
>> Theming can also be handled by your application. The best support for
theming tends to be implemented in this way. Unfortunately from a user's
standpoint this means each program must be customized separately. On the
other hand, toolkit wide theming support tends to not be very good. Form
components (like a SynEdit) may be drawn with colors not taken from the
toolkit's configuration.
>>
>> Theming support for Lazarus might be a tall order but I think it would
be worth it. See Visual Studio's dark theme, for example.
>>
>> Cheers,
>> R0b0t1
>
> Is http://wiki.lazarus.freepascal.org/UserSuppliedSchemeSettings
insufficient in any way?

I realize now you were asking to disable theming in Lazarus. That answer is
related to the contents of my other posts, but for GTK you may use the
environment variable GTK_THEME:
https://developer.gnome.org/gtk3/stable/gtk-running.html.

GTK_THEME=theme:variant

If you have some time I would invite you to comment on the forum as it is
more active. It would be nice to see pictures of the interface quirks you
take exception to.

Cheers,
R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme

2017-11-06 Thread R0b0t1 via Lazarus
Hello again,

On Monday, November 6, 2017, R0b0t1  wrote:
> Hello friend,
>
> On Monday, November 6, 2017, Landmesser John via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
>> New Linux Distro Manjaro-XFCE and i use a dark theme.
>>
>> But that dark theme is bad for Lazarus IDE.
>>
>> Can i change that as an option for compiling the IDE?
>>
>> With Debian KDE there was in KDE Settings an option to prevent gtk-Apps
using color-settings.
>>
>> Perhaps an option in XFCE-Settings?
>>
>> I'll keep on googling ...
>>
>> Tipps are welcome!
>>
>
> Theming is typically handled by your toolkit. For GTK, you will need to
modify files in a location like "~/.themes" or "~/.gtkrc-2."
>
> E.g. https://developer.gnome.org/gtk3/stable/theming.html and
https://wiki.archlinux.org/index.php/GTK%2B#Configuration.
>
> Theming can also be handled by your application. The best support for
theming tends to be implemented in this way. Unfortunately from a user's
standpoint this means each program must be customized separately. On the
other hand, toolkit wide theming support tends to not be very good. Form
components (like a SynEdit) may be drawn with colors not taken from the
toolkit's configuration.
>
> Theming support for Lazarus might be a tall order but I think it would be
worth it. See Visual Studio's dark theme, for example.
>
> Cheers,
> R0b0t1

Is http://wiki.lazarus.freepascal.org/UserSuppliedSchemeSettings
insufficient in any way?
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Howto disable Lazarus IDE using a XFCE dark theme

2017-11-06 Thread R0b0t1 via Lazarus
Hello friend,

On Monday, November 6, 2017, Landmesser John via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
> New Linux Distro Manjaro-XFCE and i use a dark theme.
>
> But that dark theme is bad for Lazarus IDE.
>
> Can i change that as an option for compiling the IDE?
>
> With Debian KDE there was in KDE Settings an option to prevent gtk-Apps
using color-settings.
>
> Perhaps an option in XFCE-Settings?
>
> I'll keep on googling ...
>
> Tipps are welcome!
>

Theming is typically handled by your toolkit. For GTK, you will need to
modify files in a location like "~/.themes" or "~/.gtkrc-2."

E.g. https://developer.gnome.org/gtk3/stable/theming.html and
https://wiki.archlinux.org/index.php/GTK%2B#Configuration.

Theming can also be handled by your application. The best support for
theming tends to be implemented in this way. Unfortunately from a user's
standpoint this means each program must be customized separately. On the
other hand, toolkit wide theming support tends to not be very good. Form
components (like a SynEdit) may be drawn with colors not taken from the
toolkit's configuration.

Theming support for Lazarus might be a tall order but I think it would be
worth it. See Visual Studio's dark theme, for example.

Cheers,
R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Who is using Object Pascal in production?

2017-10-29 Thread R0b0t1 via Lazarus
Hello friends,

On Sunday, October 29, 2017, Schindler Karl-Michael via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
> Hi
>
> My use is probably just another nice niche:
>
> Creating a nice GUI wrapper in Lazarus/Object Pascal for heavy numerical
simulation routines written in Fortran.
>

I have seen thisna few places. Lazarus still has the best form designer I
have used.

Cheers,
R0b0t1.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Who is using Object Pascal in production?

2017-10-29 Thread R0b0t1 via Lazarus
Hello friends,

On Sunday, October 29, 2017, Samuel Herzog via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
> Hello,
> I earning my money as delphi developer (now 20years).
> In the freetime I support Lazarus/FPC.
> The system I wrote (in the company) is in-house software used
> by about 150 users per day. (it's built with D7)
> D7 was fast/stable. We bought several new versions of Delphi in the past
13years but
> none of the new versions was as handy as D7.
> But now I am working with Delphi XE 10.2 Tokyo and I must say it's very
ok! I can recommend it.
> I would say they are back again :-) ( Hopefully they will remove the
dependency to .NET-stuff )
>
> Now let's talk a little about Lazarus...
> It's incredible which progress this project has made!
> The recent improvements in the IDE and Installer area (fpcupdeluxe and
online package manager) make
> things really better for new users.
> To attract more/new users to Object-Pascal "universe" the following
things would help:  (applies for both Delphi and Lazarus)
>
> A) a way to give a whole project from one developer to another developer.
(no fiddeling around with missing
packages/components/paths/environment-path).
> e.g. a Menu-Option "Export-Project" which creates a bundle with all
necessary files)

This is something else I forgot to touch on in my dimwittedness.

My experience with a multi-user project (Simba) that targeted Windows/Linux
was very poor. It was hard to keep the project in a state that made it
buildable on both OSes or even multiple. Eventually these issues were
overcome, but there still seems to be a lot of hidden complexity that makes
it hard to create reproducible builds and help new developers set up an
evironment.

Cheers,
R0b0t1.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Who is using Object Pascal in production?

2017-10-28 Thread R0b0t1 via Lazarus
On Saturday, October 28, 2017, Alexander Klenin via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
> On Fri, Oct 27, 2017 at 11:26 PM, Marcos Douglas B. Santos via Lazarus
>  wrote:
>> I would like to propose a discussion about "What is the relevance of
>> Object Pascal nowadays".
>> I don't want waste your time. I just want to know if we are growing
>> and being more relevant or not.
>
> For many years I have advocated first Delphi, then FreePascal/Lazarus
> as a teaching tool for both high school and introductory university.
> Historically, Delphi/Lazarus offered superior IDE experience,
> while the language itself was both beginner-friendly and powerful when
> learned completely.
>
> Sadly, while on IDE front other IDEs are catching up
> (for example, form designers in both Visual Studio 2017 and latest Qt
> are almost as good, and in some aspects better),
> the language continues to lag behind so much that even 8th graders are
starting
> to complain about missing features.
> Older teachers who prefer Pascal syntax moved to PascalABC,
> which displaced perhaps 90% of FPC usage in Russian high schools.
>

I think this really captures what I wanted to say. Rapid development as a
design methodology seems to have been publicly discredited and forgotten
about, yet people still continue to buy Delphi. The basic design principles
that FreePascal and Lazarus implement are still relevant but the
presentation is a little rough around the edges.

> Finally, FPC became almost completely unsuitable for competitive
programming,
> which drives away influential part of next programmers generation.
> At the last year International Olympiad in Informatics I have given a
> passionate speech
> against excluding Free Pascal from a list of available languages,
> and succeeded in postponing that decision for a few years,
> but the writing is still on the wall.
>
> So reluctantly I started to phase out FPC/Lazarus in my work
> in favor of PascalABC/Python for high school and С++/C# for university.
> For the record, C# is the only language in that list that I like.
>

I found something similar. Do you think you can add to your explanation of
why it is no longer competitive?

Cheers,
R0b0t1.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Who is using Object Pascal in production?

2017-10-27 Thread R0b0t1 via Lazarus
On Fri, Oct 27, 2017 at 7:26 AM, Marcos Douglas B. Santos via Lazarus
 wrote:
> I would like to propose a discussion about "What is the relevance of
> Object Pascal nowadays".
> I don't want waste your time. I just want to know if we are growing
> and being more relevant or not.
>
> I use Object Pascal (mostly FPC, some old Delphi) in production to
> make real applications. But we are seeing more and more "new
> frameworks", "new technologies" and new languages that are become more
> relevant.
>
> What do you think?
>

Hello,

I work with a project (Simba: http://wizzup.org/simba/) that was
written in FreePascal using Lazarus. One of the main issues with Simba
was the necessity of creating wrappers for most of what needed to be
accomplished. On a more personal note, I find Lazarus very useful for
quick GUI prototypes, but the lack of supporting infrastructure makes
it hard to use sometimes.

I appreciate the development that does take place and wish more could.
I have tried to find ways to help off and on, but all the problems
that are left are very involved.

A more impressive contribution to the list was planned but I forgot
what I was going to write. However, if you wanted to know if what you
do is useful, then yes, I think it is.

Cheers,
 R0b0t1.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] lazopenglcontext on Raspberry Pi?

2017-10-21 Thread R0b0t1 via Lazarus
On Fri, Oct 20, 2017 at 9:03 PM, Anthony Walter via Lazarus
 wrote:
> I've done a bit of work on Pi and OpenGL and thought I'd give you some
> advice.
>
> 1) Pi only supports OpenGL ES contexts
>
> 2) Depending on your raspberry OS configuration, OpenGL ES might only be
> supported when X window manager is not running.
>
> 2a) Raspbian defaults to allow OpenGL in with X window manager running, but
> currently the actual driver does not function to the correct OpenGL ES
> specifications under that situation.
>
> For me personally, I configured Raspbian to use the correct OpenGL ES
> specifications, and that means the driver will fail to create a GL context
> if X windows is running. Don't ask me what the differences are, I really
> don't want to bother researching it, but there are problems. I've posted
> about it extensively on the Pi support forums and under Pi area of the new
> SDL forum.
>

Hello,

I am not very smart nor clever and I did not find this documentation.
Could you link to it? This is the best explanation for the weirdness I
was experiencing.

I read about the OpenGL ES hack to allow X11 compositing(?) but never
anything about configuration.

Respectfully,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Rendering Issue Emoji for HTML List Items

2017-10-17 Thread R0b0t1 via Lazarus
On Tue, Oct 17, 2017 at 1:00 AM, Sven Barth via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
> Am 17.10.2017 07:19 schrieb "R0b0t1 via Lazarus"
> <lazarus@lists.lazarus-ide.org>:
>>
>> On Mon, Oct 16, 2017 at 2:48 PM, Juha Manninen via Lazarus
>> <lazarus@lists.lazarus-ide.org> wrote:
>> > On Mon, Oct 16, 2017 at 8:56 PM, R0b0t1 via Lazarus
>> > <lazarus@lists.lazarus-ide.org> wrote:
>> >>
>> >> Is it not possible to bundle supported resources in the LCL? That seems
>> >> like the typical solution for Windows. On other OSes this is less
>> >> proper,
>> >> but I have still seen it done.
>> >
>> >
>> > Excuse me?
>> > How could LCL bundle the fonts used by your OS?
>> >
>>
>> It is not necessary to rely on only the system font collection, even
>> when using WinAPI forms:
>>
>> https://msdn.microsoft.com/en-us/library/system.drawing.text.privatefontcollection.aspx.
>> Something similar is done in C++.
>>
>> Admittedly there does seem to be some confusion about whether you can
>> make certain UI objects (non-GDI+, specifically) take on face of these
>> fonts, but I suspect you can, as it seems that there is a common
>> underlying graphics system that the old APIs use. Even if not it would
>> be possible to distribute an open font with Lazarus/the LCL and
>> install it when Lazarus/the LCL is installed.
>
> If anything that should be part of the application's setup, not of the
> application itself nor of the LCL.
>

Thank you for clarifying - I wasn't sure if the OP was also talking
about an issue with the code editor. However, I think inclusion of
fonts in the LCL might make sense if it is found that system fonts are
lacking for popular platforms.

The LCL is (to my knowledge) linked in to applications generated with
Lazarus and never installed separately. Some toolkits for other
languages, installed separately, ship with (optional) resource files.
Compiling in the resources to every program which uses the LCL is a
bit different, but the same principle.

R0b0t1.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Rendering Issue Emoji for HTML List Items

2017-10-16 Thread R0b0t1 via Lazarus
On Mon, Oct 16, 2017 at 2:48 PM, Juha Manninen via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
> On Mon, Oct 16, 2017 at 8:56 PM, R0b0t1 via Lazarus
> <lazarus@lists.lazarus-ide.org> wrote:
>>
>> Is it not possible to bundle supported resources in the LCL? That seems
>> like the typical solution for Windows. On other OSes this is less proper,
>> but I have still seen it done.
>
>
> Excuse me?
> How could LCL bundle the fonts used by your OS?
>

It is not necessary to rely on only the system font collection, even
when using WinAPI forms:
https://msdn.microsoft.com/en-us/library/system.drawing.text.privatefontcollection.aspx.
Something similar is done in C++.

Admittedly there does seem to be some confusion about whether you can
make certain UI objects (non-GDI+, specifically) take on face of these
fonts, but I suspect you can, as it seems that there is a common
underlying graphics system that the old APIs use. Even if not it would
be possible to distribute an open font with Lazarus/the LCL and
install it when Lazarus/the LCL is installed.

R0b0t1.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Rendering Issue Emoji for HTML List Items

2017-10-16 Thread R0b0t1 via Lazarus
On Monday, October 16, 2017, Juha Manninen via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
> On Mon, Oct 16, 2017 at 4:43 PM, Martok via Lazarus
>  wrote:
>> when I checked what HTML2TextRenderer uses to translate list items, I
found that
>> since rev 55743 it uses U+26AB MEDIUM BLACK CIRCLE ⚫ and U+26AA MEDIUM
WHITE
>> CIRCLE ⚪.
>
> No. Since r55743 it uses one of the star emojis.
> See in constructor THTML2TextRenderer.Create:
>   fListItemMark:='✶ ';
>   //fListItemMark:='✳ ';
>   //fListItemMark:='✺ ';
>   //fListItemMark:='⚫ ';
>   //fListItemMark:='⚪ ';
>
> I left the other potential choises in comments there for easy comparison.
>
>> Could someone please test this on other widgetsets,
>
> It is not related to widgetsets anyhow. It only depends on the font
> your system uses.
> I also had problems seeing Unicode emojis on Windows but never on Linux
distros.
> To my surprise some fellow Lazarus developers complained they don't
> render properly in their Linux systems. That is why I changed the
> title emoji from a small diamond (outside BMP) to a big diamond
> (belongs to BMP). For some reason their fonts support it better.
>
>   //fTitleMark:=''; <-- this did not show in some people's system.
>   //fTitleMark:='◆';
>   //fTitleMark:='◇';
>   fTitleMark:='◈';
>   //fTitleMark:='◊';
>
> The stars and circles mentioned earlier belong to BMP.
>
>> so I have an idea whether/what/where to report this?
>
> Report to your OS manufacturer / project.
> In case of Windows: Microsoft.  Let's see how quickly they fix it.
> In any case those widely used Unicode emojis really must be supported.
> There is no excuse.
>

Is it not possible to bundle supported resources in the LCL? That seems
like the typical solution for Windows. On other OSes this is less proper,
but I have still seen it done.

R0b0t1.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Accessibility enhacement request Lazarus version 1.7

2017-10-06 Thread R0b0t1 via Lazarus
Sorry about the delay. I'm not sure I can help directly.

You may want to ask on the forums. Now the problem has been expressed in
terms that someone can use to create goals.

The complexity of adding accessibility hints to custom GUI work is what led
me to suggest an external editing program. Do you know how the Lazarus GUI
functions (code hints, etc), and can you describe an analogue of that
functionality that could work for you?

Cheers,
 R0b0t1

On Saturday, September 30, 2017, Mgr. Janusz Chmiel via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
> Good evening.
> It is good idea. I will rather discuss with you out of mailing list.
> I Am using NVDA screen reader. This screen reader is very advanced and it
support many applications. NVDA support applications which are using UI
automation. So many Windows 10 apps are supported with no issues. I Am
using Windows 10 X64 bit edition. Standard Home edition. It would be
perfect, if editable field and also designer would become screen reader
compatible. But I know, how is it complex to retain visual aspect of GUI
and making it usable for visually impaired.
> I know about other editors. Such as Akelpad. But it is also necessary to
use form designer for some tasks. Thank you very much for yours interest
about accessibility.
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Documentation in Lazarus

2017-10-03 Thread R0b0t1 via Lazarus
On Tue, Oct 3, 2017 at 6:03 PM, Graeme Geldenhuys via Lazarus
 wrote:
>
> On 2017-10-03 23:06, Wolf via Lazarus wrote:
>>
>> As an editor, I'd prefer LibreOffice, since I am familiar with it. My
>> experience with LaTeX is limited
>
>
> Having extensive experience with both for many years I can say that with some 
> decent preparation work you can generate documents with LibreOffice that 
> rivals LaTeX output and layout. I have created such document templates with 
> OpenOffice a couple years back. I can search my hard drives and see if I 
> still have those around, if that might help.
>
> I remember the OpenOffice organization had brilliant documentation and guides 
> in generating such document templates, but as the LibreOffice project gain 
> popularity the websites hosting the original OpenOffice documents and guides 
> disappeared one by one.
>
> On a side note:
>   OpenOffice (and I guess now LibreOffice) also have impressive
>   mathematical formulae support. I wouldn’t instantly dismiss it.
>   We used those in a prior company I worked for.
>

I can agree, I have seen very impressively formatted documents done in
LibreOffice/OpenOffice/Microsoft Word. At the same time, the majority
of technical documents seem to be meant for screen-based consumption.
In that case the viewing options for the listed formats can be less
attractive than they otherwise might be.

> > Have you any suggestions on which component to use?
>
> From what I’ve seen [2-3 years ago] there is none that really does a good job.
>

I would suggest using Sphinx, http://www.sphinx-doc.org/en/stable/,
the software package that Python uses to generate its documentation.
It can be adapted to other languages and I worked with a project that
uses it with an Object Pascal codebase.

With most software packages in this vein, the possibility of
generating images that are rendered from LaTeX exists. However, you
need an installation of the same to do this.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Hi-DPI for own components

2017-10-03 Thread R0b0t1 via Lazarus
On Tue, Oct 3, 2017 at 3:39 PM, 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?
>
> Thanks, V.

If the LCL handles asset selection for you, yes. But I don't remember
seeing that - you may need to select the appropriate icon at runtime
yourself.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Accessibility enhacement request Lazarus version 1.7

2017-09-30 Thread R0b0t1 via Lazarus
On Friday, September 29, 2017, Mgr. Janusz Chmiel via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
> Dear specialists,
> My name is Janusz Chmiel. I Am visually impaired user of Lazarus. My
dream is to use yours development environment to create professional
Android applications. But to make not only my dream to come true, it is
necessary to find out, if editable field for editing source code can be
make screen reader compatible.
> I AM ready to even test bleeding edge code from SVN. My only one question
is, if it is possible tomake this component accessible.
> Because in general, Lazarus IDE is quite accessible. But The biggest
accessibility issue is editable field for writing and editing source code.
> Any advice will be very welcomed. I will do my best with The cooperation
with engaged developers to make yours product accessible for visually
impaired programmer.
> I Am advanced user so I AM really ready to constructively help in this
problem not only by submitting it,but I will cooperate with you on A
solution.
> Thank you very much for yours time and help to The visually impaired
users of Lazarus.
> With The warmest regards.

Hello Mr. Chmiel,

I have some minor experience working with the visually impaired (usually
not complete blindness). Can you describe the operating system you use and
how you make use of your screen reader for editing? Most readers will not
be familiar with such things.

In the interim, you may want to use another editor for your programming. I
do this myself occasionally but recognize that the Lazarus editor has
better integration with the design workflow.

Cheers,
R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-21 Thread R0b0t1 via Lazarus
On Wed, Sep 20, 2017 at 5:33 PM, Michael Van Canneyt via Lazarus
 wrote:
>
>
> On Wed, 20 Sep 2017, Marcos Douglas B. Santos via Lazarus wrote:
>
>> On Wed, Sep 20, 2017 at 4:31 PM, Michael Van Canneyt via Lazarus
>>  wrote:
>>>
>>>
>>>
>>> On Wed, 20 Sep 2017, Marcos Douglas B. Santos via Lazarus wrote:
>>>
 Hi,

 I'm working in my new "pet project" called Xavier.
 Xavier is an object-oriented library for work with XML.
>>>
>>>
>>>
>>> I don't understand the 'why' ? Should I understand that you consider the
>>> DOM
>>> units not object-oriented ?
>>
>>
>> Yes and no.
>>
>> Michael, with all my respect, that depends of your view about Object
>> thinking.
>> Yes, DOM uses classes and objects, but IMO Objects is more than that.
>> Objects are more close to Functional programming than most people think.
>
>
> As I understand it, objects are exactly the opposite of functional
> programming,
> in that they encapsulate state, and functional programming wants to avoid
> state (variables, if you want).
>

You can think of an object's data as a monad's data, and the methods
in the objects in a hierarchy as the various monadic functions which
operate on that data.

In a typical functional language the monadic functions and their
arguments do not have any hierarchical relation.

>> If can code classes but if you are implementing (all) in an imperative
>> way, I mean line by line telling the computer how to do something
>> instead of code what you just want, you may not are thinking in terms
>> of Objects. Your class, in these cases, is just a "bucket of data and
>> procedures".
>
>
> Yes. That's what an object is.
>
>>
>> In a perfect design, we may only connect all objects to work in a
>> "task", call "run", and "they" will know what to do.
>
>
> Ah. You just replace methods by objects.
>
> You should be programming Java:
> https://steve-yegge.blogspot.be/2006/03/execution-in-kingdom-of-nouns.html
>
> I prefer imperative programming. (verbs, if you want). It comes more
> natural.
>
> Well, each his own style. But, if you allow me: the post on the lazarus
> forum and the Xavier page should really explain what you mean by OOP. I
> guess most people will be confused, as I am.
>
> Thanks for explaining.
>
> Michael.
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] List down?

2017-08-10 Thread R0b0t1 via Lazarus
On Thu, Aug 10, 2017 at 4:11 AM, John Landmesser via Lazarus
 wrote:
> just to see if my post will be shown on
>
> lazarus-ide.org
>
>
> because:
>
> Last message date: Sat Aug 5 16:27:27 CEST 2017
>
>
> ... or just holiday?
>

The forums are far more active, and the developers seem to be fairly
active on the forums if you need a response quickly.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] KDE 5

2017-07-06 Thread R0b0t1 via Lazarus
On Thu, Jul 6, 2017 at 7:07 AM, Juha Manninen via Lazarus
 wrote:
> Moved from the "Release Candidate 3" thread:
>
> On Wed, Jul 5, 2017 at 10:57 AM, Michael Van Canneyt
>  wrote:
>> {
>>   "OutOfTopic" : ["If by mature you mean 'bloated', then yes.",
>>   "KDE has become so bloated, it has driven me away.",
>>   "To linux mint and cinnamon." ] }
>>
>> ;)
>
> This is a little out of scope of the whole Lazarus list but I comment anyway.
> KDE 5 is not bloated at all. It is slimmer that KDE 4. If you only use
> KDE and QT applications, it is very snappy and light.
>

Hello,

If such comments are not unwelcome I would also suggest there are many
architectural improvements in the code and invite Mr. Canneyt to
peruse the Plasma 5 source (KDE 5 doesn't exist).

That said there are some changes that have broken UI compatibility
with KDE 4 and made the menus slightly harder to use for people with
poor eyesight, but many things have similar problems.

> The only bloat effect comes when you must start an application made
> with other widget libs like GTK 2/3. Firefox and LibreOffice are good
> examples. They start slowly and hog memory.
> However that does not mean KDE is bloated. It means the "foreign" apps
> and their libs are bloated.
> Yes, I believe Firefox starts faster in a system built on top of GTK
> libs because the shared libs are already loaded there.
>
> Example:
> I have a 64-bit system with 4GB mem.
> With a resource monitor KSysGuard open 0.4GB mem is used.
> When I also have Dolphin and Qupzilla with 8 page tabs open the mem
> usage goes to 0.7GB.
> I have plenty of eye-candy desktop effects enabled and services like
> "KDE Connect" for my Android phone etc. It is not a stripped down
> system anyhow.
> There are KDE specific versions of most SW: picture view and edit, PDF
> view, diff view (kompare, good!), music and video players, etc. etc.
> ...
> When I use them, everything is snappy and around 1-1.3 GB mem is used.
> Most of the memory is free and used for Linux file system buffering.
> I have to start Firefox for some special web pages because Qupzilla
> has problems with them. Then memory consumption jumps higher.
> Still, the swap partition is almost never used.
>
> My 32-bit e-machines mini-laptop with 1GB mem also has KDE 5 which
> then takes much less memory, less than 0.5GB. 32-bit code needs less
> mem and the kernel also adjusts its usage for lower total mem.
> Only if I start many big apps, things get a little sticky there.
>
> In real life situations KDE can be lighter and snappier than the so
> called light desktop environments because there are so many apps made
> with KDE/QT libs. With "light" DEs you typically get diverse widget
> libs with all the diverse apps.
> Gnome / Cinnamon have the same benefit as KDE with their dedicated apps.
>
> In general the obsession for very light window managers is useless.
> Their GUI experience is more limited. They may save few MB of memory
> but when a user opens all those big bloated apps hogging 2GB, who
> cares about the window manager's memory?
>
> Modern Linux distros can still run on old computers with low memory.
> KDE is very usable in a machine with 0.5GB memory. Yes!
> ... but how many people really use such machines?
> I have an abundant 4GB, many people have more.
> When I run only KDE apps and look at the resource monitor, I feel 4GB
> is too much. It could run with much less. This is the opposite of
> bloat!
>
> Ok, when I debug Lazarus with another instance of Lazarus and have
> music player and browser and other apps running, then 4GB is nice.
>
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus