:48 +0200
> Kostas Michalopoulos via Lazarus <lazarus@lists.lazarus-ide.org> 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)?
>
&g
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 <
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
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-
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
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
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 <
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
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
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
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
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
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.
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
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
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
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 <zel...@holobit.net> wrote:
> On 24.04.2017 13:50, Kostas Michalopoulos via Lazarus wrote:
>
>> Hi all,
>>
>> Does anyone kn
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
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
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
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
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
n Fri, 26 May 2017 18:24:12 +0300
> Kostas Michalopoulos via Lazarus <lazarus@lists.lazarus-ide.org> 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
&g
> 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
rus-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
>
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,
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
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
Mattias Gaertner via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
> On Sun, 26 Nov 2017 19:32:21 +0200
> Kostas Michalopoulos via Lazarus <lazarus@lists.lazarus-ide.org> wrote:
>
> >[...]
> > As i said, i do not think this would be useful enough to others to be
>
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
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
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
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
> 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
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
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
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
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"
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
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
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
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
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
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:
&
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
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.
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)
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
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
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
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
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
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
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
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
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
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't find any
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,
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
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,
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...
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
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
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
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
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
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
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
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
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
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
71 matches
Mail list logo