* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
FPSpreadsheet / Re: Cannot load ods file with formulas
« Last post by Arion58 on Today at 09:58:27 pm »
Now I succeeded to produce an example. Only you will have to adjust the absolute path in DDE.ods cell A1.
2
FPSpreadsheet / Re: Cannot load ods file with formulas
« Last post by Arion58 on Today at 09:50:54 pm »
Sorry that I did not respond yet to your request. I thought it might not be necessary if I find an alternative for DDE. I try to write a simple example, but didn't succeed yet. Thanks anyway for your help.
May I ask another question related to my problem? How can I access Named Ranges in fpspreadsheet? I searched, but couldn't find anything about it.
3
General / Re: Strange big size only of Linux x64 executable
« Last post by avra on Today at 09:48:51 pm »
ct2laz-x86_64-linux is 3.8 MB on Manjaro 64-bit without debug info.
Debug info is included in all cases, so all platforms would have smaller executable size when debug info is excluded. This is not the usual "how to get the smallest executable size" problem. Instead, it is "why do I get such increased size when all executables are built from the same project using the same settings". The only explanation I could think of could be that Linux 64-bit debug info is drastically bigger compared to anything else, but I would like to hear why - if that is the case, or the real reason - if clues were leading me on the wrong track.
4
Linux / Re: Lazarus 1.8.0 "HHeelloo wwoorrlldd!!" double keystroke syndrome
« Last post by JD on Today at 09:39:53 pm »
Happened to me too. Thanks to others like Handoko, I was able to correct it quickly

See https://forum.lazarus.freepascal.org/index.php/topic,39799.msg274142.html#msg274142

JD
5
QT / Re: multiplatform developing using QT/QML
« Last post by Phil on Today at 09:31:12 pm »
My request to the Forum is if the above hypothesis is feasible with success (ease of development, performance, stability, security, little or no need to specialize the source code for different platforms, no QT/QML limits, etc) also identifying the best/good practices to improve this general scheme.

The Lazarus LCL can optionally work with Qt on Linux, Windows and even macOS, but not iOS, Android or Web.

Have you actually used Qt on all those platforms in the way you describe?

Sounds like you've made a decision about Qt and now you're looking around for supporting statements.

6
FPSpreadsheet / Re: Cannot load ods file with formulas
« Last post by wp on Today at 09:28:31 pm »
And my last question of my first post remains unanswered: How is the program able to evaluate a DDE-formula if this is not implemented?
It should ignore it. If the application which created the file is able to execute the DDE formula it normally writes the formula result into the formula cell; and when fpspreadsheet reads the file it will see the result and use this instead of the formula. If the generator application does not write the result fpspreadsheet will get nothing else than an empty cell.

The problem is that the program is crashing according to your post, and in order to be able to fix this I asked you for a small demo file containing a DDE formula.
7
Third party / Re: Online Package Manager + ct4laz repository
« Last post by avra on Today at 09:27:45 pm »
I stumbled across the package ExGeography the name of which and the fact that it is from Pilot Logic reminds me of the "astronomy" issues. Again it is a mixup of two separate sources.
You touched something that I was preparing to address. In general, I will avoid such mixed CT packages in ct4laz repo. Who ever needs them will be able to get them with ct2laz tool by hand. I plan to offer in ct4laz only packages where there aren't mixed unknown sources. I do not want to bring any trouble into OPM. I have identified a lot of sources of the CT components (only someone who tried it knows how much of a work that is), and excel file with my findings will follow. Then it will be more clear why some components will be excluded.

There is also a problem of CT using trunk Lazarus/FPC, while we would like to have OPM components work on official Lazarus. For small changes I added needed transformations to ct2laz CSV file, but for bigger ones I had to sometimes use older CT component instead of latest one. Of course, all that is transparent for users.

I hope to have ct4laz repo ready in few days.
8
General / Re: App on high res monitors - Linux/Wine problems
« Last post by avra on Today at 09:14:09 pm »
My desire is to increase the size of the components for users with poor eyesight.  One user with a 1920 x 1200 res monitor maybe happy with the size of the components in my app, while another user with the same monitor res, but with poorer eyesight, may want to have all the items enlarged. Thus I want to let the user choose the degree of enlargement.
Ideally you would let OS handle size of all forms, but if for some reason you still want to do it your self then you should disable high dpi and manifest, and go "old school". Some 20 years ago it looked something like this:

Code: Pascal  [Select]
  1. procedure ScaleAllForms(ScaleFactor: integer); // range -3..0..3
  2. var
  3.   Divisor: integer;     // scaling equals 100 + (ScaleFactor * DivisorStep), so for DivisorStep = 10 we get 70..100..130
  4.   DivisorStep: integer; // scaling step
  5.   ix: integer;
  6. const
  7.   Multiplier = 100;
  8. begin
  9.   if ScaleFactor <> 0 then // no need for form size change when 0
  10.   begin
  11.     if ScaleFactor > 0 then // bigger step for enlarging, smaller step for shrinking
  12.       DivisorStep := 20
  13.     else
  14.       DivisorStep := 10;
  15.  
  16.     Divisor := Multiplier + (ScaleFactor * DivisorStep);
  17.  
  18.     with Screen do
  19.       for ix := 0 to FormCount - 1 do
  20.         if (Forms[ix].Name <> 'TmpReport') and (Forms[ix].Name <> 'TablesModule') then // no need for rescaling non visual forms
  21.           Forms[ix].ScaleBy(Divisor, Multiplier);
  22.   end;
  23. end;
  24.  

You will probably also need to use my CenterInParent() function from the last message in mentioned stackoverflow post and some other tweaks, but it will work.
9
FPSpreadsheet / Re: Cannot load ods file with formulas
« Last post by Arion58 on Today at 09:11:47 pm »
Until now, I used the macro language of libreoffice (something like starbasic), but it is very slow and sometimes nor very reliable.
I couldn't find any documentation about "Com" mentioned by Thaddy.
And my last question of my first post remains unanswered: How is the program able to evaluate a DDE-formula if this is not implemented?
10
QT / multiplatform developing using QT/QML
« Last post by cgf on Today at 09:10:46 pm »
Hello,
I'm a developer, designer, analyst, project manager, entrepreneur, CSR manager in Italy.

I'm considering the introduction of Free Pascal to develop multiplatform projects (commercial, CSR, training) to create native apps on Windows, Mac OS, web, iOS, Android.
One of the objectives is to enable young people to work first on CSR and training projects and then evolve them as professionals to commercial projects, avoiding them having to invest money in expensive software suites.

The UI should be based on QT / QML and adapt to the guidelines set by the manufacturers (Apple Human Interface Guidelines, Apple Style Guide, Google Material Design, ...): the use of QT / QML is necessary in order to guarantee an any low-cost porting of projects to standard customer platforms (editor's note: if the customers themselves need porting due to their standards such as GDPR, Cloud standardized resources, etc).
The reference databases should be SQLITE (for mobile apps without server connections), MySql and Oracle.
The other salient features of the apps are strong use of JSON-based services, massive use of sockets for communications between different devices, GDPR compliance (encrypting data on mobile devices, encrypting databases, etc).

My request to the Forum is if the above hypothesis is feasible with success (ease of development, performance, stability, security, little or no need to specialize the source code for different platforms, no QT/QML limits, etc) also identifying the best/good practices to improve this general scheme.

Thank you and good luck!
cgf
Pages: [1] 2 3 ... 10

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus