Favicon

Renaming a form jumps to project source

Hi,

Since quite some time, when the form in the designer is renamed, the code window jumps to the project source.
Why is this ? This was not so in older versions of Lazarus, and it's rather annoying. 
Can this be undone ?

Michael.

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

Robin Hoo | 2 Jul 06:18

How to use external true type font in WinCE

Hi, All

I'm quite new to Lazarus and GUI programming. Now I have a problem in using the external true type font in my form as the font of Tlabel. I tried to use addfontresource to laod it and the new font can be enum by API. But when I set the label font name as the external font face name, the font will not display as the font coming with the WinCe OS. I'm not sure if anyone can help me on this issue, and some sample code would be great. Thanks in advance.

Best Regards
Robin Hoo

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reenen Laurie | 1 Jul 22:24

Git for components?

Hi All, (especially Greame)

I've installed a git version of Lazarus, but now I'd like to know how
can I add my 2 most used components... GLScene and lNet to my lazarus?

Do I continue using svn for them?  Or are they also somewhere included in git?

Regards,
-Reenen

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

Graeme Geldenhuys | 30 Jun 14:37

help with grep search string

Hi,

I want to try and improve the IDE to detect SVN or Git repositories, and still extract the correct latest
revision number. I have the following output which is part of the commit message generated by Git, when it
syncs with a SubVersion repository.

I'm trying to write a grep command that will extract the revision number only.
eg:
  16557
  16556
  16555
  ...

Can anybody help me please?  I wrote the following which asks git to only output commit messages containing
"git-svn-id", then I run that through standard grep extracting only the line containing the search
string. It's this latter part that I want to fix to only return the revision number.

Any help would be greatly appreciated.

$ git log --grep="git-svn-id:" | grep git-svn-id

============  Sample output  ===================
    git-svn-id: http://svn2.freepascal.org/svn/lazarus/trunk <at> 16557 4005530d-fff6-0310-9dd1-cebe43e6787f
    git-svn-id: http://svn2.freepascal.org/svn/lazarus/trunk <at> 16556 4005530d-fff6-0310-9dd1-cebe43e6787f
    git-svn-id: http://svn2.freepascal.org/svn/lazarus/trunk <at> 16555 4005530d-fff6-0310-9dd1-cebe43e6787f
    git-svn-id: http://svn2.freepascal.org/svn/lazarus/trunk <at> 16554 4005530d-fff6-0310-9dd1-cebe43e6787f
    git-svn-id: http://svn2.freepascal.org/svn/lazarus/trunk <at> 16553 4005530d-fff6-0310-9dd1-cebe43e6787f
    git-svn-id: http://svn2.freepascal.org/svn/lazarus/trunk <at> 16552 4005530d-fff6-0310-9dd1-cebe43e6787f

=======================================

Regards,
  - Graeme -

--

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

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

Joost van der Sluis | 30 Jun 12:59

Problem streaming properties without unit interfaces

Hi all,

It seems like it that streaming properties referencing to objects on
other datamodules does not work without the unit interfaces.

For example, you have two datamodules, on one you define a
TIBConnection, and on the other a TSQLQuery. Now set the Database
property of the TSQLQuery to the TIBConnection on the other datamodule.

At runtime the Database property will be nil, if the unit interfaces is
not linked in. When you use the interfaces unut somewhere, it works.

Why? How? Any ideas where this comes from?

Joost

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

Bogusław Brandys | 30 Jun 09:30
Favicon

TAChart license

Hello,

What kind is license of TAChart ? I'm asking because LGPL force using 
shared library which is still impossible with LCL to put it into dll/so.
Also would be nice to integrate chart with lazreport as additional object.

Do I properly assume that any Lazarus program using tachart package must 
be GPL-ed ?

Boguslaw

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

matt shaffer | 29 Jun 19:55

FPImage docs?

Well, I am still new to pascal, and the FPImage units caught my eye. I need some examples or docs on how to use these; http://wiki.lazarus.freepascal.org/Developing_with_Graphics is not good enough for my purposes. I want to load a file and draw another image also loaded from a file onto it, then save it.


What I've tried:
Looking at TFPImageCanvas.Draw, as a parameter it wants a TFPCustomImage, which I assume means I cannot use TFPMemoryImage.

img := TFPMemoryImage.Create(10,10);
img.LoadFromFile(filelist[i]);
imgWM := TFPCustomImage.Create(10,10);
imgWM.loadfromfile(txtFName.text);
ImgCanvas := TFPImageCanvas.create(img);
ImgCanvas.Draw(0,0,imgWM);

Problem: How can I have the size of img/imgWM set to the image file's size? I wanted to do
img := TFPMemoryImage.Create;
Because it seems to be listed (by listed I mean typing a period after img and waiting for the little box of procedures etc to popup), but the compiler yells at me for not including parameters. (There's 2 listed.. one with parameters, one without; Using lazarus rev. 20212)

[Random]
Don't forget to vote for lazarus on sourceforge ;)


--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Giuseppe Luigi Punzi | 29 Jun 12:05

Git mirror

Hi all,

In my Fedora 11 64bits machine, I always get errors when using svn:
svn: REPORT de '/svn/lazarus/!svn/vcc/default': Could not read response body: Connection reset by peer (http://svn.freepascal.org)

I searched, and seems the problem is in server side.

I looked for others options, and see mails about a git mirror by graeme.

Is this git repository, and the wiki page ( http://wiki.lazarus.freepascal.org/git_mirrors ) updated to use as trunk "svn" checkouts?
--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Graeme Geldenhuys | 29 Jun 10:14

Git tip: use bisect to find regression bugs quickly

Hi Everybody,

I was reading the Git User Manual this weekend and found this handy tip
and thought I would share it with you guys. I already used this with
great success in finding a regression bug in my own code.

If you are using the Git repository of Lazarus (mirror of the SubVersion
repository) or you have some other Git repository, then you can let git
help you find regression errors.

This is how it works...

Suppose version 2.6.18 of your project worked, but the version at
"master" (trunk in SubVersion terms) doesn't. Sometimes the best way to
find the cause of such a regression is to perform a brute-force search
through the project's history to find the particular commit that caused
the problem. The 'git bisect' command can help you do this.

It follows the same principal as outlined in the Lazarus wiki (url shown
below), but seeing that you have the full repository history local,
things go much quicker.

http://wiki.lazarus.freepascal.org/How_To_Help_Developing_Lazarus#Dealing_with_regressions

So here is how you do this with git:

$ git bisect start
$ git bisect good v2.6.18
$ git bisect bad master
Bisecting: 3537 revisions left to test after this
[65934a9a028b88e83e2b0f8b36618fe503349f8e] BLOCK: Make USB storage
depend on SCSI rather than selecting it [try #6]

You tell git that master (trunk) is bad - it has the regression bug. And
the last known good version was v2.6.18. Git now checks out a revision
between master (trunk) and v2.6.18. Compile and test it, and see whether
the regression bug is there. Lets assume the bug is still there. Then:

$ git bisect bad
Bisecting: 1769 revisions left to test after this
[7eff82c8b1511017ae605f0c99ac275a7e21b867] i2c-core: Drop useless
bitmaskings

This tells git that the revision it checked out earlier is still bad, so
it means the regression was even earlier in the project history.
Continue like this, telling git at each stage whether the version it
gives you is good or bad, and notice that the number of revisions left
to test is cut approximately in half each time.

Once you found the revision containing the regression bug, make a note
of the revision number and then run the following command to take you
back to master (trunk) so you can fix the issue.

$ git bisect reset

The truly awesome thing is that if you can test if the problem is good
or bad without human intervention, you can automate the whole bisecting
process. For example, say the bug is an incorrect value returned from
some function. You can write a quick testcase which returns good are bad
if the test was run. Git can then use that testcase and automate the
bisecting and within seconds you will know the exact revision that
caused the problem. :-)

I already found this automated bisecting very useful in finding a
regression bug in my own project. So I thought other git users might
find this tip useful as well. For more information on the bisect
command, run:  git help bisect

Regards,
  - Graeme -

_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

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

Vincent Snijders | 29 Jun 08:28
Favicon

issue 13429

Hi,

Can anybody reproduce issue 13429 with the latest lazarus 0.9.27?
"ÅÄÖ åäö don't work in the code editor! " on linux with gtk2.

http://bugs.freepascal.org/view.php?id=13429

Vincent

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

Graeme Geldenhuys | 26 Jun 10:25

TDateEdit vs TDateTimePicker

Hi,

Is TDateEdit (LCL) supposed to be the equivalent of VCL's TDateTimePicker?

The TDateEdit is only for dates I presume. So where is the component for
specifying time or both date & time?

PS:
The TDateEdit is full of bugs. I was simply looking for the date/time
format property and found 5 other bugs (all now reported in Mantis). So
be warned, this component still needs a lot of work.

Regards,
  - Graeme -

_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

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


Gmane