Recent

Author Topic: [Solved]TSize not in the LCLType  (Read 190 times)

jamie

  • Hero Member
  • *****
  • Posts: 2264
[Solved]TSize not in the LCLType
« on: September 02, 2019, 10:22:11 pm »
In the attempt to make my code as close to cross platform compileable I noticed that I need to use the WINDOWS unit for the TSize type. The LCLTYPE does not seem to have this type in its file, is there a reason for this?

« Last Edit: September 03, 2019, 12:41:05 am by jamie »
Number 1 at blue screen app creations!

winni

  • Hero Member
  • *****
  • Posts: 723
Re: TSize not in the LCLType
« Reply #1 on: September 02, 2019, 10:37:47 pm »
Hi!

tsize points to typshrd.inc in /usr/share/fpcsrc/3.0.4/rtl/inc

Winni

howardpc

  • Hero Member
  • *****
  • Posts: 3282
Re: TSize not in the LCLType
« Reply #2 on: September 02, 2019, 10:38:29 pm »
Yes, the RTL unit Types declares TSize.
Types is much to be preferred over Windows for cross-platform code.

jamie

  • Hero Member
  • *****
  • Posts: 2264
Re: TSize not in the LCLType
« Reply #3 on: September 02, 2019, 10:40:19 pm »
Ok, Thanks I didn't know that.
Number 1 at blue screen app creations!