Re: [Lazarus] questioning ARequest: TFPHTTPConnectionRequest :)

2023-02-26 Thread Michael Van Canneyt via lazarus




On Sun, 26 Feb 2023, duilio foschi via lazarus wrote:


my simple BE server uses this function to handle all inbound calls:

procedure TTestHTTPServer.HandleRequest(
  var ARequest: TFPHTTPConnectionRequest;
  var AResponse: TFPHTTPConnectionResponse
);

When the call is a POST, I want to read the json payload inside ARequest.

I expected to find a property like Body:string inside
TFPHTTPConnectionRequest, but I could not find it.


The property is called Content.

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


[Lazarus] who could add new gui elements support to pandroid azcforms unit

2023-02-26 Thread Mgr. Janusz Chmiel via lazarus
Every Lazarus and Pascal programmer can use Lamw. Sure. It is professional enterprise project. Rad development supported. Many Android specific features are supported including Google voice search, USB devices and many others. But what if somebody of us would tell. I do not want to compile to native machine code. I want to use PPCJVM instead and JVM android target?In this case, there is sad situation.There is currently according to my knowledge The only one project supported.It is PandroidThere are two variants of this big bundle.This is only for Linux.https://github.com/zeljkoc/pandroidAnd this Pandroid variant work only for Windows.https://github.com/zeljkoc/PandroidPackageI have a following plea.I would like to know, if it would be possible to add much more GUI elements in to azcforms.pas unit. And if all available GUi elements in Android25 Api version could be created and used without specifying object coordinates like todays GUI elements in .azcforms.pas If yes.Who of us would thing, that it would be very useful to add all available android GUI elements?Currently only Androidr25 support overide its important parts so I Am writing about Android R25 Api version.Building Android Api headers is extremely complex. And 29 version do not support overide at The most important moment when calling The unit. Azcform support Edit, button, Text and other and no position values have to be added. Form is based on relative layout.Do you think, that also other many available GUI elements compatible with Android 25 API could be used by this way? Or it do not have The sense at all to extend azcforms.pas unit to support them, because only very little of them could be used without need to add object coordinates? I believe, that therre is very advanced developer among us, who would know The answer. 
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] questioning ARequest: TFPHTTPConnectionRequest :)

2023-02-26 Thread duilio foschi via lazarus
my simple BE server uses this function to handle all inbound calls:

procedure TTestHTTPServer.HandleRequest(
   var ARequest: TFPHTTPConnectionRequest;
   var AResponse: TFPHTTPConnectionResponse
);

When the call is a POST, I want to read the json payload inside ARequest.

I expected to find a property like Body:string inside
TFPHTTPConnectionRequest, but I could not find it.

How do I get the the json payload which is inside ARequest?

Thank you

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


Re: [Lazarus] Linux apps and gtk version choosing

2023-02-26 Thread Kostas Michalopoulos via lazarus

On 2/26/23 14:25, Mgr. Janusz Chmiel via lazarus wrote:

Where to change GTK version from 2.0 to 3.0?

IIs it possible from Lazarus IDE, Form window or only from source code 
of app?


Project -> Project Options -> Additions and Overrides (under Compiler 
Options near the bottom of the sidebar on the left) -> Click Set "LCL 
WidgetType" -> Pick one of the available options (not that not all 
options will work, but gtk2 and gtk3 should work and qt5 will work if 
you have libqt5pas installed).


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


Re: [Lazarus] Linux apps and gtk version choosing

2023-02-26 Thread Bart via lazarus
On Sun, Feb 26, 2023 at 2:26 PM Mgr. Janusz Chmiel via lazarus
 wrote:

> IIs it possible from Lazarus IDE, Form window or only from source code of app?

Lazarus:
Compiler Options -> Config and Target -> "Select another LCL widgetset
(macro LCLWidgetType)"

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


[Lazarus] Linux apps and gtk version choosing

2023-02-26 Thread Mgr. Janusz Chmiel via lazarus
Dear specialists,   Where to choose which GTK version will be used by LCL whwen creating apps for Linux?Where to change GTK version from 2.0 to 3.0?IIs it possible from Lazarus IDE, Form window or only from source code of app? Thank you. 
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus