Bart | 9 Feb 20:30
Picon

IDE Main Window: height is too small and cannot resize (Linux/GTK2)

Hi,

Just updated Lazarus to r35276 on Linux GTK2 / Fpc 2.6.0.

The IDE's main window (the one with the component palette) now has
lost some pixels in its height (appr. 15), and half of the component
pallette has become invisible.
The main IDE window isn't resizable anymore, only minimize and close
buttons are available.

Anyone else seen this?
Can it be fixed?
(I tried Tools -> Options -> Environment -> Windows, but that will not
let me set position/height for main IDE window).

FWIW:
Linux 2.6.13-15-default #1  GNU/Linux
gtk2-2.8.3-4

Bart
--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Graeme Geldenhuys | 8 Feb 22:03
Picon
Gravatar

fpdoc + XML description file + indentation whitespace

Hi Mattias,

Here is the email I spoke of.. Note that the URL example I listed, is
still affected by the problem as well. The first line with "naAdd" is
correct. All the other "naXXX" line are indented incorrectly due to
the indentation inserted by FPDoc Editor (or by a human).

And as I mentioned, with RTF, IPF, TXT, MAN etc output the problem is
greatly enhanced, because the end result viewers of these formats do
not ignore whitespace.

So bottom line... Indentation in XML is evil. ;-) XML is meant to be
processed by a computer program, not by a human, so indentation really
shouldn't be needed at all.

---------- Forwarded message ----------
From: Graeme Geldenhuys <graemeg.lists@......m>
Date: 6 August 2010 11:01
Subject: fpdoc + XML description file + indentation whitespace
To: FPC developers' list <fpc-devel <at> lists.freepascal.org>

Hi,

What is supposed to happen with whitespace in the XML Description files.
For example. Say you edit an XML file with your favourite text editor, and
you have a long description. So you add newlines (by pressing ENTER), then
indent the text to the DESCR node for easier human reading. It seems fpdoc
inserts that indented (spacing) whitespace as actual space characters (part
of the help content) in the help content. This is seen all over the place,
but not always noticed in the final output.
(Continue reading)

Picon

Lazarus frozen on F1

Hello,

I have a strange issue. I configured chm help and everything was fine
and nice and then I restarted my IDE and suddenly on pressing F1 my
IDE froze instead of bringing LHelp. And now it always does that even
after I restarted the computer =( The IDE remains frozen in this
syscall:

(gdb) bt
#0  0xffffe430 in __kernel_vsyscall ()
#1  0x0805e778 in SYSTEM_FPSYSCALL$LONGINT$LONGINT$LONGINT$LONGINT$$LONGINT ()
#2  0x0805e8d8 in SYSTEM_FPOPEN$PCHAR$LONGINT$LONGWORD$$LONGINT ()
#3  0x080fe8da in BASEUNIX_FPOPEN$PCHAR$LONGINT$$LONGINT ()
#4  0x08092a1a in SYSUTILS_FILEOPEN$ANSISTRING$LONGINT$$LONGINT ()
#5  0xadcbb768 in ?? ()
#6  0x087d65dc in SIMPLEIPC_TPIPECLIENTCOMM_$__CONNECT ()
#7  0x087d7627 in SIMPLEIPC_TSIMPLEIPCCLIENT_$__CONNECT ()
#8  0x087d7445 in SIMPLEIPC_TSIMPLEIPCCLIENT_$__ACTIVATE ()
#9  0x087d6f5d in SIMPLEIPC_TSIMPLEIPC_$__SETACTIVE$BOOLEAN ()
#10 0xae599a38 in ?? ()
#11 0x0899bf6c in TCHMHELPVIEWER__SHOWNODE (NODE=0xadcbb700,
ERRMSG=0x0, this=<error reading variable>) at lazchmhelp.pas:425
#12 0x0878ad28 in THTMLHELPDATABASE__SHOWURL (URL=0xadcd6c88
'lcl.chm://comctrls/tstatusbar.html', TITLE=
    0x90948b0 'LCL - Lazarus Component Library Units', ERRMSG=0x0,
this=<error reading variable>) at lazhelphtml.pas:211
#13 0x0873a264 in TFPDOCHTMLHELPDATABASE__SHOWHELP (QUERY=0xadcbb580,
BASENODE=0x0, NEWNODE=0xb63e6760, QUERYITEM=0xae52f760, ERRMSG=
    0x0, this=<error reading variable>) at helpfpdoc.pas:174
#14 0x08785d42 in THELPDATABASES__SHOWHELPFORNODES (QUERY=0xadcbb580,
(Continue reading)

Everton Vieira | 8 Feb 15:00
Picon

Add notification to callstack change.

Hi there.

I know very little about notifications, and maybe what i know is wrong, so any help would be useful.

I`m trying to add some kind of notication that triggers an event when the callstack of the application is changed.

By example, the Application.onException is trigged when an exception happens, some event similar to
triggers when the callstack is changed, in other words, when the execution go to the next line of the code.

Please help, any help will be usefull.
--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Antonio Fortuny | 8 Feb 13:52
Picon

semaphores

Hi all.

I need to implement a system wide locking system in all WIn32, Win64, 
Linux32 and Linux64. Therefore I need some king of named locking objects.
For Windows I can use mutexes. For Linex I can only use sem_t structures 
managed by a series of functions in pthrlinux.inc but they are unnamed 
which means that they are only usable inside a multi-treaded process and 
not system wide.
Something else I miss ?

Antonio.

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Ajay Garg | 8 Feb 13:51
Picon
Gravatar

Re: RE : RE : compiling lazarus on arm-linux

Thanks, it worked :-)

Thanks a ton again.

Regards,
Ajay

On Wed, Feb 8, 2012 at 5:34 PM, Felipe Monteiro de Carvalho
<felipemonteiro.carvalho <at> gmail.com> wrote:
> Either use lazbuild to build the project or put all paths. Do a search
> to find the location of avglvltree.o
>
> --
> Felipe Monteiro de Carvalho

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Graeme Geldenhuys | 8 Feb 12:25
Picon
Gravatar

Re: Extending FCL documentation

On 8 February 2012 11:54, Hans-Peter Diettrich  wrote:
>
> I've no problems with the IDE help system, except for its setup.

So you can bookmark help topics, search for topics and annotate
existing help? Umm, how did I miss that in Lazarus.

>>  * FPDoc Editor is NOT a help viewer. It should not be used or thought
>> of as such.
>
> I used it frequently, to fix errors or add missing facts to the docs :-)

Yes, after all, it is a XML documentation editor.

> What's wrong with this approach? It shows (raw) help both from source code
> and the docs, and it's instantly up-to-date after any change to the docs or
> code. I like it :-)

I can't bookmark a frequently used topic, or add my own personal notes
to that help and see it in the tooltip. As I mentioned before, I
annotate existing documentation a lot. - my personal notes that mean a
lot to me (and probably mean nothing to somebody else, so should
belong in the official docs).

> BTW, I'd *require* that every new feature in the Lazarus (IDE, LCL) code has
> to be documented, before it finds its way into the repository.

And here we come full circle!  In which format should we document
these features?  XML, IPF, TXT, RTF, ODT, AsciiDoc, DocBook, Wiki
etc....?  And are these features related to the LCL framework, Lazarus
(Continue reading)

dhkblaszyk | 8 Feb 01:07
Picon

Fast drawing to canvas

Hi,

 

I'm drawing a bitmap to the canvas by using LoadFromRawImage in combination with a TImage. The OnPaint code below works just fine. When I move the scrollbar, the images are drawn to the canvas, however there is still a bit of flicker.

 

procedure TForm1.Image1Paint(Sender: TObject);
begin
    Image1.Picture.Bitmap.LoadFromRawImage(bitmaplist[ScrollBar1.Position].RawImage, False);


    Application.ProcessMessages;
end;

 

When I setup a timer, for automatic looping of the images, the flicker gets so bad, that the canvas turns blank and nothing is shown anymore.

 

procedure TForm1.Timer1Timer(Sender: TObject);
var
  p: integer;
begin
  p := ScrollBar1.Position + 1;
  if p > ScrollBar1.Max then
    ScrollBar1.Position := 0
  else
    ScrollBar1.Position := p;
end;


I understand I must be doing something wrong here. So my question remains, Given a list of bitmaps, what would be the fastest way to draw them to the screen consequtively?

 

Regards, Darius

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Andrea Mauri | 7 Feb 18:34
Picon
Gravatar

glscene error

With the last svn and fpc 2.6.0 I cannot install glscene packages, I got 
this error:
C:\lazarus_svn\components\glscene\Source\base\vectorgeometry.pas(3789,32) Error: 
Can't determine which overloaded function to call

Andrea Mauri

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Ajay Garg | 7 Feb 16:35
Picon
Gravatar

Re: compiling lazarus on arm-linux

Thanks Ludo.

It worked !!

Felipe,  I was right; I was stupid not to test with the latest "fpc"
version (2.6.0) :-|

(
  Lazarus has been compiled and built successfully.
  However, when I am invoking fpc from command line as

==========================================================
  fpc -S2cgi -O1 -gl -WG -vewnhi -l
-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/
-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/
-Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/gtk2/
-Fu/usr/lib/lazarus/packager/units/$ARCH-$OS/ -Fu. -o./magnifier -dLCL
-dLCLgtk2 magnifier.dpr
==========================================================

  I get the error :

  Error: Illegal parameter : -WG

  If you guys know the solution to this on top of your head; please
let me know. Else, I am already looking into the docs :-)
)

Thanks and Regards,
Ajay

>Compiling lazarus with fpc 2.6.0 worked for me on arm debian sid. Fpc 2.6.0
>is in the debian sid repositories but can also be found here:
>http://sourceforge.net/projects/freepascal/files/Linux/2.6.0/. Lazarus from
>debian sid repo (0.9.30.2) isn't working correctly. Some patches to correct
>alignment errors didn't make it in that release. Lazarus from svn works fine
>though.

>Ludo

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

silvioprog | 7 Feb 15:37
Picon
Gravatar

Adding items in a json object and then save to file

Hellow guys, good afternoon. :)

I'm tried to add items in a json object, and I tryied to save it in a
file using stream. My doubt is: do I need to do everything manually?
Or has json a native feature to save it in file? I really could not
find it.

Find attatched a demo application.

Thx.

--

-- 
Silvio Clécio
====================================
Site - <silvioprog.com.br>
LazSolutions - <code.google.com/p/lazsolutions>
====================================
Attachment (json.zip): application/zip, 1618 bytes
--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Gmane