Re: [Lazarus] Unix Select Printer dlg: tab-order fix

2018-07-27 Thread Juha Manninen via Lazarus
On Fri, Jul 27, 2018 at 2:22 PM Maxim Ganetsky via Lazarus
 wrote:
> The patch looks good, please apply it too.

Ok, applied in r58641.

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


Re: [Lazarus] Crosscompile to Android on arm?

2018-07-27 Thread Bo Berglund via Lazarus
On Fri, 27 Jul 2018 08:21:56 +0200, Bo Berglund via Lazarus
 wrote:

>After this the program does no longer crashes when I try to connect to
>the device, but it does not connect either because I am having
>problems making OpenVPN to the network where the device lives work
>from the RPi box.
>I have to solve this somehow, it works fine from my Windows7 PC so
>there I can interact with the device.
>Problem for another forum, though.

Worked around it by copying the executable from my local RPi to
another RPi unit running at home using FileZilla on my Win7 laptop.
Then started it in a VNC window on tghe RPI back home.

In this case the application works just fine to connect to the ESP8277
device and retrieve the config data! :)

So I am back to my original enquiry:
Can I also cross-compile this application to run as an app on an
Android phone or tablet?
If it is possible, exactly how can it be done?

-- 
Bo Berglund
Developer in Sweden

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


Re: [Lazarus] Using a component OBJ file in Lazarus?

2018-07-27 Thread Paul Breneman via Lazarus

On 07/27/2018 02:36 AM, Bo Berglund via Lazarus wrote:
...

And we have had lots of problems over the years with their dongle
driver for Windows.


Thankfully we've not experienced that.

Thanks Bo for your comments!

Regards,
Paul
www.ControlPascal.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Unix Select Printer dlg: tab-order fix

2018-07-27 Thread Maxim Ganetsky via Lazarus
27.07.2018 13:29, Juha Manninen via Lazarus пишет:
> On Thu, Jul 26, 2018 at 12:52 PM AlexeyT via Lazarus
>  wrote:
>> this fixes weird tab-order.
> 
> I applied this one in r58640. Thanks.
> I leave the i18n patch for Maxim.

The patch looks good, please apply it too.

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


Re: [Lazarus] Unix Select Printer dlg: tab-order fix

2018-07-27 Thread Juha Manninen via Lazarus
On Thu, Jul 26, 2018 at 12:52 PM AlexeyT via Lazarus
 wrote:
> this fixes weird tab-order.

I applied this one in r58640. Thanks.
I leave the i18n patch for Maxim.

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


Re: [Lazarus] Crosscompile to Android on arm?

2018-07-27 Thread Bo Berglund via Lazarus
On Thu, 26 Jul 2018 10:26:27 +0200, Sven Barth via Lazarus
 wrote:

>> For example in some console apps I have made also for both Windows and
>> Raspbian I have this in the lpr file:
>>   {$IFDEF UNIX}
>> {$IFDEF UseCThreads}
>> cthreads,
>> {$ENDIF}
>>   {$ENDIF}
>>
>> If that is needed also here, where should it be put?
>>
>
>Also in the main project file in front of any other units. If your program
>indeed uses threads (don't know whether Indy uses them) then you'll also
>either need to add UseCThreads to the project defines or remove the "$ifdef
>UseCThreads" so that the cthreads unit is always used on Unix-like systems.

Indy does use threads extensively...
Since I could not find any place to set a project wide defined symbol
UseCThreads I did this instead in the lpr file:

program WiFiConfig;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}
  cthreads,
  {$ENDIF}
  Interfaces, // this includes the LCL widgetset
  Forms, indylaz, FormMainConfig, wificommhandler
  { you can add units after this };

{$R *.res}

begin
  RequireDerivedFormResource := True;
  Application.Initialize;
  Application.CreateForm(TfrmMainConfig, frmMainConfig);
  Application.Run;
end.

After this the program does no longer crashes when I try to connect to
the device, but it does not connect either because I am having
problems making OpenVPN to the network where the device lives work
from the RPi box.
I have to solve this somehow, it works fine from my Windows7 PC so
there I can interact with the device.
Problem for another forum, though.

-- 
Bo Berglund
Developer in Sweden

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