Re: [Lazarus] Can I rebuild Lazarus installed via apt on an RPi4B?

2023-12-09 Thread Salvatore Coppola via lazarus
A simple way to get lazarus compiled from source:
1. Install the right fpc via packages;
2. Compile lazarus from source via makefile

Salvatore


⁣Ottieni BlueMail per Android ​

Il giorno 7 Dic 2023, 11:50, alle ore 11:50, Mattias Gaertner via lazarus 
 ha scritto:
>
>
>On 07.12.23 11:22, Bo Berglund via lazarus wrote:
>>[...]
>> Also looked at the /usr/bin dir and it is owned by root so no chance
>of
>> installing as a user there...
>
>Yes, see
>https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
>
>
>> I thought that perhaps when running apt without sudo it would change
>install
>> path to something inside the $HOME location, but apparently not...
>
>You can extract a debian package anywhere, but you can install it only
>as root to fixed folders.
>
>
 So how does this work?
>>>
>>> Lazarus tests before compiling a package if the output directory is
>>> writable and if not redirects to a sub directory of its config
>directory.
>>> This is a feature of the IDE and lazbuild.
>>> The makefiles do not support this, so a "make" fails.
>>
>> So to rebuild Lazarus from the command line I should use lazbuild,
>right?
>> What arguments are needed for lazbuild?
>>
>> I looked here: https://wiki.lazarus.freepascal.org/lazbuild
>>
>> So will this be sufficient:
>>
>> lazbuild --build-ide="Normal IDE" --pcp="$HOME/.lazarus_2.2.6"
>> --compiler=$HOME/bin/ppcarm
>
>Seeing all your experiments I don't know if it is sufficient for you.
>It
>sounds right.
>Although if you don't want to use the defaults, then I recommend to
>*not* install Lazarus from apt, but simply download the git, create a
>lazarus.cfg and "make clean all".
>
>
>> ...
>> If I use sudo apt install lazarus, will that also pull fpc as a
>dependency
>
>Yes.
>
>> or
>> should I use:
>>
>>   sudo apt install fpc lazarus
>>
>> instead?
>> And what about the lazarus sources, are they pulled in as well with
>the sudo apt
>> install lazarus command?
>
>Yes.
>
>
>>[...]
>> I have been building Fpc/Lazarus from sources since many years, also
>tested
>> fpcupdeluxe a few times. So getting/using the sources is known.
>>
>> I usually download the tarballs with a release tag from gitlab using
>wget.
>> After I have built fpc and symlinked into $HOME/bin I build Lazarus
>like this:
>>
>> cd $HOME/devtools/lazarus/2.2.6/
>> make clean PP=$HOME/bin/ppcarm && make bigide PP=$HOME/bin/ppcarm
>
>Shorter:
>make clean bigide PP=$HOME/bin/ppcarm
>
>
>>[...] > New fpc?
>> Being able to upgrade fpc on the side without disruption of Lazarus
>is also an
>> issue for me, is there some setting/config within the pcp directory
>that I can
>> change to point Lazarus to a new fpc compiler and it will then be
>possible to
>> rebuild Lazarus with that new compiler?
>
>For compiling your project set the compiler in Project Options. Use
>build modes for multiple platforms.
>For compiling the IDE with different fpc versions, install the fpc
>sources in paths that only differ in version number, so you can use the
>
>IDE macro $(FPCVer). Then you can easily switch the used fpc in Tools /
>
>Options / Env / Files.
>
>
>> And what about day-to-day project compiles if I want to use the new
>compiler?
>> Is it as simple as changing the symlink of $HOME/bin/ppcarm to point
>to the new
>> compiler? It would affect all user installs utilizing the ppcarm
>compiler.
>
>Using build modes sounds easier.
>
>Mattias
>--
>___
>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] How to make TBitButton set the ModalResult properly and close the form?

2023-02-12 Thread Salvatore Coppola via lazarus
Did you call the form with Form2.ShowModal?




Ottieni BlueMail per Android



Il giorno 11 Feb 2023, 23:26, alle ore 23:26, Bart via lazarus 
 ha scritto:
>On Sat, Feb 11, 2023 at 9:26 PM gabor via lazarus
> wrote:
>
>> Have you set the TBitButton.ModalResult property or TBitButton.Kind
>> property appropriately?
>
>This would normally also set ModalResult to mrOk (Kind := bkOK) or
>mrCancle (Kind := bkCancel).
>Setting the modalresult to those values should be enough (no OnClick
>needed) to close the modal form.
>It definitively does so for me.
>
>--
>Bart
>--
>___
>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] How to fix slow screen refresh of TListbox?

2022-11-22 Thread Salvatore Coppola via lazarus
Back to the first question. You can append your data with lb.items.text.
Just prepare your data in a string like this: 
strtmp:=data1+lineending+data2+lineending+.
And append lb.items.text:=lb.items.text+lineending+strtmp
Yes it is a workaround but do the trick like beginupdate
Ciao

⁣Ottieni BlueMail per Android ​

Il giorno 11 Nov 2022, 16:29, alle ore 16:29, Bo Berglund via lazarus 
 ha scritto:
>I am using a TListbox component on a form for displaying debug data
>arriving
>over a serial line at 115200 baud.
>The data are a set of MQTT telegram texts which arrive in packets of
>about 40
>lines each time (once per 10 seconds).
>I add them to the listbox as follows:
>
>procedure THanSimulatorMain.OnRxData(Sender: TObject; const Data:
>TBytes);
>var
>  len, oldlen: integer;
>  DataTxt: AnsiString;
>begin
>  len := Length(Data); //Incoming packet
>  oldlen := Length(DataBuffer);
>  SetLength(DataBuffer, oldlen + len);
>  Move(Data[0], DataBuffer[oldlen], len);
>  SetLength(DataTxt, Length(DataBuffer));
>  Move(DataBuffer[0], DataTxt[1], Length(DataBuffer));
>  lbxRxData.Items.Text := DataTxt;  //Add the text to the list
>  lbxRxData.ItemIndex := lbxRxData.Items.Count -1; //To make it visible
>end;
>
>DataBuffer is a global TBytes container where the incoming data are
>stuffed as
>they arrive (it grows during the session).
>You see that the buffer contains the complete log history from the
>start...
>
>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.
>
>Now I wonder if there is some way to do as I did when I worked in
>Delphi with
>TListView objects, where I could use the BeginUpdate and EndUpdate
>calls to make
>all screen updates wait until it was all put in place.
>This was MUCH faster!
>
>But I can not find a BeginUpdate on the TListBox object, only
>BeginUpdateBounds,
>which does not tell me much
>
>Any suggestions?
>
>
>--
>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 Release 2.2.2

2022-05-20 Thread Salvatore Coppola via lazarus
It seems that the list of changes is for 2.2.0

⁣Ottieni BlueMail per Android ​

Il giorno 19 Mag 2022, 09:21, alle ore 09:21, Mattias Gaertner via lazarus 
 ha scritto:
>The Lazarus team is glad to announce the release of Lazarus 2.2.2.
>
>This is a bugfix release and was built with FPC 3.2.2.
>
>Here is the list of changes for Lazarus and Free Pascal:
>http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes
>http://wiki.lazarus.freepascal.org/User_Changes_3.2.2
>
>Here is the list of fixes for Lazarus 2.2.x:
>https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2
>
>The release is available for download on SourceForge:
>http://sourceforge.net/projects/lazarus/files/
>
>Choose your CPU, OS, distro and then the "Lazarus 2.2.2" directory.
>
>Checksums for the SourceForge files:
>https://www.lazarus-ide.org/index.php?page=checksums#2_2_2
>
>Minimum requirements:
>
>Windows:
>   2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit.
>
>FreeBSD/Linux:
>   gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit.
>
>Mac OS X:
>   Cocoa (64bit) 10.12 to 12.3, Carbon (32bit) 10.5 to 10.14, qt and
>   qt5 (32 or 64bit).
>
>The gitlab page:
>https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_2
>
>For people who are blocked by SF, the Lazarus releases from SourceForge
>are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/
>
>
>Mattias
>--
>___
>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] Patch for improvement of the StringGrid Editor

