Re: [Lazarus] Children Forms (MDI)

2024-05-12 Thread Kostas Michalopoulos via lazarus
On 5/12/24 9:00 PM, zeljko via lazarus wrote: Yes, but only qt,qt5 and qt6 have fully implemented MDI (on linux, windows and mac). I implemented full MDI support on the Win32 backend some time ago. I haven't tested it recently, but it should still work (the only thing i remember not working f

Re: [Lazarus] Lazarus and Wayland display manager

2024-01-02 Thread Kostas Michalopoulos via lazarus
On 1/2/24 17:46, John Landmesser via lazarus wrote: I had issues with the Lazarus IDE itself: instead of a form it showed a fullscreen white window and at next lazarus boot asked me if to open this broken project again or begin a new project. Hm, perhaps it was some botched configuration? Out o

Re: [Lazarus] Lazarus and Wayland display manager

2024-01-02 Thread Kostas Michalopoulos via lazarus
On 12/31/23 15:35, John Landmesser via lazarus wrote: Just trying lazarus on new distribution nobara ( Fedora clone ) with wayland, but it seems that the IDE sometimes get in trouble with this display manager wayland. Changed back to x11 that is much better. What are the issues you face? Sadly

Re: [Lazarus] Lazarus and Wayland display manager

2024-01-02 Thread Kostas Michalopoulos via lazarus
On 1/1/24 09:47, Juha Manninen via lazarus wrote: I don't think GTK2 should be used with Wayland. GTK2 was made before Wayland existed. Gtk2 works fine with Wayland using XWayland (basically a rootless Xorg that uses Wayland to manage windows) which pretty much all desktop environments ship a

Re: [Lazarus] Window Position

2023-09-22 Thread Kostas Michalopoulos via lazarus
On 9/22/23 15:26, Mattias Gaertner via lazarus wrote: The gtk has such default position. It should be possible to support poDefault there. From a quick look in the Gtk2 widgetset code, the position could be set (or actually, not set for poDefault and poDefaultPosOnly) via SetWindowSizeAndPosi

Re: [Lazarus] version `GLIBC_2.34' not found error when running app on different PC

2023-03-17 Thread Kostas Michalopoulos via lazarus
On 3/17/23 15:19, Sven Barth via lazarus wrote: Depending on the used units static linking is simply not an option. E.g. the database units load the database libraries dynamically and thus the C library must not be linked statically then. glibc officially highly discourages static linking anyw

Re: [Lazarus] version `GLIBC_2.34' not found error when running app on different PC

2023-03-16 Thread Kostas Michalopoulos via lazarus
On 3/17/23 01:36, Bo Berglund via lazarus wrote: I do not know what the library libc.so.6 even does It is the C library that one or more of units/libraries you are linking against require. The issue is that you are making a binary on a newer version of glibc (the C library) than the sys

Re: [Lazarus] Lazarus Release 2.2.6

2023-03-16 Thread Kostas Michalopoulos via lazarus
On 3/16/23 19:46, Bo Berglund via lazarus wrote: But it also seems like on each system there is only one version of fpc that can be "active" (at least on Linux) because its config is stored outside of the pcp dir in a user global fashion. How can I make the fpc compiler versions co-exist and be r

Re: [Lazarus] Linux apps and gtk version choosing

