Recent

Recent Posts

Pages: [1] 2 3 ... 10
1
General / Re: Path to PCP and EXE in about dialog and caption
« Last post by Arioch on Today at 06:55:03 pm »
Frankly, would it be before WinVista - i'd also request window captions haveing different, non-system colours. In Windows 95-2000 timeframe it was a popular way too decorate your app :-)
For "your app", who hold you back to do a simple borderless form with a selfmade caption the way of how you like it?

Well, two reasons.
1) there was a Delphi component of extended caption, to just drop on the form. In RxLib/JVCL, maybe the code is still somewhere there in CCR
2) Windows GDI separates methods (messages) of painting caption and caption behavior. Full-custom mode would give you burden to replicate all the behavior, including animations, that are user-customizeable at that. So, overriding painting of the caption and nothing else was better both by concept and practice.


give the gutter of the source editor different colors

To me the most annoying problem was hitting F7/F8/F9 in the wrong IDE. So i did not even look to the source editor.

I was thinking into making non-standard background or fonts too, BTW, but i feel reluctant to do so. The IDE for tests/pataches should be as vanilla as possible, and that would mean i have to make "non-standard" colouring for my main IDE.

Ok, IOW, there is no already existing functionality that my ignorance missed.
I wonder, though, if some customization of main form from "lazarus.cfg" gets implemented, would it be immediately frown upon as violating Lazarus purity and putitn unneeded complexity upon mantainers.
2
Beginners / Re: "RunCommand extensions" - broken Wiki documentation?
« Last post by colo on Today at 06:53:37 pm »
I got my example program working today, with full responsiveness for the Memos, parsing data flowing in via stderr, and generally working the way I want/need it to :) I've yet to clean it up a bit to be less confusing (both to me and prospective readers), but will post the final result here once finished. Thanks again for your helping hand, marcov! :)
3
General / Re: A computational problem
« Last post by J-G on Today at 06:51:24 pm »
I've taken to using my own two procs. to circumvent this issue.

In case it may be of interest :

Code: Pascal  [Select][+][-]
  1. Var
  2.   TmpStr :    String;
  3.  
  4. procedure StripZero(Var S : String;NoTrail : Boolean);
  5. begin
  6.   while S[length(S)] = '0' do
  7.     begin
  8.       S := copy(S,1,Pred(Length(S)));
  9.     end;
  10.   if S[length(S)] ='.' then
  11.     begin
  12.       if NoTrail then
  13.         S := copy(S,1,Pred(Length(S)))
  14.       else
  15.         S := S+'0';
  16.     end;
  17.   if Length(S) = 0 then
  18.     S := '0';
  19. end;
  20.  
  21. procedure MakeStr(Val : single;Trail : boolean;DP : byte);
  22. begin
  23.   Str(Val:4:DP,TmpStr);
  24.   StripZero(TmpStr,trail);
  25. end;
  26.  
4
Linux / Re: FPC console executables on Arch have blank output
« Last post by colo on Today at 06:50:58 pm »
So I've been trying to code with FPC on Arch. The compiler and its tools are fine, but when I compile and run so much as a "Hello, world" program, nothing is output to the terminal when executed. I even copy and pasted a Tao Yue code snippet to see if I did something wrong missed by the compiler. That, too, was not output.

Can you provide a transcript of your "Hello, world" toy programs executing under strace(1)?

For reference, on my Arch Linux x86_84 system:

Code: [Select]
$ cat hello.pas
program hellofpcworld;
 
begin
  writeln('Hello FPC world!');
end.
$ fpc hello.pas >/dev/null
$ ./hello
Hello FPC world!
$ strace ./hello
execve("./hello", ["./hello"], 0x7ffe79d8f2c0 /* 45 vars */) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
rt_sigaction(SIGFPE, {sa_handler=0x423290, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x401280}, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGSEGV, {sa_handler=0x423290, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x401280}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGBUS, {sa_handler=0x423290, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x401280}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGILL, {sa_handler=0x423290, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x401280}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
readlink("/proc/self/exe", "/tmp/hello", 255) = 10
write(1, "Hello FPC world!\n", 17Hello FPC world!
)      = 17
exit_group(0)                           = ?
+++ exited with 0 +++
5
General / Re: Incorrect Proc being called ???
« Last post by J-G on Today at 06:40:33 pm »
Another thing that's always worth considering: if Lazarus is confused, it might not be opening the right .lpi file. So we've got (a) the Lazarus (and FPC) binaries, (b) the IDE's per-user state and (c) the project itself.

If in doubt, it might be worth using passing the IDE the name of the correct .lpi at startup (I presume that Windows has /some/ equivalent of unix shell sessions). And it's also worth considering that replacing (a) won't necessarily set everything in (b) back to a safe default.

MarkMLl
Another good point Mark, but throughout this saga I have made a point of selecting the .LPI file and pasteing that to the specific version of Lazarus (Drag'n'drop on the icon) rather than opening Lazarus first. I have now also set Laz to not open the last  project automatically.
6
General / Re: Path to PCP and EXE in about dialog and caption
« Last post by KodeZwerg on Today at 06:37:46 pm »
Frankly, would it be before WinVista - i'd also request window captions haveing different, non-system colours. In Windows 95-2000 timeframe it was a popular way too decorate your app :-)
For "your app", who hold you back to do a simple borderless form with a selfmade caption the way of how you like it?
7
General / Re: Incorrect Proc being called ???
« Last post by J-G on Today at 06:35:21 pm »
Be sure to check 'secondary installation' when installing Lazarus.
That's a good 'heads up' and was already on my radar, thanks.

I haven't bitten the bullet yet,   'Life' is getting in the way  (actually death  :(   - of friends)
8
General / Re: Path to PCP and EXE in about dialog and caption
« Last post by wp on Today at 06:33:33 pm »
Martin recommended to me to give the gutter of the source editor different colors for the individual versions. For me the gutters of the same versions have the same basic color, but the gutters of the 64-bit versions are set to be more saturated, while the gutters of the 32-bit versions are more faint. Then there's a variety of icons on CCR which have different colors (match with the gutter color) and "32" and "64" overlays for the bitness (https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/applications/laz_icons/). The latter, however, is only good for the desktop icons. This is not a great disadvantage for me, though, because I try to avoid running different Lazarus versions simultaneously - this usually ends up in mess...

I do agree that this might be quite tedious to set up, but it's worth the effort if you work with many versions.
9
Lazarus / Re: Lazarus Release 2.2.4
« Last post by wp on Today at 06:26:35 pm »
Will it be surely within a 2.4?  And how to have it for (on top of) the 2.2.4?
I now made several attempts to merge the changes into the fixes branch. But since solution of these bugs has a long history there were commits that were not backported to main, some were reverted, and some were replaced by the changes that you mention, some were not. Therefore I think it is too risky to introduce other issues into the fixes branch, and I would like you to wait for the v2.4 release which will contain the current code automatically (for sure!) because it will be a snapshot of the main branch at the time when this version will be tagged.
10
General / Re: Path to PCP and EXE in about dialog and caption
« Last post by Arioch on Today at 06:21:27 pm »
...down a long and windy road :-)

i stress the "immediate availability", by split second and a turn of my eyeballs

Frankly, would it be before WinVista - i'd also request window captions haveing different, non-system colours. In Windows 95-2000 timeframe it was a popular way too decorate your app :-)
Pages: [1] 2 3 ... 10

TinyPortal © 2005-2018