Re: [Lazarus] how to show hourglass on windows 10 with touch screen?

2019-01-24 Thread Graeme Geldenhuys via lazarus
On 23/01/2019 14:49, Luca Olivetti via lazarus wrote:
> is there an alternative way to show that the application is busy?

A small borderless dialog with a short message? Think in the lines of a
splashscreen-like dialog. I use this often in my applications to convey
updates to long running tasks.


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] how to show hourglass on windows 10 with touch screen?

2019-01-24 Thread Luca Olivetti via lazarus

El 24/1/19 a les 10:23, Graeme Geldenhuys via lazarus ha escrit:

On 23/01/2019 14:49, Luca Olivetti via lazarus wrote:

is there an alternative way to show that the application is busy?


A small borderless dialog with a short message? Think in the lines of a
splashscreen-like dialog. I use this often in my applications to convey
updates to long running tasks.


I was hoping for a system-provided facility (just like the crHourGlass 
but for windows 10 *with* touch screen. With a physical mouse 
crHourGlass works fine).
If there isn't one I will consider using a splash screen but I don't 
like it very much.


Regards
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] LazProfiler package cannot install

2019-01-24 Thread Balázs Székely via lazarus
If you expand lazprofiler node(OPM), you can see that only works with
Lazarus/FPC trunk.

On Wed, Jan 23, 2019 at 11:34 AM AlexeyT via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

>  From OPM. I see prompt about missing dependences, confirmed all, it
> 'Cannot intall' after compiling dep's.
>
> r60156, fpc 3.0.4, Linux x64 gtk2.
>
> --
> Regards,
> Alexey
>
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] IDE fppkg error message

2019-01-24 Thread AlexeyT via lazarus

After changing FPC from 3.0.4 to 3.3.1 i see this error on IDE start.

a) ugly caption

b) how to avoid it?

--
Regards,
Alexey

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


Re: [Lazarus] how to show hourglass on windows 10 with touch screen?

2019-01-24 Thread Giuliano Colla via lazarus

Il 23/01/2019 15:49, Luca Olivetti via lazarus ha scritto:


This isn't strictly a lazarus issue, but my google fu is failing me.
It turns out that windows 10 with a touch screen hides the mouse 
cursor, so Screen.Cursor=crHourGlass does nothing. 


Did you try taking advantage of such Windows API's as ClipCursor() and 
SetCursorPos()?
Maybe the cursor is hidden just because of the way the clipping area is 
defined in presence of a touch screen, or because the cursor position is 
set outside the screen coordinates.

Just an idea, I never tried myself.

Giuliano

--
Do not do to others as you would have them do to you.They might have different 
tastes.

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


Re: [Lazarus] how to show hourglass on windows 10 with touch screen?

2019-01-24 Thread Sven Barth via lazarus
Am Do., 24. Jan. 2019, 13:52 hat Giuliano Colla via lazarus <
lazarus@lists.lazarus-ide.org> geschrieben:

> Il 23/01/2019 15:49, Luca Olivetti via lazarus ha scritto:
>
> > This isn't strictly a lazarus issue, but my google fu is failing me.
> > It turns out that windows 10 with a touch screen hides the mouse
> > cursor, so Screen.Cursor=crHourGlass does nothing.
>
> Did you try taking advantage of such Windows API's as ClipCursor() and
> SetCursorPos()?
> Maybe the cursor is hidden just because of the way the clipping area is
> defined in presence of a touch screen, or because the cursor position is
> set outside the screen coordinates.
> Just an idea, I never tried myself.
>

No, Windows 10 hides the cursor if no input device (mouse, touchpad)
besides a touchscreen is detected. Cause in that case a cursor "makes no
sense". Note: this does not mean I agree with that, only that Microsoft
thinks that.

Regards,
Sven

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


Re: [Lazarus] IDE fppkg error message

2019-01-24 Thread Martok via lazarus
Am 24.01.2019 um 13:42 schrieb AlexeyT via lazarus:
> After changing FPC from 3.0.4 to 3.3.1 i see this error on IDE start.
See 
Short version:

Lazarus now has a hard dependency on properly (and globally!) configured fppkg,
which requires fpc in your PATH.

Upside: Lazarus supposedly needs it for something to do with fpmake
dependencies, but it only really affects looking up paths of packages installed
via fppkg.
Downside: completely breaks the default Windows setup as well as any
self-contained installations (on any OS).

> b) how to avoid it?
Not currently fixable by a user.

However, as this only occurs when you have never run the fppkg client before,
you also cannot have any fppkg-managed packages, meaning the message is
perfectly safe to ignore. See attached patch, which restores the old logic.
Compiling *will* work even if fppkg is not configured (as it always has), as fpc
correctly uses fpc.cfg to find the package paths.


-- 
Regards,
Martok

Index: packager/fppkghelper.pas
===
--- packager/fppkghelper.pas(revision 60047)
+++ packager/fppkghelper.pas(working copy)
@@ -71,8 +71,8 @@
   FFPpkg := FPpkg;
   FPpkg := nil;
 except
