* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
Linux / Re: Did anyone install the latest Lazaru 1.8 on ubuntu 16.04?
« Last post by Mr.Paul on Today at 07:01:27 pm »
Was the version conflict message you get looks similar to what I got (see picture below)? Did that message appear after the installation of the fpc deb package?
Yes, I have the same error message you encountered, "fpc conflict fpc ()". The error occurred in fpc 3.0.4 and did not show up in fpc-src 3.0.4.
However, after being ignored, in gdebi, the installation of Lazarus deb reports "failed" and no visible Lazarus icon at all.
2
Linux / Re: Did anyone install the latest Lazaru 1.8 on ubuntu 16.04?
« Last post by Mr.Paul on Today at 06:44:00 pm »
I have no problem installing Lazarus on Ubuntu Mate 17.10 (current latest version). I ever had problem installing Lazarus on older version of Ubuntu, which I solved by using version locking. If I'm not wrong Ubuntu (or maybe Linux) will prevent you to install Lazarus if the FPC version is higher than in its repository. By version locking the FPC and FPC-source, the Lazarus can be installed.
Failed. :-\
In Ubuntu 16.04.3 tried a variety of ways, gdebi, synatic, fpc3.0.4, fpc3.0.2 ...... version locking may be not properly used. The environment has been disrupted and no conclusion can be drawn.
I'm tired……
3
LCL / Re: Default font size
« Last post by ps on Today at 06:33:56 pm »
thanks lainz. Full code for Font.Size:

Code: Pascal  [Select]
  1. RealFontSize := Round((- GetFontData(b.Font.Handle).Height * 72 / b.Font.PixelsPerInch))

Tested only on Windows 10 with different scale and with multimonitor DPI (Font.Size is allways same). Font.Height is changing to real pixels.

Update: Lol now I see "bug" in my code, forgot Font.Reference.Handle from your code and code works. What's difference?
4
I didn't think it was possible. Thanks for sharing Taaz.
5
LCL / Re: Default font size
« Last post by Ramona G. Smith on Today at 06:14:12 pm »
Thanks Lainz! I was also looking for fonts. This is useful stuff.
6
LCL / Re: Default font size
« Last post by lainz on Today at 06:01:04 pm »
Here you go:
Code: Pascal  [Select]
  1. FBaseHeight := abs(GetFontData(Font.Reference.Handle).Height);
7
LCL / Default font size
« Last post by ps on Today at 05:54:15 pm »
I need paint bigger and smaller fonts based on "default" font. So how to get real "default" font size multiplatform and multi DPI.

Default Font.Size and Font.Height is 0. So how to get real size and work with it.
8
Linux / Re: Did anyone install the latest Lazaru 1.8 on ubuntu 16.04?
« Last post by Handoko on Today at 05:12:57 pm »
I could not find Lazarus 1.8 in the ubuntu repository, and then I downloaded three debs from the sf.net site, but when installing the first fpc, gdebi prompts the error "fpc conflict with fpc ()"

Was the version conflict message you get looks similar to what I got (see picture below)? Did that message appear after the installation of the fpc deb package?

If the answer is yes, simply ignore it. The message appears after the installation finished and it really installed correctly. That message is misguiding. I consider it is a bug. It sometimes happens but sometimes does not happen when I installing FPC. Nothing bad ever happened after I ignore that message.
9
Linux / Re: Did anyone install the latest Lazaru 1.8 on ubuntu 16.04?
« Last post by Handoko on Today at 04:51:42 pm »
But you can force deb or rpm package installation (yum, rpm, urpmi, apt-get) on any Linux distribution.

Yes, you're right. Actually we do not need to force install, to install higher (or lower) version of the same app. But the problem is, it sometimes may refuse to let you to install Lazarus. At least it happened on my tests.

Here, the whole story.

I tested at least 3 times, the results were same. I cannot remember the full detail because those tests were performed long ago.

I used Gdebi instead of sudo dpkg. The installation of FPC and FPC-source were success, although the version I installed was higher than the version recommended in my Ubuntu repository.

But when I used Gdebi to install the Lazarus deb package, the "install" button was greyed, I cannot click to continue. I checked using Synaptic Package Manager, both FPC and FPC-source were correctly installed.

After some random testings, I found simply version lock both the FPC and FPC-source, the disabled "install" button when installing Lazarus became available.

Maybe now, things have been changed. But no harm to test version lock.
10
General / Re: LazReport and printing something yes or no
« Last post by madref on Today at 04:36:07 pm »
Next time i should think before i ask  :D


Found the solution myself.
Make a script in LazRaport for that field.
Code: Pascal  [Select]
  1.  
  2. if ([TQ_Rapport."Evo_Standaard_Per4"] = 9) and
  3.    ([TQ_Rapport."Evo_Goal_TeamA_Per4"] = 0) and
  4.    ([TQ_Rapport."Evo_Goal_TeamB_Per4"] = 0) then
  5. text := 'X'
  6. else
  7. text := ''
  8.  
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