[Lazarus] dbgrid with a lookup field

2024-05-10 Thread duilio foschi via lazarus
please see https://docs.google.com/document/d/1RprJLM1i7dgJvfz-lDryH-Jc9I8xVv8gvzsKeYoI6Ps/edit?usp=sharing I have a DBGrid with a lookup colum, say column 0. The user selects a row in the picklist and the focus goes to the undelying lookup cell (0), what makes sense. However I'd like the focus

[Lazarus] question re tdblookupcombobox

2024-05-03 Thread duilio foschi via lazarus
the string to display on screen (property DataField) is short. The strings that are listed for selection (field ListField) are wide. I would like to have the control width = 66 pixels and the drop-down list width = 200 pixels. Is there a way to get this behaviour? Right now, the drop-down list

Re: [Lazarus] vertically space controls

2024-04-28 Thread duilio foschi via lazarus
that's it! On Sun, Apr 28, 2024 at 7:09 PM Werner Pamler via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Am 28.04.2024 um 18:56 schrieb duilio foschi via lazarus: > > I select N controls in a form. > > > > C1 is the top control. C6 is the lowest control. >

[Lazarus] vertically space controls

2024-04-28 Thread duilio foschi via lazarus
I select N controls in a form. C1 is the top control. C6 is the lowest control. I want controls C1..C6 be equally spaced in the vertical space given by C1.Top and C6.Top. In Delphi 5 IDE I had the Alignment Palette by which I could do that (and other useful operations). I cannot find the same

[Lazarus] italian accented vowels wrongly displayed in a TMemo

2024-01-25 Thread duilio foschi via lazarus
byte F9 is correctly displayed as ù (accented u) in PSPad/Hex (see https://ibb.co/S7Z6rx5) and wrongly displayed as ? in my TMemo (see https://ibb.co/BBTRhPy). Any help? What do I do wrong? Thank you Peppe -- ___ lazarus mailing list

[Lazarus] open source warehouse program: any hint?

2023-09-03 Thread duilio foschi via lazarus
I am looking for a simple program as explained in the subject.. It should be in Pascal, Delphi or Lazarus. Any hint? Thank you Peppe Polpo -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] html server doubts

2023-03-13 Thread duilio foschi via lazarus
I wrote a BE server expanding the TTestHTTPServer I found in the samples. Each inbound call is handled by (common) code that sets a number of global variables like sessionID, url, method etc. Then the call call goes thru the Match function of several specialized components. When the Match

Re: [Lazarus] questioning ARequest: TFPHTTPConnectionRequest :)

2023-02-27 Thread duilio foschi via lazarus
It belongs to TFPHTTPConnectionRequest's grandfather (ancestor of ancestor). Silly of me, I had gone back only one generation! :) Thank you Peppe On Mon, Feb 27, 2023 at 8:23 AM Michael Van Canneyt via lazarus wrote: > > > > On Sun, 26 Feb 2023, duilio foschi via lazarus wrote: >

[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

Re: [Lazarus] TFPHTTPServer

2023-02-23 Thread duilio foschi via lazarus
that was it. Thanks a lot Peppe On Thu, Feb 23, 2023 at 11:07 AM Michael Van Canneyt via lazarus wrote: > > > > On Thu, 23 Feb 2023, duilio foschi via lazarus wrote: > > > I wrote a simple server using TFPHTTPServer. > > > > All incoming calls are processed usin

[Lazarus] TFPHTTPServer

2023-02-23 Thread duilio foschi via lazarus
I wrote a simple server using TFPHTTPServer. All incoming calls are processed using procedure HandleRequest(var ARequest: TFPHTTPConnectionRequest; var AResponse: TFPHTTPConnectionResponse); My first tests were ok and encouraging but... how do I know if the call was a GET or a POST? I

[Lazarus] vanishing main menu wanted

2023-01-08 Thread duilio foschi via lazarus
these images show what I have now: 1. https://ibb.co/CwKYdvv the main menu is attached to the form (standard behavior) 2. https://ibb.co/wghVxrp when I switch from Tab1 to Tab2, the main menu stays visible These images show what I would like: 3. https://ibb.co/TmDdcRB the menu is attached to

[Lazarus] revamping a very old print

2023-01-07 Thread duilio foschi via lazarus
I would like to give a new life to a very old application that was written in foxplus (a xbase dialect) in 1990 :) At that time, the display was 80 char per line and the printer was 132 char per line, so data was printed using the logics you will find at the bottom of this message. I wonder if I

Re: [Lazarus] SQLDBRestBridge

2022-11-09 Thread duilio foschi via lazarus
>we switched to using datatables.net very interesting. Is any sample code available for its use with pas2js? . Thank you Peppe On Wed, Nov 9, 2022 at 1:08 PM Michael Van Canneyt via lazarus wrote: > > > > On Tue, 8 Nov 2022, duilio foschi wrote: > > > I am puzzled by TMS Software. > > You

Re: [Lazarus] SQLDBRestBridge

2022-11-08 Thread duilio foschi via lazarus
I am puzzled by TMS Software. 1. there is one demo specific for SQLDBRestBridge, but the application is obviously bugged, as you see from the following screenshot https://i.ibb.co/m4wVGtM/2.jpg as a start, the code for the login and logout button is the same, what cannot be 2. the support will

Re: [Lazarus] SQLDBRestBridge

2022-11-07 Thread duilio foschi via lazarus
I fixed the code in Lazarus and got a client based on BufDataClient that successfully talks with a restbridge server. As a next step, I'd like to connect to the same server from a TWebForm of TMS Web Core library. I started with a slow step. There is only a TWebHttpRequest in the form (which has

Re: [Lazarus] SQLDBRestBridge

2022-11-06 Thread duilio foschi via lazarus
Hi Michael, I am digging into your SQLDBRestBridge component. Very useful code. I could fix and run both the server part and the client part (I used the BufDataset client). My code (with very few changes applied to the original one) can be downloaded from this link:

Re: [Lazarus] SQLDBRestBridge

2022-11-03 Thread duilio foschi via lazarus
>Please look at the intercept example could you please expand on this? Where do I find the intercept example? Thank you Peppe On Thu, Nov 3, 2022 at 11:17 PM Michael Van Canneyt via lazarus wrote: > > > > On Thu, 3 Nov 2022, duilio foschi wrote: > > > Hi Michael, > > > > I was able to log

Re: [Lazarus] SQLDBRestBridge

2022-11-03 Thread duilio foschi via lazarus
you Peppe On Thu, Nov 3, 2022 at 10:10 AM Michael Van Canneyt via lazarus wrote: > > > > On Thu, 3 Nov 2022, duilio foschi via lazarus wrote: > > > I could get client and server talk each other. > > > > For the future, it would be nice to have the server (wh

[Lazarus] SQLDBRestBridge

2022-11-03 Thread duilio foschi via lazarus
I could get client and server talk each other. For the future, it would be nice to have the server (when in debug mode) write a log of commands and data exchanged with the client. Both inbound and outbound commands/data are needed. I have a hard time figuring out where to insert my code. Any

[Lazarus] jedi code formatter

2022-11-02 Thread duilio foschi via lazarus
I could edit file jcfsettings.cfg and get most of the wanted features. There are 2 more features I'd like to get, but I cannot understand how: https://i.ibb.co/YkJ1Txm/1.jpg Any help? Btw: is there any manual available? Thank you Peppe -- ___

Re: [Lazarus] testing demorestbridge without a web server: is that possible?

2022-10-27 Thread duilio foschi via lazarus
T FOUND" } } >then you must include connection after REST eg http://localhost:3000/REST/YOURDEFAULTCONNECTIONNAME/metadata gulp! Which is my default connection name? Thank you Peppe On Thu, Oct 27, 2022 at 7:13 PM zeljko wrote: > > > > On 27. 10. 2022. 19:03, duili

Re: [Lazarus] testing demorestbridge without a web server: is that possible?

2022-10-27 Thread duilio foschi via lazarus
ord do we mean one of the rows of table > USERS? > > I run bufclient but the answer is always the same: 404 NOT FOUND > > What am I missing? > > Thank you > > Peppe > > On Wed, Oct 26, 2022 at 8:52 AM Michael Van Canneyt via lazarus > wrote: > &g

Re: [Lazarus] testing demorestbridge without a web server: is that possible?

2022-10-26 Thread duilio foschi via lazarus
he browser? When we talk about username/password do we mean one of the rows of table USERS? I run bufclient but the answer is always the same: 404 NOT FOUND What am I missing? Thank you Peppe On Wed, Oct 26, 2022 at 8:52 AM Michael Van Canneyt via lazarus wrote: > > > > On Tue, 25 Oct 20

[Lazarus] testing demorestbridge without a web server: is that possible?

2022-10-25 Thread duilio foschi via lazarus
following the suggestions offered by zeljiko (thank you, zeljko), I was able to compile and successfully run demorestbridge.exe Albeit no message is displayed when the EXE starts, I can see that the application is alive and answering requests at port 3000 (I use command >netstat -bano for this).

[Lazarus] demorestbridge

2022-10-23 Thread duilio foschi via lazarus
I am trying to use the demo that I find in directory C:\lazarus\fpc\3.2.2\source\packages\fcl-web\examples\restbridge Following the instructions in file readme.txt, 1. I created a firebird database (test.fdb) 2. I run expenses-fb.sql to create the db structure 3. I run expenses-data.sql to

Re: [Lazarus] fish application as web application

2022-06-02 Thread duilio foschi via lazarus
rus < lazarus@lists.lazarus-ide.org> wrote: > > > On Thu, 2 Jun 2022, duilio foschi via lazarus wrote: > > > which is the state of art of Lazarus as a web programming tool? > > > > I'd like to know: is it possible to write the classic "fish application" &g

[Lazarus] fish application as web application

2022-06-02 Thread duilio foschi via lazarus
which is the state of art of Lazarus as a web programming tool? I'd like to know: is it possible to write the classic "fish application" http://www.shellplus.com/graphics/fish-explorer-demo.gif as a web application using Lazarus? Has somebody done that? Thank you Peppe --

Re: [Lazarus] trying to read an EXE

2021-09-05 Thread duilio foschi via lazarus
a new world to discover. Thanks a lot Peppe On Sun, Sep 5, 2021 at 4:30 PM Christo Crause wrote: > > On Sun, Sep 5, 2021 at 12:50 PM duilio foschi via lazarus < > lazarus@lists.lazarus-ide.org> wrote: > >> > An alternative is to use a tool such as objdump o

Re: [Lazarus] trying to read an EXE

2021-09-05 Thread duilio foschi via lazarus
x Christo ; for the problem in question, I was running short of time, so I went back to the source, fixed the line and recompiled. However this question picked my curiosity and I'd like to know more >The easiest way to see both the machine code, the disassembled code and the Pascal code from

Re: [Lazarus] trying to read an EXE

2021-09-04 Thread duilio foschi via lazarus
I followed Bart's suggestion and added the -al switch to the fpc.cfg file. This was probably the right move, as - after a new compile - I could see the wanted .s file beside the regular EXE. I uploaded the .s file here: https://mega.nz/file/rlpyHa7b#fx0LYTjapmUdFRkzVGCCzFFogqYuEu7UvYQ5HtilLks I

[Lazarus] trying to read an EXE

2021-09-03 Thread duilio foschi via lazarus
today I did an experiment that gave me surprising results (due to my ignorance, of course). I have an application written in Lazarus and I need to do one fix only. This line result:=EncodeDate( cmbYear.ItemIndex+2005, cmbMonth.ItemIndex+1, 1); needs to be changed into

Re: [Lazarus] editor bug?

2021-03-16 Thread duilio foschi via lazarus
I have made the patches for myself. Please do what you like with them. Thank you Duilio. On Tue, Mar 16, 2021 at 9:42 PM Martin Frb via lazarus < lazarus@lists.lazarus-ide.org> wrote: > On 15/03/2021 19:01, duilio foschi via lazarus wrote: > > > > You will find a

Re: [Lazarus] I say a little prayer (for the Lazarus editor)

2021-03-16 Thread duilio foschi via lazarus
Hi Martin somebody fixed this point, too. See https://mega.nz/file/SkwVwIaS#qC1UeaSGy2kLwEQTSl57CPIYJZY34LYdMQQh7zb9ruY I am sending the unit synedit.pp fixed for both the stable and the trunk version. I can finally work in column mode as I was accustomed to do in Delphi :) HTH Duilio On

Re: [Lazarus] editor bug?

2021-03-15 Thread duilio foschi via lazarus
8, duilio foschi via lazarus wrote: > > I am using Lazarus v. 2.0.6 r. 62129 on windows 7/64 bits. > > > > I found an unexpected behaviours of the editor > > > > 1. I want to delete the text ":string" from the encircled column-sized > > frame > >

Re: [Lazarus] I say a little prayer (for the Lazarus editor)

2021-02-21 Thread duilio foschi via lazarus
Hi Martin, thank you for the detailled instructions. Re your question >does the Caret go to the start of the insert, or does it automatically move one line down too? in Delphi/column mode, the caret moves one line down at each insert. 1. starting from this status

Re: [Lazarus] I say a little prayer (for the Lazarus editor)

2021-02-21 Thread duilio foschi via lazarus
the problem? Where is the Lazarus repository with the original code of the Lazarus editor? Thank you Duilio On Sat, Feb 20, 2021 at 5:31 PM Martin Frb wrote: > On 20/02/2021 13:11, duilio foschi via lazarus wrote: > > > > pic > > > > https://i.ibb.co/jDBfSpZ/4.jpg <

Re: [Lazarus] I say a little prayer (for the Lazarus editor)

2021-02-20 Thread duilio foschi via lazarus
xt (any text) and then use a > multi-cursor (pressing Alt+Shift+Down Arrow several times) and then Ctrl-V > to paste, you get such a multi-row paste very easily. > > Whether the mentioned IDE thing gets fixed or not, I find this the easier > way. > > Cheers! > Ryan > &

[Lazarus] I say a little prayer (for the Lazarus editor)

2021-02-20 Thread duilio foschi via lazarus
If the coder in charge of the editor reads this, I have a prayer for him: 1. The text showed in https://i.ibb.co/0FQV1L0/3.jpg is column-selected using shift+alt+arrow followed by ctrl-C 2. using the arrows key, I move the cursor to the position shown in https://i.ibb.co/VmbVJtg/4.jpg 3. I

[Lazarus] editor bug?

2021-02-20 Thread duilio foschi via lazarus
I am using Lazarus v. 2.0.6 r. 62129 on windows 7/64 bits. I found an unexpected behaviours of the editor 1. I want to delete the text ":string" from the encircled column-sized frame you see here: https://i.ibb.co/V9ZPzSf/1.jpg The frame was selected using shift+alt+arrows keys. 2. when I

[Lazarus] Fwd: using a weird DLL

2021-02-01 Thread duilio foschi via lazarus
HBITMAP. On the C# side it would be > Image.FromHbitmap" > > Re Rectangle, I found nothing interesting :( > > However it seems natural to expect that Rectangle it is given by a pointer > to a fixed array of 2 points= 4 integers= 16 bytes in all. > > Thank you > Duilio

[Lazarus] using a weird DLL

2021-01-31 Thread duilio foschi via lazarus
I would like to use a function exported from a DLL. The DLL was written in C++ (Visual Studio 2015). Inside the original code the function is declared as public bool GetSkinFeatures(Bitmap Input_Bitmap, Rectangle ROI_Rect, double[] ExtractedFeatures) Anybody knows how to use it from

Re: [Lazarus] debugging a CGI

2021-01-20 Thread duilio foschi via lazarus
Martin Frb via lazarus < lazarus@lists.lazarus-ide.org> wrote: > On 19/01/2021 19:03, duilio foschi via lazarus wrote: > > I would like to debug a CGI by tracing it in Lazarus IDE as a console > > application in windows. > > > > Is there a way to have the CGI read

Re: [Lazarus] debugging a CGI

2021-01-19 Thread duilio foschi via lazarus
How can I trace the code then? On Tue, Jan 19, 2021, 22:11 Michael Van Canneyt via lazarus < lazarus@lists.lazarus-ide.org> wrote: > > > On Tue, 19 Jan 2021, duilio foschi via lazarus wrote: > > > I would like to debug a CGI by tracing it in Lazarus IDE as a console &g

[Lazarus] debugging a CGI

2021-01-19 Thread duilio foschi via lazarus
I would like to debug a CGI by tracing it in Lazarus IDE as a console application in windows. Is there a way to have the CGI read from standard input at start time? Thank you Duilio -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] using TDBNavigator with a TStringgrid

2021-01-16 Thread duilio foschi via lazarus
very good idea. Thank you On Sat, Jan 16, 2021 at 12:00 PM gabor via lazarus < lazarus@lists.lazarus-ide.org> wrote: > W dniu 2021-01-16 o 11:54, duilio foschi via lazarus pisze: > > it does not seem possible. > > > > Any workaround? > > > > Thank you &

[Lazarus] using TDBNavigator with a TStringgrid

2021-01-16 Thread duilio foschi via lazarus
it does not seem possible. Any workaround? Thank you Duilio -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] question with IDE

2021-01-15 Thread duilio foschi via lazarus
my IDE sometimes decides that procedure X was not coded in the implementation section of a unit...and adds an empty definition (see: https://imgur.com/awP7cK2) The procedure is there (see https://imgur.com/6H5F2cG) but for some reason the IDE is brought to the crazy idea above. This always

Re: [Lazarus] UDP server

2021-01-12 Thread duilio foschi via lazarus
Oops! Sorry On Tue, Jan 12, 2021, 20:32 Bo Berglund via lazarus < lazarus@lists.lazarus-ide.org> wrote: > On Mon, 11 Jan 2021 20:32:52 +0100, duilio foschi via lazarus > wrote: > > > >Peppe Polpo > > Please do not start a new thread by using an old thr

[Lazarus] UDP server

2021-01-11 Thread duilio foschi via lazarus
http://www.ararat.cz/synapse/doku.php/public:howto:udpserver this is the code suggested to write a UDP server with synapse. The code uses an infinite loop in a thread. I find this solution rather ugly. I would expect an event OnReceiveData that apparently is not there. The socket allows for a

Re: [Lazarus] weird error message

2020-08-21 Thread duilio foschi via lazarus
Yes, it works. Good to know. Thank you On Fri, Aug 21, 2020 at 6:22 PM Juha Manninen wrote: > > On Fri, Aug 21, 2020 at 7:14 PM duilio foschi via lazarus > wrote: > > In Delphi you write > > qryMain.AfterOpen:=TB_DPTAfterOpen; > > > > but whatever works

Re: [Lazarus] weird error message

2020-08-21 Thread duilio foschi via lazarus
thanks Colin, it worked. In Delphi you write qryMain.AfterOpen:=TB_DPTAfterOpen; but whatever works is ok to me :) On Fri, Aug 21, 2020 at 6:00 PM Colin Western via lazarus wrote: > > qryMain.AfterOpen:=@TB_DPTAfterOpen ? > > Colin > -- > ___ >

[Lazarus] weird error message

2020-08-21 Thread duilio foschi via lazarus
1. when the compiler reaches this line,,, qryMain.AfterOpen:=TB_DPTAfterOpen; it throws the error: unit1.pas(190,23) Error: Wrong number of parameters specified for call to "TB_DPTAfterOpen" 2. TB_DPTAfterOpen is declared as: TFrame1=class(TFrame) protected procedure

Re: [Lazarus] The future of the Lazarus IDE

2019-11-23 Thread duilio foschi via lazarus
> I am missing the option "No change wanted towards this direction". > Without this option the poll is biased. this is my humble opinion, too -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] alternative to web programming?

2019-02-13 Thread duilio foschi via lazarus
https://www.cybelesoft.com/thinfinity/virtualui/ has somebody tried the product above? Can it be a real alternative to web programming? Thank you Peppe Polpo -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org

Re: [Lazarus] devmgmt.msc

2018-03-30 Thread duilio foschi via Lazarus
Hi Jose', doubting a configuration error, I uninstalled Lazarus, then installed it again (current version is 1.8.2). Unfortunately I could not get rid of the error on TLibHandle. Then I found out that this type (TLibHandle) is not declared in system.pas but in rtl/dynlibs.pas

Re: [Lazarus] devmgmt.msc

2018-03-30 Thread duilio foschi via Lazarus
iceenumwin.pas(170,90) Error: Incompatible type for arg no. 1: Got "", expected "QWord" udeviceenumwin.pas(184,26) Error: Operator is not overloaded: "" = "ShortInt" udeviceenumwin.pas(184,65) Error: Incompatible type for arg no. 1: Got "", expected "QWord&q

[Lazarus] devmgmt.msc

2018-03-28 Thread duilio foschi via Lazarus
if I run devmgmt.msc on W7 I get this info on screen: http://i66.tinypic.com/2lucq4n.jpg Is there a Winows API I can call from my Lazarus program and get the same info ? My aim is to detect which COM number was assigned to the USB device "MSP Application UART1" Thank you Peppe --

Re: [Lazarus] Plivo API

2016-10-03 Thread duilio foschi via Lazarus
21:36 GMT+02:00 Mattias Gaertner via Lazarus <lazarus@lists.lazarus-ide.org>: > On Sun, 2 Oct 2016 20:45:08 +0200 > duilio foschi via Lazarus <lazarus@lists.lazarus-ide.org> wrote: > >> I am wetting my feet in Plivo API (www.plivo.com). >> >> " >>

[Lazarus] Plivo API

2016-10-02 Thread duilio foschi via Lazarus
I am wetting my feet in Plivo API (www.plivo.com). " Plivo communicates with remote applications built by businesses through a series of API calls. These back and forth calls between Plivo and other applications are communicated through XML (Extensible Markup Language). " Say that at a given