-  on E: Exception do
-IDEMessageDialog(lisFppkgInitializeFailed, 
Format(lisFppkgInitializeFailed, [E.Message]), mtWarning, [mbOK]);
+  //on E: Exception do
+  //  IDEMessageDialog(lisFppkgInitializeFailed, 
Format(lisFppkgInitializeFailed, [E.Message]), mtWarning, [mbOK]);
 end;
   finally
 FPpkg.Free;
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] how to show hourglass on windows 10 with touch screen?

2019-01-24 Thread Giuliano Colla via lazarus

Il 24/01/2019 14:34, Sven Barth via lazarus ha scritto:
No, Windows 10 hides the cursor if no input device (mouse, touchpad) 
besides a touchscreen is detected. Cause in that case a cursor "makes 
no sense". Note: this does not mean I agree with that, only that 
Microsoft thinks that.




Just for the record. In our company we manufacture control systems for 
automatic machines, and we provide a touch-screen industrial computer, 
for easy operator interaction.


In the operating instructions we write:

"If you have difficulties with touch screen, please touch anywhere on 
the screen and watch the cursor position, If it happens not to be 
exactly at the location you touched, please perform the touch screen 
calibration procedure explained below"


Of course we're not using Windows, but rather Linux for a lot of 
reasons, the main one being that we need real-time responsiveness. 
However this one adds one more reason to the list.


To be honest I must admit that industrial grade touch screens have 
dramatically improved during the years, and nowadays the recalibration 
is seldom required, nonetheless...


Giuliano

--
Do not do to others as you would have them do to you.They might have different 
tastes.

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


Re: [Lazarus] how to show hourglass on windows 10 with touch screen?

2019-01-24 Thread Sven Barth via lazarus
Am Do., 24. Jan. 2019, 18:31 hat Giuliano Colla via lazarus <
lazarus@lists.lazarus-ide.org> geschrieben:

> Il 24/01/2019 14:34, Sven Barth via lazarus ha scritto:
> > No, Windows 10 hides the cursor if no input device (mouse, touchpad)
> > besides a touchscreen is detected. Cause in that case a cursor "makes
> > no sense". Note: this does not mean I agree with that, only that
> > Microsoft thinks that.
> >
>
> Just for the record. In our company we manufacture control systems for
> automatic machines, and we provide a touch-screen industrial computer,
> for easy operator interaction.
>
> In the operating instructions we write:
>
> "If you have difficulties with touch screen, please touch anywhere on
> the screen and watch the cursor position, If it happens not to be
> exactly at the location you touched, please perform the touch screen
> calibration procedure explained below"
>
> Of course we're not using Windows, but rather Linux for a lot of
> reasons, the main one being that we need real-time responsiveness.
> However this one adds one more reason to the list.
>
> To be honest I must admit that industrial grade touch screens have
> dramatically improved during the years, and nowadays the recalibration
> is seldom required, nonetheless...
>

I take it those are resistive touch screens? For those calibration is
sometimes necessary (especially older ones as you said). For capacitive
touch panels (be it smartphone or tablet) I haven't found the need for
that.

Regards,
Sven

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


Re: [Lazarus] how to show hourglass on windows 10 with touch screen?

2019-01-24 Thread Luca Olivetti via lazarus

El 24/1/19 a les 14:34, Sven Barth via lazarus ha escrit:

No, Windows 10 hides the cursor if no input device (mouse, touchpad) 
besides a touchscreen is detected. Cause in that case a cursor "makes no 
sense". Note: this does not mean I agree with that, only that Microsoft 
thinks that.


If only they provided at least an alternative way to provide feedback 
when the application is busy...


@Giuliano, in my case it just manages the UI, but I didn't decide the OS.

Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Translation templates (master files) now have .pot extension

2019-01-24 Thread Maxim Ganetsky via lazarus

Hello.

In r60208 I changed extension of master PO files (a.k.a. templates) from 
.po to .pot, adapted IDE, POChecker, updatepofiles tool and 
localize.bat/.sh scripts.


Reasons:
1. .pot is 'industry standard' extension for PO template files. As a 
consequence, PO editors can now open our templates 'out of the box' and 
automate creation of translations.
2. It is now much simpler to detect template files now that dotted unit 
names are allowed.


Example for IDE translation:

Previously we had:

Template:lazaruside.po
German:  lazaruside.de.po
Russian: lazaruside.ru.po
Spanish: lazaruside.es.po
French:  lazaruside.fr.po
Italian: lazaruside.it.po

Now we have (note extension of the template):

Template:lazaruside.pot
German:  lazaruside.de.po
Russian: lazaruside.ru.po
Spanish: lazaruside.es.po
French:  lazaruside.fr.po
Italian: lazaruside.it.po

You can safely remove .po template files from your project AFTER you 
rebuild your IDE and rebuild your project with it (at this point .pot 
files should be generated).


Note that although .po template files have been removed from Lazarus 
SVN, they may reappear during first IDE rebuild (with the old one). In 
this case it may be a good idea to clean them up after rebuild.


If you use updatepofiles tool or localize.bat/.sh scripts in Lazarus 
directory, do not forget to rebuild updatepofiles (run "make tools" in 
Lazarus directory).


--
Best regards,
 Maxim Ganetsky  mailto:gan...@narod.ru
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus