Re: [Lazarus] Special Request: Theme entire IDE support

2018-03-15 Thread Graeme Geldenhuys via Lazarus

On 2018-03-14 16:52, Anthony Walter via Lazarus wrote:
Regarding changing the OS theme to change the application theme, in some 
cases this is undesirable.


I've made that argument over 12 years ago to the Lazarus team, and every 
few years after that. They shot me down every time. Initially I wanted 
to use LCL and Lazarus IDE for enterprise based commercial software. All 
my clients wanted own styled applications - separate from the OS. LCL 
couldn't deliver [and for some more reasons] I had to leave LCL behind. 
I then implemented a whole new toolkit (and partly for fun and learning) 
to accomplish cross-platform development with FPC and that allows 
individual applications to be fully themeable.


I'm glad to hear that LCL finally has some sort of themeing interface, 
but based on these discussions, I guess it is not working 100% for all 
LCL based applications. At least the project is heading in the right 
direction.


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] Howto use Tooltip for function pos( for example?

2018-03-15 Thread Landmesser John via Lazarus

sorry, couldn't google it  ...

if i type for example function  pos(   in Lazarus-Editor.

Tooltip windows appears and at the right end of the tooltip window there 
are buttons ... what for?


Thanks!

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


Re: [Lazarus] Howto use Tooltip for function pos( for example?

2018-03-15 Thread Landmesser John via Lazarus

got it: insert parameters!!

Didn't work correctly with first try:


snip:

  pos(
  Application.Minimize, v2);


v2 ist put to wrong position, if the line

Application.Minimize;

follows!



Am 15.03.2018 um 10:59 schrieb Landmesser John via Lazarus:

sorry, couldn't google it  ...

if i type for example function  pos(   in Lazarus-Editor.

Tooltip windows appears and at the right end of the tooltip window 
there are buttons ... what for?


Thanks!



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


Re: [Lazarus] Howto use Tooltip for function pos( for example?

2018-03-15 Thread Juha Manninen via Lazarus
On Thu, Mar 15, 2018 at 12:06 PM, Landmesser John via Lazarus
 wrote:
>   pos(
>   Application.Minimize, v2);
> v2 ist put to wrong position, if the line
> Application.Minimize;
> follows!

Wow, you found a bug! Please report.
It happens if any function call is following the line where you try to
insert parameters, not only with Application.Minimize call.
You did not mention your Lazarus version. I can reproduce at least
with Lazarus trunk.
Is it a regression? Did it work earlier? What revision broke it?

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


Re: [Lazarus] Howto use Tooltip for function pos( for example?

2018-03-15 Thread Mattias Gaertner via Lazarus
On Thu, 15 Mar 2018 11:06:31 +0100
Landmesser John via Lazarus  wrote:

> got it: insert parameters!!
> 
> Didn't work correctly with first try:
> 
> 
> snip:
> 
>    pos(
>    Application.Minimize, v2);
> 
> 
> v2 ist put to wrong position, if the line
> 
> Application.Minimize;
> 
> follows!

It does not check, if the parameter is compatible.
It sees 
pos( something.something;


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


Re: [Lazarus] Howto use Tooltip for function pos( for example?

2018-03-15 Thread Juha Manninen via Lazarus
On Thu, Mar 15, 2018 at 12:44 PM, Mattias Gaertner via Lazarus
 wrote:
> It does not check, if the parameter is compatible.
> It sees
> pos( something.something;

It changes:
  sl := TStringList.Create;
into:
  pos(
  sl := TStringList.Create, v2);

which can never be right.
I think a newline should break searching for existing parameters in this case.
When a user wants to insert template parameters, he typically has no
existing parameters at that point.
If he has existing parameters, then he uses Ctrl-Space and
Ctrl-Shift-Space to modify / verify them.

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


Re: [Lazarus] Howto use Tooltip for function pos( for example?

2018-03-15 Thread John Landmesser via Lazarus

bug-report, done

https://bugs.freepascal.org/view.php?id=33433


Am 15.03.2018 um 13:21 schrieb Juha Manninen via Lazarus:

On Thu, Mar 15, 2018 at 2:07 PM, Landmesser John via Lazarus
 wrote:

Should i write bug-report?

Yes please.

Juha


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


Re: [Lazarus] Howto use Tooltip for function pos( for example?

2018-03-15 Thread Mattias Gaertner via Lazarus
On Thu, 15 Mar 2018 13:15:43 +0200
Juha Manninen via Lazarus  wrote:

> On Thu, Mar 15, 2018 at 12:44 PM, Mattias Gaertner via Lazarus
>  wrote:
> > It does not check, if the parameter is compatible.
> > It sees
> > pos( something.something;  
> 
> It changes:
>   sl := TStringList.Create;
> into:
>   pos(
>   sl := TStringList.Create, v2);
> 
> which can never be right.

True. Feel free to improve the heuristic.

> I think a newline should break searching for existing parameters in this case.

Maybe better: "when the closing bracket is missing, a newline should
break".

> When a user wants to insert template parameters, he typically has no
> existing parameters at that point.
> If he has existing parameters, then he uses Ctrl-Space and
> Ctrl-Shift-Space to modify / verify them.

You can't use Ctrl-Space to add v2.

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


Re: [Lazarus] Howto use Tooltip for function pos( for example?

2018-03-15 Thread Landmesser John via Lazarus

Don't know if that feature ever worked!

Info:

Lazarus 1.9.0 trunk FPC 3.0.4 i386-win32-win32/win64

Should i write bug-report?


Am 15.03.2018 um 12:48 schrieb Mattias Gaertner via Lazarus:

On Thu, 15 Mar 2018 13:15:43 +0200
Juha Manninen via Lazarus  wrote:


On Thu, Mar 15, 2018 at 12:44 PM, Mattias Gaertner via Lazarus
 wrote:

It does not check, if the parameter is compatible.
It sees
pos( something.something;

It changes:
   sl := TStringList.Create;
into:
   pos(
   sl := TStringList.Create, v2);

which can never be right.

True. Feel free to improve the heuristic.


I think a newline should break searching for existing parameters in this case.

Maybe better: "when the closing bracket is missing, a newline should
break".


When a user wants to insert template parameters, he typically has no
existing parameters at that point.
If he has existing parameters, then he uses Ctrl-Space and
Ctrl-Shift-Space to modify / verify them.

You can't use Ctrl-Space to add v2.

Mattias


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


Re: [Lazarus] Howto use Tooltip for function pos( for example?

2018-03-15 Thread Mattias Gaertner via Lazarus
On Thu, 15 Mar 2018 13:07:46 +0100
Landmesser John via Lazarus  wrote:

> Don't know if that feature ever worked!

It always worked like this.

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


Re: [Lazarus] Howto use Tooltip for function pos( for example?

2018-03-15 Thread Juha Manninen via Lazarus
On Thu, Mar 15, 2018 at 2:07 PM, Landmesser John via Lazarus
 wrote:
> Should i write bug-report?

Yes please.

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


Re: [Lazarus] Special Request: Theme entire IDE support

2018-03-15 Thread Juha Manninen via Lazarus
On Wed, Mar 14, 2018 at 6:52 PM, Anthony Walter via Lazarus
 wrote:
> Regarding changing the OS theme to change the application theme, in some
> cases this is undesirable. For example some paint type programs, and even
> some code editors, use their own independent theme to subdue their interface
> making the work more prominent. In these types of situations it's not
> reasonable to retheme the entire OS, rather just retheme an individual
> application. And of course in these situations an application theme is often
> a matter of personal taste, so the actual styling should be externalized.
> What we're left with is the logical solution, to support application level
> user defined theme information in external styling files.

Ok, I understand.
I am not against such theming if somebody implements it.

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


Re: [Lazarus] Lazarus projects (wiki)

2018-03-15 Thread Mattias Gaertner via Lazarus
On Tue, 13 Mar 2018 14:07:48 +0100
Vojtěch Čihák via Lazarus  wrote:

> Hello,
>  
> I noticed that wiki pages 
> http://wiki.freepascal.org/Lazarus_Application_Gallery and 
> http://wiki.freepascal.org/Projects_using_Lazarus become too comprehensive 
> and therefore obuscated.

Obfuscated for doing what?
It's a long list of mostly independent projects.
Maybe tagging them would help.

> Especially the second should/can be separated to more pages -
> Components and Libraries, Multimedia, Games etc. because it is well
> separated in content of the page. No idea how to separate Application
> Gallery. Alphabetically?

I don't see how splitting the list alphabetically helps.

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