Search found 263 matches

by mark_c
Mon May 11, 2020 12:17 pm
Forum: Technical
Topic: Sort TList of structures
Replies: 5
Views: 10469

Re: Sort TList of structures

how do you reorder a list for (c) and (e)?
by mark_c
Sat May 09, 2020 5:07 am
Forum: Technical
Topic: Sort TList of structures
Replies: 5
Views: 10469

Re: Sort TList of structures

exceptional as always, thanks Remy
by mark_c
Fri May 08, 2020 8:34 am
Forum: Technical
Topic: Sort TList of structures
Replies: 5
Views: 10469

Sort TList of structures

Hi, I was thinking of using a TList to store several related bytes but: to reorder the list through the member of structure (e), how do you do it? void __fastcall TForm1::Button1Click(TObject *Sender) { struct MyStruct { byte a; byte b; byte c; byte d; int e; }; MyStruct *test = (struct MyStruct *) ...
by mark_c
Thu Apr 09, 2020 9:56 am
Forum: Technical
Topic: Keep a TPanel fixed
Replies: 10
Views: 16858

Re: Keep a TPanel fixed

you're right, I can solve the problem with a second panel on the left.

Thanks
by mark_c
Thu Apr 09, 2020 5:26 am
Forum: Technical
Topic: Keep a TPanel fixed
Replies: 10
Views: 16858

Re: Keep a TPanel fixed

thanks for trying, the way is that.
However, if you look well, the image must remain fixed to the left and the "page" must scroll below the image. If you look at the image I posted, the piano keyboard remains fixed while the score scrolls below.
by mark_c
Tue Apr 07, 2020 11:48 am
Forum: Technical
Topic: Keep a TPanel fixed
Replies: 10
Views: 16858

Re: Keep a TPanel fixed

thanks, but I've already tried that way

look at the Score View of this screen https://ibb.co/c88DnGr the ruler remains stationary and the staff can freely scroll to the right and down
by mark_c
Mon Apr 06, 2020 6:00 am
Forum: Technical
Topic: Keep a TPanel fixed
Replies: 10
Views: 16858

Re: Keep a TPanel fixed

nothing has changed, I caught a crab.
I want the TPanel to scroll horizontally but remain anchored to the title bar, as if it were a ruler.
by mark_c
Mon Apr 06, 2020 1:48 am
Forum: Technical
Topic: Keep a TPanel fixed
Replies: 10
Views: 16858

Re: Keep a TPanel fixed

sorry but I solved it myself using the ScrollBox component that I had never used: there is always a first time.

Thanks anyway.
by mark_c
Mon Apr 06, 2020 1:09 am
Forum: Technical
Topic: Keep a TPanel fixed
Replies: 10
Views: 16858

Re: Keep a TPanel fixed

after many settings I am convinced that it is not possible to block the TPanel which continues to scroll together with the TImage.
How is it possible that there is no way to anchor the TPanel to the title bar so that the TImage flows under the TPanel?
by mark_c
Sun Apr 05, 2020 1:08 pm
Forum: Technical
Topic: Keep a TPanel fixed
Replies: 10
Views: 16858

Keep a TPanel fixed

I created a TForm, added a TPanel and a TImage dynamically. When the image is larger than the TForm, the scroll bars appear. My problem is that the TPanel also moves with the TImage but I would like it to remain fixed. void __fastcall TForm1::Button1Click(TObject *Sender) { TForm *MyForm = new TForm...
by mark_c
Wed Apr 01, 2020 12:47 pm
Forum: Technical
Topic: Multi thread, array yes or no?
Replies: 21
Views: 37936

Re: Multi thread, array yes or no?

but I can do that, right?

FreeOnTerminate = false;

MyThread-> Terminate ();
MyThread-> WaitFor ();
delete MyThread;

and so I have no more exceptions
by mark_c
Wed Apr 01, 2020 9:08 am
Forum: Technical
Topic: Multi thread, array yes or no?
Replies: 21
Views: 37936

Re: Multi thread, array yes or no?

a doubt with the threads: when a thread ends if I use FreeOnTerminate = true; it still makes sense to use: MyThread-> Terminate (); MyThread-> WaitFor (); delete MyThread; when do you want to instantiate the same thread again? I think not because, if I use FreeOnTerminate = true; and then I call del...
by mark_c
Wed Mar 18, 2020 11:43 am
Forum: Technical
Topic: custom socket set OnError event
Replies: 22
Views: 41119

Re: custom socket set OnError event

Then you are not managing them correctly. You MUST pay attention to the response's "Connection" header and act accordingly.
thanks Remy,
what you mentioned is my problem. Instead, I thought everything happened automatically, but it is not so.
by mark_c
Tue Mar 17, 2020 11:14 am
Forum: Technical
Topic: custom socket set OnError event
Replies: 22
Views: 41119

Re: custom socket set OnError event

sorry, I wrote quickly and without thinking too much. I was saying that some connections: 1) after the connection has been made, 2) after correctly sending the command "GET / HTTP/1.1\r\nHost: " + myadr + "\r\nConnection: close\r\n\r\n"; they always remain active. I thought it was a behavior of the ...
by mark_c
Tue Mar 17, 2020 1:09 am
Forum: Technical
Topic: custom socket set OnError event
Replies: 22
Views: 41119

Re: custom socket set OnError event

how are persistent connections managed through blocking sockets?
For example, with this 1.1.107.47 there is a persistent connection and the socket is no longer unlocked and consequently the associated thread.