2023-02-26 Thread Kostas Michalopoulos via lazarus
On 2/26/23 14:25, Mgr. Janusz Chmiel via lazarus wrote: Where to change GTK version from 2.0 to 3.0? IIs it possible from Lazarus IDE, Form window or only from source code of app? Project -> Project Options -> Additions and Overrides (under Compiler Options near the bottom of the sidebar on

Re: [Lazarus] Using packages for often used units across projects?

2023-02-12 Thread Kostas Michalopoulos via lazarus
On 2/12/23 15:44, Bo Berglund via lazarus wrote: It seems not so good to copy the files into each project. In Delphi they were accessed from one location by several projects by using search path settings (not available in Lazarus). You can set per-project unit search paths. This is available fr

Re: [Lazarus] More Gtk3 Status

2022-07-15 Thread Kostas Michalopoulos via lazarus
On 7/15/22 14:47, Anthony Walter via lazarus wrote: Denis, I will attempt the big design flaws [...] Now here is the first big problem with the Gtk3 widgetset as implemented. Somehow someone decided it would be a neat idea to add a 4th piece just for Gtk3. [...] This isn't a flaw, the approa

Re: [Lazarus] Trayicon popup menu no longer showing images

2022-02-16 Thread Kostas Michalopoulos via lazarus
On 2/16/22 16:56, Michael Van Canneyt via lazarus wrote: With this workaround it works. Thank you. Perhaps you could try spinning up an Ubuntu VM and see if the bug persists there - in which case it'd be a Gtk2 backend bug, otherwise it is probably a bug with how Cinnamon implements app indic

Re: [Lazarus] Trayicon popup menu no longer showing images

2022-02-16 Thread Kostas Michalopoulos via lazarus
On 2/16/22 15:22, Michael Van Canneyt via lazarus wrote: I recompiled an older tray application. It used to show images in the tray icon popup menu, but after compilation, the tray popup menu no longer shows the images; just a small rounded square where an image should appear. Linux mint, toda

Re: [Lazarus] Gtk 1.2 fixes (again)

2022-02-13 Thread Kostas Michalopoulos via lazarus
On 2/13/22 23:41, Maxim Ganetsky via lazarus wrote: But I still can't understand, why you put so much an effort into an ancient and obsolete widgetset. I only spent 2-3 days, including getting Gtk 1.2 itself to compile and tracking down a gdk_pixbuf version that was compatible with Gtk 1.x, i

Re: [Lazarus] Gtk 1.2 fixes (again)

2022-02-13 Thread Kostas Michalopoulos via lazarus
On 2/13/22 21:33, Sven Barth via lazarus wrote: Bart means the internal, private Lazarus developer list. I see, but then why tell me? :-P Kostas -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Gtk 1.2 fixes (again)

2022-02-13 Thread Kostas Michalopoulos via lazarus
On 2/13/22 16:49, Bart via lazarus wrote: On Sat, Feb 12, 2022 at 6:25 PM Kostas Michalopoulos via lazarus wrote: This is currently being discussed on the devel ML. Isn't this the development mailing list? Most of the discussion seems to be about Lazarus' development and can&

[Lazarus] Gtk 1.2 fixes (again)

2022-02-12 Thread Kostas Michalopoulos via lazarus
Sending this mail again since it didn't arrive last time (can't even see it in the archives). This is actually my third attempt, using my gmail account now (i tried my own email - not sure if it didn't pass through because the other one wasn't subscribed or due to some configuration issue... t

Re: [Lazarus] FPC and WebAssembly

2021-12-25 Thread Kostas Michalopoulos via lazarus
Hello, I'm glad to anncounce that FPC now covers working with webassembly in the browser. Sounds great. I did a quick compile for the wasi target and seemed to work fine with a simple helloworld-style test. So i decided to try and port a game i made last year[0] - initially made for an MS-DO

Re: [Lazarus] Assigning Class to object

2021-12-06 Thread Kostas Michalopoulos via lazarus
On 12/6/21 02:15, R.Smith via lazarus wrote: Firstly the correct way of determinig class (as with your current solution) is like this:   if (MyObj is TButton) then TButton(MyObj).OnMouseDown := tmethod (not important here)  else   if (MyObj is TPanel)  then TPanel(MyObj).OnMouseDown := tmeth

Re: [Lazarus] Lazarus on Linux, which desktop environment?

2021-11-21 Thread Kostas Michalopoulos via lazarus
On 11/21/21 11:45, Juha Manninen via lazarus wrote: LCL-QT5 works better than LCL-GTK2 now IMO. What are the issues on Gtk2 that are fixed in Qt5? Kostas -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo

Re: [Lazarus] Lazarus Release Candidate 2 of 2.2.0

2021-11-03 Thread Kostas Michalopoulos via lazarus
On 11/3/2021 12:11 AM, Maxim Ganetsky via lazarus wrote: Please create a bug report. Sure, here it is: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39454 Kostas -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.la

Re: [Lazarus] Lazarus Release Candidate 2 of 2.2.0

2021-11-02 Thread Kostas Michalopoulos via lazarus
On 11/2/2021 2:54 PM, Mattias Gaertner via lazarus wrote: The Lazarus team is glad to announce the second release candidate of Lazarus 2.2. Neat. I did a bit of testing with some of my projects and everything that worked in the last stable version i had (2.0.6) seems to work fine with 2.2.0RC

Re: [Lazarus] The Problem with the Linux Desktop

2020-03-31 Thread Kostas Michalopoulos via lazarus
IMO the problem of Linux desktop (or at least "a" problem) is the lack of backwards compatibility for pretty much anything above the X server (and now with Wayland some people want to compromise that too). If you stick with the X libraries, the C library (glibc is generally very good when it comes

Re: [Lazarus] MDI support for win32

2020-03-22 Thread Kostas Michalopoulos via lazarus
Hey, Sorry for the delay, i just noticed this was merged :-P. I got the latest version, compiled the MDI doodle test and did some testing and it seems like it behaves like in Delphi 2, so it looks like it works fine :-). I get an "oops, debugger error" dialog box when exiting but i'm not sure if

[Lazarus] MDI implementation for Win32

2020-01-14 Thread Kostas Michalopoulos via lazarus
Hi all, Recently i wanted to use MDI in some of my Windows tools and since Lazarus seems to not support it with the Win32 widgetset, i decided to try and make an attempt at implementing it. You can find a patch at https://bugs.freepascal.org/view.php?id=36582 I have only implemented whatever i c

Re: [Lazarus] Cross-platform project. Font sizes not the same....

2019-09-04 Thread Kostas Michalopoulos via lazarus
I *highly* recommend to avoid changing font sizes, users select themes because they want applications to use them, so it is better to stick with their choices and use autosizing (the default setting for most controls), the align property and the anchor editor. Here is an old (but still valid) vide

Re: [Lazarus] It is a beautiful day...

2019-07-17 Thread Kostas Michalopoulos via lazarus
Sounds interesting. Can i have a package that installs components/controls only available to the project group instead of globally? I often want to have components (and sometimes controls) available on the component palette but not for every project, but so far i see packages need to be installed "

Re: [Lazarus] IDE Ctrl+W key

2019-03-25 Thread Kostas Michalopoulos via lazarus
Thanks, those two options seem to be exactly what i had in mind :-) On Mon, Mar 25, 2019 at 12:30 PM Ondrej Pokorny wrote: > > There is no need to discuss this. As I said before both your points are > customizable. > > On 25.03.2019 11:40, Kostas Michalopoulos via lazarus wrote: &

Re: [Lazarus] IDE Ctrl+W key

2019-03-25 Thread Kostas Michalopoulos via lazarus
I always saw the cursor jumping due to a syntax error as a bug, not a feature and has always been an annoyance that breaks my code flow. Honestly, i do not see what the point is, i am trying to complete the word, not find syntax errors (this is what Ctrl+F9 is for). I also think Ctrl+Space should d

Re: [Lazarus] Universal FontDialog for LCL

2019-03-11 Thread Kostas Michalopoulos via lazarus
On Fri, Mar 8, 2019 at 12:55 PM Juha Manninen via lazarus wrote: > Everybody wants to include their custom components in LCL. Why? Most likely because it is much easier to have a single "batteries included" installer that provides everything you need out of the box now and much more likely to be

Re: [Lazarus] alternative to web programming?

2019-02-15 Thread Kostas Michalopoulos via lazarus
The idea is interesting, but the implementation not so. All demos are unusably slow and unless this spawns a VM for each instance, i wouldn't trust any sort of "FS virtualization" they have to not be broken - Win32 desktop APIs were not designed for applications to be isolated from each other. This

Re: [Lazarus] Order of OnCreate and OnActivate in Qt4

2018-11-26 Thread Kostas Michalopoulos via lazarus
I wouldn't rely on event order as anything between the creation to Application.Run could call Application.ProcessMessages - including some components/controls you may be using. As a rule of thumb you should assume that after calling a control (or form) that it can start receiving events. In Qt4 st

Re: [Lazarus] Building help files: the nitty-gritty

2018-08-30 Thread Kostas Michalopoulos via Lazarus
FWIW your post made me realize i have a few uncommitted changes (including a very important one - outlines https://coinsh.red/p/2018-08-30_20_27_48-Help_-_Welcome.png) for LazHelp :-P. I'm not working on it much though, it is mainly on life support with the rare addition of new stuff (mainly needed

Re: [Lazarus] Test this please

2018-03-31 Thread Kostas Michalopoulos via Lazarus
Is this written in Lazarus/FreePascal? If it is a single-bin program (CGI?) i can drop somewhere in my VPS it would be awesome because i was trying to make something like that a while ago (but got bored :-P). It seems to work fine, but my only request is to allow for "untyped" URLs, ie instead of

Re: [Lazarus] Package filenames with _package

2018-01-10 Thread Kostas Michalopoulos via Lazarus
On Mon, Jan 8, 2018 at 11:38 PM, Graeme Geldenhuys via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > Then it seems Windows Explorer is right up your alley. :) They hide the file extension by default. Users (like me) have to explicitly go into the settings and enable "show file extensions" opti

Re: [Lazarus] Package filenames with _package

2018-01-08 Thread Kostas Michalopoulos via Lazarus
On Sun, Jan 7, 2018 at 1:06 PM, Graeme Geldenhuys via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > so why is everybody still limiting file extensions to 3 letters?? Some of my fpGUI included applications use file extensions like *.project etc. Hell, even Microsoft is catching up with that idea

Re: [Lazarus] How to strip debug symbols from exe file?

2017-12-31 Thread Kostas Michalopoulos via Lazarus
UPX compressed executables need more memory since normally the OS will load code pages on demand and only code that is actually executed is loaded from the executable, whereas UPX forces the entire executable to be in memory. Moreover UPX prevents the OS to share the code between different instance

Re: [Lazarus] Embedding an X11 server as a component

2017-12-26 Thread Kostas Michalopoulos via Lazarus
On Tue, Dec 26, 2017 at 10:28 PM, Mark Morgan Lloyd via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > > Is it possible to embed the main window of another program into a pane in something written using Lazarus, letting the Lazarus program provide the "furniture" functionality that's usually han

Re: [Lazarus] Lazarus Release 1.8

