Re: [Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Graeme Geldenhuys
On 2016-02-25 23:42, Bo Berglund wrote:
> The images should be downloaded to the server so they won't go away

I don't mean "go crazy with the images". As Michael mentions - it costs
disk space. A lot more that text-only bug reports. Sometimes a
screenshot is needed to explain a problem, but if you can explain it
without a screenshot, all the better.

Other space saving tips:
 * Often a full desktop area, or whole window dump is not required.
   Select only the area of interest for the screenshot.
 * PNG's are most used, but can be large because they are lossless. Use
   Indexed PNG's instead. They can have an optimised 256 colour palette.
   More than good enough for a bug report and normally a fraction of the
   original size. (The Gimp: "Image -> Mode -> Indexed").
 * Don't include videos in Mantis, they are WAY to big. Upload them to
   a reliable source like YouTube or Vimeo and reference the URL
   instead.

Regards,
  - Graeme -

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

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE Desktops redesign

2016-02-25 Thread Ondrej Pokorny

On 26.02.2016 8:04, Anthony Walter wrote:

Ondrej, a couple of questions.

Do you plan to tackle the incorrect layout restore problem with docked 
layouts? Issue #29200


I tried hard to fix it but failed.


Do you plan to provide a better default layout, or management of 
default layouts? Currently when you install anchor docking the first 
layout you are given is essentially broken. There ought to be a usable 
default layout for all modes, docked and undocked.


Not in this redesign. It's another issue and should be reported/solved 
independently.



Do you plan to fix the problem with environment xml version upgrades 
wiping out layouts? So far anytime I get the message to upgrade the 
options (based on option version numbers changing) all my layouts are 
wiped out including toolbar buttons.


I rewrote the toolbar button interface. Unfortunately some changes were 
not backwards compatible. From now on toolbar buttons should stay when 
upgrading IDE options. I am not aware of losing window layouts.



While were at it, would it be possible to add a layout option for all 
TToolbars in the IDE to either A) show captions and icons, B) show 
icons only or C) show text only, and resize the toolbars 
appropriately? See http://video.getlazarus.org/small-toolbars.mp4 



Not in this redesign. It's another issue and should be reported/solved 
independently.



And finally, I'd be careful with auto saving layouts. In the past I've 
had problems where the layouts get corrupted and auto save essentially 
destroyed my layouts as a result. Sometimes I want to save a layout 
manually and I do not want the IDE to overwrite it in the event I 
experience a layout corruption.


You are free not to auto save your layouts. Nothing will change in this 
respect.


Ondrej
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE Desktops redesign

2016-02-25 Thread Michael Van Canneyt



On Fri, 26 Feb 2016, Ondrej Pokorny wrote:


On 26.02.2016 8:13, Michael Van Canneyt wrote:

1.) Removal of IDE Options -> Environment -> Windows -> Window Positons.


I currently have all these set to 'Restore window geometry'.
This basically means that I start with the same desktop as where I left 
off,

which is what I want. I don't need to do anything for this.

What will happen after you implement this ?


IMO nothing. Just remove the check "auto save active desktop" in Manage 
desktops dialog and you always start with the same desktop.


But that is not what I want ?
I want to start with the desktop as it was where I left off.

I don't use desktops now.
So I need to use desktops, and check "auto save active desktop" to achieve
what I want, after your rework ?

(not pushing any change in direction, just trying to understand what will
happen)

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE Desktops redesign

2016-02-25 Thread Ondrej Pokorny

On 26.02.2016 8:13, Michael Van Canneyt wrote:

1.) Removal of IDE Options -> Environment -> Windows -> Window Positons.


I currently have all these set to 'Restore window geometry'.
This basically means that I start with the same desktop as where I 
left off,

which is what I want. I don't need to do anything for this.

What will happen after you implement this ?


IMO nothing. Just remove the check "auto save active desktop" in Manage 
desktops dialog and you always start with the same desktop.





Ondrej
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Michael Van Canneyt



On Fri, 26 Feb 2016, Bo Berglund wrote:


On Thu, 25 Feb 2016 18:50:56 +, Graeme Geldenhuys
 wrote:


Regarding Mantis:
 Could we make it a Lazarus Mantis policy to NOT link to
 images/screenshots on an external websites. Not a single one of the 3
 links in the comments work any more. :-/


I support this!
The images should be downloaded to the server so they won't go away
when someone moves his site or makes other changes.
I have seen so many such problems in other cases that I fully support
usning the Mantis server itself as home to the images.


That is of course fine and dandy, wishing this.

2 Questions, though:

1. Does mantis support this kind of operation ?

2. Where are the supporting donations for a new/bigger mantis server disc ?

Currently, I basically pay 100 EUR/month out of my own pocket for hosting
the main FPC server (which is also the mantis server) in a reliable data center.

Bigger discs (accomodating more images) means more money needs to be put on the 
table.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE Desktops redesign

2016-02-25 Thread Michael Van Canneyt



On Fri, 26 Feb 2016, Ondrej Pokorny wrote:

According to some recent discussions and bug reports, I plan to rework the 
Desktops feature in the IDE. Before I again get a "Please stop the IDE 
regressions!" messages, I decided to announce and discuss the topic in the 
mailing list in advance.


The redesign will include the following points:

1.) Removal of IDE Options -> Environment -> Windows -> Window Positons.


I currently have all these set to 'Restore window geometry'.
This basically means that I start with the same desktop as where I left off,
which is what I want. I don't need to do anything for this.

What will happen after you implement this ?

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE Desktops redesign

2016-02-25 Thread Anthony Walter
Ondrej, a couple of questions.

Do you plan to tackle the incorrect layout restore problem with docked
layouts? Issue #29200

Do you plan to provide a better default layout, or management of default
layouts? Currently when you install anchor docking the first layout you are
given is essentially broken. There ought to be a usable default layout for
all modes, docked and undocked.

Do you plan to fix the problem with environment xml version upgrades wiping
out layouts? So far anytime I get the message to upgrade the options (based
on option version numbers changing) all my layouts are wiped out including
toolbar buttons.

While were at it, would it be possible to add a layout option for all
TToolbars in the IDE to either A) show captions and icons, B) show icons
only or C) show text only, and resize the toolbars appropriately? See
http://video.getlazarus.org/small-toolbars.mp4


And finally, I'd be careful with auto saving layouts. In the past I've had
problems where the layouts get corrupted and auto save essentially
destroyed my layouts as a result. Sometimes I want to save a layout
manually and I do not want the IDE to overwrite it in the event I
experience a layout corruption.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] IDE Desktops redesign

2016-02-25 Thread Ondrej Pokorny
According to some recent discussions and bug reports, I plan to rework 
the Desktops feature in the IDE. Before I again get a "Please stop the 
IDE regressions!" messages, I decided to announce and discuss the topic 
in the mailing list in advance.


The redesign will include the following points:

1.) Removal of IDE Options -> Environment -> Windows -> Window Positons.
Why: The desktop features duplicate "Restore window geometry" and 
"Custom window geometry" settings. The other two settings ("Let 
windowmanager decide" and "Fixed default geometry") seem useless for me. 
The options also conflict with Desktop window layout.
Column widths and other window layout settings will be saved through new 
generic interface.


2.) Moving options that are saved in the desktop into new IDE Options 
category "Desktop" (within the same IDE Options dialog).

"Environment -> Window" :: "Desktop -> Window"
"Environment -> IDE coolbar" :: "Desktop -> IDE coolbar"
"Environment -> Editor toolbar" :: "Desktop -> Editor toolbar"
"Environment -> AnchorDocking" :: "Desktop -> AnchorDocking"
Why: just to make sure people understand that these settings are saved 
in the Desktop and change when Desktop is changed and that they are not 
IDE-wide.


3.) User-configurable options (from IDE Options) will be always auto 
saved just like all other options are. The "auto save" setting from 
Desktop Manager will affect only window layout that is not manually 
configurable.


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Is there any alternative to PPL (Parallel Programming Library) on FPC?

2016-02-25 Thread Kostas Michalopoulos
Check the MTProcs unit in the multithreadprocs package (part of Lazarus,
but you need to manually install it from the Install/Uninstall Packages
box). This wiki page describes how to use it:

http://wiki.freepascal.org/Parallel_procedures

On Thu, Feb 25, 2016 at 5:38 PM, silvioprog  wrote:

> Hello,
>
> Just a quote from Embarcadero doc
> 
> :
>
> The RTL provides the Parallel Programming Library (PPL), giving your
>> applications the ability to have tasks running in parallel taking advantage
>> of working across multiple CPU devices and computers. The PPL includes a
>> number of advanced features for running tasks, joining tasks, waiting on
>> groups of tasks, etc. to process. For all this, there is a thread pool that
>> self tunes itself automatically (based on the load on the CPU’s) so you do
>> not have to care about creating or managing threads for this purpose.
>
>
> To check it, we can take a small example (full source here
> )
> that looks for prime numbers using a classic for loop:
>
> var
>   I, Tot: Integer;
>   SW: TStopwatch;
> begin
>   Tot := 0;
>   SW := TStopwatch.Create;
>   SW.Start;
>   for I := 1 to Max do
> if IsPrime(I) then
>   Inc(Tot);
>   SW.Stop;
>   WriteLn
> (Format('Sequential For loop. Time (in milliseconds): %d - Primes
> found: %d',
> [SW.ElapsedMilliseconds, Tot]));
> end;
>
> The result:
>
> Sequential For loop. Time (in milliseconds): 764 - Primes found: 348513
>
> Now, a similar example however using PPL:
>
> var
>   Tot: Integer;
>   SW: TStopwatch;
> begin
>   try
> Tot := 0;
> SW := TStopwatch.Create;
> SW.Start;
> TParallel.For(2, 1, Max,
>   procedure(I: Int64)
>   begin
> if IsPrime(I) then
>   TInterlocked.Increment(Tot);
>   end);
> SW.Stop;
> WriteLn
>   (Format('Parallel For loop. Time (in milliseconds): %d - Primes
> found: %d',
>   [SW.ElapsedMilliseconds, Tot]));
>   except
> on E: EAggregateException do
>   ShowMessage(E.ToString);
>   end;
> end;
>
> Result:
>
> Parallel For loop. Time (in milliseconds): 315 - Primes found: 348513
>
> Awesome, I got a nice performance using PPL and it seems a nice feature,
> but where can I get anything like this for FPC?
>
> Thank you!
>
> --
> Silvio Clécio
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Bo Berglund
On Thu, 25 Feb 2016 18:50:56 +, Graeme Geldenhuys
 wrote:

>Regarding Mantis:
>  Could we make it a Lazarus Mantis policy to NOT link to
>  images/screenshots on an external websites. Not a single one of the 3
>  links in the comments work any more. :-/

I support this!
The images should be downloaded to the server so they won't go away
when someone moves his site or makes other changes.
I have seen so many such problems in other cases that I fully support
usning the Mantis server itself as home to the images.


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Anthony Walter
I've wanted this feature for a while. I think adding simple global property
on TToolBar to show/hide captions would suffice.

In the interim here is a workaround, editing the IDE while it's running:

http://cache.getlazarus.org/videos/small-toolbars.mp4

Graeme:

I often post video recordings of bugs and use an external site to do so.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 1.6 Object Inspector width, how to reduce?

2016-02-25 Thread Bo Berglund
On Thu, 25 Feb 2016 04:20:30 +0100, Ondrej Pokorny 
wrote:

>On 24.02.2016 19:23, Bo Berglund wrote:
>> On Wed, 24 Feb 2016 19:19:00 +0100, Bo Berglund
>>  wrote:
>>> A quick test:
>>> In 1.6RC2 the minimum width is about 233 pixels whereas in 1.6 it is
>>> more like 430 pixels. That is a rather big part of my total width...
>> It turns out that the code editor has also been provided with a rather
>> big minimum width! It is such that I cannot set the code editor and
>> Object Inspector to fit the screen side by side. There is a big
>> overlap that cannot be reduced.
>> How did this happen?
>
>No idea, I can reduce the width of OI to almost zero on Windows.
>
I just installed lazarus 1.6 in a Linux Mint 17 (Cinnamon) virtual
machine on my laptop.
In this environment I can also size the different windows fully.
So the problem I reported must be due to the platform it is installed
on (Raspbian Jessie on a Raspberry Pi2 in this case).

Note that the sizing is a problem both via remote connection
(TightVNC) and directly with the monitor hooked to the Rpi2.

Strange problem


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Graeme Geldenhuys
On 2016-02-25 18:40, Juha Manninen wrote:
> 
> Wow, the configurable button text/icon feature was discussed already a
> long time ago.

I know, I've even mentioned it before in the mailing list too. ;-)


> There is also a Mantis issue :
>   http://bugs.freepascal.org/view.php?id=22278
> Somebody only must implement it.

Thanks, I just read the comments of that report. My suggestion it to
apply the changes to all ide windows similar to Project Groups, Project
Inspector, Package Editor etc. I'll apply it to one, and if the concept
works, I don't mind applying it to the others.

Regarding Mantis:
  Could we make it a Lazarus Mantis policy to NOT link to
  images/screenshots on an external websites. Not a single one of the 3
  links in the comments work any more. :-/


Regards,
  - Graeme -

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

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Juha Manninen
On Thu, Feb 25, 2016 at 8:24 PM, Graeme Geldenhuys
 wrote:
> In fact, I have a 12 hour flight coming up where I need to kill some
> time. Maybe implementing some of these ideas as a prototype/suggestion
> is a nice way of making the time fly by. ;-)

Wow, the configurable button text/icon feature was discussed already a
long time ago.
There is also a Mantis issue :
  http://bugs.freepascal.org/view.php?id=22278
Somebody only must implement it.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Graeme Geldenhuys
On 2016-02-25 17:24, Jürgen Hestermann wrote:
> When programming I would not like to move away my hands from the keyboard to 
> reach for the mouse.
> That's not ergonomical.

From what you described, it sounds like over-engineering for what the
actual problem is (reduce screen size and still have quick access to
items). A [☰] icon showing a standard popup menu should suffice. The
hamburger menu could be triggered via some standard keyboard shortcut.
eg: Ctrl+Space or something. The Spacebar matches the hamburger lines
nicely. ;-) You can then select the menu item with arrow keys or a
hotkey. No complexities of searching, filtering, magically reordering
menu items etc. And all still possible with the keyboard (and mouse).

In fact, I have a 12 hour flight coming up where I need to kill some
time. Maybe implementing some of these ideas as a prototype/suggestion
is a nice way of making the time fly by. ;-)

Regards,
  - Graeme -

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

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Jürgen Hestermann

Am 2016-02-25 um 17:40 schrieb Michael Van Canneyt:
>
> On Thu, 25 Feb 2016, Jürgen Hestermann wrote:
>> The best would be to avoid all these toolbars and
>> use on demand popup (text) lists where I can select from.
>> Such a text list can be filtered, sorted and searched for but pictograms 
cannot.
>
> That's called a menu ?

A sort of.
But directly invokable via shortcut key and with filter and/or sorting.
A (possibly long) list of text entries but you can type some characters and
it immediately filters the list to the matching entries only (as in the 
component/view all-dialog).
They could be sortable by last usage or lexically (or others) by the user.
Windows start menu search finally uses this too (although this has other 
issues).

Or a tree like list where typing takes you to the next matching entry and enter 
invokes it.

When programming I would not like to move away my hands from the keyboard to 
reach for the mouse.
That's not ergonomical.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Ondrej Pokorny
And my idea was to make these toolbars configurable just as 
EditorToolbar is. And of course remove the captions :)


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Graeme Geldenhuys
On 2016-02-25 16:36, Jürgen Hestermann wrote:
> The best would be to avoid all these toolbars and
> use on demand popup (text) lists where I can select from.

As Michael mentioned... in other words, a Menu. ;-)

I do actually agree that the images don't often mean much. My idea is to
have both icons and text shown on such toolbars. Once you are familiar
with there functionality (and if you use the IDE daily as your job - it
should be soon), then disable the text. In the case that you forgot what
a toolbar button (image only) means, the tooltip will come to your
rescue in 0.5 seconds.

In normal terms I would say text makes more sense (hence I have images
disabled in Lazarus's menu items), but for the toolbars I'm talking
about, the text takes up too much space.

As for dropping the toolbars completely in such ide windows, and using a
popup menu (eg: via a "hamburger" [☰] icon) instead I would actually
like that very much.  A right-click menu might be problematic (hence my
suggestion of a ☰ icon), because such popup menus are often context
sensitive. eg: In the Project Group window, if you right-click on the
treeview, you don't get the same options as the toolbar.

Regards,
  - Graeme -

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

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Michael Van Canneyt



On Thu, 25 Feb 2016, Jürgen Hestermann wrote:




Am 2016-02-25 um 16:46 schrieb Graeme Geldenhuys:

In the "IDE Options -> Environment -> General" you can disable images on
buttons (in ide dialogs) and menus.

Would it be possible to have another option to disable text in ide
windows that have toolbars? Take a look at the attached screenshot. Many
ide windows look like the red rectangle (that isn't zoomed in the
screenshot, that's actual size). Yet look at how much less space is
taken up by the toolbars in the green rectangles.
These massive toolbars are wasted screenspace, and if you resize windows
like the Project Group window and make it narrower to fit the content of
the treeview better, then I get 3 rows of buttons - waisting even more
vertical space!

A image with a tooltip should suffice. The added text is just bloat.


It's just the other way round:
The images are bloat.
They contain no information at all.

The best would be to avoid all these toolbars and
use on demand popup (text) lists where I can select from.
Such a text list can be filtered, sorted and searched for but pictograms 
cannot.


That's called a menu ?

Michael.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Jürgen Hestermann



Am 2016-02-25 um 16:46 schrieb Graeme Geldenhuys:
> In the "IDE Options -> Environment -> General" you can disable images on
> buttons (in ide dialogs) and menus.
>
> Would it be possible to have another option to disable text in ide
> windows that have toolbars? Take a look at the attached screenshot. Many
> ide windows look like the red rectangle (that isn't zoomed in the
> screenshot, that's actual size). Yet look at how much less space is
> taken up by the toolbars in the green rectangles.
> These massive toolbars are wasted screenspace, and if you resize windows
> like the Project Group window and make it narrower to fit the content of
> the treeview better, then I get 3 rows of buttons - waisting even more
> vertical space!
>
> A image with a tooltip should suffice. The added text is just bloat.

It's just the other way round:
The images are bloat.
They contain no information at all.

The best would be to avoid all these toolbars and
use on demand popup (text) lists where I can select from.
Such a text list can be filtered, sorted and searched for but pictograms cannot.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Péter Gábor
There is already a similar bug report in mantis:
http://bugs.freepascal.org/view.php?id=29198


2016-02-25 16:06 keltezéssel, Graeme Geldenhuys írta:
> 
> Anybody else see this error yet?
> 
> Regards,
>   - Graeme -
> 

-- 
Péter Gábor
p...@freemail.hu


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Graeme Geldenhuys
On 2016-02-25 15:39, Jesus Reyes A. wrote:
> The combination of packages that triggers this problem is  
> lazdatadict+lazprojectgroups,

Tested again. Same lazarus executable... all my custom packages
installed, minus lazdatadict, plus lazprojectgroups.  That executable
with a new lazarus profile directory works. That same executable with my
previous (normal) profile directory... "Exception" error at start.

Either way... I really need Project Groups, so going with the new
lazarus profile directory and customizing the IDE once again.

Regards,
  - Graeme -

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

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Graeme Geldenhuys
On 2016-02-25 15:39, Jesus Reyes A. wrote:
> 
> The combination of packages that triggers this problem is  
> lazdatadict+lazprojectgroups,

I'll move my previous profile directory back and retest.


> The issue has already a report:  
> http://bugs.freepascal.org/view.php?id=29675

Thanks for the reference, I'll monitor the issue.


It seems the Project Groups package has memory leak to boot as well.
I've just reported that:

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


> me committing the patch, the main menu appears inverted: Help, Windows,  
> Tools, etc... Search, Edit, Files.  :)

Apply your patch twice, then the menus should be inverted once more -
thus back to normal. ;-)


Regards,
  - Graeme -

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

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Feature Request: hide button text in windows with toolbars

2016-02-25 Thread Graeme Geldenhuys
Hi,

In the "IDE Options -> Environment -> General" you can disable images on
buttons (in ide dialogs) and menus.

Would it be possible to have another option to disable text in ide
windows that have toolbars? Take a look at the attached screenshot. Many
ide windows look like the red rectangle (that isn't zoomed in the
screenshot, that's actual size). Yet look at how much less space is
taken up by the toolbars in the green rectangles.

These massive toolbars are wasted screenspace, and if you resize windows
like the Project Group window and make it narrower to fit the content of
the treeview better, then I get 3 rows of buttons - waisting even more
vertical space!

A image with a tooltip should suffice. The added text is just bloat.


Regards,
  - Graeme -

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

My public PGP key:  http://tinyurl.com/graeme-pgp
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Jesus Reyes A.
En Thu, 25 Feb 2016 09:28:47 -0600, Graeme Geldenhuys  
 escribió:



On 2016-02-25 15:13, Mattias Gaertner wrote:

Yes. There seems to be a bug in the IDE menu merging code. It happens
only with some combinations of installed packages.


Thanks. Reading old messages from Michael van Canneyt I tried what he
suggested, but uninstalling the DataDict packages, but that meant I get
an "Exception" error at start. So a slight change.  I then, as a test,
backed up my ~/.lazarus/ profile directory and started a completely new
one. With the last executable giving me the "Exception" message, using a
brand new profile, the IDE started up without problems.

So it seems like configuration settings could also play a roll in this
issue.

I'll step by step add my custom configuration settings back in and see
what happens.

Regards,
  - Graeme -



The combination of packages that triggers this problem is  
lazdatadict+lazprojectgroups,
the problem appears only when the most recent project groups list is empty  
(this is when the MRPG submenu is hidden). The problem is an inconsistency  
on the counts of menu items between some internal list and the physical  
"project" menu items.


The issue has already a report:  
http://bugs.freepascal.org/view.php?id=29675


For myself I fixed the problem here but it has a side effect that prevents  
me committing the patch, the main menu appears inverted: Help, Windows,  
Tools, etc... Search, Edit, Files.  :)


Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Is there any alternative to PPL (Parallel Programming Library) on FPC?

2016-02-25 Thread silvioprog
Hello,

Just a quote from Embarcadero doc

:

The RTL provides the Parallel Programming Library (PPL), giving your
> applications the ability to have tasks running in parallel taking advantage
> of working across multiple CPU devices and computers. The PPL includes a
> number of advanced features for running tasks, joining tasks, waiting on
> groups of tasks, etc. to process. For all this, there is a thread pool that
> self tunes itself automatically (based on the load on the CPU’s) so you do
> not have to care about creating or managing threads for this purpose.


To check it, we can take a small example (full source here
)
that looks for prime numbers using a classic for loop:

var
  I, Tot: Integer;
  SW: TStopwatch;
begin
  Tot := 0;
  SW := TStopwatch.Create;
  SW.Start;
  for I := 1 to Max do
if IsPrime(I) then
  Inc(Tot);
  SW.Stop;
  WriteLn
(Format('Sequential For loop. Time (in milliseconds): %d - Primes
found: %d',
[SW.ElapsedMilliseconds, Tot]));
end;

The result:

Sequential For loop. Time (in milliseconds): 764 - Primes found: 348513

Now, a similar example however using PPL:

var
  Tot: Integer;
  SW: TStopwatch;
begin
  try
Tot := 0;
SW := TStopwatch.Create;
SW.Start;
TParallel.For(2, 1, Max,
  procedure(I: Int64)
  begin
if IsPrime(I) then
  TInterlocked.Increment(Tot);
  end);
SW.Stop;
WriteLn
  (Format('Parallel For loop. Time (in milliseconds): %d - Primes
found: %d',
  [SW.ElapsedMilliseconds, Tot]));
  except
on E: EAggregateException do
  ShowMessage(E.ToString);
  end;
end;

Result:

Parallel For loop. Time (in milliseconds): 315 - Primes found: 348513

Awesome, I got a nice performance using PPL and it seems a nice feature,
but where can I get anything like this for FPC?

Thank you!

--
Silvio Clécio
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Graeme Geldenhuys
On 2016-02-25 15:13, Mattias Gaertner wrote:
> Yes. There seems to be a bug in the IDE menu merging code. It happens
> only with some combinations of installed packages.

Thanks. Reading old messages from Michael van Canneyt I tried what he
suggested, but uninstalling the DataDict packages, but that meant I get
an "Exception" error at start. So a slight change.  I then, as a test,
backed up my ~/.lazarus/ profile directory and started a completely new
one. With the last executable giving me the "Exception" message, using a
brand new profile, the IDE started up without problems.

So it seems like configuration settings could also play a roll in this
issue.

I'll step by step add my custom configuration settings back in and see
what happens.

Regards,
  - Graeme -

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

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Mattias Gaertner
On Thu, 25 Feb 2016 15:06:35 +
Graeme Geldenhuys  wrote:

>[...]
> Anybody else see this error yet?

Yes. There seems to be a bug in the IDE menu merging code. It happens
only with some combinations of installed packages.


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Graeme Geldenhuys
Hi,

I've just upgrade my Lazarus to the latest trunk revision on my native
FreeBSD system, and in a Linux VM. On FreeBSD the IDE seems to work, and
I can use Project Groups.

In the VM I get instant IDE crash with the error message "Invalid
floating point operation".  I know about previous "index out of bounds"
errors, which is believed to be caused by various installed packages. I
must add that my Lazarus in the Linux VM has a lot more packages
installed than the copy on FreeBSD.

In both cases I used 64-bit FPC v2.6.4 to compile Lazarus. I did a 'make
clean' before I did a 'make bigide', and then a "Options -> Build
IDE..." to get my custom installed packages.

Anybody else see this error yet?

I did some more testing. As soon as I remove "project groups" package,
then the IDE runs fine with my collection of installed packages. Install
"project groups", and then I get this error again at startup.

==
ERROR in LCL: TIDEMenuSection.UpdateNeedBottomSeparator inconsistency
Creating gdb catchable error:

  $00AB2533 line 720 of lazloggerbase.pas
  $0099F48E line 1458 of lclproc.pas
  $0099C21B line 903 of lclproc.pas
  $00F83D21 line 1073 of menuintf.pas
  $00F833AE line 1165 of menuintf.pas
  $00F83276 line 1148 of menuintf.pas
  $00F855DA line 1276 of menuintf.pas
  $00F855D1 line 1272 of menuintf.pas
  $00F85CE9 line 1352 of menuintf.pas
Hint: (lazarus) [TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE
Hint: (lazarus) [TMainIDE.Destroy] END
[FORMS.PP] ExceptionOccurred
  Sender=EInvalidOp
  Exception=Invalid floating point operation
  Stack trace:
  $0099C24C line 904 of lclproc.pas
  $00F83D21 line 1073 of menuintf.pas
  $00F833AE line 1165 of menuintf.pas
  $00F83276 line 1148 of menuintf.pas
  $00F855DA line 1276 of menuintf.pas
  $00F855D1 line 1272 of menuintf.pas
  $00F85CE9 line 1352 of menuintf.pas
  $00F85B60 line 1341 of menuintf.pas
  $00F80A70 line 523 of menuintf.pas
  $01F0526C line 365 of reglazdatadict.pp
  $0113920E line 5436 of ../packager/packagesystem.pas
  $01113802 line 1814 of ../packager/packagesystem.pas
  $0170AC80 line 55 of lazaruspackageintf.pas
  $00A040A7 line 18 of lazdatadict.pas
  $0113920E line 5436 of ../packager/packagesystem.pas
  $01138F99 line 5402 of ../packager/packagesystem.pas
  $01143352 line 1580 of ../packager/pkgmanager.pas
TApplication.HandleException Invalid floating point operation
  Stack trace:
  $0099C24C line 904 of lclproc.pas
  $00F83D21 line 1073 of menuintf.pas
  $00F833AE line 1165 of menuintf.pas
  $00F83276 line 1148 of menuintf.pas
  $00F855DA line 1276 of menuintf.pas
  $00F855D1 line 1272 of menuintf.pas
  $00F85CE9 line 1352 of menuintf.pas
  $00F85B60 line 1341 of menuintf.pas
  $00F80A70 line 523 of menuintf.pas
  $01F0526C line 365 of reglazdatadict.pp
  $0113920E line 5436 of ../packager/packagesystem.pas
  $01113802 line 1814 of ../packager/packagesystem.pas
  $0170AC80 line 55 of lazaruspackageintf.pas
  $00A040A7 line 18 of lazdatadict.pas
  $0113920E line 5436 of ../packager/packagesystem.pas
  $01138F99 line 5402 of ../packager/packagesystem.pas
  $01143352 line 1580 of ../packager/pkgmanager.pas

==

Regards,
  - Graeme -

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

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Wiki and docs- where?

2016-02-25 Thread Mark Morgan Lloyd

Bo Berglund wrote:

On Thu, 25 Feb 2016 11:41:20 +, Mark Morgan Lloyd
 wrote:

http://www.lazarus-ide.org/ points to 
http://wiki.lazarus.freepascal.org/ and 
http://wiki.freepascal.org/Lazarus_Documentation both of which are 
giving me permanent 403 "Forbidden".


All 3 links work OK from here (Sweden)


Thanks Bo and everybody else. Jonas had added a rule limiting browser 
versions that were accepted.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Keys not recognized by Lazarus 1.6 code editor [OT]

2016-02-25 Thread Lukasz Sokol
On 25/02/16 10:45, Bo Berglund wrote:
> On Thu, 25 Feb 2016 10:11:57 +, Lukasz Sokol 
> wrote:
> 
>> gmane.comp.compilers.free-pascal.social = fpc-other ... recently added (less 
>> than a week ago)
>>
> I saw the "social" one and thought that it is another than "other"
> I'll have a look there.
> 

Yeah just have seen some posts coming through on it this morning (posted 
yesterday);

there is however no history (the archive has not been imported yet) so only 
really new messages appear;

and Gmane devs / staff give themselves a lot of play in timelines definitions 
(see gmane faq)... 
(which is not really that surprising given their manpower and being volunteers 
etc.);

-L.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem with lazarus + fpc-3.0.0 under windows 10

2016-02-25 Thread Zeljko



On 02/24/2016 03:53 PM, Zeljko wrote:



On 02/24/2016 03:20 PM, Zeljko wrote:

1.Fpc-3.0.0
2.Lazarus today trunk.
3.Windows 10 pro 64bit in vmware virtual machine

Builds fine, works fine. Now I'm trying to install dozen of my own
packages...last one is virtualtrees package, in message window I can see:
Linking lazarus... and then Fatal: no memory left

Tested with pure win32 and qt widgetsets under windows 10 pro.

So, anyone spotted such problem ? That works fine with fpc-2.6.4
(virtual machine also but with Win7 64 pro)
Is there any workaround ?


Sorry, it's not fpc-3.0.0 but fpc-3.1.1 from 18.01.2016 ... so I'll test
tomorrow with 3.0.0 stable and see if error still exists.


FYI, works ok with fpc-3.0.0.

z.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Wiki and docs- where?

2016-02-25 Thread Gabor Boros

2016. 02. 25. 13:12 keltezéssel, Bo Berglund írta:

All 3 links work OK from here (Sweden)


+1 from Hungary.

Gabor

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Wiki and docs- where?

2016-02-25 Thread Bo Berglund
On Thu, 25 Feb 2016 11:41:20 +, Mark Morgan Lloyd
 wrote:

>http://www.lazarus-ide.org/ points to 
>http://wiki.lazarus.freepascal.org/ and 
>http://wiki.freepascal.org/Lazarus_Documentation both of which are 
>giving me permanent 403 "Forbidden".

All 3 links work OK from here (Sweden)


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Wiki and docs- where?

2016-02-25 Thread Mark Morgan Lloyd

Shaun O'Connor wrote:

On 25/02/2016 11:41, Mark Morgan Lloyd wrote:
http://www.lazarus-ide.org/ points to 
http://wiki.lazarus.freepascal.org/ and 
http://wiki.freepascal.org/Lazarus_Documentation both of which are 
giving me permanent 403 "Forbidden".


Anybody know what's going on?

no permanent "forbidden" here either and I have some pretty stringent 
controls on my browser.


It's definitely not a browser problem, unless the basic FPC site 
mandates scripting etc... I've just checked with a wide-open browser and 
there's no change.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Wiki and docs- where?

2016-02-25 Thread Shaun O'Connor

On 25/02/2016 11:41, Mark Morgan Lloyd wrote:
http://www.lazarus-ide.org/ points to 
http://wiki.lazarus.freepascal.org/ and 
http://wiki.freepascal.org/Lazarus_Documentation both of which are 
giving me permanent 403 "Forbidden".


Anybody know what's going on?

no permanent "forbidden" here either and I have some pretty stringent 
controls on my browser.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Wiki and docs- where?

2016-02-25 Thread Bart
On 2/25/16, Mark Morgan Lloyd  wrote:

No redirects here.
No "forbidden" here.

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Image Copy and Load Fail.

2016-02-25 Thread 최경식
  
-Original Message-
From: "Mattias Gaertner"nc-gaert...@netcologne.de 
To: lazarus@lists.lazarus.freepascal.org; 
Cc: 
Sent: 2016-02-25 (목) 19:57:19
Subject: Re: [Lazarus] Image Copy and Load Fail.
 
On Thu, 25 Feb 2016 19:28:57 +0900 (KST)
최경식 me357...@naver.com wrote:

[...]
 procedure TForm1.Button3Click(Sender: TObject);
 var
   ImagetoSave : TImage;
 begin
   ImagetoSave := TImage.Create(Self);

A TImage is a visual control that uses a graphic (e.g. a TBitmap) to
paint.
If you only need a memory image use TBitmap directly instead.

This copies pixels (not attributes):

var
  ImagetoSave : TBitmap;
begin
  ImagetoSave := TBitmap.Create(Self);
  with ImagetoSave do
  begin
PixelFormat := pf32bit;
SetSize(Image1.Width,Image1.Height);
Canvas.CopyRect(Rect(0,0,Image1.Width,Image1.Height),
Image1.Picture.Bitmap.Canvas,
Rect(0,0,Image1.Width,Image1.Height));
  end;
  ImagetoSave.SaveToFile('/home/user/Image/copycreate.bmp');
  FileListBox1.UpdateFileList;
end;


 procedure TForm1.FileListBox1Change(Sender: TObject);
 begin
   if FileListBox1.ItemIndex  -1 then
   begin
 //Loading
 Image3.Picture.bitmap.TransParentColor := clGreen; //Valuable!

Hint:
If you also want to copy attributes like TransparentColor, use

ImagetoSave.Assign(Image1.Picture.Bitmap);

Mattias

--
 
Thank you.
 
But the problem still occurs.
 
I set the size to 4200 * 900 - copy - re-set the size.
 
My platform is ARM-linux and OS is Lubuntu, Lazarus 1.0.10+dpkg (I tested 
newest version with same problem..)
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Wiki and docs- where?

2016-02-25 Thread Mark Morgan Lloyd
http://www.lazarus-ide.org/ points to 
http://wiki.lazarus.freepascal.org/ and 
http://wiki.freepascal.org/Lazarus_Documentation both of which are 
giving me permanent 403 "Forbidden".


Anybody know what's going on?

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Please stop the IDE regressions!

2016-02-25 Thread Ondrej Pokorny

On 25.02.2016 8:52, Graeme Geldenhuys wrote:

As for IDE commands vs Other commands. I don't know how they are organised


They are organized basically the same as any other IDE command list, 
e.g. Key Mappings. The order can be different, though because the 
buttons are added in different order than IDE commands.


Ondrej




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Image Copy and Load Fail.

2016-02-25 Thread Mattias Gaertner
On Thu, 25 Feb 2016 19:28:57 +0900 (KST)
최경식  wrote:

>[...]
> procedure TForm1.Button3Click(Sender: TObject);
> var
>   ImagetoSave : TImage;
> begin
>   ImagetoSave := TImage.Create(Self);

A TImage is a visual control that uses a graphic (e.g. a TBitmap) to
paint.
If you only need a memory image use TBitmap directly instead.

This copies pixels (not attributes):

var
  ImagetoSave : TBitmap;
begin
  ImagetoSave := TBitmap.Create(Self);
  with ImagetoSave do
  begin
PixelFormat := pf32bit;
SetSize(Image1.Width,Image1.Height);
Canvas.CopyRect(Rect(0,0,Image1.Width,Image1.Height),
Image1.Picture.Bitmap.Canvas,
Rect(0,0,Image1.Width,Image1.Height));
  end;
  ImagetoSave.SaveToFile('/home/user/Image/copycreate.bmp');
  FileListBox1.UpdateFileList;
end;


> procedure TForm1.FileListBox1Change(Sender: TObject);
> begin
>   if FileListBox1.ItemIndex  -1 then
>   begin
> //Loading
> Image3.Picture.bitmap.TransParentColor := clGreen; //Valuable!

Hint:
If you also want to copy attributes like TransparentColor, use

ImagetoSave.Assign(Image1.Picture.Bitmap);

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Feature request: Project Groups

2016-02-25 Thread Mattias Gaertner
On Thu, 25 Feb 2016 10:19:15 +
Graeme Geldenhuys  wrote:

>[...]
> One suggestion though. Can the "current project" be highlighted in Bold.
> At the moment there is no way of seeing which project in the project
> group window is the active project.

It's already on my todo list.

 
> Also, what is the point of the "removed targets" tree node? 

As an Undo. The user does not need to confirm the deletion.

> I'm assuming
> when you remove a project from the group it appears under the "removed
> targets" node. But why would you want a removed project to still hang
> around in the project group window? You removed it for a reason right?
> If you want to undo an accidental remove, doesn't simply not saving the
> group, or Ctrl-Z, or your SCM system handle that for you? It seems we
> already have plenty of "undo" choice, and the "removed targets" is just
> overkill.

Ctrl-Z is not implemented. The "removed targets" allow to easily spot
accidental deletions and to examine the removed target.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Keys not recognized by Lazarus 1.6 code editor [OT]

2016-02-25 Thread Bo Berglund
On Thu, 25 Feb 2016 10:11:57 +, Lukasz Sokol 
wrote:

>gmane.comp.compilers.free-pascal.social = fpc-other ... recently added (less 
>than a week ago)
>
I saw the "social" one and thought that it is another than "other"
I'll have a look there.

-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Image Copy and Load Fail.

2016-02-25 Thread 최경식
hello everyone. 
I Loaded successfully after saving that i drawn.
But i load fail after saving that i copied. (please see below code)
This situation occurs in accordance with copy size.
Below it is my code and i written some comments.
 
[My code]
procedure TForm1.Button2Click(Sender: TObject);
begin
  //Drawing
  Image1.Picture.bitmap.PixelFormat := pf32bit;   //Valuable!
  Image1.Picture.bitmap.SetSize(Image1.Width,Image1.Height);
  Image1.Picture.Bitmap.Canvas.TextOut(0,0,'test');
  Image1.Invalidate;  //
  Image1.Picture.Bitmap.SaveToFile('/home/user/Image/drawing.bmp');
  FileListBox1.UpdateFileList;
end;
 
procedure TForm1.Button3Click(Sender: TObject);
var
  ImagetoSave : TImage;
begin
  ImagetoSave := TImage.Create(Self);
  with ImagetoSave.Picture.Bitmap do
  begin
PixelFormat := pf32bit;
SetSize(500,900); // this is 
where a problem is caused. if these size numbers are large, the problem 
occurrence, otherwise the problems does not occur.
ImagetoSave.Width := Width;
ImagetoSave.Height:= Height;
Canvas.CopyRect(Rect(0,0,Image1.Width,Image1.Height),
Image1.Picture.Bitmap.Canvas,
Rect(0,0,Image1.Width,Image1.Height));
SetSize(Image1.Width,Image1.Height);
ImagetoSave.Width := Width;
ImagetoSave.Height:= Height;
  end;
  ImagetoSave.Picture.Bitmap.SaveToFile('/home/user/Image/copycreate.bmp');
  FileListBox1.UpdateFileList;
end;




procedure TForm1.FileListBox1Change(Sender: TObject);
begin
  if FileListBox1.ItemIndex  -1 then
  begin
//Loading
Image3.Picture.bitmap.TransParentColor := clGreen; //Valuable!
Image3.Picture.bitmap.LoadFromFile(FileListBox1.FileName);
Image3.Width := Image3.Picture.bitmap.Width;
Image3.Height := Image3.Picture.bitmap.Height;
  end;


 
end;
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Feature request: Project Groups

2016-02-25 Thread Graeme Geldenhuys
Hi,

Just updated my lazarus to the latest Trunk revision. I'm very glad to
see Project Groups are available and working well thus far. A highly
sought after feature for many years.

One suggestion though. Can the "current project" be highlighted in Bold.
At the moment there is no way of seeing which project in the project
group window is the active project.


Also, what is the point of the "removed targets" tree node? I'm assuming
when you remove a project from the group it appears under the "removed
targets" node. But why would you want a removed project to still hang
around in the project group window? You removed it for a reason right?
If you want to undo an accidental remove, doesn't simply not saving the
group, or Ctrl-Z, or your SCM system handle that for you? It seems we
already have plenty of "undo" choice, and the "removed targets" is just
overkill.

Regards,
  - Graeme -

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

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Keys not recognized by Lazarus 1.6 code editor [OT]

2016-02-25 Thread Lukasz Sokol
On 24/02/16 17:58, Bo Berglund wrote:
[...]

> However, Gmane does not carry the "-other" mail lists on its news
> mirror and I do all of my talking here through Gmane
> Can't stand the email interface because I lose totally the overview
> and threading offered by a news service.
> 
It does now for fpc-other at least

gmane.comp.compilers.free-pascal.social = fpc-other ... recently added (less 
than a week ago)

don't know whether lazarus-other has been submitted to Gmane yet,
not sure whether it's the list admin that needs to do that; probably yes;

-L.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Microsoft Acquires Xamarin

2016-02-25 Thread Shaun O'Connor

On 25/02/2016 09:28, Michael Schnell wrote:

On 02/24/2016 09:59 PM, Dmitry Boyarintsev wrote:



Skepticism: what software became better after acquisition by Microsoft?



Sarcasm: Delphi Language became C# 

-Michael



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
I cannot resist chipping in here but i honestly cannot think of ONE 
thing thati mproved following a microsoft acquisition, 
truespace(acquired in 2008 or thereaboiuts) abandoned. no longer 
supported despite it being well regarded by many. oh and look what 
happenned to the "partnership" between Microsoft and Nokia!! MS has had( 
and probably still has a habit of) acquirng( or attempting to acquire) 
any company or entitiy that it sees as a potential threat, then grinds 
that company or entity to the ground.

end of rant. ;-)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem with lazarus 1.6?

2016-02-25 Thread Mattias Gaertner
On Mon, 22 Feb 2016 19:35:55 +0100
Frans  wrote:

> Hi.
> 
> A few days ago I installed lazarus 1.6. After adding some packages I use it 
> works fine but for 2 
> projects.
> I can't close these two projects without a crash of Lazarus, showing the 
> message 'Access violation' 
>[...]
> Anyone an idea where to look?

Can you create a stacktrace?

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem with lazarus 1.6?

2016-02-25 Thread Mattias Gaertner
On Mon, 22 Feb 2016 19:35:55 +0100
Frans  wrote:

> Hi.
> 
> A few days ago I installed lazarus 1.6. After adding some packages I use it 
> works fine but for 2 
> projects.
> I can't close these two projects without a crash of Lazarus, showing the 
> message 'Access violation' 
> twice in a dlg with the title 'Readerror'. One project is the example 
> htmhelpsample (in 
> $(Lazarus)\examples\htmlhelp_ipro).

Please create a bug report.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Microsoft Acquires Xamarin

2016-02-25 Thread Michael Schnell

On 02/24/2016 09:59 PM, Dmitry Boyarintsev wrote:



Skepticism: what software became better after acquisition by Microsoft?



Sarcasm: Delphi Language became C# 

-Michael



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] SQLDb and TSQLQuery usage for MSSQL database...

2016-02-25 Thread Michael Van Canneyt



On Thu, 25 Feb 2016, Bo Berglund wrote:


On Thu, 25 Feb 2016 08:57:40 +0100 (CET), Michael Van Canneyt
 wrote:



It seems like in some examples one uses the transaction as follows:
ATransaction.StartTransaction;
.. do database stuff ...
ATransaction.Commit;



In general it is better to explicitly handle your transactions.
However, if you don't do that, then SQLDB will do it for you.


So as long as there is a TSQLTransaction object hooked to the
connection and query (same transaction object) then the built-in
system will do the StartTransaction-Commit sequence in the background
if I do not explicitly code for it?


StartTransaction, yes. 
Commit: I do not think so (would need to check).


Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] SQLDb and TSQLQuery usage for MSSQL database...

2016-02-25 Thread Bo Berglund
On Thu, 25 Feb 2016 08:57:40 +0100 (CET), Michael Van Canneyt
 wrote:

>>
>> It seems like in some examples one uses the transaction as follows:
>> ATransaction.StartTransaction;
>> .. do database stuff ...
>> ATransaction.Commit;
>>
>
>In general it is better to explicitly handle your transactions.
>However, if you don't do that, then SQLDB will do it for you.

So as long as there is a TSQLTransaction object hooked to the
connection and query (same transaction object) then the built-in
system will do the StartTransaction-Commit sequence in the background
if I do not explicitly code for it?


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus