Re: [Lazarus] Lazarus Qt support and Wiki

2015-05-14 Thread zeljko

On 05/14/2015 06:04 PM, Giuliano Colla wrote:

I'm afraid that such a situation can discourage a number of potential
user from using Qt, while a wider usage would generate a better and
deeper testing, thus helping ironing out what's left to iron out.

Is it ok if, whenever I stumble into a Wiki page which is outdated with
respect of Qt support, I do edit it to reflect the current status of
things?
Any objections?


Of course that there's no objections. Just do it.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] ListView.OnSelectItem - which LCL backend is correct?

2015-05-14 Thread Graeme Geldenhuys
Hi,

I found a bug in LCL's TListView. The OnSelectItem event. When you
select an item in the Listview, that event is triggered twice. Once with
the Selected = True (indicating the new selection) and once with the
Selected = False (indicating the old selection).

But the order of those events are reversed between LCL-Win32/64 and
LCL-GTK2. I haven't tried other LCL backends, so don't know the order
of them.

So which backend has the correct behaviour, so I can file a bug report
for the other one. Seeing has LCL by design is very Windows centric, I'm
assuming the LCL-Win32/64 is the correct behaviour?

Unfortunately the documentation doesn't specify the expected behaviour.
http://lazarus-ccr.sourceforge.net/docs/lcl/comctrls/tcustomlistview.onselectitem.html

Also, it seems that under LCL-GTK2 the first time you select a new item,
it generates this event more times than under LCL-Win32/64.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] CHM Maker not working

2015-05-14 Thread Richard Mace
Hi,
I am trying to run the CHM Maker help file application, but when running
the chmmaker.lpi in Windows 7 Lazarus 1.4 I get:

[image: Inline images 1]

Any ideas?

Richard
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Keyboard handling messed up in LCL (recent change)

2015-05-14 Thread Giuliano Colla

Il 14/05/2015 23:31, Toan Pham ha scritto:

This bug also exists in Ubuntu 15, vivid.  I am not sure of the
root-cause (not just settings related), it could be in GTK+.


You could rule out GTK by compiling the IDE with Qt WS, and switching to 
KDE desktop (which is Qt based).

If it's just a GTK issue, you wouldn't have anything GTK related in the way.

Giuliano


--
Giuliano Colla

Project planning question: when it's 90% done, are we halfway or not yet?


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Keyboard handling messed up in LCL (recent change)

2015-05-14 Thread Toan Pham
> It's a known issue of Ubuntu 14

This bug also exists in Ubuntu 15, vivid.  I am not sure of the
root-cause (not just settings related), it could be in GTK+.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Keyboard handling messed up in LCL (recent change)

2015-05-14 Thread Giuliano Colla

Il 14/05/2015 16:59, Toan Pham ha scritto:

I am also affected by the keyboard issue.  This issue affects the two
version of lazarus I've tested (1.2.4 & 1.4.0), and both 32bit & 64bit
OSes.  I did not know it was ibus until I read this mailing list.
Thank you for sharing guys.


It's a known issue of Ubuntu 14, which messed up ibus input methods.
You should locate where input methods are defined (somewhere in keyboard 
settings) and set to "none", unless you need a specific one.
If you do, just hope that your input method isn't one of those which 
have been messed up, or google for an update!


Giuliano

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus Qt support and Wiki

2015-05-14 Thread Graeme Geldenhuys
On 2015-05-14 17:04, Giuliano Colla wrote:
> Is it ok if, whenever I stumble into a Wiki page which is outdated with 
> respect of Qt support, I do edit it to reflect the current status of things?
> Any objections?

That's the whole point of the wiki. I'm 100% sure there will be no
objections. :)


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus Qt support and Wiki

2015-05-14 Thread Giuliano Colla

Hi all.

In recent years the support for Qt Widgeset in Lazarus has dramatically 
improved, thanks to the efforts of Zeljan and others. My grateful thanks 
to all of them!


The result is that nowadays Qt WS is fully mature, suitable for 
production projects, and, at least for my applications and my taste, 
better than GTK2.


The only problem I see is that a lot of Wiki pages are outdated, and 
still report Qt as "experimental" and "unstable". Many features are 
reported as supported only under Win or GTK WS, while they're perfectly 
supported also by Qt.


Last example, just this morning: I used for the first time a 
TPopUpNotifier component, and I consulted the Wiki page to get some 
hints. The page states that it's supported only under Win32, GTK and 
GTK2, while it works perfectly also with Qt.


I'm afraid that such a situation can discourage a number of potential 
user from using Qt, while a wider usage would generate a better and 
deeper testing, thus helping ironing out what's left to iron out.


Is it ok if, whenever I stumble into a Wiki page which is outdated with 
respect of Qt support, I do edit it to reflect the current status of things?

Any objections?

Giuliano


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Keyboard handling messed up in LCL (recent change)

2015-05-14 Thread Toan Pham
I am also affected by the keyboard issue.  This issue affects the two
version of lazarus I've tested (1.2.4 & 1.4.0), and both 32bit & 64bit
OSes.  I did not know it was ibus until I read this mailing list.
Thank you for sharing guys.


Michael, as for me, I also find that if I run lazarus as root,
keyboard input would work fine.  I am still suspecting that the bug is
in lazarus for this reason.  When you have time, would you please test
with ibus enabled, and run lazarus as root?  thank you.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TStringGrid.OnSelectEditor

2015-05-14 Thread Vojtěch Čihák

I tested with r. 49022. Works well.
 
Thank you!
 
__

Od: "Jesus Reyes A." 
Komu: Lazarus mailing list 
Datum: 14.05.2015 09:05
Předmět: Re: [Lazarus] TStringGrid.OnSelectEditor


En Wed, 13 May 2015 19:48:56 -0500, Vojtěch Čihák  
escribió:


Hi,
 
I got troubles with TStringGrid. When I set:
 
goAlwaysShowEditor:=False;
goEditing:=True;
 
OnSelectEditor is triggered always when I select any cell, even if editor 
(built-in or custom) is not shown yet.
When I click the cell for the second time, editor is shown and OnSelectEditor 
is triggered again.
 
I guess it's a bug, after all there are other events for selecting cell 
(OnSelection, OnSelectCell).
 
Is it by design or should I report?
 
Thanks, V.
 
P.S.:
When options are:
goAlwaysShowEditor:=True;
goEditing:=True;
 
OR
 
goAlwaysShowEditor:=False;
goEditing:=False;
 
OnSelectEditor works as expected.
I think is not a bug (at least that kind of bug that is against the 
documentation).But I see no reason why it should work the way it does now, 
please check r49016Jesus Reyes A. 

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Google APIs

2015-05-14 Thread markbass72

On 14/05/2015 11:14, Michael Van Canneyt wrote:


Great!! I have committed the script. rev 49018.
I don't know your name, but I entered your email address in the SVN 
log entry and script.



thanks for reference :)
btw my name is Marcello Basso (nomorelogic)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Google APIs

2015-05-14 Thread Michael Van Canneyt



On Thu, 14 May 2015, markbass72 wrote:


On 09/05/2015 17:28, Michael Van Canneyt wrote:


You need FPC 3.1 for all this to work 'out of the box'.

But:

The code can be compiled with 2.6.4/2.6.4, but then you must copy the 
source files from
the FPC SVN repository to the lazarus component directory. You will also 
need to install the synapse package then.


I have updated the README.txt with the necessary instructions. I also did 
some fixes using some IFDEFS.


I will see about making a ZIP file available so people do not need access 
to FPC SVN.




To compile with fpc 2.6.4, I realized a script to update folder 
../lazarus/components/googgleapis/2_6_4


Just create a script (e.g.: getgoogle.sh) inside this folder and paste 
following content.
This script populates the current folder with needed sources (as specified in 
README.txt).


Great!! I have committed the script. rev 49018.
I don't know your name, but I entered your email address in the SVN log entry 
and script.

Michael.



#/bin/bash

function ExitFromScript()
{
echo ERROR: incorrect path!
echo You must execute this script from folder: 
.../lazarus/components/googleapis/2_6_4

exit
}

pwd|grep "/2_6_4$" || ExitFromScript
echo Folder: OK!

[ ! -d /tmp/googleapi ] && mkdir /tmp/googleapi
svn co http://svn.freepascal.org/svn/fpc/trunk/packages/googleapi/src/ 
/tmp/googleapi/

cp /tmp/googleapi/* .

[ ! -d /tmp/fcl-web ] && mkdir /tmp/fcl-web
svn co http://svn.freepascal.org/svn/fpc/trunk/packages/fcl-web/src/base/ 
/tmp/fcl-web/

cp /tmp/fcl-web/fpoauth2.pp .
cp /tmp/fcl-web/fphttpwebclient.pp .
cp /tmp/fcl-web/fpwebclient.pp .
cp /tmp/fcl-web/restcodegen.pp .
cp /tmp/fcl-web/restbase.pp .
cp /tmp/fcl-web/fpoauth2ini.pp .
cp /tmp/fcl-web/fpjwt.pp .

echo "-- googleapis sources --"
ls


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Google APIs

2015-05-14 Thread markbass72

On 09/05/2015 17:28, Michael Van Canneyt wrote:


You need FPC 3.1 for all this to work 'out of the box'.

But:

The code can be compiled with 2.6.4/2.6.4, but then you must copy the 
source files from
the FPC SVN repository to the lazarus component directory. You will 
also need to install the synapse package then.


I have updated the README.txt with the necessary instructions. I also 
did some fixes using some IFDEFS.


I will see about making a ZIP file available so people do not need 
access to FPC SVN.




To compile with fpc 2.6.4, I realized a script to update folder 
../lazarus/components/googgleapis/2_6_4


Just create a script (e.g.: getgoogle.sh) inside this folder and paste 
following content.
This script populates the current folder with needed sources (as 
specified in README.txt).



#/bin/bash

function ExitFromScript()
{
echo ERROR: incorrect path!
echo You must execute this script from folder: 
.../lazarus/components/googleapis/2_6_4

exit
}

pwd|grep "/2_6_4$" || ExitFromScript
echo Folder: OK!

[ ! -d /tmp/googleapi ] && mkdir /tmp/googleapi
svn co http://svn.freepascal.org/svn/fpc/trunk/packages/googleapi/src/ 
/tmp/googleapi/

cp /tmp/googleapi/* .

[ ! -d /tmp/fcl-web ] && mkdir /tmp/fcl-web
svn co 
http://svn.freepascal.org/svn/fpc/trunk/packages/fcl-web/src/base/ 
/tmp/fcl-web/

cp /tmp/fcl-web/fpoauth2.pp .
cp /tmp/fcl-web/fphttpwebclient.pp .
cp /tmp/fcl-web/fpwebclient.pp .
cp /tmp/fcl-web/restcodegen.pp .
cp /tmp/fcl-web/restbase.pp .
cp /tmp/fcl-web/fpoauth2ini.pp .
cp /tmp/fcl-web/fpjwt.pp .

echo "-- googleapis sources --"
ls


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fugue icons for LHelp?

2015-05-14 Thread Michael Van Canneyt



On Wed, 13 May 2015, leledumbo wrote:


Please give opinions about new proposed icons for LHelp.


Here or there?

However, for me, either is fine. The yellow icons are only in the treeview
nodes, it would be irritating if yellow is the dominant color. Blue is
indeed calmer, but it doesn't make significant differences.


I prefer a somewhat calmer look for my apps.

I must agree with Howard though, that the meaning of the different icons 
escapes me totally.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TStringGrid.OnSelectEditor

2015-05-14 Thread Jesus Reyes A.
En Wed, 13 May 2015 19:48:56 -0500, Vojtěch Čihák   
escribió:




Hi,


I got troubles with TStringGrid. When I set:


goAlwaysShowEditor:=False;

goEditing:=True;


OnSelectEditor is triggered always when I select any cell, even if  
editor (built-in or custom) is not shown yet.


When I click the cell for the second time, editor is shown and  
OnSelectEditor is triggered again.



I guess it's a bug, after all there are other events for selecting cell  
(OnSelection, OnSelectCell).



Is it by design or should I report?


Thanks, V.


P.S.:

When options are:

goAlwaysShowEditor:=True;

goEditing:=True;


OR


goAlwaysShowEditor:=False;

goEditing:=False;


OnSelectEditor works as expected.


I think is not a bug (at least that kind of bug that is against the  
documentation).
But I see no reason why it should work the way it does now, please check  
r49016


Jesus Reyes A.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus