Recent

Recent Posts

Pages: 1 ... 8 9 [10]
91
LCL / Re: Adding a named separator
« Last post by sarad on April 15, 2024, 05:02:18 pm »
Hi
Use an empty(handler) menuitem with a name/caption like '---SomeName---'
Regards Benny
(Like CudaText?)
No, that's ugly.
92
LCL / Re: Adding a named separator
« Last post by sarad on April 15, 2024, 05:01:09 pm »
Correct me if I'm wrong but, it sounds like what you want is to have a "title"/"heading" for some menu items.
Did I understand what you want correctly ?
Exactly, that is what I want.
93
You can in fact do it like this
Code: Pascal  [Select][+][-]
  1. Const ar:array of shortstring = ('pear','apple','banana','pineapple','orange');
  2. var
  3.   a : shortstring;
  4. begin
  5.   for a in ar do WriteLn(a);
  6. end.
  7.  

This also works with floats instead of strings. There is just one caveat, it does not work properly if the array is defined inline, as in the original post. This is a bug and fixed in trunk.

Edit: You may even edit the array like this
Code: Pascal  [Select][+][-]
  1. {$mode objfpc}
  2. Const ar:array of shortstring = ('pear','apple','banana','pineapple','orange');
  3. var
  4.   a : shortstring;
  5. begin
  6.   SetLength (ar,6);
  7.   ar[5] := 'and more fruit...';
  8.   for a in ar do WriteLn(a);
  9. end.
  10.  
94
General / Re: How to pass the value of a MemoryStream to a Memo?
« Last post by cdbc on April 15, 2024, 04:45:20 pm »
Hi
Memo1.LoadFromStream(SomeMemoryStream);
...BUT why would you want to do that?!?
TMemo can't handle images...
Regards Benny
95
LCL / Re: Adding a named separator
« Last post by cdbc on April 15, 2024, 04:42:23 pm »
Hi
Use an empty(handler) menuitem with a name/caption like '---SomeName---'
Regards Benny
96
LazReport / Lazreport: Question about Autosize
« Last post by teco on April 15, 2024, 04:34:12 pm »
Hi,
I have a report with some fields and one of them is set as Stretched. The band is also set to stretched.

My problem is that below this stretched filed are other fields. They get overwritten by the stretechd field. Is there a was to make them automove depending on the variable size of the report field above? I have ssen on FastReport they they have such an option (Shift when overlapped).
97
General / How to pass the value of a MemoryStream to a Memo?
« Last post by ReinaldoDuvida on April 15, 2024, 04:30:41 pm »
I'm saving an image in a MemoryStream variable, now I need to pass the value of this variable to a Memo. How do I do this?
98
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by paule32 on April 15, 2024, 04:29:05 pm »
Hello @rvk,

since the project is open source, yet - you can provide an version that can be used for all developers.
Then I could see, to involve you in the project development.
So, you are part of my (our) team.

As such, you could provide a unit developer test case with scripting a PowerShell GUI application.
So, the normal user don't need know all the underlying things of the compiler stage.

As such, you could provide a base developer setup based on the available tools under Windows
like the PowerShell (it is free and for Windows, a great tool).

Then, you could make a setup for the sed, awk, and other tools, set the current paths...

This are not trivial things for normal developer or for beginners that would look behind the stages
of FPC - since I doing reverse engineering a while, and begin to think, to understand the one and
the other things that/what the ideas stand for.

For me, FPC and the internals are very great things for learning reverse engineering.
But they are not trivial - so you have to understood the assembly, and the three-addressing coding
and the 3-coding assembly converting to 2-coding assembly.

This can be limited by the different CPU's instruction set's.

Not to say to the eastern egg's in the internals of the FP Compiler...  :o
99
Windows (32/64) / [solved] Lazarus does not start after installing a package
« Last post by RayoGlauco on April 15, 2024, 04:28:10 pm »
Are there any known issues that prevent Lazarus from starting after installing a package that has no known issues?

Could it be an executable size problem? After installing BGRAcontrols, I get a LAZARUS.EXE that is 345 Mb, and that does not start. The previous executable, which is 323 Mb, works fine.

This problem has also happened to me after installing other packages, both with Lazarus 3.0 and Lazarus 3.2, and on two different PCs.

Windows 10 64 bit, Lazarus 32 bit.
100
This looks like iteration of a set of strings. I thought things in set had to be ordinal values? Did something change?
I use const arrays of string like this
Code: Pascal  [Select][+][-]
  1. Const ar:array[0..4] of shortstring = ('pear','apple','banana','pineapple','orange');
  2. var
  3.   a : Integer;
  4. begin
  5.   for a := low(ar) to high(ar) do
  6.        WriteLn(ar[a]);
  7. end;
  8.  
  9.  
Pages: 1 ... 8 9 [10]

TinyPortal © 2005-2018