Re: [Lazarus] Universal FontDialog for LCL

2019-03-07 Thread Werner Pamler via lazarus

Am 07.03.2019 um 14:12 schrieb AlexeyT via lazarus:
Here's my GH repo with dialog which almost 100% mimics GTK2 
FontDialog. https://github.com/alexey-t/atfontdialog


On Windows the font dialog also allows to select the color which is 
missing here.


An issue: the dialog is resizable, but the height jumps back to its 
original value when I click into one of the listboxes.



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


Re: [Lazarus] Universal FontDialog for LCL

2019-03-07 Thread C Western via lazarus

On 07/03/2019 13:09, zeljko via lazarus wrote:

On 03/06/2019 07:54 PM, AlexeyT via lazarus wrote:
I have an idea to make LCL based TFontDialog- which will be LCL form, 
which can be called by TFontDialog.Execute (if Boolean variable in 
LCL is set). Why make it?


I haven't checked recently, but the system TFontDialog on a mac does not 
an OK/cancel button, making the system dialog useless, so a standard 
alternative might be helpful. I reported this a while back 
(https://bugs.freepascal.org/view.php?id=13383) but it was closed as 
expected behavior, which I am not sure is right.


Checking further, is the font dialog working at all under carbon? 
Checking a couple of different versions of my program and lazarus simply 
gives an access violation when it is invoked. (These versions are from 
SVN a couple of months ago at least - I will check with current when I 
have time)


Colin

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


Re: [Lazarus] Universal FontDialog for LCL

2019-03-07 Thread Graeme Geldenhuys via lazarus
On 07/03/2019 13:12, AlexeyT via lazarus wrote:
> Default must be native OS dialog. I suggest to use my dialog when 
> boolean option in LCL (will be added) true. 

The replies so far are not surprising at all. LCL prides itself staying
with "native components". Granted I find that has many drawbacks, but
that was LCL's design choice from the start, and will not change. I
battled the same arguments/suggestions years back. ;-)

If you want the full benefits of 100% customisability, better go with
the custom drawn toolkits out there. fpGUI and MSEgui are 100% custom
drawn and fully written in Object Pascal - no limitations with what can
be done.

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] Universal FontDialog for LCL

2019-03-07 Thread Martin Frb via lazarus

On 07/03/2019 18:14, Alexey via lazarus wrote:

  Please no? What do other developers think, also no (lcl option for universal 
dialog not wanted)?
AT


IMHO, it should be a separate component. So no code will be pulled into 
the user app, if it is not used.


While certainly useful, it is not necessarily something that needs to be 
included by default.
With the online package manager, I would think that an installable 
package might be useful. (And could later be extended, to contain other 
dialog replacements)

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


Re: [Lazarus] Universal FontDialog for LCL

2019-03-07 Thread Alexey via lazarus
 Please no? What do other developers think, also no (lcl option for universal 
dialog not wanted)?
AT
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Universal FontDialog for LCL

2019-03-07 Thread Bart via lazarus
On Thu, Mar 7, 2019 at 2:12 PM AlexeyT via lazarus
 wrote:

> Default must be native OS dialog. I suggest to use my dialog when
> boolean option in LCL (will be added) true.

Please no!

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


Re: [Lazarus] Universal FontDialog for LCL

2019-03-07 Thread AlexeyT via lazarus
Default must be native OS dialog. I suggest to use my dialog when 
boolean option in LCL (will be added) true. Here's my GH repo with 
dialog which almost 100% mimics GTK2 FontDialog. 
https://github.com/alexey-t/atfontdialog


It even increases preview height for big sizes >20.


On 07.03.2019 16:09, zeljko via lazarus wrote:

Not as default TFontDialog. Maybe as TLazFontDialog or similar.


--
Regards,
Alexey

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


Re: [Lazarus] Universal FontDialog for LCL

2019-03-07 Thread zeljko via lazarus

On 03/06/2019 07:54 PM, AlexeyT via lazarus wrote:
I have an idea to make LCL based TFontDialog- which will be LCL form, 
which can be called by TFontDialog.Execute (if Boolean variable in LCL 
is set). Why make it?


- we can make all best features of FontDlgs from all WSes

- we can make additional events- e,g, OnSelectFont (called when used 
selects name in listbox)


- we can make it resizable (and save/load size)

- same look on all WS

If it's good- ok to merge to Laz?



Not as default TFontDialog. Maybe as TLazFontDialog or similar.

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


Re: [Lazarus] Lazarus 2.0 doesn't compile LabJack wrapper

2019-03-07 Thread Joe via lazarus

Am 07.03.2019 um 08:24 schrieb Juha Manninen via lazarus:

Actually the implementation part is not needed (I think). Just give
the external DLL name in the interface.


Interesting approach. I'll try this.
Thanx, Juha.

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


Re: [Lazarus] Lazarus 2.0 doesn't compile LabJack wrapper

2019-03-07 Thread Joe via lazarus

Am 07.03.2019 um 08:33 schrieb Mattias Gaertner via lazarus:

Have you tried compiling with {$mode delphi} instead of {$mode objfpc}?
The wrapper did not contain any '{$mode objfpc}' or '{$mode delphi}' 
instruction. I inserted '{$mode delphi}', and the wrapper could be 
compiled. Thanx, Mattias.


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