2022-03-18 Thread Salvatore Coppola via lazarus
Tried to create an issoue on gitlab with diff files uploaded, not sure is
ok or is in the right place! In the screenshot how the LazaStringGridEditor
will appare
ciao
Salvatore

Il giorno gio 10 mar 2022 alle ore 22:30 Flávio Etrusco via lazarus <
lazarus@lists.lazarus-ide.org> ha scritto:

> Hello Salvatore,
> Maybe you could open a ticket at
> https://gitlab.com/freepascal.org/lazarus/lazarus?
>
> Best regards,
> Flávio
>
> Em qui., 3 de mar. de 2022 às 17:47, Salvatore Coppola via lazarus
>  escreveu:
> >
> > Hi, particularly to the list moderators,
> > have you taken a look at the patch (oversize 104 kb) sent to this list
> on February 26th?
> > ciao
> > --
> > ___
> > 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
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Patch for improvement of the StringGrid Editor

2022-03-03 Thread Salvatore Coppola via lazarus
Hi, particularly to the list moderators,
have you taken a look at the patch (oversize 104 kb) sent to this list on
February 26th?
ciao
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] FPC and WebAssembly

2021-12-25 Thread Salvatore Coppola via lazarus
Merry Christmas prof. and all of you

⁣Ottieni BlueMail per Android ​

Il giorno 24 Dic 2021, 14:13, alle ore 14:13, Michael Van Canneyt via lazarus 
 ha scritto:
>
>Hello,
>
>I'm glad to anncounce that FPC now covers working with webassembly in
>the
>browser.
>
>Because pictures say more than a thousand words, 3 demos:
>
>A modest "hello, world" variation:
>
>https://www.freepascal.org/~michael/pas2js-demos/wasienv/simple/
>
>A (limited) terminal emulation:
>
>https://www.freepascal.org/~michael/pas2js-demos/wasienv/terminal/
>
>And yes, we can do graphics too:
>
>https://www.freepascal.org/~michael/pas2js-demos/wasienv/terminal/
>
>In all 3 cases:
>- The webassembly program was created with the FPC webassembly target.
>
>- The hosting environment is created using pas2js.
>
>This is just initial hosting support, there is lots of work to be done.
>
>The webassembly compiler works very well, and is integrated in the
>compiler testsuite.
>
>More info can be found in:
>https://wiki.freepascal.org/WebAssembly/Compiler
>https://wiki.freepascal.org/WebAssembly/Roadmap
>
>Our little contribution to a Merry Christmas for everyone...
>
>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] I use the Windows procedure WinExec() to open directries and files out of a lazarus application on a Windows box. I also use the same application in a Linux mint box. Is there a procedur

2020-10-27 Thread Salvatore Coppola via lazarus
Take a look at TProcess
Regards

⁣Ottieni BlueMail per Android ​

Il giorno 26 Ott 2020, 10:34, alle ore 10:34, larrydalton71 via lazarus 
 ha scritto:
>
>Sent from my Verizon, Samsung Galaxy smartphone
>
>
>
>--
>___
>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] Installing custom control in Lazarus - where can I find it?

2020-08-27 Thread Salvatore Coppola via lazarus
Have restarted the lazarus just recompiled?

⁣Ottieni BlueMail per Android ​

Il giorno 27 Ago 2020, 22:51, alle ore 22:51, Bo Berglund via lazarus 
 ha scritto:
>I am (again) trying to port a Delphi application to Lazarus/FPC.
>This time I need a customized version of TListView, which I converted
>to use in Lazarus back in 2018.
>See thread titled:
>"Converting a component package Delphi->Lazarus using built-in
>converter?"
>
>I found the files for the converted component on my disk as:
>easylistview.lpk THis is the package file
>EasyListView.pas
>EasyListView.dcr
>
>No using Lazarus 2.0.8 and FPC 3.0.4 I did the following:
>- Started Lazarus
>- Told it to start a new project (to not interfere with my current
>project)
>- Package/Open package file
>- Navigated to the easylistview.lpk file
>- Clicked the Compile button. Finished successfully.
>- Use/Install. Lazarus started to rebuild itself
>- No visible errors shown
>- Lazarus restarted
>
>Now, how do I find the component I just installed so I can use it?
>I expected a new tab named AGI to appear with the component inside of
>it but I cannot find it...
>
>This is what is (or rather was, see below) in the register procedure
>in EasyListView.pas:
>
>procedure Register;
>begin
>   RegisterComponents('AGI', [TEasyListView]);
>end;
>
>And this is the lpk file content after the compile/install:
>
>
>
>  
>
>
>
>
>  
>  
>  
>
>  
>
>
>  
>
>
>  
>
>
>  
>
>  
>
>
>  
>
>
>  
>
>
>  <_ExternHelp Items="Count"/>
>
>  
>
>
>Now the strangest thing is that in this process Lazarus has completely
>mangled the EasyListView.pas source file so it now only has this
>content wheras the original was 27 kbytes:
>
>
>{ This file was automatically created by Lazarus. Do not edit!
>  This source is only used to compile and install the package.
> }
>
>unit EasyListView;
>
>{$warn 5023 off : no warning about unused units}
>interface
>
>uses
>  LazarusPackageIntf;
>
>implementation
>
>procedure Register;
>begin
>end;
>
>initialization
>  RegisterPackage('EasyListView', @Register);
>end.
>
>
>So it is overwriting the source file for the component with a
>basically empty file, which it successfully installs and is nowhere to
>be found
>
>Apparently I am doing something completely wrong here, but what?
>
>
>--
>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] Tool to make icons ?

2020-05-23 Thread Salvatore Coppola via lazarus
With IcoFX tool I stopped myself googling (also available in portableapps).
It create multiple layers icon according with the OS style. See the
screenshots
Salvatore


Il giorno ven 22 mag 2020 alle ore 18:03 Graeme Geldenhuys via lazarus <
lazarus@lists.lazarus-ide.org> ha scritto:

> On 21/05/2020 3:13 pm, Michael Van Canneyt via lazarus wrote:
> > What is the tool used to make icons for standard Lazarus components ?
>
> Aseprite is brilliant. Included in Linux package repositories too. I use
> it for pixel art - playing around with game development. There are loads
> of fantastic tutorials on youtube too.
>
> Regards,
>   Graeme
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://fpgui.sourceforge.net/
>
> My public PGP key:  http://tinyurl.com/graeme-pgp
> --
> ___
> 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


[Lazarus] Lazarus handbook environment proposal

2020-05-23 Thread Salvatore Coppola via lazarus
Goodmorning people,
some of us are waiting in presale for the Lazarus Handbook. I've read from
Detlef that will be printed soon. I've seen on Blaisepascal site that
will'be distributed both paper and pdf. Btw there are about 1600 pages and
many are analytic index so, for actual knowledgew of peoples at nowdays,
analytics index is useless (specially if we have th pdf), so the proposal
for the Editor (Blaisepascal) is, if we are in time, strip from the the
handbook this pages, the handbook will remain excellent as well and a tree
will thank. What do you thinks
Salvatore
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Cross-platform using TRegistry - how to?

2020-05-06 Thread Salvatore Coppola via lazarus
I suppose is an hidden file in home or in .config
Salvatore

⁣Ottieni BlueMail per Android ​

Il giorno 4 Mag 2020, 00:41, alle ore 00:41, Bo Berglund via lazarus 
 ha scritto:
>I am porting a Windows service application to Linux ARM (RPi4).
>The Windows version is a service and as such its config data resides
>in the Registry below HKLM.
>The Linux version will be a Daemon and I would like as much of the
>code stay unaltered to avoid conversion bugs.
>
>Now I have read that the FPC TRegistry class is able to use the
>original commands for reading/writing the data by instead using some
>form of ini- or xml-file store on UNIX.
>
>The existing system written in Delphi2007 uses the following key
>structure:
>HKLM\SOFTWARE\Companyname\Applicationname\Server\(named values)
>HKLM\SOFTWARE\Companyname\Applicationname\Configuration\(named values)
>
>But how does this work and where/how are the data actually stored in a
>Linux file system?
>
>I have tried to google this but my search skills are not good enough
>so I came up empty-handed
>
>Any insight on this very much appreciated.
>
>--
>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] Hide in "code completion" text non involved in code (not stated)

2020-05-03 Thread Salvatore Coppola via lazarus
Thanks Mattias

Il giorno dom 3 mag 2020 alle ore 20:23 Mattias Gaertner via lazarus <
lazarus@lists.lazarus-ide.org> ha scritto:

> On Sun, 3 May 2020 18:41:54 +0200
> Salvatore Coppola via lazarus  wrote:
>
> > Hi,
> > is there a way to avoid listing the items labeled with "text" in "code
> > completion"?
> > See the attached screenshot
>
> Settings: IDE Options / Codetools / Identifier Completion / Include
> identifiers containing prefix.
>
> https://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes#IDE_Changes
>
> Mattias
> --
> ___
> 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


[Lazarus] Hide in "code completion" text non involved in code (not stated)

2020-05-03 Thread Salvatore Coppola via lazarus
Hi,
is there a way to avoid listing the items labeled with "text" in "code
completion"?
See the attached screenshot

TIA
Salvatore
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TSQLQuery component editor

2020-04-30 Thread Salvatore Coppola via lazarus
Thanks prof.

⁣Ottieni BlueMail per Android ​

Il giorno 30 Apr 2020, 16:07, alle ore 16:07, Michael Van Canneyt via lazarus 
 ha scritto:
>
>Hi,
>
>I've enhanced the TSQLQuery component editor in the IDE somewhat.
>
>For starters, it now also shows the component editor menu items as
>TBufDataset
>has (recently added). Which means you can save data to a file, for
>instance.
>That's useful for preparing offline data.
>
>Additionally, you can:
>
>- Edit the SQL statement from within the component editor.
>   (will work faster than looking for the SQL property in the OI)
>
>- Generate the default Update/Delete/Insert SQL statements.
>These are the statements as the TSQLQuery component itself will
>generate them
>   at runtime if you didn't specify any statements yourself.
>
>   Note: Due to a bug in FPC 3.0.4, this will not always work.
>It always works with trunk, and once the fix is merged to 3.2, also
>with 3.2.
>
>- There is now also a dialog to edit all SQL statements at once, and
>there is also a
> possiblity to let the IDE generate Update/Delete/Insert SQL statements
>   based on a table name and a selection of fields.
>The format of the generated statement can be customized to some degree.
>
>Enjoy!
>
>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] It's alive !

2019-09-21 Thread Salvatore Coppola via lazarus
Yes, it's alive thanks to you and other like you (FPC and Lazarus developers) , 
but a big % of people have hard prejudices on Pascal so i'm starting my son (14 
yeah old) on this beautiful world because at school is planned C++ with DevC++, 
which future to expect?
Salvatore
⁣Ottieni BlueMail per Android ​

Il giorno 21 Set 2019, 15:23, alle ore 15:23, Michael Van Canneyt via lazarus 
 ha scritto:
>
>Hello,
>
>Finally, the moment has come:
>
>https://www.youtube.com/watch?v=xos2MnVxe-c
>
>Following up on a bounty offered, Dmitry Boyarintsev has accomplished
>milestone one
>in the implementation of FPC's webassembly backend.
>
>And: It's alive ! :-)
>
>The first result can be seen here:
>
>https://www.freepascal.org/~michael/lyff/
>
>Conway's game of life written using FPC:
>
>- FPC itself for the WebAssembly Backend library.
>- pas2js for the necessary Javascript front end and GUI code.
>
>Although I can't imagine why you would want to, you can also load the
>webassembly from plain Javascript:
>
>https://www.freepascal.org/~michael/lyff/lyffjs.html
>
>Whoever thought Pascal is dead, should now think otherwise.
>It's very much alive !
>
>Enjoy,
>
>Michael.
>
>PS. More info about the webassembly efforts will be assembled here:
>https://wiki.freepascal.org/WebAssembly
>It's a bit cursory at the moment, but will be improved as things evolve
>-
>once it's alive, it tries to stay alive ;)
>-- 
>___
>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] Too large height of TEdit and TSpinEdit in xfce

2019-09-16 Thread Salvatore Coppola via lazarus
Ok it is a workaround but why not call your function only one time at start for 
instance in main form create?
Regard
Salvatore


Il giorno 16 Set 2019, 08:20, alle ore 08:20, Bo Berglund via lazarus 
 ha scritto:
>On Mon, 16 Sep 2019 00:29:58 + (UTC), Haruyuki Fujimaki via
>lazarus  wrote:
>
>>Hello everyone,
>>I am maintaining my softwares in xfce desktop system (Linux Lite).
>>The height of TEdit and TSpinEdit controls becomes awkwardly too
>>large as shown in attached screenshot.
>>By setting AutoSize := False, I can modify the height, but it is
>>laborious for a big project and downward arrow of TSpinEdit is
>>hidden.Does anyone know how to solve this problem?
>>Haruyuki Fujimaki
>
>I recently had a similar problem with a cross-platform application
>when I built it on Linux (Raspbian).
>In my case the controls became too small, but I think the problem is
>the same as yours.
>
>My sources are first developed on Windows and stored in subversion.
>When I retrieved them in Raspbian and opened Lazarus there to build
>the Linux version the user entry boxes for data were all too small.
>
>What happened was that the font of these controls had gotten a
>different size when the project was opened in Lazarus on Linux!
>
>In my case the control types affected were buttons, spinedits,
>statictexts, groupboxes, checkboxes and labels.
>
>So I had to add a procedure to set the font size of them all, which is
>called from the Form.OnShow event. I only had to change the size by
>one point to make the form look OK again.
>
>Here is my function:
>
>procedure TfrmMain.SetFontSize(S: shortint);
>begin
>  // Set font size on load.
>  btnDec60.Font.Size := S;
>  btnDec30.Font.Size := S;
>  btnDec10.Font.Size := S;
>  btnDec1.Font.Size := S;
>  btnInc1.Font.Size := S;
>  btnInc10.Font.Size := S;
>  btnInc30.Font.Size := S;
>  btnInc60.Font.Size := S;
>  btnCutStart.Font.Size := S;
>  btnCutEnd.Font.Size := S;
>  btnAddCut.Font.Size := S;
>  btnJump.Font.Size := S;
>  btnShiftAudio.Font.Size := S;
>  speDelay.Font.Size := S;
>  stxCutStart.Font.Size := S;
>  stxCutEnd.Font.Size := S;
>  stxCutTime.Font.Size := S;
>  stxClipCnt.Font.Size := S;
>  gbxCut.Font.Size := S;
>  ckbLogin.Font.Size := S;
>  lblTotal.Font.Size := S;
>end;
>
>
>And it is called from here:
>
>procedure TfrmMain.FormShow(Sender: TObject);
>begin
>  SetFontSize(9);
>end;
>
>I do not understand why the size clearly stated in the sources as 9
>are changed by Lazarus when the project loads on a different operating
>system, but that is in any case what happens.
>
>I am using Lazarus 2.0.4 and fpc 3.0.4 on Windows and Raspbian.
>
>
>--
>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


[Lazarus] Trouble when printing on Win10

2018-08-11 Thread Salvatore Coppola via Lazarus
Hi all,
printing from an application done with Lazarus on win8 produce different
output between pc with Win8 and Win10. I used printer.canvas to put text
(textout and .textwidth and .textheight to drive the right position I
want), some rects and line and .draw to put some little picts. The win8 and
win7 prints (and linux too)  are perfect but on win10 y(top) distances are
wrong and the new page is create too early. Furthermore the pictures are
printed white.

