Re: [Lazarus] TListView + OwnerData=true + CheckBoxes

2018-12-10 Thread zeljko via lazarus

On 12/10/2018 08:38 PM, Marcos Douglas B. Santos via lazarus wrote:


I don't know what Themes is.
I want to use just default components.

...and nobody more answered.
Is everybody using TDBGrid to show their data?  :)


No. Use TVirtualStringTree instead of TListView, it's x10 faster.

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


Re: [Lazarus] TListView + OwnerData=true + CheckBoxes

2018-12-10 Thread Marcos Douglas B. Santos via lazarus
On Sun, Dec 9, 2018 at 12:01 PM zeljko  wrote:
>
> On 12/09/2018 12:58 PM, Marcos Douglas B. Santos via lazarus wrote:
> > Hi,
> > Has anybody already used, with success, virtual ListView showing CheckBoxes?
> >
> > There are any links on Internet, most about Delphi, but each one say
> > something little different then other.
> > I've tried a few combinations reading those links with no success. I
> > haven't tried any that says that we need to paint the checkboxes with
> > complex algorithms because I think that it should be simpler.
>
> If you use Themes for checkboxes it's pretty easy. Never used virtual
> TListView with checkboxes so don't know it's behaviour

I don't know what Themes is.
I want to use just default components.

...and nobody more answered.
Is everybody using TDBGrid to show their data?  :)

regards,
Marcos Douglas
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Bug on CodeTools to find unit using in `../path/unit.pas`

2018-12-10 Thread Marcos Douglas B. Santos via lazarus
On Mon, Dec 10, 2018 at 6:39 AM Mattias Gaertner via lazarus
 wrote:
>
> On Sun, 9 Dec 2018 22:33:47 -0200
> "Marcos Douglas B. Santos via lazarus" 
> wrote:
>
> >[...]
> > unit A;
> > uses msg1 in 'msg/msg.pas'
> > -
> > unit B;
> > uses msg2 in 'msg/msg.pas'
> >
> > As I understood, when the compiler knows about `msg.pas`, it will use
> > the first identifier that appeared, which is `msg1`. And that is a
> > problem. Why?
>
> For better chance of getting an answer you can ask the fpc
> developers on the fpc list.
>
> Note that the 'in' feature came from Delphi, where it is used to mark
> which unit belongs to the project/package. And in Delphi the unitname
> must match.

Indeed, you're right. I've tested and it doesn't work, at least on Delphi 7.

> FPC extended it to allow alias, but afaik it is hardly used.
>

It could be a great feature for both compilers, IMHO.

> >[...]
> > And I've discovered another issue on IDE:
> > If I use like above `foo in 'path/Some.Long.Name.Unit.pas';`, IDE will
> > save on XML project files the unit as `Some.Long.Name.Unit`, when it
> > should be `foo` as the name of the unit.
>
> That is the cached name of the unit name from its source, not some
> alias name. The IDE does not yet support alias names. Only a few
> functions support the 'in' alias.

I got it, thanks.

Marcos Douglas
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Qt patch needs /const/ word

2018-12-10 Thread zeljko via lazarus

On 12/10/2018 10:02 AM, AlexeyT via lazarus wrote:
https://github.com/graemeg/lazarus/commit/16dea52f979acc4a2998942f07d2e17ea5233aa5 



I see N functions with somename(s: string). they need word /const/ for 
parameter.




Done.

zeljko

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


Re: [Lazarus] Qt patch needs /const/ word

2018-12-10 Thread zeljko via lazarus

On 12/10/2018 10:02 AM, AlexeyT via lazarus wrote:
https://github.com/graemeg/lazarus/commit/16dea52f979acc4a2998942f07d2e17ea5233aa5 



I see N functions with somename(s: string). they need word /const/ for 
parameter.




Yeah, mea culpa, I'll fix it.

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


Re: [Lazarus] Proud to announce..

2018-12-10 Thread Graeme Geldenhuys via lazarus
On 2018-12-04 11:33 p.m., leledumbo via lazarus wrote:
> Good work! A little bug, though:

Ah yes, that's the same error I got. Following your steps and a web page
refresh I eventually got the default sample program to compile and run.

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


Re: [Lazarus] Proud to announce..

2018-12-10 Thread Graeme Geldenhuys via lazarus
On 2018-12-04 10:01 p.m., Michael Van Canneyt via lazarus wrote:
> See it in action for yourself:
> 
> https://idefix.freepascal.org/~michael/webcompiler/webcompiler.html

Sounds very interesting, so I followed the link and get the following
error when I click compile.

See attached image. I'm using Firefox 63.0 (64-bit Firefox Quantum)
running under FreeBSD 11.2.


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] Qt patch needs /const/ word

2018-12-10 Thread AlexeyT via lazarus

https://github.com/graemeg/lazarus/commit/16dea52f979acc4a2998942f07d2e17ea5233aa5

I see N functions with somename(s: string). they need word /const/ for 
parameter.


--
Regards,
Alexey

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


Re: [Lazarus] Bug on CodeTools to find unit using in `../path/unit.pas`

2018-12-10 Thread Mattias Gaertner via lazarus
On Sun, 9 Dec 2018 22:33:47 -0200
"Marcos Douglas B. Santos via lazarus" 
wrote:

>[...]
> unit A;
> uses msg1 in 'msg/msg.pas'
> -
> unit B;
> uses msg2 in 'msg/msg.pas'
> 
> As I understood, when the compiler knows about `msg.pas`, it will use
> the first identifier that appeared, which is `msg1`. And that is a
> problem. Why?

For better chance of getting an answer you can ask the fpc
developers on the fpc list.

Note that the 'in' feature came from Delphi, where it is used to mark
which unit belongs to the project/package. And in Delphi the unitname
must match.
FPC extended it to allow alias, but afaik it is hardly used.


>[...]
> And I've discovered another issue on IDE:
> If I use like above `foo in 'path/Some.Long.Name.Unit.pas';`, IDE will
> save on XML project files the unit as `Some.Long.Name.Unit`, when it
> should be `foo` as the name of the unit.

That is the cached name of the unit name from its source, not some
alias name. The IDE does not yet support alias names. Only a few
functions support the 'in' alias.

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