2017-12-15 Thread Kostas Michalopoulos via Lazarus
On Fri, Dec 15, 2017 at 1:41 PM, Mattias Gaertner via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > > At compile time it is CP_NONE, at runtime it can be any codepage. > My understanding (which, if it is wrong, sorry but not my fault since the docs are a bit vague and all the names involved ar

Re: [Lazarus] Lazarus Release 1.8

2017-12-15 Thread Kostas Michalopoulos via Lazarus
On Sun, Dec 10, 2017 at 4:17 PM, Luca Olivetti via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > https://www.freepascal.org/docs-html/rtl/system/rawbytestring.html > > it's an ansistring. This is IMO misleading since nowadays AnsiString has codepage information and a plain AnsiString as shown

Re: [Lazarus] Lazarus Release 1.8

2017-12-10 Thread Kostas Michalopoulos via Lazarus
> I think I had this discussion before: I'm not going to use TBytes until it offers the same convenience as an ansistring (i.e. easy concatenation, insertion and deletion, not to mention search and replace, etc.). Isn't RawByteString a more suited replacement then? In the few places i relied on th

Re: [Lazarus] External/out-of-tree LCL widgetset

2017-12-01 Thread Kostas Michalopoulos via Lazarus
In my personal experience the "RAD" approach used by Delphi, Lazarus and old VB (i'm not sure if proper RAD really was about what you see in those products and not something Borland and Microsoft's marketing departments decided to use because it was cool at the time) is the fastest and often best w

Re: [Lazarus] External/out-of-tree LCL widgetset

2017-11-27 Thread Kostas Michalopoulos via Lazarus
Mon, Nov 27, 2017 at 1:36 PM, Mattias Gaertner via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On Sun, 26 Nov 2017 19:32:21 +0200 > Kostas Michalopoulos via Lazarus wrote: > > >[...] > > As i said, i do not think this would be useful enough to others to be >

Re: [Lazarus] External/out-of-tree LCL widgetset

2017-11-26 Thread Kostas Michalopoulos via Lazarus
017 at 6:13 PM, Sven Barth via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > Am 26.11.2017 14:23 schrieb "Kostas Michalopoulos via Lazarus" < > lazarus@lists.lazarus-ide.org>: > > Is there a way to have an LCL widgetset outside of the Lazarus tree? I'm >

[Lazarus] External/out-of-tree LCL widgetset

2017-11-26 Thread Kostas Michalopoulos via Lazarus
Is there a way to have an LCL widgetset outside of the Lazarus tree? I'm considering writing one for my Little Forms C toolkit at some point but i don't think it would be very useful to others so i don't think there is much of a value in having it as part of the Lazarus codebase (and TBH i cannot g

Re: [Lazarus] type IntegerList

2017-11-13 Thread Kostas Michalopoulos via Lazarus
That warning is misleading, makes too many assumptions about why the user needs to do something (often a common mistake when trying to "correct" others) and IMO wrong. Pointers and integers are separate things and a very common reason PtrInt and PtrUInt are used are to reserve memory in cases where

Re: [Lazarus] Code outline feature of the IDE

2017-10-21 Thread Kostas Michalopoulos via Lazarus
I think the problem is that the colors are too bright and saturated, just desaturating the colors and making them darker would solve the issue. Similarly with the lines, but with their brightness to be only a tad lower than the background itself so they are mostly invisible (except perhaps the inn

Re: [Lazarus] Converting all code to use UnicodeString

2017-09-26 Thread Kostas Michalopoulos via Lazarus
I do not see how it is a hack, when you have a function taking a null terminated string of a specific character type (in this case PWideChar) and you only have the generic string type you don't know what format the underlying memory of the string is so you cannot pass it as a pointer to the functio

Re: [Lazarus] Idea of TFormTitle

2017-09-11 Thread Kostas Michalopoulos via Lazarus
Why would you want that? On Mon, Sep 11, 2017 at 11:19 PM, Alexey via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > Maybe ok idea? make class TFormTitle. it is some small (by Y) form which > is embedded into Form (form which has FormTitle property set). When prop > FormTitle set, OS border hi

[Lazarus] OpenGL 4.6 bindings and generator

2017-08-16 Thread Kostas Michalopoulos via Lazarus
Hi all, After finding the OpenGL bindings that come with Lazarus a bit on the ancient side of things (i think it only supports up to 4.0? Also there is a 4.3 version loading function but only seems to call 3.3's loader - ignoring 4.0 - and loads only a single extension) and never really liking the

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

2017-05-26 Thread Kostas Michalopoulos via Lazarus
e: > On Fri, 26 May 2017 18:24:12 +0300 > Kostas Michalopoulos via Lazarus wrote: > > > > No. It stores all learned identifiers in a file: > > > > > > > But then why does it behave as i mentioned? When i restart Lazarus it has > > forgotten everything

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

2017-05-26 Thread Kostas Michalopoulos via Lazarus
> No. It stores all learned identifiers in a file: > But then why does it behave as i mentioned? When i restart Lazarus it has forgotten everything. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

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

2017-05-26 Thread Kostas Michalopoulos via Lazarus
This looks like a nice feature, but it only seems to know stuff you have already open or opened in the current session. It doesn't know all identifiers and whatever might be available from the currently loaded project and packages. For example if you have a unit Foo (either in the project or in one

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread Kostas Michalopoulos via Lazarus
.lazarus-ide.org> wrote: > On 18.05.2017 13:38, Marc Weustink via Lazarus wrote: > >> zeljko via Lazarus wrote: >> >>> On 18.05.2017 01:43, Kostas Michalopoulos via Lazarus wrote: >>> >>> if GDK_IS_WINDOW(PGtkWindow(OurWidget)^.window) and

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread Kostas Michalopoulos via Lazarus
Oops, indeed, i was tripped up by the not in "(not (Control is TCustomForm)) or ..." part. On Thu, May 18, 2017 at 10:28 AM, Mattias Gaertner via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On Thu, 18 May 2017 02:43:10 +0300 > Kostas Michalopoulos via Lazarus

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-17 Thread Kostas Michalopoulos via Lazarus
I see the patch was added and Lazarus seems to work fine now, but the check was altered a little. The current check assumes that the Control will never be nil, but is this the case? I ask because i see in other places in the same source code file that there are checks for that - almost all calls to

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Kostas Michalopoulos via Lazarus
I've noticed that the window shrinking bug in window maker with Gtk2 is still there, but i finally managed to figure it out and made a fix. I originally wrote the fix in 1.8RC1 so it should apply there, but the patch is against SVN. I posted a more detailed email in the mailing list, but here is th

[Lazarus] Patch for fixing the window resizes when switching components

2017-05-17 Thread Kostas Michalopoulos via Lazarus
Hi all, So i finally figured out why this happens and the reason is the ShowWindow(Handle, SW_SHOWNORMAL) call made when selecting components (this is done to activate the designer form). Under Gtk2 this call always calls gtk_window_unmaximize (among others) but Gtk2 seems to have a bug that alwa

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

2017-05-07 Thread Kostas Michalopoulos via Lazarus
Maybe it is also related to the problem i mentioned a few days ago? It does sound kind of similar to what i demo in the video here: https://webmshare.com/q78rb On Mon, May 8, 2017 at 12:45 AM, Juha Manninen via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On Sun, May 7, 2017 at 9:35 PM, F

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

2017-05-05 Thread Kostas Michalopoulos via Lazarus
On Thu, May 4, 2017 at 8:53 PM, Graeme Geldenhuys via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > 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

Re: [Lazarus] Window Maker form resizes when selecting component

2017-04-24 Thread Kostas Michalopoulos via Lazarus
r WM when using Lazarus) but i decided again to see what is going on because switching WMs is annoying. On Mon, Apr 24, 2017 at 2:55 PM, zeljko wrote: > On 24.04.2017 13:50, Kostas Michalopoulos via Lazarus wrote: > >> Hi all, >> >> Does anyone know why the form (in desi

[Lazarus] Window Maker form resizes when selecting component

2017-04-24 Thread Kostas Michalopoulos via Lazarus
Hi all, Does anyone know why the form (in design mode) resizes itself every time i am selecting a component from the palette? Here is a small video showing the issue: https://webmshare.com/q78rb This only happens with Window Maker and only in Lazarus. I suspect it is either a Window Maker bug (s

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

2017-04-20 Thread Kostas Michalopoulos via Lazarus
Yeah, one thing i like with FPC and Lazarus is that there is a strong focus on backwards compatibility. Of course it isn't perfect (with FPC 3 i had to change some of my string code - e.g. i was loading files into strings by setting the length and BlockReading the string directly - but that took on

Re: [Lazarus] Alpha blending in GTK2 under Linux

2017-04-15 Thread Kostas Michalopoulos via Lazarus
Lazarus uses GDK instead of Cairo for most graphics stuff in GTK2 and GDK simply wraps X11 which doesn't support alpha blending. AFAIK GTK2 was using only GDK for graphics but at some point they switched to Cairo which does all graphics operations in the CPU and allows for alpha blending in X11. Ho

Re: [Lazarus] Vulkan Library for FreePascal/Lazarus

2017-04-13 Thread Kostas Michalopoulos via Lazarus
This is nice, although personally i do not like the use of multiple inc files. I think Benjamin Rosseaux's pasvulkan does it better with creating a single pas file (he also uses a unit from the vk.xml file): https://github.com/BeRo1985/pasvulkan/blob/master/src/Vulkan.pas On Thu, Apr 13, 2017 a

Re: [Lazarus] TPicture width questions (duplicate ways)

2017-03-10 Thread Kostas Michalopoulos via Lazarus
Of course the second part should have been Rect(0, 0, p.Jpeg.Width, p.Jpeg.Height)? :-P On Fri, Mar 10, 2017 at 7:01 PM, Kostas Michalopoulos < badsectorac...@gmail.com> wrote: > You can check yourself easily: Ctrl+Click on the p.Width to go to the > definition of the property, then Ctrl+Click on

Re: [Lazarus] TPicture width questions (duplicate ways)

2017-03-10 Thread Kostas Michalopoulos via Lazarus
You can check yourself easily: Ctrl+Click on the p.Width to go to the definition of the property, then Ctrl+Click on the GetWidth getter, Ctrl+Shift+Down arrow to see the code for the getter and see that it simply gets FGraphic's property. So what is FGraphic? Ctrl+Home to move at the top of the so

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

2017-02-26 Thread Kostas Michalopoulos via Lazarus
SVN is not ideal for icon formats. Beyond being too big (it is a verbose XML file after all), vector icons do not good at arbitrary sizes. 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

Re: [Lazarus] Widget set definitions

2017-02-13 Thread Kostas Michalopoulos via Lazarus
The LCL package has this in custom definitions for dependent packages: -dLCL -dLCL$(LCLWidgetType) So Lazarus simply defines the LCL and LCL at compile time. is one of the subdirectories in lcl/interfaces. On Mon, Feb 13, 2017 at 12:21 PM, Mark Morgan Lloyd via Lazarus < lazarus@lists.lazarus-

Re: [Lazarus] Run parameters

2017-02-11 Thread Kostas Michalopoulos via Lazarus
The problem of not associating build modes with run modes is that not all run modes will apply to all build modes. Note that i don't think run modes should be *part* of build modes, but only an association between build modes and run modes. Basically, what you say about a default run mode per build

Re: [Lazarus] Run parameters

2017-02-11 Thread Kostas Michalopoulos via Lazarus
I think having a list for run modes (i assume you mean the settings you specify in the Run -> Run Parameters dialog box) that you can select from a popup menu near the "play" button and have different run modes apply, like you can select the build mode from the "gear" button, is a good idea. Being

Re: [Lazarus] TDataModule for non-database non-visual components

2017-02-07 Thread Kostas Michalopoulos via Lazarus
21:17:48 +0200 > Kostas Michalopoulos via Lazarus wrote: > > > Hi all, > > > > A simple question, is it ok to use a TDataModule for non-visual > components > > that can be shared among forms (and generally contain app-wide stuff)? > >

[Lazarus] TDataModule for non-database non-visual components

2017-02-06 Thread Kostas Michalopoulos via Lazarus
Hi all, A simple question, is it ok to use a TDataModule for non-visual components that can be shared among forms (and generally contain app-wide stuff)? There doesn't seem to be a plain TModule or something like that. I ask because the docs do not make the distinction clear (the name doesn't help

Re: [Lazarus] New high DPI features in 1.7

2016-12-09 Thread Kostas Michalopoulos via Lazarus
Looks like Visual Basic was onto something when they defaulted to "twips" back in the 90s :-P On Fri, Dec 9, 2016 at 12:52 PM, Erwin van den Bosch via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > Thanks for the good work Ondrej! A big step forward. I will test it in the > next few days and h

Re: [Lazarus] DoomRL based of FPC now open sourced

2016-12-07 Thread Kostas Michalopoulos via Lazarus
And cue all the people in Reddit yet again reminiscing about their Turbo Pascal days. And those are the best comments :-P. Yesterday i wrote a rendering test for light clustering with forward rendering (https://www.youtube.com/watch?v=MefoEXK1gUw). It has been a while since i wrote something more

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-16 Thread Kostas Michalopoulos via Lazarus
If the existing functionality differs from Delphi, i say to keep the existing functionality as the default. After all what is more important? Breaking existing Lazarus users' code or potentially having a Delphi code migration become slightly harder because a project will need to change a property

Re: [Lazarus] Lazarus Release 1.6.2

2016-11-15 Thread Kostas Michalopoulos via Lazarus
The installer had an "Uninstall" button to uninstalled the previous version. I used that then used Tools -> Build Lazarus with option to rebuild the IDE so that it'll have the packages i have installed and it worked fine. On Tue, Nov 15, 2016 at 11:10 PM, Mattias Gaertner via Lazarus < lazarus@li

Re: [Lazarus] Lazarus Release 1.6.2

2016-11-15 Thread Kostas Michalopoulos via Lazarus
The main site seems to still serve the 1.6.0 download. On Tue, Nov 15, 2016 at 8:42 PM, Luca Olivetti via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > El 15/11/16 a les 19:27, Ondrej Pokorny via Lazarus ha escrit: > >> Thank you for your efforts - please send the patch to mantis so that DB >

Re: [Lazarus] TColor and Alpha channel support

2016-09-26 Thread Kostas Michalopoulos via Lazarus
Geldenhuys via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On 2016-09-26 16:15, Kostas Michalopoulos via Lazarus wrote: > > Is there a need for alpha *everywhere* a color is used? > > So how would functions that take TColor parameters work? For example, > drawing a gradie

Re: [Lazarus] TColor and Alpha channel support

2016-09-26 Thread Kostas Michalopoulos via Lazarus
Is there a need for alpha *everywhere* a color is used? From my experience, i've only really needed alpha for TCanvas (so i can draw, e.g. translucent rectangles). I don't think there is a need to add more baggage in controls by introducing yet another mostly redundant FPColor property. Controls th