Anyone has experimented this trouble?
Can be a printers (device) trouble?

Any reply will be appreciate
Salvatore
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus Release 1.8

2017-12-12 Thread Salvatore Coppola via Lazarus
As usual after istalled fpc packages (fpc-src_3.0.4-1_amd64.deb

and fpc_3.0.4-1_amd64.deb
)
the "make all" for source 1.8.0  fails.
It is ok using  fpc-src_3.0.4-rc1_amd64.deb

and fpc_3.0.4-rc1_amd64.deb


/usr/bin/ld: attenzione: ./link.res contiene sezioni di output; forse è
stata dimenticata -T
/usr/bin/ld: /usr/lib/fpc/3.0.4/units/x86_64-linux/rtl/cprt0.o:
unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: link finale non riuscito: Bad value
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Makefile:2737: set di istruzioni per l'obiettivo "lazres" non riuscito
make[2]: *** [lazres] Errore 1
make[2]: uscita dalla directory "/home/pierluigi/programs/lazarus/tools"
Makefile:3155: set di istruzioni per l'obiettivo "all" non riuscito
make[1]: *** [all] Errore 2
make[1]: uscita dalla directory "/home/pierluigi/programs/lazarus/tools"
Makefile:3267: set di istruzioni per l'obiettivo "lazbuild" non riuscito

Regards

2017-12-06 20:15 GMT+01:00 Mattias Gaertner via Lazarus <
lazarus@lists.lazarus-ide.org>:

> The Lazarus team is glad to announce the release of Lazarus 1.8.
>
> The release was built with FPC 3.0.4.
> The previous release Lazarus 1.6.4 was built with FPC 3.0.2.
>
> Here is the list of changes for Lazarus and Free Pascal:
> http://wiki.lazarus.freepascal.org/Lazarus_1.8.0_release_notes
> http://wiki.lazarus.freepascal.org/User_Changes_3.0.4
>
> Here is the list of fixes for Lazarus 1.8.x:
> http://wiki.freepascal.org/Lazarus_1.8_fixes_branch
>
> The release is available for download on SourceForge:
> http://sourceforge.net/projects/lazarus/files/
>
> Choose your CPU, OS, distro and then the "Lazarus 1.8.0" directory.
>
> Checksums for the SourceForge files:
> http://www.lazarus-ide.org/index.php?page=checksums#1_8_0
>
> Minimum requirements:
>
> Windows:
> 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit.
> optional qt 4.5 or 5.6 for qt apps
>
> FreeBSD/Linux:
> gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit.
>
> Mac OS X:
> 10.5 to 10.12; Carbon (32bit), Cocoa (64bit, not stable), qt and qt5 (32
> or 64bit).
>
> The svn tag is
> http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_0
>
> For people who are blocked by SF, the Lazarus releases from SourceForge
> are mirrored at:
> ftp://ftp.freepascal.org/pub/lazarus/releases/
> and later at (after some time for synchronization)
> http://mirrors.iwi.me/lazarus/
>
>
> Mattias
>
> --
> ___
> 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] FPC deb

2017-06-15 Thread Salvatore Coppola via Lazarus
2017-06-15 17:26 GMT+02:00 Mattias Gaertner via Lazarus <
lazarus@lists.lazarus-ide.org>:

> On Thu, 15 Jun 2017 16:27:36 +0200
> coppolastudio via Lazarus  wrote:
>
> > Hi, I want to try Lazarus RC and as  usually i was trying to install the
> package FPC 3.0.2 deb but failed because offline an old FPC in the Mint
> lmde repos, is there a way ti solve this?
>
> You might try fpc 3.0.3 from Lazarus 1.8RC2.
>

Already done, I don't think is related with your fpc package, I will ask on
mint forum

>
> Mattias
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus-ide.org
> http://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Lazarus The Complete Guide

2017-05-23 Thread Salvatore Coppola via Lazarus
Hi to all the authors,
is in program a new edition of the guide?
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus