El 24/5/24 a les 18:05, Marc Weustink via lazarus ha escrit:
And even if I use a different rc file with {$R myspec.rc}, if the
source file with the directive doesn't change it won't be automtically
recompiled so no regeneration of the resource file would take place,
even if one of the files
El 23/5/24 a les 21:46, Luca Olivetti via lazarus ha escrit:
El 23/5/24 a les 20:47, Marc Weustink via lazarus ha escrit:
In this case, don't use the project.res, but use your own. You can
include multiple resource files. So you can generate it before.
I just followed the instructions here
od idea to
add the files that are indicated here to the project file as well".
Bye
Marc
On May 23, 2024 1:32:06 PM GMT+02:00, Luca Olivetti via lazarus
wrote:
El 23/5/24 a les 12:40, Mattias Gaertner via lazarus ha escrit:
On 5/22/24 15:03, Luca Olivetti via lazarus wrote:
Hello,
I
El 23/5/24 a les 16:11, Luca Olivetti via lazarus ha escrit:
El 23/5/24 a les 15:43, zeljko ha escrit:
No such error when using gtk2, but I prefer qt5.
It is KDE problem (probably bug), disable in IDE options -> Windows ->
"IDE title shows project directory" and it'll w
El 23/5/24 a les 15:43, zeljko ha escrit:
No such error when using gtk2, but I prefer qt5.
It is KDE problem (probably bug), disable in IDE options -> Windows ->
"IDE title shows project directory" and it'll work.
Thank you, I'll try that if it happens again.
Strangely enough, it doesn't
El 23/5/24 a les 12:40, Mattias Gaertner via lazarus ha escrit:
On 5/22/24 15:03, Luca Olivetti via lazarus wrote:
Hello,
I'm trying to use the "Compiler commands" -> "Execute before" to
generate a file that will be embedded as a resource in the executable,
b
El 23/5/24 a les 12:58, Mattias Gaertner via lazarus ha escrit:
On 5/23/24 12:47, Luca Olivetti via lazarus wrote:
[...]
No, it's not supposed to be a GUI program.
I added it now, it compiles, but then I have the problem reported in
the BGRAbitmap bugtracker (and I wonder why it compiled
El 23/5/24 a les 12:33, Luca Olivetti via lazarus ha escrit:
El 23/5/24 a les 12:26, Marco van de Voort via lazarus ha escrit:
Op 23-5-2024 om 12:15 schreef Luca Olivetti via lazarus:
Warning: linker: /usr/bin/ld:
/home/luca/Datos/laz_3_2/lcl/lib/LCLBase/3.2.2/x86_64-linux/Default
El 23/5/24 a les 12:26, Marco van de Voort via lazarus ha escrit:
Op 23-5-2024 om 12:15 schreef Luca Olivetti via lazarus:
Warning: linker: /usr/bin/ld:
/home/luca/Datos/laz_3_2/lcl/lib/LCLBase/3.2.2/x86_64-linux/Default/wsimglist.o: in function `REGISTERCUSTOMIMAGELISTRESOLUTION
El 23/5/24 a les 12:01, Luca Olivetti via lazarus ha escrit:
El 23/5/24 a les 10:38, Luca Olivetti via lazarus ha escrit:
I rebuilt the ide again with qt5 and the problem is gone. Weird.
El 23/5/24 a les 10:37, Luca Olivetti via lazarus ha escrit:
Forgot to say, this is under debian 12
El 23/5/24 a les 10:38, Luca Olivetti via lazarus ha escrit:
I rebuilt the ide again with qt5 and the problem is gone. Weird.
El 23/5/24 a les 10:37, Luca Olivetti via lazarus ha escrit:
Forgot to say, this is under debian 12 x86_64 with plasma desktop.
As per the subject, if I compile
El 23/5/24 a les 10:37, Luca Olivetti via lazarus ha escrit:
Forgot to say, this is under debian 12 x86_64 with plasma desktop.
As per the subject, if I compile the ide with qt5 I cannot open anything
(projects, units, etc.), since the file open dialog gives an error
(localizer, approximate
As per the subject, if I compile the ide with qt5 I cannot open anything
(projects, units, etc.), since the file open dialog gives an error
(localizer, approximate translation) "cannot create worker KIO process.
Couldn't create a socket to launch the KIO process for the 'tags' protocol".
No
El 22/5/24 a les 15:03, Luca Olivetti via lazarus ha escrit:
Hello,
I'm trying to use the "Compiler commands" -> "Execute before" to
generate a file that will be embedded as a resource in the executable,
but it seems the command is executed after the resources are compi
Hello,
I'm trying to use the "Compiler commands" -> "Execute before" to
generate a file that will be embedded as a resource in the executable,
but it seems the command is executed after the resources are compiled
(there's a message complaining that the file is not found and in fact
when I
El 22/4/24 a les 11:47, Martin Frb via lazarus ha escrit:
On 22/04/2024 11:13, Luca Olivetti via lazarus wrote:
That doesn't answer my question: then how is it possible that I can
step into the lcl with gdb and -gl even if I don't specify "-gl" in
additions and overrides?
Becaus
El 22/4/24 a les 11:29, Luca Olivetti via lazarus ha escrit:
That doesn't answer my question: then how is it possible that I can
step into the lcl with gdb and -gl even if I don't specify "-gl" in
additions and overrides?
Adding "-gw3" to the options in "Tools
El 22/4/24 a les 11:31, Mattias Gaertner via lazarus ha escrit:
On 22.04.24 10:37, Luca Olivetti via lazarus wrote:
[...]
First of all, the fpc release units have no debug information, so
normally there is nothing to pick.
I have no problem with rtl/fcl units, as I explained, I compile
El 22/4/24 a les 11:22, Luca Olivetti via lazarus ha escrit:
El 22/4/24 a les 11:13, Luca Olivetti via lazarus ha escrit:
El 22/4/24 a les 11:02, Martin Frb via lazarus ha escrit:
On 22/04/2024 10:37, Luca Olivetti via lazarus wrote:
But if they have it would be super useful to have
El 22/4/24 a les 11:13, Luca Olivetti via lazarus ha escrit:
El 22/4/24 a les 11:02, Martin Frb via lazarus ha escrit:
On 22/04/2024 10:37, Luca Olivetti via lazarus wrote:
But if they have it would be super useful to have a setting "use the
debug setting of the system
El 22/4/24 a les 11:02, Martin Frb via lazarus ha escrit:
On 22/04/2024 10:37, Luca Olivetti via lazarus wrote:
But if they have it would be super useful to have a setting "use the
debug setting of the system unit", but there is not.
You can add the -gw3 flag depending on build m
El 22/4/24 a les 10:10, Mattias Gaertner via lazarus ha escrit:
On 22.04.24 09:54, Luca Olivetti via lazarus wrote:
[...]
make clean install OPT=-gw3 INSTALL_PREFIX=d:\pp-fpdebug
(different path so I can keep the two versions) and I can step inside
the rtl, just not inside the LCL.
Since
Hello,
up until now I used gdb with -gl and, if in the project options I
selected -gl, I could step inside the LCL.
For the rtl/fcl I compile fpc this way
make clean install OPT=-g INSTALL_PREFIX=d:\pp-debug
and I specify the resulting compiler in Lazarus' tools->options.
Now I'm switching
El 28/7/23 a les 16:35, Michael Van Canneyt via lazarus ha escrit:
But if all these terribly unhappy and depressed users have a better
name, I'm all ears.
So far, nothing catchy has been offered.
What about "Futura RTL"?
Short, catchy and...completely meaningless in this context :-D
Great
El 27/7/23 a les 17:16, Maxim Ganetsky via lazarus ha escrit:
27.07.2023 18:02, Luca Olivetti via lazarus пишет:
El 3/7/23 a les 13:33, Mattias Gaertner via lazarus ha escrit:
You can then open that copy in the RC1. Please test:
Now that, with Martin, I found the casue of the problem
El 3/7/23 a les 13:33, Mattias Gaertner via lazarus ha escrit:
You can then open that copy in the RC1. Please test:
Now that, with Martin, I found the casue of the problem with the
fpbebugger, now I have a different problem: the TSpeedButtons cut the
text that previously fit.
See this
El 26/7/23 a les 17:42, Martin Frb via lazarus ha escrit:
So FpDebug did not find the source file.
I found the issue: it's the -Xg (use external debug symbols file) option.
I wonder why it doesn't work under windows but it does under linux.
Bye
--
Luca Olivetti
Wetron Automation Technology
El 26/7/23 a les 17:26, Luca Olivetti via lazarus ha escrit:
El 26/7/23 a les 17:18, Luca Olivetti via lazarus ha escrit:
Are there ways to reproduce it ?
Could sources be shared?
The projects I tested no, I'll see if I can find a simpler project
with the same issue.
I found a simple
El 26/7/23 a les 17:18, Luca Olivetti via lazarus ha escrit:
Are there ways to reproduce it ?
Could sources be shared?
The projects I tested no, I'll see if I can find a simpler project with
the same issue.
I found a simple project that I can share but I'm not sure it's a good
idea
El 26/7/23 a les 16:50, Martin Frb via lazarus ha escrit:
What happens to the breakpoint icon when you start the debugger?
Before you start the debugger, it should have a "?".
Yes, state "?(On)"
When you start it, what happens.
A pause simbol (two vertical white bars in a red circle),
El 26/7/23 a les 16:36, Maxim Ganetsky via lazarus ha escrit:
I would recommend to checkout not the tag, but the tip of `fixes_3_0`
branch. It already contains a number of important fixes.
If it can still be reproduced with it, please create an issue.
OK, I did a "git checkout fixes_3_0"
El 3/7/23 a les 13:33, Mattias Gaertner via lazarus ha escrit:
- Compile, debug and run
I don't remember the exact wording but, when converting the settings
from lazarus 2.2 (which I copied in a different directory), it offered
to use the fpdebug backend.
Then, when compiling a *existing*
El 24/7/23 a les 23:20, Michael Van Canneyt via lazarus ha escrit:
To this end, it would be
helpful to add a paragraph on the wiki page underlining how to retain the
single-byte RTL; or, if no user action is necessary, mention that, to set
minds at ease. Thank you for this hard work!
No
El 18/7/23 a les 13:50, Mattias Gaertner via lazarus ha escrit:
On 17.07.23 19:01, Luca Olivetti via lazarus wrote:
Hello,
TThread.Queue and Application.QueueAsyncCall more or less do the same
thing (even if they use two different queues that are managed at
different times in the main
Hello,
TThread.Queue and Application.QueueAsyncCall more or less do the same
thing (even if they use two different queues that are managed at
different times in the main thread).
When it's better to use one or the other?
When you're not using Lazarus' TApplication obviously you cannot use
El 21/5/23 a les 11:05, Luca Olivetti via lazarus ha escrit:
El 21/5/23 a les 10:48, Michael Van Canneyt via lazarus ha escrit:
Any solutions ?
I found this issue a while ago (and I think I reported it here but I
cannot find the message right now)
found it
https://lists.lazarus-ide.org
El 21/5/23 a les 10:48, Michael Van Canneyt via lazarus ha escrit:
Any solutions ?
I found this issue a while ago (and I think I reported it here but I
cannot find the message right now) and even if the context menu is
greyed out, the "F2" key still works to rename the identifier.
No idea
El 18/4/23 a les 15:41, Luca Olivetti via lazarus ha escrit:
El 18/4/23 a les 12:25, Giuliano Colla via lazarus ha escrit:
I did look in vain for that radiobutton. The only one available
(Lazarus 2.2.6) is "clean common files":
Strange that it's a only checkbox and not a r
El 18/4/23 a les 12:25, Giuliano Colla via lazarus ha escrit:
I did look in vain for that radiobutton. The only one available (Lazarus
2.2.6) is "clean common files":
Strange that it's a only checkbox and not a radiobutton.
In 2.2.6 (win32/linux qt5) I see a radiobutton with the options
El 28/3/23 a les 0:45, Luca Olivetti via lazarus ha escrit:
El 28/3/23 a les 0:01, Michael Van Canneyt ha escrit:
My bad, I made a typo, it should have been
MyException:=ExceptionClass(ut.FatalException).ClassType).Create(Exception(ut.FatalException).message)
Thank you.
Actually
El 28/3/23 a les 0:01, Michael Van Canneyt ha escrit:
My bad, I made a typo, it should have been
MyException:=ExceptionClass(ut.FatalException).ClassType).Create(Exception(ut.FatalException).message)
Thank you.
Actually it is
El 27/3/23 a les 17:26, Luca Olivetti via lazarus ha escrit:
El 27/3/23 a les 16:50, Michael Van Canneyt ha escrit:
Ehm. In case of an exception, ut will never be freed ?
That's what I said.
I was looking for a way to free it *and* raise the exception in the
context of the main thread
El 27/3/23 a les 16:50, Michael Van Canneyt ha escrit:
Ehm. In case of an exception, ut will never be freed ?
That's what I said.
I was looking for a way to free it *and* raise the exception in the
context of the main thread.
If I move the ut.free before the raise, the exception has already
El 27/3/23 a les 16:13, Michael Van Canneyt via lazarus ha escrit:
On Mon, 27 Mar 2023, Luca Olivetti via lazarus wrote:
El 27/3/23 a les 11:59, Luca Olivetti via lazarus ha escrit:
[*] instead of opening the query I spawn a thread that opens it, wait
for it to finish while executing
El 27/3/23 a les 15:55, Jean SUZINEAU via lazarus ha escrit:
Le 27/03/2023 à 14:40, Luca Olivetti via lazarus a écrit :
The problem here is, if AProc raises an exception, I cannot free the
thread causing a leak.
May be you can create a new exception class specifically for
ExecWithSplash
El 27/3/23 a les 15:40, Mattias Gaertner via lazarus ha escrit:
procedure ExecWithSplash(AProc:TThreadProc);
var wf:TWaitForm;
ut:TExecInThread;
begin
Wf:=TWaitForm.Create(Application);
WF.Show;
ut:=TExecInThread.create(AProc);
while not ut.Finished
El 27/3/23 a les 11:59, Luca Olivetti via lazarus ha escrit:
[*] instead of opening the query I spawn a thread that opens it, wait
for it to finish while executing Application.ProcessMessages and
eventually reraise the exception that was generated inside the thread.
Speaking of which, I
El 27/3/23 a les 12:07, Giuliano Colla ha escrit:
In a similar scenario my solution has been that of an horrible hack.
It's a hack, but it works. I've put in a corner of my window a label of
just one character, and, with a frequent timer (200 ms in my case) I
update the caption. I'm using a
El 27/3/23 a les 11:06, Sven Barth via lazarus ha escrit:
Luca Olivetti via lazarus <mailto:lazarus@lists.lazarus-ide.org>> schrieb am Mo., 27. März 2023,
10:34:
El 27/3/23 a les 10:13, Jean SUZINEAU via lazarus ha escrit:
>
> Le 27/03/2023 à 09:46, Luca Olive
El 27/3/23 a les 10:34, Luca Olivetti via lazarus ha escrit:
El 27/3/23 a les 10:13, Jean SUZINEAU via lazarus ha escrit:
Le 27/03/2023 à 09:46, Luca Olivetti via lazarus a écrit :
procedure TUpdateThread.Execute;
begin
while not Terminated do
begin
FWaitForm.ShowProgress;
Sleep
El 27/3/23 a les 10:13, Jean SUZINEAU via lazarus ha escrit:
Le 27/03/2023 à 09:46, Luca Olivetti via lazarus a écrit :
procedure TUpdateThread.Execute;
begin
while not Terminated do
begin
FWaitForm.ShowProgress;
Sleep(30);
end;
end;
Usually I use TThread.Synchronize to ensure
Hello,
I'd like to show a splash screen with an animation during a lengthy
operation.
I cannot rely on a timer to show the animation since the message loop
isn't running, so I'm using a thread to directly paint over the form, i.e.:
WaitForm.Show;
Application.ProcessMessages;
...
procedure
El 24/2/23 a les 11:10, Michael Van Canneyt via lazarus ha escrit:
No.
RecalcBufListSize does not necessarily fetch all the records. It fetches as
much records as needed: 10 by default, but classes such as TDBGrid may set
the number of needed records to the number of visible grid lines.
It can
El 23/2/23 a les 17:16, Michael Van Canneyt ha escrit:
write a TDataset descendant tailor made for this
application, any pointer on how to write a minimal descendant?
I'm looking at the TMemDataset implementation as an example, is it a
good one?
As good as any other.
The idea is to
El 23/2/23 a les 17:16, Michael Van Canneyt ha escrit:
Even if such a component existed, I don't think it would fit my use-case.
Why do you think so ? Paging is exactly what you want to do.
Not exactly, I mean, yes, it is paging but it has to be "transparent", I
don't want to add
El 23/2/23 a les 13:52, Michael Van Canneyt via lazarus ha escrit:
On Thu, 23 Feb 2023, Luca Olivetti via lazarus wrote:
El 23/2/23 a les 11:11, Michael Van Canneyt via lazarus ha escrit:
But IMO: in the first place you should ask yourself if displaying
10.000 records is
what you actually
El 23/2/23 a les 12:24, Jean SUZINEAU via lazarus ha escrit:
Le 23/02/2023 à 11:37, Luca Olivetti via lazarus a écrit :
No, that's not possible, in any case polling isn't a problem: it's the
same application that modifies the table, and it only does the
"refresh" when necessary.
That
El 23/2/23 a les 11:25, Marco van de Voort via lazarus ha escrit:
Maybe upgrade to a DBMS (like firebird, mssql,postgres) that supports
notifications so that you don't have to poll, but get a notification if
something changes?
No, that's not possible, in any case polling isn't a problem:
El 23/2/23 a les 11:11, Michael Van Canneyt via lazarus ha escrit:
But IMO: in the first place you should ask yourself if displaying 10.000
records is
what you actually want to do.
No, I just need to display 20 or so records, the problem is I'd like the
user to be able to scroll over the
El 23/2/23 a les 9:43, Michael Van Canneyt via lazarus ha escrit:
Something like this:
https://docwiki.embarcadero.com/RADStudio/Rio/en/Browsing_Tables_(FireDAC)#Live_Data_Window_Mode
This is not something that the grid handles. This is a dataset feature.
Yes, I supposed so
At this
El 23/2/23 a les 9:04, Luca Olivetti via lazarus ha escrit:
Hello,
do you know of any component/dataset combo that works like a TDBGrid but
doesn't load all the records from the db when doing a refresh, just the
ones that are currently visible, yet offering seamless scrolling?
I looked
Hello,
do you know of any component/dataset combo that works like a TDBGrid but
doesn't load all the records from the db when doing a refresh, just the
ones that are currently visible, yet offering seamless scrolling?
I looked in the wiki but I couldn't find any.
Bye
--
Luca Olivetti
Wetron
El 21/2/23 a les 13:48, Bo Berglund via lazarus ha escrit:
Any ideas what has gone wrong?
no idea really, I'm not familiar with fppkg.
I can only say that in lazarus my "fppkg configuration file" setting is
empty, if I invoke "fppkg list" from the command line it works both
under windows and
El 21/2/23 a les 11:12, Bo Berglund via lazarus ha escrit:
So it is definitely about the Lazarus version 2.2.4!
I know that this won't help you, but just for the record I have Lazarus
2.2.4 both under windows and linux and no popup on either.
Both self compiled with fpc 3.2.2 (32 bits fpc
El 12/2/23 a les 14:44, Bo Berglund via lazarus ha escrit:
I found the wiki page:
https://wiki.lazarus.freepascal.org/Lazarus_Packages
it seems not to describe my use case, I believe.
Actually it does, if you follow the heading "5.4 Creating a package for
your common units" right at the
El 11/1/23 a les 10:20, Luca Olivetti via lazarus ha escrit:
El 10/1/23 a les 16:39, Luca Olivetti via lazarus ha escrit:
For the record:
in the report designer the band has a "Dataset" property and you can
assign to it the name of a TRfDbDataset on the form.
I tried that
El 10/1/23 a les 16:39, Luca Olivetti via lazarus ha escrit:
For the record:
in the report designer the band has a "Dataset" property and you can
assign to it the name of a TRfDbDataset on the form.
I tried that previously and it didn't seem to work.
After some painful debugg
Hello,
I see that I cannot use more than one dataset in a report (actually I
can, the problem is that the second dataset show always the same line,
repeated for how many rows there are in the first one i.e.:
ds1 row1
ds1 row2
ds1 row3
ds2 row1
ds2 row1
ds2 row1
)
El 13/12/22 a les 12:53, Luca Olivetti via lazarus ha escrit:
As per the subject, I'd like LazReport to print "No records to print"
(or whatever else I want to print) when there are no records in the
dataset.
How do I do that?
I found a way: add a record summary band wi
As per the subject, I'd like LazReport to print "No records to print"
(or whatever else I want to print) when there are no records in the dataset.
How do I do that?
Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007
--
El 12/11/22 a les 12:13, Bo Berglund via lazarus ha escrit:
On Sat, 12 Nov 2022 09:45:15 +0100, Luca Olivetti via lazarus
wrote:
El 11/11/22 a les 23:37, Bo Berglund via lazarus ha escrit:
But how to jump to the end of the text on screen?
TheSynEdit.TopLine:=TheSynEdit.Lines.Count
El 11/11/22 a les 23:37, Bo Berglund via lazarus ha escrit:
But how to jump to the end of the text on screen?
TheSynEdit.TopLine:=TheSynEdit.Lines.Count-TheSynEdit.LinesInWindow+1
Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010) Fax +34
El 11/11/22 a les 17:56, Bo Berglund via lazarus ha escrit:
I have never used TSynEdit before so I tried dropping one onto my form and it
looked a bit "strange" with a wide margin to the left... > How does it work
(especially the margin that steals space)?
Play with the properties in the
El 11/11/22 a les 16:29, Bo Berglund via lazarus ha escrit:
I have noticed that after a while the display becomes very sluggish when data
arrives and I think that is due to the way the component operates.
You could try using a TSynEdit instead of a TListBox: some years ago I
switched from
El 9/11/22 a les 3:06, Aruna Hewapathirane via lazarus ha escrit:
This time it tries to link but dies saying can't find : /usr/bin/ld.bfd:
cannot find -lgstreamer-1.0
In debian/ubuntu based distributions you'll have to install the
libgstreamer1.0-dev package:
$ apt-file search
El 26/8/22 a les 9:27, Ondrej Pokorny ha escrit:
Hello Luca,
better send the message to pas2js mailing list directly:
https://lists.freepascal.org/mailman/listinfo/pas2js/
Ouch, I forgot there ir a pas2js list and I'm even subscribed to it. Done.
Sorry for the noise.
Bye
--
Luca Olivetti
Hello,
I see that pas2js has support for websockets, but I cannot find if it
also supports server sent events.
A couple of years ago I implemented an application with sse where I used
fpWeb and plain html+javascript in the browser.
Now I need to implement a more complex application and I'd
El 24/8/22 a les 13:15, Luca Olivetti via lazarus ha escrit:
El 24/8/22 a les 12:50, Michael Van Canneyt ha escrit:
https://bugs.freepascal.org/view.php?id=33737
I added a couple of comments to that bug (that I cannot reopen).
I reopened it. If you can implement a patch that checks
El 24/8/22 a les 12:50, Michael Van Canneyt ha escrit:
https://bugs.freepascal.org/view.php?id=33737
I added a couple of comments to that bug (that I cannot reopen).
I reopened it. If you can implement a patch that checks forcedClosed for
postgres, I will be glad to check & apply it...
El 17/5/18 a les 9:50, Luca Olivetti via Lazarus ha escrit:
El 15/05/18 a les 21:43, Luca Olivetti via Lazarus ha escrit:
El 15/05/18 a les 21:11, Michael Van Canneyt via Lazarus ha escrit:
I will need to check this, but the purpose of Close(True) is exactly to
ignore errors while closing
El 30/6/22 a les 18:20, Werner Pamler via lazarus ha escrit:
But isn't this the same problem? When Vampyre is not installed, and the
streamer sees the TImageingPNG classname there is no way how to find the
end of the Picture.Data block.
Wouldn't it be better (if at all possible) to add a
El 30/6/22 a les 13:45, Luca Olivetti via lazarus ha escrit:
I'm puzzled: now I removed the vampyre lib from the ide, in a form I
need ImagingComponent and ImagingClassed.
I drop a TPicture with a png image and it is blank at runtime.
This time it is streamed as TPortableNetworkGraphic
El 24/6/22 a les 9:48, Luca Olivetti via lazarus ha escrit:
El 24/6/22 a les 0:19, Mattias Gaertner via lazarus ha escrit:
but why did it find the class for writing and not for reading it back?
Also, once solved that, if it streams it using a class provided by a
package, shouldn't the project
Hello,
using a TDbGrid, I want to take different actions if the user is
inserting or appending a record (in this case to automatically assign
the ordering field so that the record appears in the right row after post).
The method TDataSet.DoInsertAppend just differentiates them internally,
With Lazarus 2.0.12 the OnResize event for a form was fired while
resizing, but in 2.2.2 it's fired only when the resizing is done (only
under windows, under linux it behaves the same as before).
However, if I put, say, a panel with top,left,bottom,right anchoring,
its OnResize event is fired
El 26/6/22 a les 13:44, Werner Pamler via lazarus ha escrit:
Am 26.06.2022 um 13:20 schrieb Luca Olivetti via lazarus:
El 26/6/22 a les 11:36, Werner Pamler via lazarus ha escrit:
Am 26.06.2022 um 10:54 schrieb Luca Olivetti via lazarus:
VampyreImaginPackage 0.80
Mine is v0.82 which
El 26/6/22 a les 11:36, Werner Pamler via lazarus ha escrit:
Am 26.06.2022 um 10:54 schrieb Luca Olivetti via lazarus:
VampyreImaginPackage 0.80
Mine is v0.82 which is the current version in OPM. According to their
release notes there are changes related to PNG saving.
My online package
El 26/6/22 a les 1:08, Werner Pamler via lazarus ha escrit:
It doesn't even work at designtime (see above).
Try attached demo project. The "paw" image was inserted into a TImage
after installation of Vampyre. All I had to do to get it working is to
add Vampyre to the project requirements
El 24/6/22 a les 17:27, Werner Pamler via lazarus ha escrit:
Ah, of course. (I thought I had searched for "Register" in unit
graphics...). Now I saw that Vampyre also uses these TPicture class
methods to finally register their formats for TPicture. Thus, everything
should be fine.
No, it
[sorry for the top post, I'm answering from my phone]
I think it does, otherwise the TPicture in the TImage wouldn't be streamed as
TImagingPNG.
OTOH, if I read the TPicture code correctly, there's only one registration so I
don't understand how it is possible that it finds the class for
El 24/6/22 a les 0:19, Mattias Gaertner via lazarus ha escrit:
but why did it find the class for writing and not for reading it back?
Also, once solved that, if it streams it using a class provided by a
package, shouldn't the project have a dependency automatically added
on that package?
Both
El 23/6/22 a les 21:40, Mattias Gaertner via lazarus ha escrit:
On Thu, 23 Jun 2022 20:38:59 +0200
Luca Olivetti via lazarus wrote:
[...]
I don't understand why the ide prefers one class over the other, I
guess they are all treated the same and the one registered last wins?
Correct. See
El 23/6/22 a les 13:29, Luca Olivetti via lazarus ha escrit:
I self build lazarus from the git sources, so maybe it is something in
my environment.
I found the cause: it's the VampyreImaging library.
If I install it in the ide, it will stream png as "TImagingPNG&quo
El 23/6/22 a les 13:29, Luca Olivetti via lazarus ha escrit:
I tested under both linux(qt5) and windows and the behavior is the same
(the only difference is that under windows I use fpc 3.2.0 with lazarus
2.0.12 and 3.2.2 with 2.2.2, while under windows I use fpc 3.2.2 for
both). Windows 32
Before reporting an issue, I wanted to ask.
I have a strange issue with TImage and lazarus 2.2.2: if (at designtime)
I load a png or a jpg image in a TImage but at runtime it is blank.
Worse, if I copy paste it, I get a streaming read error on Data (either
when pasting or when running the
El 9/12/21 a les 16:19, Bo Berglund via lazarus ha escrit:
On Thu, 9 Dec 2021 16:01:01 +0100, Luca Olivetti via lazarus
wrote:
El 9/12/21 a les 15:05, Bo Berglund via lazarus ha escrit:
If not is there another Lazarus component that can be used?
Maybe you could use TMPHexEditorEx
https
El 9/12/21 a les 15:05, Bo Berglund via lazarus ha escrit:
If not is there another Lazarus component that can be used?
Maybe you could use TMPHexEditorEx
https://github.com/michalgw/mphexeditor
Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004
El 29/11/21 a les 17:54, Mattias Gaertner via lazarus ha escrit:
On Fri, 26 Nov 2021 13:15:07 +0100
Luca Olivetti via lazarus wrote:
Hello,
Application.QueueAsyncCall is defined as
procedure Application.QueueAsyncCall(const AMethod:TDataEvent; Data:
PtrInt);
When I want to pass a string
Hello,
Application.QueueAsyncCall is defined as
procedure Application.QueueAsyncCall(const AMethod:TDataEvent; Data:
PtrInt);
When I want to pass a string or a big structure as "Data", I create a
pointer and use that, casting it as PtrInt, then I use and free it in
the Async Method., e.g.
El 24/11/21 a les 14:38, Luca Olivetti via lazarus ha escrit:
.
I suppose the message comes from some windows core dll and windbg can
display it, I don't know if and how gdb can (I'm not using fpdebug yet,
maybe it can?).
Well, call me stupid: the message is perfectly visible in the "
1 - 100 of 289 matches
Mail list logo