Re: [Lazarus] Detect that component selected in OI.

2016-05-22 Thread Vojtěch Čihák

Thanks again, you're right. Now it all works, even with recursive searching in 
parents.
..__

Od: Ondrej Pokorny <laza...@kluug.net>
Komu: Lazarus mailing list <lazarus@lists.lazarus.freepascal.org>
Datum: 22.05.2016 17:47
Předmět: Re: [Lazarus] Detect that component selected in OI.


On 22.05.2016 17:37, Vojtěch Čihák wrote:Separating Component Editors is quiet easy but 
how can I separate the Hook (SelectionHook method) when I need "self"?
 
Thanks, V.

For what do you need self? You have the list, so do

for I := 0 to ASelection.Count-1 do
  if ASelection[I] is TMyTabSheet then
    // do your job here

Ondrej


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
<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] Detect that component selected in OI.

2016-05-22 Thread Vojtěch Čihák

Separating Component Editors is quiet easy but how can I separate the Hook (SelectionHook 
method) when I need "self"?
 
Thanks, V.
 
__

Od: Ondrej Pokorny <laza...@kluug.net>
Komu: Lazarus mailing list <lazarus@lists.lazarus.freepascal.org>
Datum: 22.05.2016 16:10
Předmět: Re: [Lazarus] Detect that component selected in OI.


On 22.05.2016 15:45, Vojtěch Čihák wrote:With a small correction: it must be 
hooked only in design time.
 
constructor TMyTabSheet.Create(TheOwner: TComponent);
begin
  ...
  if csDesigning in ComponentState then
    GlobalDesignHook.AddHandlerSetSelection(@HookSelection);
end;

You should separate the hook completely from your run-time code. Use the hook 
(and include IDEIntf) only in your design-time package and unit.

Ondrej


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
<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] Detect that component selected in OI.

2016-05-22 Thread Vojtěch Čihák

OK, thanks.
__

Od: Ondrej Pokorny <laza...@kluug.net>
Komu: Lazarus mailing list <lazarus@lists.lazarus.freepascal.org>
Datum: 22.05.2016 16:21
Předmět: Re: [Lazarus] Detect that component selected in OI.


On 22.05.2016 14:13, Vojtěch Čihák wrote:procedure 
TMyTabSheet.HookSelection(const ASelection: TPersistentSelectionList);
begin
  if assigned(FMyPageControl) and (ASelection.IndexOf(self)>=0) then
    FMyPageControl.TabIndex:= FMyPageControl.Pages.IndexOf(self);
end;   
+ You also should check for selecting child controls (e.g. the user selects a 
button in the page). See TObjectInspectorDlg.DefSelectionVisibleInDesigner from 
r52344.
Ondrej


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
<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] Detect that component selected in OI.

2016-05-22 Thread Vojtěch Čihák

With a small correction: it must be hooked only in design time.
 
constructor TMyTabSheet.Create(TheOwner: TComponent);
begin
  ...
  if csDesigning in ComponentState then
    GlobalDesignHook.AddHandlerSetSelection(@HookSelection);
end;  
 
V.
___
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] Detect that component selected in OI.

2016-05-22 Thread Vojtěch Čihák

Thank you, Ondrej, it works and it is pretty easy.
 
Summary:
 
Let's say you have class TMyPageControl which consists of TMyTabSheet classes 
(TWinControls).
 
uses ... PropEdits, ...;
 
TMyTabSheet = class(TWinControl)
  ...
  protected
    procedure HookSelection(const ASelection: TPersistentSelectionList);
  ...
  end;     
 
constructor TMyTabSheet.Create(TheOwner: TComponent);
begin
  ...
  GlobalDesignHook.AddHandlerSetSelection(@HookSelection);
end;  
 
procedure TMyTabSheet.HookSelection(const ASelection: TPersistentSelectionList);
begin
  if assigned(FMyPageControl) and (ASelection.IndexOf(self)>=0) then
    FMyPageControl.TabIndex:= FMyPageControl.Pages.IndexOf(self);
end;   
 
__

Od: Ondrej Pokorny 
Komu: Lazarus mailing list 
Datum: 22.05.2016 12:56
Předmět: Re: [Lazarus] Detect that component selected in OI.



Instead, do what Howard suggested (although not directly): In your 
component's design-time package, register a SetSelection hook 
("GlobalDesignHook.AddHandlerSetSelection(@OnComponentSelection);"). 
Then in OnComponentSelection you check if your own component is in the 
new selection and do whatever you want.


Ondrej

--
___
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] Detect that component selected in OI.

2016-05-21 Thread Vojtěch Čihák

That's something else. I need something that will be part of component. 
Something like overriden SetFocus; or so.
So far I tried CMDesignHitTest and DoEnter but it didn't work.
It's like when you design Form with PageControl and two TabSheets. You select the second 
TabSheet in OI and PageControl "knows" it and it changes the tabs on the form. 
I'd like to know how this works (what component's code allows this).
 
Thanks, V.
__

Od: Howard Page-Clark 
Komu: lazarus@lists.lazarus.freepascal.org
Datum: 21.05.2016 20:18
Předmět: Re: [Lazarus] Detect that component selected in OI.



TObjectInspectorDlg has several public properties that may help:

Selection: TPersistentSelectionList
OnSelectionChange: TNotifyEvent
OnSelectPersistentsInOI: TNotifyEvent

also a boolean property EnableHookGetSelection which gives you access to 
protected get/set selection handlers.


There are possibly other relevant methods too, it is a complex class.

--
___
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] Detect that component selected in OI.

2016-05-21 Thread Vojtěch Čihák
Hi,
 
is there some event (message or method) triggered when component is selected in 
OI?
It's just like PageControl and its TabSheets. When you select TabSheet in OI, 
component
is repainted in form designer. I oberved the code but I didn't find solution.
 
Thanks, V.

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


Re: [Lazarus] Source Editor font size

2016-04-22 Thread Vojtěch Čihák

And there are two combos "Extra line spacing" and "Extra char spacing" with 
predifned values 0, 1, 2. However they accept any value (-4, 5 etc.)
Maybe this feature is hidden for some users.
 
V.
__

Od: Graeme Geldenhuys 
Komu: Lazarus mailing list 
Datum: 22.04.2016 14:05
Předmět: [Lazarus] Source Editor font size


Hi,

1) I remember years back you could specify the editor font as a
  positive value (point size) and a negative value (pixel size). This
  doesn't seem possible with v1.7 any more. Why was that removed?

2) Why can't I specify point sizes with a decimal? eg: 10.5pt
  For example: I just switched my editor to DejaVu Sans Mono (from
  Raize) because I needed to work with unicode text. The font size
  changed drastically between to the two fonts. DejaVu Sans Mono 10pt
  is now too small, and 11pt is too big. I would like 10.5 (like I've
  done in other text editors I use). Or better yet, specify the font
  size in pixels.

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 mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Bashing the developers

2016-04-09 Thread Vojtěch Čihák

Hi,
 
part of reason may be that unsatisfied people are usually very loud while 
satisfied are usually calm.
Therefore I'd like to say here (loudly) that I was always (and I'm now) happy 
in Lazarus and FPC community (forum, ML, bugtracker) and developers and other 
people always helped when I needed it. Thank you.
Flamewars on ML or in forum are IMO not so common, they are rather unique.
 
Vojtech
__

Od: Juha Manninen 
Komu: Lazarus mailing list 
Datum: 09.04.2016 15:58
Předmět: [Lazarus] Bashing the developers


...

Juha

--
___
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] German umlauts in component names

2016-04-08 Thread Vojtěch Čihák

IMO it is not my local problem, those mails can be found in archive too: 
http://lists.lazarus.freepascal.org/pipermail/lazarus/2016-April/thread.html
 
Vojtech
 
__

Od: Zeljko <zel...@holobit.net>
Komu: Lazarus mailing list <lazarus@lists.lazarus.freepascal.org>
Datum: 08.04.2016 14:01
Předmět: Re: [Lazarus] German umlauts in component names




On 04/08/2016 12:24 PM, Vojtěch Čihák wrote:

Why sometimes come these empty mails from jel...@misticnabica.hr?

Is it regular member or some bot?


I think it's hacked machine...I'll inform that ppl that they are sending 
spam. btw. I don't see such empty emails. Where do they come ? To your 
email or to list ?


zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
<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] German umlauts in component names

2016-04-08 Thread Vojtěch Čihák

Why sometimes come these empty mails from jel...@misticnabica.hr? 
 
Is it regular member or some bot?
 
V.
__

Od: "" 
Komu: 
Datum: 08.04.2016 11:31
Předmět: Re: [Lazarus] German umlauts in component names



--
___
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] {$warn 5023 off: No warning about unused units}

2016-04-06 Thread Vojtěch Čihák

Here:
 
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packager/packagesystem.pas?root=lazarus=51771=51770=51771
 
V.
__

Od: Maxim Ganetsky 
Komu: Lazarus mailing list 
Datum: 07.04.2016 01:13
Předmět: Re: [Lazarus] {$warn 5023 off: No warning about unused units}


07.04.2016 0:31, Werner Pamler пишет:

Since some time, the TurtoiseSVN overlay icons of some of the packages
which I loaded from svn have become practically useless. It is always
the autogenerated package unit which is marked by a red overlay icon as
being out of date. When I open the unit I see that the line

{$warn 5023 off : no warning about unused units}


Which file gives you this warning?

--
Best regards,
 Maxim Ganetsky                  mailto:gan...@narod.ru

--
___
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] Esc closes modal forms [Qt4]

2016-04-04 Thread Vojtěch Čihák

Hi,
this is user-unfreindly issue in Qt4. When I open form as modal (ShowModal) and 
then I open any combobox there, I sometimes want to leave it without change by 
Escape key. It closes the combo but at the same time it closes the form. It 
does not happen in Gtk2 (i.e. I would have to press Esc twice there to reach 
the same effect). It happens in my app. as well as in Lazarus (compiled with 
Qt4, of course).
While closing modal forms with Esc is fine, this should be prevented somehow.
 
V.

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


Re: [Lazarus] Access violation r.51977

2016-03-24 Thread Vojtěch Čihák

I opened: http://bugs.freepascal.org/view.php?id=29889
 
Thanks.
__

Od: Bart 
Komu: Lazarus mailing list 
Datum: 24.03.2016 14:30
Předmět: Re: [Lazarus] Access violation r.51977



Please open a ticket about it in Mantis.
Can you see if a "simple pascal program" with added dependecy on
LazUtils pacakge and with "uses LazUtf8" works?

And yes, a backtrace would be helpfull.

Let's continue the discussion in bugtracker.

Bart

--
___
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] Access violation r.51977

2016-03-23 Thread Vojtěch Čihák

Hi,
 
I got "Access Violation" window whenever I try to compile any (even an empty) 
project or package.
It comes from r.51977, while r.51976 works well.
 
Commit description (by Bart):
LazUtf8: firts attempt to rewrite Utf8CompareStr and Utf8CompareText so that 
it's results will be more
consistent with AnsiCompareStr/WideCompareStr and 
AnsiCompareTex/WideCompareText.
 
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/lazutils/lazutf8.pas?root=lazarus=51977=51976=51977
 
Lazarus 1.7 r51976M FPC 3.0.0 x86_64-linux-qt
 
Qt 4.8.7, Plasma 5.5
 
@Bart: Should I report it or do you still work on it? Will you need some more 
info (stack trace or whatever)?
 
Thanks, Blaazen.
 
 

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


Re: [Lazarus] How to create a transparent PNG?

2016-03-19 Thread Vojtěch Čihák

Hi,
 
there also must be
 
P.Canvas.Brush.Style:=bsClear;
 
before drawing text.
 
V.
__

Od: Gabor Boros 
Komu: 
Datum: 16.03.2016 20:27
Předmět: [Lazarus] How to create a transparent PNG?


Hi All,

I want to draw onto a PNG image and save it without background. Tried 
Transparent, TransparentColor, TransparentMode properties without 
success. I need the A character in the PNG with black color without 
background. Any idea?


procedure PNG;
var
  P:TPortableNetworkGraphic;
begin
  P:=TPortableNetworkGraphic.Create;
  P.SetSize(20,20);
  P.Canvas.TextOut(0,0,'A');
  P.SaveToFile('TEST.PNG');
  P.Free;
end;

Gabor

--
___
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] Ann: class code creation

2016-03-08 Thread Vojtěch Čihák

Thanks, it's a nice idea. I think that selecting in listbox by arrow keys is 
annoying and slow. i would rather use RadioGroup where the option can be 
selected faster by Alt+Key.
 
V.
 
__

Od: Ondrej Pokorny 
Komu: Lazarus 
Datum: 07.03.2016 21:26
Předmět: [Lazarus] Ann: class code creation


I implemented "class code creation" in r51851. I was already tired of 
creating/copying object variables by hand. The idea is the same as with code creation 
(ctrl+shift+c), but the variable is created in one of the class section:

It is the first version, it probably will need some tuning, so please give 
feedback.

Ondrej


--

--
___
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] [ANN] Eye Candy Controls 0.9.4

2016-02-28 Thread Vojtěch Čihák
 
Hello,
 
I released new version of EC-Controls. Announcement is on the forum: 
http://forum.lazarus.freepascal.org/index.php/topic,31734.0.html
 
The main thing is the new tab-control alternative with support for tab stacking 
and multiple rows.
 
Thanks.

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


Re: [Lazarus] /usr/bin/ld: cannot find -lwhatever

2016-02-21 Thread Vojtěch Čihák

Probably not your case but when you add manually libs to system (/usr/lib or 
/usr/local/lib), you need to run
ldconfig
as superuser in terminal so the system rescans available libraries.
 
V.
__

Od: Giuliano Colla 
Komu: Lazarus mailing list 
Datum: 21.02.2016 15:47
Předmět: [Lazarus] /usr/bin/ld: cannot find -lwhatever


Hi,

The result is always the same: cannot find -lwhatever, with "whatever" 
reflecting exactly my external library path/name.


I'm at loss. What I'm missing?

Giuliano



--
___
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] "Test" button in project inspector

2016-02-08 Thread Vojtěch Čihák

Main menu: Source -> Quick Syntax Check
 
Of course, you can assing some handy shortcut to it.
 
V.
__

Od: Bo Berglund 
Komu: 
Datum: 08.02.2016 16:05
Předmět: Re: [Lazarus] "Test" button in project inspector


On Fri, 5 Feb 2016 14:52:23 +0100, Werner Pamler


Similar question:
In Delphi there is a Project menu function "syntax check", which
checks the syntax of the project without actually compiling it.
Is there a corresponding "Test" function available in Lazarus?
In Delphi I use this a lot!


--
Bo Berglund
Developer in Sweden


--
___
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] Can I assign items in an array all at once inFreePascal?

2016-02-06 Thread Vojtěch Čihák

Hmm, really: 
http://blog.marcocantu.com/blog/2014_september_dynamic_arrays_delphixe7.html
 
V.
__

Od: Sven Barth 
Komu: Lazarus mailing list 
Datum: 06.02.2016 21:40
Předmět: Re: [Lazarus] Can I assign items in an array all at once inFreePascal?


Am 06.02.2016 18:06 schrieb "Michael Van Canneyt" >:




On Sat, 6 Feb 2016, Aradeonas wrote:


Michael can I ask why we cant do something like this :


 MyArr :=[10, 20, 30, 40];   



Because of 2 reasons:

1. Delphi introduced the create constructor.

2. A literal such as [10,20,30,40] is a set in pascal, not an array.

The answer is no longer correct with current Delphi versions. It now is "because we 
haven't implemented it yet".
Regards,
Sven


--

--
___
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] Code completion question

2016-01-26 Thread Vojtěch Čihák

Hi,
 
It is a bug? I know this behaviour for a long time and I always believed it is 
by design.
 
V.
__

Od: Mattias Gaertner 
Komu: 
Datum: 26.01.2016 22:46
Předmět: Re: [Lazarus] Code completion question


On Tue, 26 Jan 2016 21:50:43 +0100 (CET)
Michael Van Canneyt  wrote:


[...]
do the codetools refuse to show identifiers with less restricted visibility ?
(so in a protected section, I will not get public)

Is this intentional ?

I can imagine it is confusing to the beginner and experienced dev alike...


Please report the bug.

Mattias

--
___
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] Do we really need a PaintSwastika procedure?

2016-01-06 Thread Vojtěch Čihák

Hi,
 
I just tested and PaintSwastika always paints clockwise swastika (both 
religious and nazi symbol).
I vote for keeping procedure but there should be added boolean parameter + 
patch for painting anti-clockwise swastika (which is religious symbol only).
 
Blaazen
__

Od: Marc Santhoff 
Komu: 
Datum: 06.01.2016 15:54
Předmět: Re: [Lazarus] Do we really need a PaintSwastika procedure?


On Mi, 2016-01-06 at 00:51 -0500, Anthony Walter wrote:

While browsing the docs I found:

http://docs.getlazarus.org/#lcl+extgraphics+paintswastika 




--
___
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] Installation under SUSE

2016-01-06 Thread Vojtěch Čihák

Hi,
 
I guess you can't run Lazarus without this package.
Maybe you need to add some repository, but I have no openSUSE anymore.
Anyway, the package exits: 
https://build.opensuse.org/package/view_file?file=gdk-pixbuf_2.24.0-1ubuntu1.dsc=gdk-pixbuf=home%3Atsx-5=69b8579f342e48ebf42537de01eed0e7
Try to find a way to install it via YAST rather than install *.rpm directly.
 
Blaazen
 
__

Od: Josef Schnieder 
Komu: Lazarus mailing list 
Datum: 06.01.2016 19:40
Předmět: [Lazarus] Installation under SUSE


Hello,

the setup-script from http://www.getlazarus.org/setup/ 
 will not work under SUSE (open SUSE 42.1 
Leap).
the message is:
"This script requires the package libgdk-pixbuf2.0-dev which was not found on your 
system"
But I can't find this package for SUSE.
What should I do?Is there another way to install Lazarus with FPC 3.0 under 
SUSE.
best regards
Josef






--

--
___
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] List of available defines

2016-01-04 Thread Vojtěch Čihák

 
Hi,
 
is there some wiki or other place with list of available defines (for trunk)?
 
Currently, I have:
 
Debug
Verbose
WithSynMarkupIfDef
EnableCodeCompleteTemplates
EnableComponentPaletteOptions
WithSynMultiCaret
 
UseOIThemedCheckbox
 
but I guess some are obsolete and maybe there are some new, which I should try.
 
Thanks.

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


Re: [Lazarus] Some components disappeared

2015-08-19 Thread Vojtěch Čihák

Hi,
 
so I found revision which broke it. It is 48308 (i.e. 48307 is allright yet). I wonder 
why I noticed it so late, probably I didn't use make clean all during updates.
This reversion (and a few revisions around) adds some new features to component 
palette. I don't know where the problem exactly is. I only observed that those
components does not implement class procedure WSRegisterClass; override;. 
Maybe it is reason?
 
I am going to report it now.
 
V.
__

Od: Vojtěch Čihák vojtech.ci...@atlas.cz
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 18.08.2015 23:41
Předmět: [Lazarus] Some components disappeared


 
Hello,
 
this is mystery. TCoolBar and TControlBar disappeared from component palette 
and they are not installed in IDE (I am not able to load project which uses 
TCoolBar).
But those components are not part of any package, they are part of LCL, I 
checked comctrls.pp, the class TCoolBar is there, procedure Register looks 
correctly.
Image tcoolbar.png is present and script for generating *.res file includes it.
 
Any idea what's wrong?
 
Thanks,
 
V.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Some components disappeared

2015-08-19 Thread Vojtěch Čihák

Reported in http://bugs.freepascal.org/view.php?id=28546
 
V.
 



Hi,
 
so I found revision which broke it. It is 48308 (i.e. 48307 is allright yet). I wonder 
why I noticed it so late, probably I didn't use make clean all during updates.
This reversion (and a few revisions around) adds some new features to component 
palette. I don't know where the problem exactly is. I only observed that those
components does not implement class procedure WSRegisterClass; override;. 
Maybe it is reason?
 
I am going to report it now.
 
V.




 
Hello,
 
this is mystery. TCoolBar and TControlBar disappeared from component palette 
and they are not installed in IDE (I am not able to load project which uses 
TCoolBar).
But those components are not part of any package, they are part of LCL, I 
checked comctrls.pp, the class TCoolBar is there, procedure Register looks 
correctly.
Image tcoolbar.png is present and script for generating *.res file includes it.
 
Any idea what's wrong?
 
Thanks,
 
V.

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


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Some components disappeared

2015-08-18 Thread Vojtěch Čihák
 
Hello,
 
this is mystery. TCoolBar and TControlBar disappeared from component palette 
and they are not installed in IDE (I am not able to load project which uses 
TCoolBar).
But those components are not part of any package, they are part of LCL, I 
checked comctrls.pp, the class TCoolBar is there, procedure Register looks 
correctly.
Image tcoolbar.png is present and script for generating *.res file includes it.
 
Any idea what's wrong?
 
Thanks,
 
V.

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


Re: [Lazarus] LCL MouseMove event problem on QT/Linux

2015-08-17 Thread Vojtěch Čihák

Hi,
 
your demo works well here. Manjaro Linux. Lazarus 1.5 r49677M FPC 3.1.1 
x86_64-linux-qt.
 
V.
__

Od: Paul Michell p...@michellcomputing.co.uk
Komu: lazarus@lists.lazarus.freepascal.org
Datum: 17.08.2015 12:18
Předmět: [Lazarus] LCL MouseMove event problem on QT/Linux



--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] New preprocessor directive

2015-05-17 Thread Vojtěch Čihák

Add I created code template for it: icr and it writes {$I %CURRENTROUTINE%} 
itself :-)
 
V.
__

Od: leledumbo leledumbo_c...@yahoo.co.id
Komu: lazarus@lists.lazarus.freepascal.org
Datum: 17.05.2015 13:54
Předmět: Re: [Lazarus] New preprocessor directive

At my request, Florian added 

{$I %CURRENTROUTINE%} 


to the list of possibilities, which means you can do nifty things as:


I usually use hardcoded strings for that, so this makes my coding life
easier :)
Thanks!



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-New-preprocessor-directive-tp4042241p4042246.html
 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-New-preprocessor-directive-tp4042241p4042246.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] TStringGrid.OnSelectEditor

2015-05-14 Thread Vojtěch Čihák

I tested with r. 49022. Works well.
 
Thank you!
 
__

Od: Jesus Reyes A. jesus...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 14.05.2015 09:05
Předmět: Re: [Lazarus] TStringGrid.OnSelectEditor


En Wed, 13 May 2015 19:48:56 -0500, Vojtěch Čihák vojtech.ci...@atlas.cz 
escribió:


Hi,
 
I got troubles with TStringGrid. When I set:
 
goAlwaysShowEditor:=False;
goEditing:=True;
 
OnSelectEditor is triggered always when I select any cell, even if editor 
(built-in or custom) is not shown yet.
When I click the cell for the second time, editor is shown and OnSelectEditor 
is triggered again.
 
I guess it's a bug, after all there are other events for selecting cell 
(OnSelection, OnSelectCell).
 
Is it by design or should I report?
 
Thanks, V.
 
P.S.:
When options are:
goAlwaysShowEditor:=True;
goEditing:=True;
 
OR
 
goAlwaysShowEditor:=False;
goEditing:=False;
 
OnSelectEditor works as expected.
I think is not a bug (at least that kind of bug that is against the 
documentation).But I see no reason why it should work the way it does now, 
please check r49016Jesus Reyes A. 

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] TStringGrid.OnSelectEditor

2015-05-13 Thread Vojtěch Čihák

Hi,
 
I got troubles with TStringGrid. When I set:
 
goAlwaysShowEditor:=False;
goEditing:=True;
 
OnSelectEditor is triggered always when I select any cell, even if editor 
(built-in or custom) is not shown yet.
When I click the cell for the second time, editor is shown and OnSelectEditor 
is triggered again.
 
I guess it's a bug, after all there are other events for selecting cell 
(OnSelection, OnSelectCell).
 
Is it by design or should I report?
 
Thanks, V.
 
P.S.:
When options are:
goAlwaysShowEditor:=True;
goEditing:=True;
 
OR
 
goAlwaysShowEditor:=False;
goEditing:=False;
 
OnSelectEditor works as expected.

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


Re: [Lazarus] Processing TCoolBar child by IDE

2015-05-11 Thread Vojtěch Čihák

Hi,
 
developing TCoolBar wasn't easy, one must deal with LCL austosizing mechanism, 
which is very sophisticated.
I know that in design-time is not band-height recalculated immediately. The 
reason is mainly I wanted to do CoolBar
efficient and avoid redundant recalculation (LCL triggers many resize events).
 
I understand you, it would be nice to have it perfect (panel will resize band 
and band will resize panel).
However, I wouldn't like to make big changes to design of TCoolBar, I happy it 
works and is stable :-).
 
BTW did you try TControlBar? Maybe it will suite you better.
 
__

Od: Michael W. Vogel m-w-vo...@gmx.de
Komu: lazarus@lists.lazarus.freepascal.org
Datum: 11.05.2015 15:00
Předmět: [Lazarus] Processing TCoolBar child by IDE


Hi,

I have a question / feature request for a TCoolBar at designtime and Lazarus 
IDE.

If I assign a control (e.g. TPanel) to a TCoolBar, a TCoolBand according to the 
dimensions of TPanels is created. Thats fine! If I change now the dimension of 
that control (at designtime), at runtime, the width of the TCoolBand got the 
width of the TCoolBand and the height got the height of
the control.

There are two features, what would be nice to have:

If the height of a TCoolBand child control is changed, the IDE should show the 
identical height at designtime, like at runtime.
If the width of a TCoolBand child control is changed, the width of the 
TCoolBand should also be changed.

As a workaround, you can move the control from the TCoolBand to a other parent, 
delete the TCoolBand and move the control back to the TCoolBar. Then a 
TCoolBand with the correct dimensions is created.

PS: I know, that the width can be changed by the user at runtime, so that a 
differentiation of designtime and runtime has to be made.

Hope, you understand my poor English.

Michael


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Processing TCoolBar child by IDE

2015-05-11 Thread Vojtěch Čihák

Now you surprised me. I completely forgot I used generics, I had to look to old 
sources
because I wasn't sure whether it came from me or from someone else.
 
Anyway, FPC 2.6.4 is not able to compile it? You are the first who say it.
 
I guess replacing generics with TFPList shouldn't be difficult.
 
V.
__

Od: Jesus Reyes jesus...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 11.05.2015 22:09
Předmět: Re: [Lazarus] Processing TCoolBar child by IDE


En Mon, 11 May 2015 09:18:01 -0500, Vojtěch Čihák vojtech.ci...@atlas.cz 
escribió:


Hi,
 
developing TCoolBar wasn't easy, one must deal with LCL austosizing mechanism, 
which is very sophisticated.
I know that in design-time is not band-height recalculated immediately. The 
reason is mainly I wanted to do CoolBar
efficient and avoid redundant recalculation (LCL triggers many resize events).
 
I understand you, it would be nice to have it perfect (panel will resize band 
and band will resize panel).
However, I wouldn't like to make big changes to design of TCoolBar, I happy it 
works and is stable :-).
 
Any change that TCtrlBands  can be re-implemented to not use generics?, while 
they apparently work fine on FPC trunk, they are not guaranteed to work on FPC 
2.6.X. (specially advanced features like the one in r 45860) and 1.4 was 
apparently released with this changes.In fact recompiling 1.4 on Mac using 
2.6.X failed here :(.Jesus Reyes A.

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] What is main form? (Splash question)

2015-05-08 Thread Vojtěch Čihák

Hi,
 
what is main form from POV of Lazarus?
I made this demo:
 
program project1;
{$mode objfpc}{$H+}
 
uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  sysutils,
  Interfaces, // this includes the LCL widgetset
  Forms, Unit1, Unit2, Unit3
  { you can add units after this };
 
{$R *.res}
 
begin
  RequireDerivedFormResource:=True;
  Application.Initialize;
 // Application.CreateForm(TFrmSplash, FrmSplash);
 // sleep(750);
  Application.CreateForm(TFrmMain, FrmMain);
  Application.CreateForm(TForm3, Form3);
 // FrmSplash.Free;
  Application.Run;
end.
        
It works well, i.e. when I close FrmMain, the application is correctly 
terminated.
But when I uncomment those three lines, i.e. I add the splash screen to 
application, I got troubles.
Splash screen is displayed, both forms too but when I close FrmMain, Form3 
persists.
When I close Form3, application is not terminated although there is no 
remaining form.
Lazarus title bar still shows (debugging) and I have to use menu 
Project-Stop.
It seems that after adding splash screen is FrmMain no longer considered as a 
main form.
Is it bug? Or do I something wrong?
 
Thanks for help,
 
V.

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


Re: [Lazarus] What is main form? (Splash question)

2015-05-08 Thread Vojtěch Čihák

Thanks, I tried to look to Lazarus sources before but I don't where is *.lpr of 
Lazarus.
 

So I suggest you

create the splash form after the main form, but show the splash form
before the main form.
 
It's possible, but purpose ofsplash screen is to fill the gap until main form 
is created ? :-)
 
V.
__

Od: Graeme Geldenhuys mailingli...@geldenhuys.co.uk
Komu: lazarus@lists.lazarus.freepascal.org
Datum: 08.05.2015 17:59
Předmět: Re: [Lazarus] What is main form? (Splash question)


On 2015-05-08 16:46, Vojtěch Čihák wrote:

It seems that after adding splash screen is FrmMain no longer considered
as a main form.


As far as I know, the first form that gets created is considered the
main form and the one that controls the lifespan of the application.
When the main form closes, the application normally terminates.

In fpGUI I can simply assign a new instance to fpgApplication.MainForm,
but it doesn't seem like LCL as a MainForm property. So I suggest you
create the splash form after the main form, but show the splash form
before the main form.

I also suggest you take a look at what Lazarus IDE itself does. After
all, it displays a splash screen. Learn by example. ;-)

Regards,
 - Graeme -

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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] What is main form? (Splash question)

2015-05-08 Thread Vojtěch Čihák

Thanks.
 
FrmSplash:=TFrmSplash.Create; instead of Application.CreateForm(); does the job.
It is also what Lazarus does in lazarus.pp.
 
The reference code from Giuliano works well, especially 
Application.ProcessMessages; is necessary.
FrmSplash.Update can be omitted.
 
Problem solved.
__

Od: Giuliano Colla giuliano.co...@fastwebnet.it
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 08.05.2015 20:13
Předmět: Re: [Lazarus] What is main form? (Splash question)


Il 08/05/2015 17:46, Vojtěch Čihák ha scritto:

Is it bug? Or do I something wrong?


The following code (where form2 is the splash screen) works fine under 
Lazarus



  RequireDerivedFormResource := True;
  Application.Initialize;
  Form2 := TForm2.Create(Nil);
  Form2.Show;
  Form2.Update;
  Application.ProcessMessages;
  Sleep(3000);
  Application.CreateForm(TForm1, Form1);
  Form2.Hide;
  Form2.Free;
  Application.Run;

You may use as a guideline for your purposes

Giuliano


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] What is main form? (Splash question)

2015-05-08 Thread Vojtěch Čihák

Thanks,
 
the sleep() was there because demo is simple and is executed too fast and I 
needed to see whether splash is actually displayed.
In the real project I will not use sleep() in *.lpr nor elsewhere. I don't want 
to waste user's time :) 
 
__

Od: Mattias Gaertner nc-gaert...@netcologne.de
Komu: lazarus@lists.lazarus.freepascal.org
Datum: 08.05.2015 21:52
Předmět: Re: [Lazarus] What is main form? (Splash question)


On Fri, 08 May 2015 17:46:10 +0200
Vojtěch Čihák vojtech.ci...@atlas.cz wrote:


Hi,
 
what is main form from POV of Lazarus?


It is the first form created with Application.CreateForm, which
FormStyle is neither fsSplash nor fsMDIChild.



I made this demo:
 
program project1;
{$mode objfpc}{$H+}
 
uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  sysutils,
  Interfaces, // this includes the LCL widgetset
  Forms, Unit1, Unit2, Unit3
  { you can add units after this };
 
{$R *.res}
 
begin
  RequireDerivedFormResource:=True;
  Application.Initialize;
 // Application.CreateForm(TFrmSplash, FrmSplash);


Don't forget to set FrmSplash.FormStyle to fsSplash.


 // sleep(750);


On many platforms this won't work. Use
Application.ProcessMessages instead.

In general: don't use sleep in the main thread.


  Application.CreateForm(TFrmMain, FrmMain);
  Application.CreateForm(TForm3, Form3);
 // FrmSplash.Free;
  Application.Run;
end.


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] What is main form? (Splash question)

2015-05-08 Thread Vojtěch Čihák

I did it too. I have checkbox in application options, so users can disable 
splash screen.
Variable SplashEnabled is loaded from config files and its default is True 
(when no configs exist yet).
Therefore is splash always displayed when application run for the first time.
 
__

Od: Graeme Geldenhuys mailingli...@geldenhuys.co.uk
Komu: lazarus@lists.lazarus.freepascal.org
Datum: 09.05.2015 00:03
Předmět: Re: [Lazarus] What is main form? (Splash question)


On 2015-05-08 20:59, Vojtěch Čihák wrote:

the sleep() was there because demo is simple and is executed too fast
and I needed to see whether splash is actually displayed.


If you have the time, take a look at the splashscreen demo included with
fpGUI.  fpgui/examples/gui/splashscreen/

There I use a timer in the splash screen, so it will destroy itself. So
the splash screen is still visible for a short while, while the main
form is displayed. Clicking on the splash screen makes it disappear
instantly. In the real world, I would also make the splash screen
optional via an application setting, or the usual --no-splash or -ns
command line parameters.

Regards,
 - Graeme -

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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] SVG format for icons and other graphics

2015-05-07 Thread Vojtěch Čihák

Hi,
Inkscape is excellent open source application for designing vector graphics.
There is also console tool for converting svg-png: rsvg-convert
 
I use this script which converts all svg files in directory to png images with 
various sizes
and places them to directories:
 
#!/bin/bash
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 64 -h 64 -o 
../default64normal/`echo $i | sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 48 -h 48 -o 
../default48normal/`echo $i | sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 32 -h 32 -o 
../default32normal/`echo $i | sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 24 -h 24 -o 
../default24normal/`echo $i | sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 16 -h 16 -o 
../default16normal/`echo $i | sed -e 's/svg$/png/'`; done     
 
V.
__

Od: Juha Manninen juha.mannine...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 07.05.2015 07:57
Předmět: [Lazarus] SVG format for icons and other graphics


Moved from the splash screen thread.

On Wed, May 6, 2015 at 11:04 AM, Sandro Cumerlato
sandro.cumerl...@gmail.com wrote:

I'd like to recommend SVG format for new graphics.


This is about a scalable vector graphics format. The idea is not to
change the graphics design but to make everything scalable.

Sandro mentioned this idea to me privately, too, after having very
small icons in a Windows 8.1 machine. I think it is a good idea but
technically challenging. It involves choosing a graphics library etc.

Sandro, could you please take lead in this issue. You are a talented
graphics programmer after all. Make a plan and discuss it here.
None of the current core developers is working on such issues, thus
(difficult) questions may not be answered.
When learning code, questions come up and usually they are answered,
but after certain point nobody has answers. You just have to figure
things out by yourself.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] (no subject)

2015-05-06 Thread Vojtěch Čihák

Hi,
 
I like current splash (cheetah on the pillar). Its timeless, I wouldn't change 
it.
The only aesthetic flaw is that it is a little empty in the middle.
It is problem of Splash screen only.
In About Box - there are written infos about Lazarus, FPC and system, so it 
looks fine.
 
V.
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] User defined markup question

2015-05-04 Thread Vojtěch Čihák

Thanks, start/end bounds did the job.
__

Od: Martin Frb laza...@mfriebe.de
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 05.05.2015 01:04
Předmět: Re: [Lazarus] User defined markup question



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] User defined markup question

2015-05-04 Thread Vojtěch Čihák

I didn't write it explicitly, I want that only LProjects become green while 
TGLProjects remain default. 
__

Od: Vojtěch Čihák vojtech.ci...@atlas.cz
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 04.05.2015 22:00
Předmět: [Lazarus] User defined markup question


 
Hi,
 
how to setup User Defined Markup in Source Editor so it changes style (color, 
bold etc.)? (See screenshot).
There are some properties like Priority or Set Bound at Start/End but I don't 
know how to use them properly.
 
Thanks.
 
V.


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] User defined markup question

2015-05-04 Thread Vojtěch Čihák

 
Hi,
 
how to setup User Defined Markup in Source Editor so it changes style (color, 
bold etc.)? (See screenshot).
There are some properties like Priority or Set Bound at Start/End but I don't 
know how to use them properly.
 
Thanks.
 
V.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Two stage shortcuts question

2015-04-28 Thread Vojtěch Čihák
Hi,
 
how are invented two-stage shortcuts?
 
I made a macro (project related, i.e. saved in project session) and I assigned 
shortcut CTRL+M, CTRL+J. It worked for a while.
 
Now when I try it, CTRL+M  does nothing (OK), and CTRL+J does not write any 
text but Template Completion window is opened (since it has assigned CTRL+J).
 
Is it my mistake or a bug?
 
Thanks,
 
V.
 

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


Re: [Lazarus] Two stage shortcuts question

2015-04-28 Thread Vojtěch Čihák

Thanks,
 
I checked CTRL+M, it is assigned to many macros, CTRL+M,L or CTRL+M, CTRL+L 
(i.e. some of them has CTRL in the second stage, others not). All those macros 
works.
 
I tried to restart Lazarus, no effect.
 
I tried to change the macro from CTRL+M,CTRL+J to CTRL+M,J. After this change, 
both CTRL+M,J and CTRL+M,CTRL+J triggers macro, while CTRL+J opens Template 
Completion.
When I changed macro back to CTRL+M,CTRL+J it stopped working again.
 
V.
__

Od: Martin Frb laza...@mfriebe.de
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 28.04.2015 18:01
Předmět: Re: [Lazarus] Two stage shortcuts question



Check in the keyboard map (tools / options / editor / keymap), what is 
assigned to ctrl-m


Also there is an issue with the macr package. IF you start 2 IDE at the 
same time (the actual startup must be at the same time [1]), then they 
both access the same file, used to check that the pascalscript 
extensions works.
Since they block each other, one will fail and it will write to the 
config that macros do not work.


You can re enable them in tools options, but it looses all the assgined 
keys.



[1] if you start them with enough time in between, you can run 10 or 
more instances in parallel and all is fine


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Two stage shortcuts question

2015-04-28 Thread Vojtěch Čihák

I opened issue 
 
http://bugs.freepascal.org/view.php?id=27992
__

Od: Martin Frb laza...@mfriebe.de
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 28.04.2015 19:40
Předmět: Re: [Lazarus] Two stage shortcuts question


Can you report an issue on the bugtracker 
please? Od: Martin Frb 
laza...@mfriebe.de laza...@mfriebe.de
 Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org 
lazarus@lists.lazarus.freepascal.org
 Datum: 28.04.2015 18:01
 Předmět: Re: [Lazarus] Two stage shortcuts question


Check in the keyboard map (tools / options / editor / keymap), what is 
assigned to ctrl-m


Also there is an issue with the macr package. IF you start 2 IDE at the 
same time (the actual startup must be at the same time [1]), then they 
both access the same file, used to check that the pascalscript 
extensions works.
Since they block each other, one will fail and it will write to the 
config that macros do not work.


You can re enable them in tools options, but it looses all the assgined 
keys.



[1] if you start them with enough time in between, you can run 10 or 
more instances in parallel and all is fine


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


--___Lazarus mailing 
listlaza...@lists.lazarus.freepascal.org 
Lazarus@lists.lazarus.freepascal.orghttp://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Moving items between actionlist

2015-04-20 Thread Vojtěch Čihák

Wouldn't be enough to close project, manually edit *.lfm file(s) and reopen 
project?
I guess *.lfm is the only place which states that Action A belongs to 
ActionList B.
 
V.
 
__

Od: Torsten Bonde Christiansen t...@epidata.info
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 20.04.2015 14:45
Předmět: [Lazarus] Moving items between actionlist


I am in for some tidious work, copying a large amount of actions between two 
actionlist.

So I started wondering - is there not a simple cutpaste functionality to 
cut/move an action
from one list to another?
Both actionlists are on the same form, so all associated OnExecute methods are 
unchanged, so
basically it is a simply move operation.

I have tried dragging actions between the two actionlist editors, but that is 
not implemented. Also
dragging in the Object Inspector does not work, it show a do not drop icon 
with the mouse.

Regards,
Torsten Bonde Christiansen.


 


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] upper lower case problem

2015-04-19 Thread Vojtěch Čihák

I just tested on Qt (Lazarus 1.5 r48755M FPC 3.1.1 x86_64-linux-qt)
and works well. Isn't it wrong autosizing of TLabel on GTk2 rather than some 
encoding problem?
 
V.
__

Od: Juha Manninen juha.mannine...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 19.04.2015 23:00
Předmět: Re: [Lazarus] upper  lower case problem


On Sun, Apr 19, 2015 at 7:59 PM, FreeMan freema...@delphiturkiye.com 
freema...@delphiturkiye.com wrote:
fpc r30616  lazarus r48768 yosemite x64qt
I added test form and unit. I added screenshot 'cos in code Upper__ variable 
and How view in form much better then write. Upperxxxcase hide dots
Is this bug in lazarus or fpc ? or what worng ?
That spells are Turkish spells.Did you follow the instructions here :  
http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus 
http://wiki.freepascal.org/Better_Unicode_Support_in_LazarusJuha

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] How to stream TColor in hexadecimal format?

2015-04-14 Thread Vojtěch Čihák

Thanks,
 
it does not work. Where should I place such overloaded procedure?
 
The reason I need it is that the *.xml file is config file so there is a chance 
that someone will edit it manually.
Or there is possibility to change declaration from TColor to string.
 
V.
__

Od: Mattias Gaertner nc-gaert...@netcologne.de
Komu: lazarus@lists.lazarus.freepascal.org
Datum: 14.04.2015 02:09
Předmět: Re: [Lazarus] How to stream TColor in hexadecimal format?


Maybe you can overload
 RegisterIntegerConsts(TypeInfo(TColor), TIdentToInt(@IdentToColor),
TIntToIdent(@ColorToIdent)); 
with your own functions and write colors as h00FEDCBA.


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Strange Alphasort in ListView

2015-04-14 Thread Vojtěch Čihák

I understand. Method Sort; is protected (as it is in Delphi).
 
You have probably no other choice than do
 
 ListView1.SortDirection:=sdDescending;
 ListView1.SortDirection:=sdAscending;
 
which works but it is unefficient, sorting is done twice.
 
I tried:
 ListView1.BeginUpdate;
 ListView1.SortDirection:=sdDescending;
 ListView1.EndUpdate;
 ListView1.SortDirection:=sdAscending;but it doesn't help, sorting is still 
done twice (at least on Qt).ListView has some flags to avoid sorting but those 
flags are private.V. 
 
__

Od: Valdas Jankūnas zmu...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 14.04.2015 15:02
Předmět: Re: [Lazarus] Strange Alphasort in ListView


2015.04.14 15:34, Vojtěch Čihák rašė:

No, it isn't a bug.

In sources, you can see comment:

function AlphaSort: Boolean; // always sorts column 0 in sdAscending order


Looked not in *primary* source (Google, Documentation) :)



So if you want other sorting, you must set three sort-related properties:

ListView1.SortColumn:=1;
ListView1.SortDirection:=sdAscending;
ListView1.SortType:=stText;

It works, I just tested in Qt.


Why I came to AlphaSort: in my source ListView is cleared (columns stays 
same) and populated with new info. After that current column (say 
SortColumn=1) is no sorted (Autosort is TRUE; tried in Qt, Gtk2 and Win) 
so I must somehow to trigger sorting. But how?



--
  Valdas Jankūnas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Strange Alphasort in ListView

2015-04-14 Thread Vojtěch Čihák

Delphi has no properties AutoSort, SortColumn and SortDirection nor methods 
BeginUpdate and EndUpdate.
 
I would provide a patch which will set Flag lffPreparingSorting on BeginUpdate 
and reset it on EndUpdate.
+one additional call of Sort on EndUpdate (maybe only if AutoSort is True) OR 
move Sort; form protected to public.
 
What is preferred?
 
V.
__

Od: Vojtěch Čihák vojtech.ci...@atlas.cz
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 14.04.2015 15:23
Předmět: Re: [Lazarus] Strange Alphasort in ListView


I understand. Method Sort; is protected (as it is in Delphi).
 
You have probably no other choice than do
 
 ListView1.SortDirection:=sdDescending;
 ListView1.SortDirection:=sdAscending;
 
which works but it is unefficient, sorting is done twice.
 
I tried:
 ListView1.BeginUpdate;
 ListView1.SortDirection:=sdDescending;
 ListView1.EndUpdate;
 ListView1.SortDirection:=sdAscending;but it doesn't help, sorting is still 
done twice (at least on Qt).ListView has some flags to avoid sorting but those 
flags are private.V. 
 
__

Od: Valdas Jankūnas zmu...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 14.04.2015 15:02
Předmět: Re: [Lazarus] Strange Alphasort in ListView


2015.04.14 15:34, Vojtěch Čihák rašė:

No, it isn't a bug.

In sources, you can see comment:

function AlphaSort: Boolean; // always sorts column 0 in sdAscending order


Looked not in *primary* source (Google, Documentation) :)



So if you want other sorting, you must set three sort-related properties:

ListView1.SortColumn:=1;
ListView1.SortDirection:=sdAscending;
ListView1.SortType:=stText;

It works, I just tested in Qt.


Why I came to AlphaSort: in my source ListView is cleared (columns stays 
same) and populated with new info. After that current column (say 
SortColumn=1) is no sorted (Autosort is TRUE; tried in Qt, Gtk2 and Win) 
so I must somehow to trigger sorting. But how?



--
  Valdas Jankūnas

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


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Strange Alphasort in ListView

2015-04-14 Thread Vojtěch Čihák

No, it isn't a bug.
 
In sources, you can see comment:
 
function AlphaSort: Boolean; // always sorts column 0 in sdAscending order
 
So if you want other sorting, you must set three sort-related properties:
 
ListView1.SortColumn:=1;
ListView1.SortDirection:=sdAscending;
ListView1.SortType:=stText;
 
It works, I just tested in Qt.
 
V.
__

Od: Valdas Jankūnas zmu...@gmail.com
Komu: General mailing list laza...@lazarus.freepascal.org
Datum: 14.04.2015 13:53
Předmět: [Lazarus] Strange Alphasort in ListView


Hello,

when I execute ListView.AlphaSort then ListView always sorts first 
column with default sort order. Also it resets SortColumn property to 
zero and SortOrder to default (see attached screenshot: before and after 
execution of Alphasort).


 Why it not sorts current SortColumn with current SortOrder? Is this a Bug?

 Tried in Qt, Gtk2 and Win widgetsets - same strange result.


--
  Valdas Jankūnas


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] How to stream TColor in hexadecimal format?

2015-04-13 Thread Vojtěch Čihák
Hello,
 
how to stream TColor in hexadecimal format?
 
Currently, TColor is streamed as
 
Color = 5810431
Color = clTeal
 
in *.lfm or
 
integer name=ClrDWBCurve value=33023/
ident name=ClrSF2Curve value=clRed/
 
in *.xml.
How can I stream it in $00FEDCBA format?
 
In the worst case, I probably can move those properties from published to 
public and TPersistent.DefineProperties.
Will it work? Or is there some more elegant way?
 
Thanks for help, V.

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


Re: [Lazarus] Recent changes in XML?

2015-04-09 Thread Vojtěch Čihák

I got it.
 
In Laz2_XMLCfg is class TXMLObjectWriter = class(TAbstractObjectWriter)
 
and this class does not implement abstract method WriteSignature. (The same for 
Read...).
 
So it is a Lazarus issue but solution will need some FPC version directives 
otherwise
Lazarus will fail to compile with older versions of FPC (before 
Read/WriteSignature was introduced).
 
Thanks, V.
 
__

Od: zeljko zel...@holobit.net
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 09.04.2015 15:42
Předmět: Re: [Lazarus] Recent changes in XML?


On 04/09/2015 03:36 PM, Vojtěch Čihák wrote:


Hi,

I am not sure if this XML issue belong to Lazarus or FPC.

I noticed that my app. gives warning Constructing a class TXMLObjectWriter with 
abstract method WriteSignature and later crashes.
So I tried demo streamasxmldemo from lazarus/examples and it is the same: mainunit.pas(109,52) 
Warning: Constructing a class TXMLObjectWriter with abstract method WriteSignature
The demo crashes at startup.

The class is in Laz2_XMLCfg but it uses TWriter and TReader from 
../rtl/../classes/..

TWriter has property Driver: TAbstractObjectWriter which is IMO causes the 
troubles.

I can say that I moved from FPC 30069 to 30494 yesterday and Lazarus from 485xx 
to 48681, so the changes had to be in this range.

I can make a report but tell me at least if it is Lazarus or FPC bug.


AFAIR, Read/WriteSignature is introduced recently in fpc trunk. So it's 
lazarus problem if read/write signature isn't implemented since fpc 
implementation is virtual; abstract;. But on the other side question is 
if read/write signature is called anywhere, so maybe it does not produce 
crash.


zeljko



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


[Lazarus] Recent changes in XML?

2015-04-09 Thread Vojtěch Čihák
 
Hi,
 
I am not sure if this XML issue belong to Lazarus or FPC.
 
I noticed that my app. gives warning Constructing a class TXMLObjectWriter 
with abstract method WriteSignature and later crashes.
So I tried demo streamasxmldemo from lazarus/examples and it is the same: 
mainunit.pas(109,52) Warning: Constructing a class TXMLObjectWriter with 
abstract method WriteSignature
The demo crashes at startup.
 
The class is in Laz2_XMLCfg but it uses TWriter and TReader from 
../rtl/../classes/..
 
TWriter has property Driver: TAbstractObjectWriter which is IMO causes the 
troubles.
 
I can say that I moved from FPC 30069 to 30494 yesterday and Lazarus from 485xx 
to 48681, so the changes had to be in this range.
 
I can make a report but tell me at least if it is Lazarus or FPC bug.
 
Thanks, V.
 
 
 

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


[Lazarus] Cannot bulid Lazarus Qt

2015-04-08 Thread Vojtěch Čihák

 
Hi, I got strange problem I didn't see ever before.
 
I cannot build Lazarus for Qt. It always falls to GTk2.
 
I got set Qt in Configure Build Lazarus Dialog and Build with Clean All 
option.
 
I also tried to buid from console: make clean all useride LCL_PLATFORM=qt
 
but no luck.
 
Linux 64-bit, FPC 3.1.1 (r.30494)
Qt 4.8.6
Lazarus 1.5 r48562:48630M FPC 3.1.1 x86_64-linux-gtk 2
 
(Last workig Qt build was Lazarus 1.5 r48530M FPC 3.1.1 30069 x86_64-linux-qt)

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


Re: [Lazarus] Cannot bulid Lazarus Qt

2015-04-08 Thread Vojtěch Čihák

Thanks for assistance.
 
Finally, there were something wrong with configuration rather than FPC or 
Lazarus.
 
Even if I had Qt in combobox or I used command line:  make all useride 
LCL_PLATFORM=qt
it was built as gtk2.Now I successfuly compiled r.48681 with FPC r.30496. I 
think Lazarus and FPC are OK (but I didn't try 
BIGIDE).V.__

Od: zeljko zel...@holobit.net
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 08.04.2015 15:29
Předmět: Re: [Lazarus] Cannot bulid Lazarus Qt


On 04/08/2015 01:41 PM, Vojtěch Čihák wrote:

Hi, I got strange problem I didn't see ever before.

I cannot build Lazarus for Qt. It always falls to GTk2.

I got set Qt in Configure Build Lazarus Dialog and Build with Clean
All option.

I also tried to buid from console: make clean all useride LCL_PLATFORM=qt

but no luck.

Linux 64-bit, FPC 3.1.1 (r.30494)

Qt 4.8.6

Lazarus 1.5 r48562:48630M FPC 3.1.1 x86_64-linux-gtk 2

(Last workig Qt build was Lazarus 1.5 r48530M FPC 3.1.1 30069
x86_64-linux-qt)


Probably related to this:
http://bugs.freepascal.org/view.php?id=27806 
http://bugs.freepascal.org/view.php?id=27806

2.6.4 and fixes_3_0 works ok.

zeljko

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


Re: [Lazarus] Mild bug in 1.4RC2?

2015-04-07 Thread Vojtěch Čihák

I cannot reproduce in 1.4RC3 under Wine.
 
V.
__

Od: Juha Manninen juha.mannine...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 03.04.2015 14:02
Předmět: Re: [Lazarus] Mild bug in 1.4RC2?


On Thu, Apr 2, 2015 at 9:44 PM, Vojtěch Čihák vojtech.ci...@atlas.cz wrote:

I'm sure it was this: http://bugs.freepascal.org/view.php?id=23891 
http://bugs.freepascal.org/view.php?id=23891


Lazarus 1.4 was branched at 11 of January this year.
The bug was fixed a long before that, thus the fix is included there.
According to JuuS the problem happens in 1.4RC2. Can other people reproduce it?

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] BUG: Gtk MouseExit, MouseUp

2015-04-07 Thread Vojtěch Čihák

Yes, already reported by me, 3 years ago :-)
 
http://bugs.freepascal.org/view.php?id=21982
 
V.
 
__

Od: Anthony Walter sys...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 07.04.2015 23:16
Předmět: [Lazarus] BUG: Gtk MouseExit, MouseUp


I can't believe this bug hasn't been reported,so I think I'll ask before 
submitting a mantis report.On Linux Gtk2 with TGraphicControl derived classes 
there seems to be a problem with reliable MouseExit and MouseUp firing.I had to 
write some work arounds which are still unreliable, but here's the basic gist 
of the problem.With TGraphicControl derived classes on Gtk2 sometimes MouseExit 
or MouseUp do not fire. If you mouse the mouse over a graphic control, press 
the left mouse button, mouse out of the control and release the left button, 
the OnMouseUp event is not invoked nor is the virtual MouseUp 
method.Example:procedure TForm1.Shape1MouseUp(Sender: TObject; Button: 
TMouseButton;  Shift: TShiftState; X, Y: Integer);begin  Tag := Tag + 1;  
Caption := IntToStr(Tag);end;  With a TShape the MouseUp will only fire if the 
mouse is released while over the control. On Windows and Macintosh this is not 
the standard behavior. MouseCapture has no effect in fixing this problem. Cur
iously TSpeedButton seems to have some special logic that gets around the 
problem on Gtk2 which I've copied to my TGraphicControls but the problem still 
exists with other graphic controls.And then there is the MouseExit problem. 
It's not reliably being fired on Gtk2 graphic controls. If you have 2 graphic 
controls close together or you mouse the mouse too fast between controls one of 
them occasionally doesn't receive the MouseExit. This causes issues with 
graphic controls which might display different states based on whether the 
mouse is in them or out of them.Have these issues been reported before? They 
seem to be quite obvious and I'm struggling to find that these problems haven't 
been reported or discussed before.

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Assembler window

2015-04-06 Thread Vojtěch Čihák
 
Hello,
 
is there some option to auto-close Assembler window when project is stopped?
 
It is useful when program crashes, but later makes no sense, it is full of
 
??
??
??
 
Thanks, V.

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


Re: [Lazarus] TComboBox.DropDownCount has no effect.

2015-04-04 Thread Vojtěch Čihák

Hi,
 
DropDownCount works well in Qt but has no effect in GTk2 (and probably in 
Carbon too).
You can also see it in OI, tab Restricted.
 
V.
__

Od: Donald Ziesig don...@ziesig.org
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 04.04.2015 20:06
Předmět: [Lazarus] TComboBox.DropDownCount has no effect.


Hi All!

I have several apps that use combo boxes for (e.g.) Minutes.  For 
Minutes, the items range from 0 to 59.   The Object Inspector shows that 
the DropDownCount is 8, but no matter what I put in there, I get the 
entirety of the items.   For Minutes, the selection box spans the 
display from the top to the bottom, with the top part being blank and 
the bottom (from the position of the control itself) with 0, 1, ... 
until it hits the bottom of the screen.


To test this, create an application, put a TComboBox on the form, 
populate the Items with a set of items having more than 8 entries. Run 
the app and look at the number of items in the drop-down list. Change 
the DropDownCount to something like 3 and try again.  It always shows 
every item in the list no matter what is put in the Object Inspector.  
Additionally, in the FormCreate event, try setting 
ComboBox1.DropDownCount to something less than the number of Items.  The 
new value is totally ignored.


I am using Lazarus 1.4RC2 with no modifications on Linux Mint 17.

Am I doing something wrong?

Thanks,

Don Ziesig

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] how to handle Shift=[ssCtrl]

2015-04-02 Thread Vojtěch Čihák

You are right, what I said is valid for MouseDown.
In MouseUp you have ssCtrl in Shift and Buton=mbRight
 
V.
 
__

Od: FreeMan freema...@delphiturkiye.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 02.04.2015 14:29
Předmět: Re: [Lazarus] how to handle Shift=[ssCtrl]


in mouseup tnotifyevent,
shift parameter has not value of mouse button, values is zero. Button 
parameter has value, mbRight etc.
if ssCtrl in Shift then...  has same result, I mean not handle ctrl or 
other keys(ssalt, ssshift)


On 2.04.2015 14:54, Vojtěch Čihák wrote:


Hi,

You must use:

if ssCtrl in Shift then ...

instead.

That's because mouse-buttons are in Shift too. If you do 
Ctrl+right-click, then Shift=[ssRight, ssCtrl]. And possibly something 
else (ssCaps).


V.




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] how to handle Shift=[ssCtrl]

2015-04-02 Thread Vojtěch Čihák

Hi,
 
You must use:
if ssCtrl in Shift then ...
instead.
 
That's because mouse-buttons are in Shift too. If you do Ctrl+right-click, then 
Shift=[ssRight, ssCtrl]. And possibly something else (ssCaps).
 
V.
__

Od: FreeMan freema...@delphiturkiye.com
Komu: Lazarus mail list Lazarus@lists.lazarus.freepascal.org
Datum: 02.04.2015 13:37
Předmět: [Lazarus] how to handle Shift=[ssCtrl]


fpc r30400 lazarus r48585 yosemite qt x64

procedure TFRM_.TLabel1_MouseUp(Sender: TObject; Button: TMouseButton; 
Shift: TShiftState; X  , Y: Integer);

begin
if(Button=mbRight)then begin
  if Shift=[ssCtrl] then begin
   ShowMessage('ctrl key pressed :');
  end;
end;
end;

while debuging, move mouse on Shift and hint show values is 128, 
ssCtrl values is SSCTRL. and its not aqual, I mean I can not handle ctrl 
+ right click on Tlabel.

command key = 4
ssctrl =128
ssAlt = 2
ssShift = 1
ssctrl + ssAlt = 130
some shift values from hint

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Mild bug in 1.4RC2?

2015-04-02 Thread Vojtěch Čihák

Hi,
 
this is already resolved in trunk.
 
V.
 
__

Od: JuuS j...@mykolab.ch
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 02.04.2015 18:53
Předmět: [Lazarus] Mild bug in 1.4RC2?


Hi all,

I'm working with Lazarus 1.4RC2 on kubuntu 14.04.

Tonight while designing a form I had a a tcheckbox and a tcombobox that
had become hidden. I went to the object inspector and set the Left
property to 1, hit enter, then when I went to move the control to the
proper place with the mouse it went flying off in y direction by more
than a 1000 pixels.

This happened with both controls. I then tried it with a tmemo and other
weird movements and controls flying out of the form's bounds.

It only happens (also with top property) when the focus is still on the
property of the co-ordinate.

Steps to reproduce:

select a tcheckbox or whatever. Go to object inspector. double click the
left property to select the pixels offset. Type 1 and hit enter. Now,
with the mouse, simply try to drag that control to another position.

If the focus is not on the left or top in the object inspector
everything can be moved with no problems.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Mild bug in 1.4RC2?

2015-04-02 Thread Vojtěch Čihák

I'm sure it was this: http://bugs.freepascal.org/view.php?id=23891 
__

Od: Juha Manninen juha.mannine...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 02.04.2015 20:09
Předmět: Re: [Lazarus] Mild bug in 1.4RC2?


On Thursday, April 2, 2015, Vojtěch Čihák vojtech.ci...@atlas.cz 
vojtech.ci...@atlas.cz wrote:
 
this is already resolved in trunk.
 Do you know the revision? Is there a bug report? Maybe it should be merged for 
1.4.Juha

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Coolbar: IDE shows a drag cursor on buttons

2015-03-31 Thread Vojtěch Čihák

Hi,
 
I ask here because I wasn't enough fast to ask on bugtracker. Issue is already 
closed.
 
About 27762: IDE shows a drag cursor on the coolbar
 
IMO it was GTk2 issue rather than CoolBar issue, I couldn't reproduce on Qt.
 
Cursor changing was implemented intentionally, if coolband can be sized, user 
can see crHSplit before he presses left mouse button and 
if coolband can be moved, user can see crDrag before he actually presses mouse. 
Someone wanted it on forum and I found it user freindly too.
 
While I think the patch is not wrong, I still would like to revert previous 
behviour and the real issue should be resolved: Gtk2 speed buttons should not 
accept cursor of parent
and should use their own.
 
V.

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


Re: [Lazarus] Coolbar: IDE shows a drag cursor on buttons

2015-03-31 Thread Vojtěch Čihák

OK, so the patch is fine.
 
V.
__

Od: Martin Frb laza...@mfriebe.de
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 01.04.2015 00:13
Předmět: Re: [Lazarus] Coolbar: IDE shows a drag cursor on buttons

The change was (afaik) not because of the GTK part. I wrote (none public) before about the drag cursor being always shown: 
Well at least for Windows that is wrong. (And I guess for other OS it is too) 

The drag cursor is to b shown while dragging. The drag cursor is not meant to be an indicator of possible dragging. 

And dragging does not start with mouse down (so the cursor does not change on mouse down). Dragging starts, when the cursor has been moved a certain distance, while the button was held down. That makes it different to a click. The distance is configured in the windows settings. So it should be retrieved from the windows API. 
This is how all applications on window behave. Showing the drag cursor while dragging is not active is counter intuitive. When and while it was happening, I always thought the IDE had started dragging (somehow triggered despite I did not click the mouse)



--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] svn version of Lazarus broken?

2015-03-30 Thread Vojtěch Čihák

Hi,
 
On Linux (Lazarus 1.5 r48530M FPC 3.1.1 x86_64-linux-qt) I can drop SynMemo on 
form.
 
Did you build with Clean All ?
 
V.
__

Od: John Landmesser jmlandmes...@gmx.de
Komu: Lazarus@lists.lazarus.freepascal.org
Datum: 30.03.2015 18:22
Předmět: [Lazarus] svn version of Lazarus broken?


Hi,

if i compile todays ( 30.03.15 ) svn Version of Lazarus,  TSynMemo for 
example can't be dropped on a form:


Message:
Fehler beim Erzeugen der Komponente: TSynMemo Invalid type cast

Lazarus 1.5 r48534 FPC 2.6.4 i386-win32-win32/win64

Before that Lazarus wants to add some synedit units to the uses clause 
of my project that uses TSynMemo , but that perhaps went wrong too?


perhaps somebody else has this issue too?

For lazarus on linux everything is ok!!

Lazarus 1.5 r47221 FPC 2.6.4 x86_64-linux-gtk 2



 John Landmesser

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Sorted editor tabs

2015-03-22 Thread Vojtěch Čihák

Hi,

I love the new feature that the editor notebook can display files now in 
multiple tab rows

 
How can I activate this feature? Is it avaiable in Qt? I have Laz. trunk.
 
Thanks.
 
V.
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Sorted editor tabs

2015-03-22 Thread Vojtěch Čihák

Hi, I created a trivial demo of pagecontrol with grouped tabs.
 
Tabs are grouped like it was in Opera12. Holding mouse down opens the menu.
 
It works on Qt and GTk2.
 
However, Drag+Drop operations and proper group management is a lot of work.
 
V.
 
__
Project group support would be a huge help here.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Startup delay of project (Qt)

2015-03-07 Thread Vojtěch Čihák

Thanks,
 
setting DisableLoadSymbolsForLibraries to True did the job. Now I'm on ~2 
seconds, it is usual time on my Core2Duo @2GHz.
 
V.
 
__

Od: Martin Frb laza...@mfriebe.de
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 07.03.2015 18:10
Předmět: Re: [Lazarus] Startup delay of project (Qt)


On 07/03/2015 11:37, Vojtěch Čihák wrote:
  
Hi,
  
I have noticed that Qt projects started with F9 have a delay (about ~12 seconds) before the form appears.

Its not only with large projects, its also with small projects or even empty 
forms.
  
The delay is there even if nothing in project changes and I start it by F9 repeatedly.

When I try to execute the same project externally (from Double Commander), it 
starts in ~ 0,3 s.
  
When i switch to GTk2, the startup is within 2 second (from IDE), which is normal.
  


Just a wild guess.
GDB checks libraries loaded. So depending on the info found on qt libs 
that may take time.


Try 
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#internal-error:_clear_dangling_display_expressions http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#internal-error:_clear_dangling_display_expressions

set the field DisableLoadSymbolsForLibraries to True

Or check in options/debugger/event log what is logged.  Disable Module

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Startup delay of project (Qt)

2015-03-07 Thread Vojtěch Čihák

How can I detect it?
 
I have Qt 4.8.6 from repositories, it should be standart stable version for 
end-users.
__

Od: Martin Frb laza...@mfriebe.de
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 07.03.2015 18:44
Předmět: Re: [Lazarus] Startup delay of project (Qt)


Is it possible your qt libs have debug info? that might take gdb time to parse 
(and eat memory too).

Of course, with the above options, you can not debug inside libraries.


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Startup delay of project (Qt)

2015-03-07 Thread Vojtěch Čihák
Thanks.
 
I execued Lazarus in strace but no it gives no special output.
 
TExternalTool.DoExecute Title=Compile Project, Mode: Default, Target: 
project1 Process.CurrentDirectory=/home/v1/tmp/ 
Executable=/usr/local/bin/fpc Params:
-Tlinux
-Px86_64
-MObjFPC
-Shi
-Cg
-g
-gl
-gh
-l
-vewnhibq
-Fiinclude
-Filib/x86_64-linux
-Fu.
-Fu/home/v1/Lazarus_Qt/lazarus/lcl/units/x86_64-linux/qt
-Fu/home/v1/Lazarus_Qt/lazarus/lcl/units/x86_64-linux
-Fu/home/v1/Lazarus_Qt/lazarus/components/lazutils/lib/x86_64-linux
-Fu/home/v1/Lazarus_Qt/lazarus/packager/units/x86_64-linux
-FUlib/x86_64-linux/
-dLCL
-dLCLqt
-godwarfsets
/home/v1/tmp/project1.lpr
 
[TCompiler.Compile] end
TMainIDE.DoBuildProject compiler time in s: 3,04200032260269
TMainIDE.DoInitProjectRun ProgramFilename=/home/v1/tmp/project1
[TMainIDE.DoRunProject] Debugger=TGDBMIDebugger
[TMainIDE.DoRunProject] END
TGDBMIDebugger.StartDebugging WorkingDir=/home/v1/tmp/
However, I noticed that when I run project in xterm (via Run parameters ... - 
Use launching application), execution is much faster.
 
Also, I tried add 'strace' to command:
 
/usr/bin/xterm -T  'strace Lazarus Run Output' -e 
$(LazarusDir)/tools/runwait.sh $(TargetCmdLine)
 
It also executes project quickly, but gives no output.
 
V.
__
 Od: zeljko zel...@holobit.net
 Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
 Datum: 07.03.2015 16:48
 Předmět: Re: [Lazarus] Startup delay of project (Qt)


Maybe strace could help.

zeljko

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


[Lazarus] Startup delay of project (Qt)

2015-03-07 Thread Vojtěch Čihák
 
Hi,
 
I have noticed that Qt projects started with F9 have a delay (about ~12 
seconds) before the form appears.
Its not only with large projects, its also with small projects or even empty 
forms.
 
The delay is there even if nothing in project changes and I start it by F9 
repeatedly.
When I try to execute the same project externally (from Double Commander), it 
starts in ~ 0,3 s.
 
When i switch to GTk2, the startup is within 2 second (from IDE), which is 
normal.
 
I tried to run Lazarus from console, the last output is:
 
TGDBMIDebugger.StartDebugging 
WorkingDir=/media/disk/v1/Projects/Components/DividerBevelStyle/
 
and then it hangs.
The output of Qt and GTk2 doens't differ.
 
I use Lazarus 1.5 r48159M FPC 3.1.1 x86_64-linux-qt, Qt 4.8.6.
 
I tried to install former revision, I went 1000 commits back but the issue 
persisted.
 
Thanks for help.

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


Re: [Lazarus] about checkbox in Object inspector

2015-02-28 Thread Vojtěch Čihák

You are right, I promised it in december. IIRC it should be in some 
UseOIThemedCheckBox define at first. I'll look at it.
 
V.
__

Od: Juha Manninen juha.mannine...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 28.02.2015 17:20
Předmět: Re: [Lazarus] about checkbox in Object inspector


Ok, one more try:
My original analysis is correct. On the selected row you see a real
CheckBox places there by Object Inspector.
Theme services are used only for the fake CheckBoxes drawn on the
non-selected lines.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] [Qt] Random issues at startup

2015-02-24 Thread Vojtěch Čihák
It is Lazarus 1.5 r47939M FPC 3.1.1 x86_64-linux-qt
__
 Od: zel...@holobit.net
 Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
 Datum: 24.02.2015 18:00
 Předmět: Re: [Lazarus] [Qt] Random issues at startup

On 2015-02-23 16:42, Vojtěch Čihák wrote:
 And I observed (with breakpoints in *.lpr) that the malloc ...
 message comes from
 Application.Initialize;


fpc 2.6.4 or 3.XX ?

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


[Lazarus] [Qt] Random issues at startup

2015-02-23 Thread Vojtěch Čihák

Hi,
 
I work on app. (~2 lines) and sometimes at startup (10 - 15% cases of 
hiting F9) I got this message in console:
 
malloc(): smallbin double linked list corrupted: 0x010ee860 ***
 
and it crashes.
 
(Note that it is only in Qt, the same app. in GTK2 is  OK.)
CallStack window doesn't show me anything.Google doesn't help much, I didn't 
find anything Lazarus-related but I found a few Qt related topics - one of them 
recommende valgrind.So I tried valgrind and KCacheGrind$ valgrind 
--tool=callgrind ./myprogrambut it also didn't help me much (maybe I do it 
wrong ?). The last line of output is pointing to libQtCore.so.4.8.6I don't want 
to publish code yet and I cannot reproduce with a small demo.Thanks for 
help,Vojtěch
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [Qt] Random issues at startup

2015-02-23 Thread Vojtěch Čihák

The code is LCL only. I do not use Qt directly.
It is Chakra linux, 64-bit. Qt 4.8.6. I tried FpDebug and gdb again.
When it crashes (after ~ 5 attempts) and I press Pause, CallStack gives this:
 
#0 __lll_lock_wait_private at :0
#1 malloc at :0
#2 _dl_map_object_deps at :0
#3 dl_open_worker at :0
#4 _dl_catch_error at :0
#5 _dl_open at :0
#6 do_dlopen at :0
#7 _dl_catch_error at :0
#8 dlerror_run at :0
#9 __libc_dlopen_mode at :0
#10 init at :0
#11 pthread_once at :0
#12 backtrace at :0
#13 backtrace_and_maps at :0
#14 __libc_message at :0
#15 malloc_printerr at :0
#16 _int_malloc at :0
#17 malloc at :0
#18 operator new(unsigned long) at :0
#19 QMutexPool::createMutex(int) at :0
#20 ?? at :0
#21 QObject::connect(QObject const*, char const*, QObject const*, char const*, 
Qt::ConnectionType) at :0
#22 QObject_hook_create at :0
#23 APPINIT(0xfedc88, {PIXELSPERINCHX = 72, PIXELSPERINCHY = 72, COLORDEPTH = 
24, INITIALIZED = false}) at qt/qtobject.inc:228
#24 INITIALIZE(0xfed2b8) at include/application.inc:445
#25 main at ecsas.lpr:23
__

Od: zel...@holobit.net
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 23.02.2015 21:03
Předmět: Re: [Lazarus] [Qt] Random issues at startup


On 2015-02-23 09:10, Vojtěch Čihák wrote:

Hi,

I work on app. (~2 lines) and sometimes at startup (10 - 15% cases
of hiting F9) I got this message in console:

malloc(): smallbin double linked list corrupted: 0x010ee860
***

and it crashes.

(Note that it is only in Qt, the same app. in GTK2 is OK.)
CallStack window doesn't show me anything.
Google doesn't help much, I didn't find anything Lazarus-related but I
found a few Qt related topics - one of them recommende valgrind.
So I tried valgrind and KCacheGrind
$ valgrind --tool=callgrind ./myprogram
but it also didn't help me much (maybe I do it wrong ?). The last line
of output is pointing to libQtCore.so.4.8.6
I don't want to publish code yet and I cannot reproduce with a small
demo.


Without code I can do exactly nothing. Are U using LCL code only or you 
include qt4 somewhere and use pure qt api. If it's something up to qtlcl 
then gdb should show it. 32 or 64 bit ? What distro (Qt packager) ?


z.

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


Re: [Lazarus] [Qt] Random issues at startup

2015-02-23 Thread Vojtěch Čihák
And I observed (with breakpoints in *.lpr) that the malloc ... message comes 
from
Application.Initialize;
 
V.
__

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


[Lazarus] Themed Panel

2015-01-14 Thread Vojtěch Čihák
Hi,
 
is there some theme for panels in unit Themes? 
 
So far I found ttPane:
 
// 'Tab' theme data
 TThemedTab = (
  ...
ttPane,
  ...
 );  
 
It looks fine in GTK2 and QtCurve, but it paints nothing in Qt/Oxygen and 
filled blue rectangle in Wine.
 
Thanks,
 
Vojtěch.
 
 

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


Re: [Lazarus] HEADS UP: FPC 3.0.1 stable branched off.

2015-01-05 Thread Vojtěch Čihák

So finally there'll be no 2.8 ?
 
Anyway, it works well. I just updated to 29419 and built it with 2.6.4.
Lazarus compiled well too. Just have Lazarus 1.3 r47310M FPC 3.1.1 
x86_64-linux-qt.
 
Thanks
 
Vojtěch 
__

Od: Marco van de Voort mar...@stack.nl
Komu: lazarus@lists.lazarus.freepascal.org
Datum: 05.01.2015 16:55
Předmět: [Lazarus] HEADS UP: FPC 3.0.1 stable branched off.



As a first step in the 3.0.0 release process the stable branch was branched
off to branches/fixes_3_0 and the version number was updated to 3.0.1

The version in trunk was raised to 3.1.1

Scripts might need modification accordingly.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Question {%MainUnit} IDE directive

2014-12-31 Thread Vojtěch Čihák
Hello,
 
I have a small question about this directive.
 
If I use: {%MainUnit ../umain.pas}
 
is it problem when someone will open this project under Windows?
I mean slash / backslash.
 
I looked here: http://wiki.freepascal.org/IDE_directives, this directive is not 
mentioned there.
 
Thanks.
 
BTW, Happy new year ! 
 
 

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


Re: [Lazarus] How to obtain the real color of a control @runtime?

2014-12-22 Thread Vojtěch Čihák

Hi,
 
just tested on Qt. My TEdits are also white.
 
This line:
 
writeln(ColorToString(Edit1.Brush.Color));
 
writes out clWindow for default color (clDefault) and clRed for clRed.
 
Vojtěch 
__

Od: Bart bartjun...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 22.12.2014 18:51
Předmět: [Lazarus] How to obtain the real color of a control @runtime?


Hi,

I'm trying to obtain the real color of a control (TEdit) at runtime.
The color at design time is set to clDefault ($2000), but I need
to get the RGB value (which in this case should be $FF, since with
the current theme the default color of a TEdit on my OS is white).
I need this s I can have another control paint in that same color on
it's canvas.

ColorToRGB just gave me $0, whic is not what I'm looking for.

Any hints?

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] OI Checkboxes

2014-11-30 Thread Vojtěch Čihák

I use LCLIntf.DrawFocusRect(ACanvas.Handle, aHelpRect); to draw focus rectangle.
So this underlining is oxygen focus rect, which is, OTOH, not used anywhere 
else - focused Oxygen checkboxes are like highlighted here.
Thanks for reporting but I have no idea how to solve it.
 
Vojtěch 
 
__

Od: FreeMan freema...@delphiturkiye.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 30.11.2014 10:56
Předmět: Re: [Lazarus] OI Checkboxes


I tested in kubuntu 14.04 qt. when TCheckBoxThemed is focused, it has 
underline, I added snapshot

__
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] OI Checkboxes

2014-11-30 Thread Vojtěch Čihák

Sandro, your patch works well here, I tested with Qt and GTK2.
Maybe it should be reported that DT_VCENTER does not work on Windows.
 
Vojtěch 
__

Od: Sandro Cumerlato sandro.cumerl...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 30.11.2014 11:02
Předmět: Re: [Lazarus] OI Checkboxes




On 30-11-2014 01:13, Vojtěch Čihák wrote:It looks like flag DT_VCENTER does not 
work in Windows.
 
On the first look, patch is OK. I will test it in Linux soon. 
 
Vojtěch 
_
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] OI Checkboxes

2014-11-30 Thread Vojtěch Čihák

Yes, I can reproduce with oxygen, probably Oxygen and Air are similar. However, 
I don't know how to solve it. My EC-Controls are affected too.
Maybe draw dotted rectangle around with clBtnText color?
 
Vojtěch 
__

Od: FreeMan freema...@delphiturkiye.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 30.11.2014 11:42
Předmět: Re: [Lazarus] OI Checkboxes


This reporting just let you know. If I'm not wrong, this new component for OI, and this 
underline problem can be a problem in OI. and I'm not using oxygen theme, I'm using air 
for netbook theme. This snapshot from system settings - themes - details tab
and translating More this chekbox is focused, but not underlined.

___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] OI Checkboxes

2014-11-29 Thread Vojtěch Čihák

I'll try it next week.
 
Vojtěch 
__

Od: Juha Manninen juha.mannine...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 29.11.2014 21:07
Předmět: Re: [Lazarus] OI Checkboxes




On Friday, November 28, 2014, Vojtěch Čihák vojtech.ci...@atlas.cz 
vojtech.ci...@atlas.cz wrote:
TCheckBoxThemed is done:
I added it to LazControls package. Thanks.Would you like to implement the 
Boolean editor using your component?Otherwise it will take time as I have other 
duties in near future.It should be selectable with an IFDEF, UseCheckboxThemed 
or similar.Object Inspector is in IDEIntf package which already has LazControls 
as a dependency.Juha

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] OI Checkboxes

2014-11-29 Thread Vojtěch Čihák

It looks like flag DT_VCENTER does not work in Windows.
 
On the first look, patch is OK. I will test it in Linux soon. 
 
Vojtěch 
__

Od: Sandro Cumerlato sandro.cumerl...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 29.11.2014 23:43
Předmět: Re: [Lazarus] OI Checkboxes


Thank you Vojtěch for the TCheckBoxThemed component.
I tested it under Windows 8.1 and found a small difference in Caption vertical 
position.
Please compare attached images checkboxthemed1.png (before patch) vs 
checkboxthemed2.png (after patch) and review attached diff file.
Please apply if OK under QT/GTK2.
Sandro



On 29 November 2014 at 21:32, Vojtěch Čihák vojtech.ci...@atlas.cz 
vojtech.ci...@atlas.cz wrote:
I'll try it next week.
 
Vojtěch 
__

Od: Juha Manninen juha.mannine...@gmail.com juha.mannine...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org 
lazarus@lists.lazarus.freepascal.org
Datum: 29.11.2014 21:07
Předmět: Re: [Lazarus] OI Checkboxes


 

On Friday, November 28, 2014, Vojtěch Čihák vojtech.ci...@atlas.cz 
vojtech.ci...@atlas.cz wrote: 
TCheckBoxThemed is done:
I added it to LazControls package. Thanks.Would you like to implement the 
Boolean editor using your component?Otherwise it will take time as I have other 
duties in near future.It should be selectable with an IFDEF, UseCheckboxThemed 
or similar.Object Inspector is in IDEIntf package which already has LazControls 
as a dependency.Juha

--

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

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



--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] OI Checkboxes

2014-11-27 Thread Vojtěch Čihák

Hi,
 
what does it mean?
__

Od: Frederic Da Vitoria davito...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 27.11.2014 09:37
Předmět: Re: [Lazarus] OI Checkboxes


2014-11-27 0:20 GMT+01:00 Juha Manninen juha.mannine...@gmail.com 
juha.mannine...@gmail.com:
On Wednesday, November 26, 2014, Vojtěch Čihák vojtech.ci...@atlas.cz vojtech.ci...@atlas.cz wroteHmm, would such a control be screen-reader friendly? -- 
Frederic Da Vitoria

(davitof)

Membre de l'April - « promouvoir et défendre le logiciel libre » - 
http://www.april.org http://www.april.org

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] OI Checkboxes

2014-11-27 Thread Vojtěch Čihák

OK, I'm starting tp implement it. I will reuse as much code as possible from my 
TECSwitch (not deriving, but just Copy-Paste)
because it is, in fact, custom drawn checkbox too.
I will add property Alignment as proposed from Bart and class method for 
self-painting for OI purposes.
No idea about screen reader funcionality yet.
 
Vojtěch 
__

Od: Juha Manninen juha.mannine...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 27.11.2014 12:54
Předmět: Re: [Lazarus] OI Checkboxes



A custom drawn widget library must implement screen reader support by itself.
Now Object Inspector uses LCL's TCheckbox on the selected row. I guess
it is screen-reader friendly then.
The new planned custom drawn control may indeed break it. The support
must be implemented somehow but I have no idea how.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] OI Checkboxes

2014-11-26 Thread Vojtěch Čihák

I considered other solution. Create a new simple visual component 
(TCheckBoxThemed or so). It will have class method:
class procedure PaintSelf(ACanvas: TCanvas; AChecked: Boolean);
 
used for non-selected rows and it will behave like normal checkbox in selected 
rows.
I will guarantee the same look without bunch of {$IFDEF}s.
 
The component would be TCustomControl derived, with very basic functionality 
(click, keydown, bidimode, property Checked).
I guess 300 lines incl. declaration. 
__

Od: Juha Manninen juha.mannine...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 26.11.2014 08:42
Předmět: Re: [Lazarus] OI Checkboxes


On Tuesday, November 25, 2014, Vojtěch Čihák vojtech.ci...@atlas.cz 
vojtech.ci...@atlas.cz wrote:
If so, then it will never work properly.
It may never be perfect but it can be very close.I wrapped my mind around this 
issue last night and improved it a lot.Please test.Juha

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] OI Checkboxes

2014-11-25 Thread Vojtěch Čihák

This is not Linux-Qt related, this is Oxygen related. Other themes work OK. 
Hardcoding 1 or 2 pixels is IMO not good idea, it may cause troubles elsewhere.
I tested ThemeServices.GetDetailSize and it gives the same output for 
tbCheckBoxCheckedDisabled, tbCheckBoxCheckedNormal and tbCheckBoxCheckedHot (or 
..Unchecked... variants).

This code:

procedure TForm1.Button1Click(Sender: TObject);
var aDetail: TThemedElementDetails;
aRect: TRect;
aSize: TSize;
begin
aDetail:=ThemeServices.GetElementDetails(tbCheckBoxUncheckedNormal);
aSize:=ThemeServices.GetDetailSize(aDetail);
aRect:=Rect(5, 5, 5+aSize.cx, 5+aSize.cy);
writeln('Inactive ', aSize.cy);
ThemeServices.DrawElement(Image1.Canvas.Handle, aDetail, aRect);
aDetail:=ThemeServices.GetElementDetails(tbCheckBoxCheckedHot);
aSize:=ThemeServices.GetDetailSize(aDetail);
aRect:=Rect(25, 5, 25+aSize.cx, 5+aSize.cy);
writeln('Focused ', aSize.cy);
ThemeServices.DrawElement(Image1.Canvas.Handle, aDetail, aRect);
end; 


gives output

Inactive 21
Focused 21

and paint checkboxes (see attachment).

However, I didn't see code of OICheckBoxes, so I cannot say where is problem.

Vojtěch
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] OI Checkboxes

2014-11-25 Thread Vojtěch Čihák

I found one more issue with Linux-Qt. This one is not Oxygen related.
When the row in OI is selected, Caption is written 1 or 2 pixels higher than in 
non selected row. The checkbox itself is OK.

Vojtěch
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] OI Checkboxes

2014-11-25 Thread Vojtěch Čihák

Hi,
 
Do I understand correctly that currently
- unselected row paints checkbox + caption via themes, while
- selected row is regular TCheckBox ?
 
If so, then it will never work properly.
 
Vojtěch

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Toolbar divider issues

2014-11-11 Thread Vojtěch Čihák

Hi,
I added patch http://bugs.freepascal.org/view.php?id=27030
It (I hope) solves all issues you pointed here.
 
Vojtěch 
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Toolbar divider issues

2014-11-09 Thread Vojtěch Čihák

Hi,
 
with this code: 
 
procedure TToolButton.SetStyle(Value: TToolButtonStyle);
begin
  if FStyle = Value then exit;
  FStyle := Value;
  if Value = tbsSeparator then Width := 10;
  if Value = tbsDivider then Width := 5;
  InvalidatePreferredSize;
  if IsControlVisible then
  UpdateVisibleToolbar;
end;
 
It now does deault 10px separators - both design-time and code
and 5px dividers from code but still 3px dividers at design-time.
 
EditorToolBar looks better now. I'll find solution and I'll send a patch to 
bugtracker. 
 
Vojtěch 

___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Toolbar divider issues

2014-11-09 Thread Vojtěch Čihák

Hi,
 
CalcPreferredSize is called only when Autosize is True, it's not this case.
 
Furthermore, I found this code in Componenteditors.pas in
procedure TToolBarComponentEditor.ExecuteVerb(Index: Integer);
around line 1255:
 
if NewStyle = tbsDivider then
  NewToolButton.Width := 3; 
 
IMO if default with of divider was 5 before that patch then there is something 
wrong elsewhere.
 
About changing orientation from horizontal to vertical:
I will look at it, frankly, I never used vert. toolbars so I didn't test it.
 
Thanks for pointing it,
 
Vojtěch 
__

Od: Giuliano Colla giuliano.co...@fastwebnet.it
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 09.11.2014 17:41
Předmět: Re: [Lazarus] Toolbar divider issues



Il 09/11/2014 15:04, Vojtěch Čihák ha scritto:


Hi,

with this code:

procedure TToolButton.SetStyle(Value: TToolButtonStyle);
begin
  if FStyle = Value then exit;
  FStyle := Value;
  if Value = tbsSeparator then Width := 10;
  if Value = tbsDivider then Width := 5;
  InvalidatePreferredSize;
  if IsControlVisible then
  UpdateVisibleToolbar;
end;

It now does deault 10px separators - both design-time and code

and 5px dividers from code but still 3px dividers at design-time.

EditorToolBar looks better now. I'll find solution and I'll send a 
patch to bugtracker.




If you look into the matter, please do not forget that a toolbar can be 
either horizontal or vertical.


From TToolbutton.CalculatePreferredSize:

...
    if Style = tbsDivider then
      if FToolBar.IsVertical then
        PreferredHeight := 5
      else
        PreferredWidth := 5
    else
    if Style = tbsSeparator then
      if FToolBar.IsVertical then
        PreferredHeight := 10
      else
        PreferredWidth := 10;
  end;

In an ideal world, if the user doesn't set a different width or height, 
the preferred values should go into effect, in any configuration, for 
any visual component.
But in a toolbar there's another constraint: if it's horizontal all 
buttons must share the same height, it it's vertical all buttons must 
share the same width, overriding some of the user settings.

That's what makes it a little bit tricky.

Giuliano

--
Giuliano Colla

Project planning question: when it's 90% done, are we halfway or not yet?


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] FPC options - cool!

2014-10-20 Thread Vojtěch Čihák

Hi,
 

Is there something I need to do to enable this functionality in trunk?

 
You need to fill a bugreport :-).
 
I just tested with Lazarus 1.3 r46582M FPC 2.7.1 x86_64-linux-qt and realy, 
there is only an empty space instead of list of options.
 
Vojtěch 
__

Od: Michael Thompson mike.cornfl...@gmail.com
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 20.10.2014 12:39
Předmět: Re: [Lazarus] FPC options - cool!


Just wanted to thank whoever wrote the project options/other tool to
select fpc options... very nicely done, including the search
functionality. Now I don't need to remember that I need -Xe but can
search for linker ;) Oh.  This functionality is working for me in 1.2.4, but 
not in Trunk (which uses fpc trunk).  All I'm seeing is a clDefault shaded 
area.  Is there something I need to do to enable this functionality in 
trunk?Mike

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
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] Redundant text on project buttons

2014-10-14 Thread Vojtěch Čihák

Hello,
 
I don't think it urgently need to be removed.
On the other hand, Lazarus is not consistent. Some windows (Call Stack, Project 
Inspector) has icons with captions while others (Watch List, History) are icons 
only.
If you will create patch to remove text, please check that all buttons has 
proper Hint. Usually they have but for example Call Stack doesn't.
 
Vojtěch 
__

Od: hinsta...@yandex.ru
Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org
Datum: 14.10.2014 11:21
Předmět: [Lazarus] Redundant text on project buttons


These urgently need to be reduced to icons with no text 
http://s30.postimg.org/5hxkrzfkx/LWaste.png 
http://s30.postimg.org/5hxkrzfkx/LWaste.png 

--

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

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


  1   2   >