Re: [Lazarus] Hi-DPI tweak of components

2023-06-17 Thread Vojtěch Čihák via lazarus

TLabeledEdit is probably not a good example since both TEdit and TLabel are 
native widgets (maybe they scale by widgetset) and there is some Spacing 
between them hardcoded to 3px. I cannot see any scaling related code in this 
simple component.
 
Anyway, I know what's going on:
 
procedure TWinControl.AutoAdjustLayout(AMode: TLayoutAdjustmentPolicy;
  const AFromPPI, AToPPI, AOldFormWidth, ANewFormWidth: Integer);
var
  i: Integer;
begin
  DisableAutoSizing{$IFDEF 
DebugDisableAutoSizing}('TWinControl.AutoAdjustLayout'){$ENDIF};
  try
    for i:=0 to ControlCount-1 do
      Controls[i].AutoAdjustLayout(AMode, AFromPPI, AToPPI, AOldFormWidth, 
ANewFormWidth);


    inherited;
  finally
    EnableAutoSizing{$IFDEF 
DebugDisableAutoSizing}('TWinControl.AutoAdjustLayout'){$ENDIF};
  end;
end;
 
i.e. form loops all its children and scale them. But when component is dropped 
on the form, scaling is done before Parent is set. Therefore only main 
component's DoAutoAdjustLayout is called, subcomponent is ommited.
 
I noticed that it is opposite when loading from *.lfm. There scaling done after 
the Parent is set, so both component's and subcomponent's DoAutoAdjustLayout is 
called.
 
It's fine since there are simplier ways how to do initial scaling (when 
component is created and put on the form).
 
Thanks, I only needed to understand better how it works.
 
__

Od: "Ondrej Pokorny" 
Komu: "Lazarus mailing list" 
Datum: 15.06.2023 08:35
Předmět: Re: [Lazarus] Hi-DPI tweak of components


On 14.06.2023 21:52, Vojtěch Čihák via lazarus wrote:This is strange. All 
controls should be adjusted regardless of the Owner. TLabeledEdit works fine 
(edit that has an attached label).
Ondrej

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Hi-DPI tweak of components

2023-06-14 Thread Vojtěch Čihák via lazarus

Hi,


I have one more question to DoAutoAdjustLayout();.
I use TECSpinBtns (TGraphicControl) in two variants:
The first as a stand-alone component and the second as a part of TECSpinEdit 
(where TEdit is Owner and TECSpinBtns is subcomponent anchored to it).
When I put them on the form, DoAutoAdjustLayout() is triggered only in the 
first case.
Is it that Owner is responsible to call DoAutoAdjustLayout() of owned controls?
 
V.


__

Od: "Ondrej Pokorny via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 08.06.2023 08:08
Předmět: Re: [Lazarus] Hi-DPI tweak of components


---If you have values that need to be scaled you do:
1.) Initialize the sizes for Screen.PixelsPerInch in constructor:
MySize := Scale96ToScreen(cMyValueAt96DPI);
2.) Use DoAutoAdjustLayout() to scale them when PPI changes:
MySize := Round(MySize * AXProportion);
Simple as that.
Check TCustomColorBox how it handles FColorRectWidth as an example (it uses a 
default value and if the user overwrites it, it gets scaled in 
DoAutoAdjustLayout().
Ondrej


--

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Hi-DPI tweak of components

2023-06-07 Thread Vojtěch Čihák via lazarus

Thanks,
 
please confirm me if I understand well the concept:
1) when component is put on the form in designer: it is scaled (Width & Height) 
2) when it is put on the form later in code: it is not scaled 
 
but internals are scaled in both cases (by internals I mean for example 
DefaultRowHeight and DefaultColWidth of TStringGrid)
 
Or at least TStringGrid behaves as I described above.
 
Because I need to scale internals of TGraphicControl (which has no own Canvas 
or Handle) I decided to do scaling in SetParent();.
 
For curiosity: was tested the case when someone has two or more monitors with 
different DPI and moves the form (made in Lazarus) from one monitor to another?
 
V.


__

Od: "Ondrej Pokorny" 
Komu: "Lazarus mailing list" , 
laza...@lists.lazarus.freepascal.org
Datum: 07.06.2023 08:19
Předmět: Re: [Lazarus] Hi-DPI tweak of components


On 07.06.2023 00:35, Vojtěch Čihák via lazarus wrote:...
Here is information: 
https://wiki.freepascal.org/High_DPI#High_DPI_in_Lazarus_1.8_and_above 
<https://wiki.freepascal.org/High_DPI#High_DPI_in_Lazarus_1.8_and_above>
IIRC, DoAutoAdjustLayout() is executed only when the DPI changes. You have to 
scale every hardcoded pixel value in the constructor/loading/intitialize as 
well.
Ondrej

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Hi-DPI tweak of components

2023-06-06 Thread Vojtěch Čihák via lazarus

Hi,
 
I finally built a hi-DPI machine (28'' 4k display, currently set to 118PPI) and 
I need to tweak EC-Controls (https://wiki.freepascal.org/Eye-Candy_Controls) to 
scale better.
One problematic is TECSpinBtns because it is designed like this: it consists of 
(initially) nine small buttons (TPersistent) with hardcoded width=15 and its 
overall width is 9*15 =135 pixels or N*15 in general.
Therefore, when I put this component on the form, its Width is not scaled 
(Height is). I tried to override DoAutoAdjustLayout but it's not triggered at 
all.
TECSpinBtns is TGraphicControl.
 
Thanks, V.

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] converted Delphi 7 project: add new form not possible?

2023-02-24 Thread Vojtěch Čihák via lazarus

Yes, files are unit2.pas and unit2.lfm so you must manually rename the class 
and the form.
 
I tried to rename the second Form1 to Form2 in Object Inspector but it 
automatically changed line
Application.CreateForm(TForm1, Form1);
to
Application.CreateForm(TForm2, Form2); in ProjectD7.lpr
Buit this line autocreates the first Form1!
 
So it's a little mess. Anyway, Lazarus shouldn't create two TForm1 classes in 
one project.
 
V.
__

Od: "John Landmesser via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 24.02.2023 22:26
Předmět: Re: [Lazarus] converted Delphi 7 project: add new form not possible?


Am 24.02.23 um 22:21 schrieb Vojtěch Čihák via lazarus:Hi,
 
it is my new experience with Delphi project convertor.
I noticed that:
The converted unit1 has:
 TForm1 = class(TForm)
    ListBox1: TListBox;
    Button1: TButton;     
   
And when I add a new form, i.e. unit2, it has also
TForm1 = class(TForm)
  private
  
 
Normally (common Lazarus project) it creates unit2 + Form2.
 
Vojtěch
That is correct, but when  you are saving the new form you can give it new 
names?!
 
  
__

> Od: "John Landmesser via lazarus"  

> Komu: lazarus@lists.lazarus-ide.org 
> Datum: 24.02.2023 21:51
> Předmět: Re: [Lazarus] converted Delphi 7 project: add new form not possible?



> John Landmesser
>

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org 
https://lists.lazarus-ide.org/listinfo/lazarus 


 


--

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] converted Delphi 7 project: add new form not possible?

2023-02-24 Thread Vojtěch Čihák via lazarus

Hi,
 
it is my new experience with Delphi project convertor.
I noticed that:
The converted unit1 has:
 TForm1 = class(TForm)
    ListBox1: TListBox;
    Button1: TButton;     
   
And when I add a new form, i.e. unit2, it has also
TForm1 = class(TForm)
  private
  
 
Normally (common Lazarus project) it creates unit2 + Form2.
 
Vojtěch
  
__

Od: "John Landmesser via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 24.02.2023 21:51
Předmět: Re: [Lazarus] converted Delphi 7 project: add new form not possible?


> John Landmesser
>

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to fix slow screen refresh of TListbox?

2022-11-20 Thread Vojtěch Čihák via lazarus

It wouldn't be that hard to write custom component based on TGraphicControl + 
TBitmap with built-in bitmap font. Copying bitmap letters will be faster than 
rendering from ttf.
 
V.
__

Od: "Bo Berglund via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 11.11.2022 16:29
Předmět: [Lazarus] How to fix slow screen refresh of TListbox?



Now I wonder if there is some way to do as I did when I worked in Delphi with
TListView objects, where I could use the BeginUpdate and EndUpdate calls to make
all screen updates wait until it was all put in place.
This was MUCH faster!

But I can not find a BeginUpdate on the TListBox object, only BeginUpdateBounds,
which does not tell me much

Any suggestions?


--
Bo Berglund
Developer in Sweden

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Mantis vs GitLab issue tracker

2021-08-13 Thread Vojtěch Čihák via lazarus
Hi,
 
is it just my impression that Mantis was more feature rich an had better layout?
An example: Mantis has "Reported by me".
 
(I understand that new tracker is better wired with version system which is 
benefit for developers.)
 
Thanks, V.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Borderspacing property not working?

2021-02-12 Thread Vojtěch Čihák via lazarus

You probably do something wrong.
 
Here both
 
Button1.AnchorParallel(akLeft, 10, Form1);
 
or
 
Button1.BorderSpacing.Left:=10;
Button1.AnchorSide[akLeft].Control:=Form1;
Button1.Anchors:=[akLeft];
 
works well.
 
V .
 
__

Od: "Timothy Groves via lazarus" 
Komu: "Lazarus mailing list" 
Datum: 12.02.2021 20:25
Předmět: Re: [Lazarus] Borderspacing property not working?


Update:  Then I realized what had changed.  I attempted to clean up some of my 
other dynamically created page tabs, and problems persisted.  I ran some 
experiments, and determined the root problem.  So this problem is more properly 
expressed as:  When anchoring to Parent, border settings are ignored, 
regardless if they are set using a method (such as AnchorToNeighbour or 
AnchorParallel) or directly (by changing the BorderSpacing property).  Is this 
a known bug?  Or is it an undocumented feature?  If the latter, how do I anchor 
to a parent in a manner that respects border spacing?
On Fri, 12 Feb 2021 at 14:19, Timothy Groves > wrote:That worked.  Thanks.
On Fri, 12 Feb 2021 at 14:06, Vojtěch Čihák via lazarus > wrote:Try to add there AnchorParallel:
 
labSurface [0].AnchorSide [akTop].Control := labSurfaceLocation;
labSurface [0].AnchorSide [akTop].Side := asrBottom;
labSurface [0].AnchorSide [akLeft].Control := Parent;
labSurface [0].AnchorSide [akLeft].Side := asrRight;
labSurface[0].AnchorParallel(akLeft, 0, labSurfaceLocation);
for index := 1 to 8 do begin
labSurface [index].AnchorSide [akTop].Control := labSurface [index - 1];
labSurface [index].AnchorSide [akTop].Side := asrBottom;
labSurface [index].AnchorSide [akLeft].Control := Parent;
labSurface [index].AnchorSide [akLeft].Side := asrRight;
labSurface [index].AnchorParallel(akLeft, 0, labSurfaceLocation);
end;                     
 
__
> Od: "Timothy Groves via lazarus" >
> Komu: "Lazarus mailing list" >
> Datum: 12.02.2021 19:26
> Předmět: [Lazarus] Borderspacing property not working?
>
I have created several dynamic controls in my form, and setting the 
BorderSpacing property produces consistently incorrect results.  Dynamically 
created controls will exhibit borders between themselves, but not to the parent 
object.  What am I doing wrong?Here is a chunk of the offending code.  for 
index := 0 to 8 do begin
    labSurface [index] := tLabel.Create (Application);
    with (labSurface [index]) do begin
      parent := tabSurface;
      Caption := LocationNames [index];
      BorderSpacing.Around := 8;
      BorderSpacing.Left := 8;
      Anchors := [akTop, akLeft];
    end;
  end;

  labSurface [0].AnchorSide [akTop].Control := labSurfaceLocation;
  labSurface [0].AnchorSide [akTop].Side := asrBottom;
  labSurface [0].AnchorSide [akLeft].Control := Parent;
  labSurface [0].AnchorSide [akLeft].Side := asrRight;
  for index := 1 to 8 do begin
    labSurface [index].AnchorSide [akTop].Control := labSurface [index - 1];
    labSurface [index].AnchorSide [akTop].Side := asrBottom;
    labSurface [index].AnchorSide [akLeft].Control := Parent;
    labSurface [index].AnchorSide [akLeft].Side := asrRight;
  end;
--
"Cows fly like clouds, but are never quite successful." 
--Megahal


--

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org 
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org 
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>
--
"Cows fly like clouds, but are never quite successful." 
--Megahal

--
"Cows fly like clouds, but are never quite successful." 
--Megahal


--

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Borderspacing property not working?

2021-02-12 Thread Vojtěch Čihák via lazarus

Try to add there AnchorParallel:
 
labSurface [0].AnchorSide [akTop].Control := labSurfaceLocation;
labSurface [0].AnchorSide [akTop].Side := asrBottom;
labSurface [0].AnchorSide [akLeft].Control := Parent;
labSurface [0].AnchorSide [akLeft].Side := asrRight;
labSurface[0].AnchorParallel(akLeft, 0, labSurfaceLocation);
for index := 1 to 8 do begin
labSurface [index].AnchorSide [akTop].Control := labSurface [index - 1];
labSurface [index].AnchorSide [akTop].Side := asrBottom;
labSurface [index].AnchorSide [akLeft].Control := Parent;
labSurface [index].AnchorSide [akLeft].Side := asrRight;
labSurface [index].AnchorParallel(akLeft, 0, labSurfaceLocation);
end;                     
 
__

Od: "Timothy Groves via lazarus" 
Komu: "Lazarus mailing list" 
Datum: 12.02.2021 19:26
Předmět: [Lazarus] Borderspacing property not working?


I have created several dynamic controls in my form, and setting the 
BorderSpacing property produces consistently incorrect results.  Dynamically 
created controls will exhibit borders between themselves, but not to the parent 
object.  What am I doing wrong?Here is a chunk of the offending code.  for 
index := 0 to 8 do begin
    labSurface [index] := tLabel.Create (Application);
    with (labSurface [index]) do begin
      parent := tabSurface;
      Caption := LocationNames [index];
      BorderSpacing.Around := 8;
      BorderSpacing.Left := 8;
      Anchors := [akTop, akLeft];
    end;
  end;

  labSurface [0].AnchorSide [akTop].Control := labSurfaceLocation;
  labSurface [0].AnchorSide [akTop].Side := asrBottom;
  labSurface [0].AnchorSide [akLeft].Control := Parent;
  labSurface [0].AnchorSide [akLeft].Side := asrRight;
  for index := 1 to 8 do begin
    labSurface [index].AnchorSide [akTop].Control := labSurface [index - 1];
    labSurface [index].AnchorSide [akTop].Side := asrBottom;
    labSurface [index].AnchorSide [akLeft].Control := Parent;
    labSurface [index].AnchorSide [akLeft].Side := asrRight;
  end;
--
"Cows fly like clouds, but are never quite successful." 
--Megahal


--

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus (idescout) cannot be compiled after 64182

2020-12-09 Thread Vojtěch Čihák via lazarus

Thanks.
__

Od: "Juha Manninen via lazarus" 
Komu: "Lazarus mailing list" 
Datum: 09.12.2020 15:53
Předmět: Re: [Lazarus] Lazarus (idescout) cannot be compiled after 64182


Oops, yes. I restored it in r64190.Regards,Juha

--

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Lazarus (idescout) cannot be compiled after 64182

2020-12-09 Thread Vojtěch Čihák via lazarus

Hi,
 
error is unit frmscout.pas, lines 676 and 678 (frmscout.pas(676,35) Error: Identifier 
idents no member "Comps").
 
Reason is that the line 294 of componentreg.pas:
 
 property Comps: TRegisteredComponentList read fComps;
 
was removed (accidentaly? because the private field fComps is still there). See:

https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/ideintf/componentreg.pas?root=lazarus=64182=64181=64182
 
Thanks.

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] FormClose

2020-09-09 Thread Vojtěch Čihák via lazarus

Hi,
 
FormClose is opposite to FormShow. The use-case is a modal form which exists 
always (i.e. is autocreated when app. starts and is freed when app. end).
You can call ShowModal, create some objects in FormShow and free them in 
FormClose.
 
V.
__

Od: "Santiago A. via lazarus" 
Komu: laza...@lists.lazarus.freepascal.org
Datum: 08.09.2020 21:00
Předmět: [Lazarus] FormClose


Hi:

I recently have read a message where an object was created in the 
FormCreate and was freed in the formClose.  What if the form is not 
freed? I think that the the natural place to free objects created in 
formCreate is FormDestroy.

In fact, I usually follow this pairs
Created in FormCreate, freed in FormDestroy
Created in FormActivate, freed in FormDeactivate
Created in FormShow, freed in FormHide

I seldom use formClose, just to change the default closeAction.  I can't 
see what else is formClose for. Do you use it form any other case?


--
Saludos

Santiago A.

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Vojtěch Čihák via lazarus

Yes, it looks fine now.
 
Thanks!
__

Od: "Juha Manninen via lazarus" 
Komu: "Lazarus mailing list" 
Datum: 13.08.2020 19:36
Předmět: Re: [Lazarus] TextHint in TComboBox


Please test with r63734.
The 3-state type TEmulatedTextHintStatus and its thsChanging was
needed after all.
Should have tested still more. :(
At least here it works now.

Juha
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TextHint in TComboBox

2020-08-13 Thread Vojtěch Čihák via lazarus

Hi,
 
something went wrong. When I open IDE Options or Project Options and I click on any item 
of TreeView, everything disappear. Content of the filter become "(filter)". 
When I change it (i.e. non-empty string), content is back.
And many of the content is italic.
 
Lazarus 2.1.0 r63731M FPC 3.3.1 x86_64-linux-qt
 
Vojtěch a.k.a. Blaazen
__

Od: "Juha Manninen via lazarus" 
Komu: "Lazarus mailing list" 
Datum: 13.08.2020 14:10
Předmět: [Lazarus] TextHint in TComboBox


Regarding issue :
https://bugs.freepascal.org/view.php?id=30682 


I added TextHint to TComboBox in r63731. QT5 now works with native
TextHint, GTK2 with emulated one.
Native support for Win32 is not implemented yet. Somebody please implement it.
Other widgetsets that natively support this feature for TComboBox,
should also be updated.

I have a question about TextHint support of TEdit in Win32. The
widgetset binding code tests EmulatedTextHintShowing and calls
CreateEmulatedTextHintFont from generic LCL code.
Does it mean it actually emulates the feature inside the binding code
instead of using a native feature?
It should not be needed as the emulated TextHint works purely in LCL code level.
Same thing with QT4 binding code. It also uses emulated TextHint
specific stuff. Is it needed?

TextHint in TMemo works only with widgetset's native support. It works
with QT5 but not with GTK2.
The emulation for TMemo turned out to be tricky. It may never be
implemented, unless somebody provides a patch of course.

Regards,
Juha
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TAction and Short-cut conflicts

2020-05-25 Thread Vojtěch Čihák via lazarus

I didn't know that Menu Editor has this feature.
I tried and my project has >160 conflicts and I can confirm what you report.
I also noticed that it reports Alt+C (i.e. accelerators, when some caption is 
"_Cut" with underlined _C_).
And the window needs better anchoring for vertical resizing (buttons should be 
anchored to bottom and the groupbox to buttons).
 
V.
__

Od: "R.Smith via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 25.05.2020 21:19
Předmět: [Lazarus] TAction and Short-cut conflicts

I've been using the TActionList and TAction objects, which I think is 
not only making life easier, but a good design choice, and it's been 
working a treat.


One niggle is, when I assign a short-cut to a TAction and then assign 
that TAction to any of the action-enabled controls, it lists the 
shortcut in the conflict list, which is a false positive - it's ok with 
a shortcut item to conflict with itself or it's own action (impossible 
not to, actually).


To be precise - say I have a TAction named actCut to cut text, set the 
Shortcut to "Ctrl+X", then assign the action to one menu item in my 
TMainMenu, say mmnuCut (which is new and had no other properties 
changed), I then will see the following in my ShortCut conflict list 
(accessed via the Right-click in the Menu editor --> Shortcuts --> 
Resolve Shortcut conflicts):


- Resolved Conflicts: 0

- Remaining Conflicts: 1
 "Ctrl+X" in actCut conflicts with "Ctrl+X" in mmnuCut
...

What's worse, if I also assign the same Action to another menu item 
(which is the point of using actions) in the pop-up context menu, say 
puCut, I can see a three-way false-positive like this:


 "Ctrl+X" in actCut conflicts with "Ctrl+X" in mmnuCut
 "Ctrl+X" in actCut conflicts with "Ctrl+X" in puCut
 "Ctrl+X" in puCut conflicts with "Ctrl+X" in mmnuCut

I use many Actions and shortcuts, so now resolving any REAL conflicts 
becomes really hard.


So before I log a bug report, let me ask the community first:
- Is this a bug?
- Is it a feature request?
- Is it a stupidity and there is some config setting I'm missing?

Also, in the conflict list, if the window is resized, the inner panel 
does not - like someone forgot to swicth its Align from alTop to alClient.


 Technical-
A conflict should only be positive is:
1 . The conflict is NOT between a control and its own action,
2.  The conflict is NOT with a control which uses the same action -
  2.1  Unless the Shortcut does not originate from the shared Action 
itself.

-

Thank you kindly,
Ryan


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Vojtěch Čihák via lazarus

IMO Inkscape works much better compared to Karbon (if it is what you meant 
LibreOffice Draw).
Therefore I prefer it, even if it is a little stranger (GTK app.) on my Plasma 
desktop.
 
V.
__

Od: "Werner Pamler via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 21.05.2020 18:54
Předmět: Re: [Lazarus] Tool to make icons ?


Am 21.05.2020 um 18:06 schrieb Michael Van Canneyt via lazarus:
> Now I still need to learn some Inkscape, but that's for later :-)

I feel with you... Unfortunately every graphics program has its own 
short cuts and places in the menus and toolbars, and yes, Inkscape, like 
the well-respsected Gimp, is not a master-piece in user-guidance, at 
least for my way of working.  Since the icons are stored in universal 
svg, however, you can also switch you other vector programs instead, 
like CorelDraw or LibreOffice Draw. But they have other issues...


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Vojtěch Čihák via lazarus

I also use Inkscape and rsvg-convert
 
I have a script for converting all *.svg icons to multiple sizes:
 
#!/bin/bash
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 64 -h 64 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_64.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 56 -h 56 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_56.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 48 -h 48 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_48.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 40 -h 40 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_40.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 32 -h 32 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_32.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 28 -h 28 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_28.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 24 -h 24 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_24.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 20 -h 20 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_20.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 16 -h 16 -a -o ../png_all/`echo 
$i | sed -e 's/svg$/png/'`; done          
 
 
Yes, non-integer scaling may be blury sometimes but nothing horrible.
 
V.
 
__

Od: "Michael Van Canneyt via lazarus" 
Komu: "Lazarus mailing list" 
Datum: 21.05.2020 16:14
Předmět: [Lazarus] Tool to make icons ?



Hi,

What is the tool used to make icons for standard Lazarus components ?
Every time I need to make an icon for a component, 
I find myself in the situation that I start looking for a tool on internet.


Should not lazarus come out of the box with a basic tool that allows you to
create component icons with the correct sizes ?

Michael.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Repainting of TWinControl children

2020-05-06 Thread Vojtěch Čihák via lazarus

AFAIK with TCustomControl you obtain just Resize and then Paint.
Paint is preceded by WMPaint. You should move your code to one of these methods.
 
Vojtěch a.k.a. Blaazen
 
__

Od: "Martin Grajcar via lazarus" 
Komu: "Lazarus mailing list" 
Datum: 04.05.2020 17:33
Předmět: [Lazarus] Repainting of TWinControl children


In a large project I found out that after on resizing of the form, some 
components get properly resized but don't receive an Invalidate call. I guess, 
it's caused by the test in lcl/include/control.inc

  if not ((csLoading in ComponentState) or (Self is TWinControl)) then
    InvalidateControl(IsControlVisible, False, true);Our component extends 
TCustomControl, so it doesn't get invalidated. I guess, such components are 
supposed to use a different mechanism, but I can't see how? Can someone point 
me to the right doc.

--

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Website/Mantis back online (colors)

2019-04-23 Thread Vojtěch Čihák via lazarus

Hi,
 
original appearance on Wayback machine: 
https://web.archive.org/web/20171104124226/https://bugs.freepascal.org/view_all_bug_page.php
 
V.
__

Od: "Martin Frb via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 23.04.2019 23:34
Předmět: Re: [Lazarus] Website/Mantis back online (colors)


On 23/04/2019 23:28, Michael Van Canneyt via lazarus wrote:
>
>
> On Tue, 23 Apr 2019, Martin Frb via lazarus wrote:
>
>> On 23/04/2019 22:53, Michael Van Canneyt via lazarus wrote:
>>>
>>> I made it darker.
>>
>> If Bart agrees, and if it is not asking to much (I know its been a 
>> lot of mantis this week)

>>
>> Can we go halfway between the new and the old green?
>
> If you give me the RGB in hex, yes, sure.
>
> My RGB hex is not so fluent that I can say "A halfway between 
> '#51efab' and '#cceedd', no sugar or milk, please"



8EEFC4
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Website/Mantis back online

2019-04-20 Thread Vojtěch Čihák via lazarus

So I am not alone (I chose more diplomatic words).
 
Vojtěch
__

Od: "Bart via lazarus" 
Komu: "Lazarus mailing list" 
Datum: 21.04.2019 00:16
Předmět: Re: [Lazarus] Website/Mantis back online


On Sat, Apr 20, 2019 at 11:36 PM Michael Van Canneyt via lazarus
 wrote:

> ... Mantis has been updated to the latest version.

That's a bit of a shock.
It looks horrible to me ;-(

--
Bart
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Website/Mantis back online

2019-04-20 Thread Vojtěch Čihák via lazarus

Oh, the new bugtracker skin is ... hmm, not so bad, but I'm rather conservative.
 
Well, life is change. :-)
 
Vojtěch
 
__

Od: "Michael Van Canneyt via lazarus" 
Komu: "FPC mailing list" , "FPC development mailing list" 
, "Lazarus mailing list" , "pas2js discussions" 

Datum: 20.04.2019 23:36
Předmět: [Lazarus] Website/Mantis back online



Hi,

The website has been restored to working order. 
SVN should be working again, Mantis has been updated to the latest version.


We're still working on some features, for example emails are not yet being
sent.

Michael.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Cannot build trunk

2019-04-13 Thread Vojtěch Čihák via lazarus

Thanks,
 
yes, I use FPC trunk. Upgrade to 41865 resolved my troubles.
 
Vojtěch.
__

Od: "Joost van der Sluis via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 13.04.2019 16:56
Předmět: Re: [Lazarus] Cannot build trunk


Op 13-04-19 om 14:41 schreef Vojtěch Čihák via lazarus:
> the latest trunk 60960 can't be built: fppkghelper.pas(524,20) Error: Identifier idents 
no member "ConfigurationFilename"

You have to update fpc. (I suppost you are using fpc-trunk?)

Regards,

Joost.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Cannot build trunk

2019-04-13 Thread Vojtěch Čihák via lazarus
Hi,
 
the latest trunk 60960 can't be built: fppkghelper.pas(524,20) Error: 
Identifier idents no member "ConfigurationFilename"
 
Thanks, Vojtěch
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Is LCL-GTK still possible?

2019-03-26 Thread Vojtěch Čihák via lazarus

Hi
 
I tried to compile an empty project in Laz. 2.1 an it fails on:
gtkwsstdctrls.pp(95,21) Error: There is no method in an ancestor class to be overridden: 
"class SetReadOnly(const TCustomComboBox;Boolean);"
 
as GTK1 is not actively maintained anymore so it would need some patches for 
even a simple projects.
V.
__

Od: "Graeme Geldenhuys via lazarus" 
Komu: "Lazarus mailing list" 
Datum: 26.03.2019 10:44
Předmět: [Lazarus] Is LCL-GTK still possible?


Hi,

I was just curious, so created a new application and dropped a few
standard widgets on the main form. Set the LCL target to GTK1 and tried
to compile the project. It failed with the "Cannot find LCLIntf used by
GtkDef"

See attached screenshot. Am I correct, that the LCL widgetset should
auto compile, even though my Lazarus IDE is compiled with LCL-GTK2?

I'm using FPC 3.0.4 (64-bit) under Ubuntu Linux using Lazarus 2.1.0
(dated 2019-02-09).


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-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] IDE dlg Go To don't react to Esc key

2019-01-23 Thread Vojtěch Čihák via lazarus

Hi,
 
I just did a test. Escape closes automatically any Form displayed with 
"ShowModal" (not Show) if there is BitBtn with Kind=bkCancel on that Form. It 
works on Delphi7, Lazarus+Qt4 or GTk2.
Edit.OnKeyPress on GoToFrm form contains this code:
 if not (Key in [^C,^V,^X,#8,'0'..'9']) then
    Key:=#0;    
 
On GTk2, Escape key is reseted when Edit is focused, otherwise it works.
On Qt4 and Delphi7 Escape key works even if Edit is focused.
 
V.
 
__

Od: "Bart via lazarus" 
Komu: "Lazarus mailing list" 
Datum: 23.01.2019 12:57
Předmět: Re: [Lazarus] IDE dlg Go To don't react to Esc key


On Wed, Jan 23, 2019 at 10:43 AM Mattias Gaertner via lazarus
 wrote:

> I added #13 and #27. Now it works again under Linux/gtk2.

Thanks.
Odd though, since on my Linux machine this worked with GTK2 without
that addition.
Wondering why.


--
Bart
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Exception=Unable to create file "/etc/fppkg/default"

2018-12-30 Thread Vojtěch Čihák via lazarus

What config file?
 
My /etc/fppkg.cfg is:
[Defaults]
ConfigVersion=4
LocalRepository={UserDir}.fppkg/
BuildDir={LocalRepository}build/
ArchivesDir={LocalRepository}archives/
CompilerConfigDir=/etc/fppkg
RemoteMirrors=https://www.freepascal.org/repository/mirrors.xml
RemoteRepository=auto
CompilerConfig=default
FPMakeCompilerConfig=default
Downloader=FPC 
 
so there are both pathes.
 
The only mention of fppkg in /etc/fpc.cfg is:
# searchpath for fppkg user-specific packages
-Fu~/.fppkg/lib/fpc/$fpcversion/units/$FPCTARGET/* 
 
However, it worked before, both configs are date 8-12-2017.
 
V.
__

Od: "Joost van der Sluis via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 30.12.2018 17:19
Předmět: Re: [Lazarus] Exception=Unable to create file "/etc/fppkg/default"


Op 30-12-18 om 15:16 schreef Bart via lazarus:
> On Sun, Dec 30, 2018 at 2:42 PM Vojtěch Čihák via lazarus
>  wrote:
> 
>> Lazarus(SVN) at startup tries to write at /etc/fppkg/ where it has no rights. The same file exists /home/$USERNAME/.fppkg/


That ain't good.

> There are more issues with r59933: see
> https://bugs.freepascal.org/view.php?id=34780 
<https://bugs.freepascal.org/view.php?id=34780>

This basically means that your fpc is not properly configured. I'll have 
to add a check somewhere (startup) for these settings.


And maybe suppress these messages, as long as a user does not use this 
functionality.


It could be useful to know the revision that introduced this behavior. 
It is probably not r59933, could it be r59934?


Regards,

Joost.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Exception=Unable to create file "/etc/fppkg/default"

2018-12-30 Thread Vojtěch Čihák via lazarus

Hi,
 
Lazarus(SVN) at startup tries to write at /etc/fppkg/ where it has no rights. 
The same file exists /home/$USERNAME/.fppkg/
 
Revision 59930 works well yet, revisions 59936 and 59940 are affected.
 
[v1@nb-msi lazarus]$ ./startlazarus 
is a file 
TLazarusManager.Run starting /home/v1/Lazarus_Qt/lazarus/lazarus ... 
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/
v1/.lazarus" 
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc
/lazarus" 
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 New
=x86_64-linux-gtk2 FPC=True LCL=False 
Hint: (lazarus) [TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE 
Hint: (lazarus) [TMainIDE.Destroy] END 
[FORMS.PP] ExceptionOccurred  
 Sender=EFCreateError 
 Exception=Unable to create file "/etc/fppkg/default" 
 Stack trace: 
 $0051EBA2 
 $0051E9F3 
 $00E15EFC 
 $00FA97CF  INSTANCE,  line 85 of ../packager/fppkghelper.pas 
 $00AA7DA4  OPENDEPENDENCY,  line 5838 of ../packager/packagesy
stem.pas 
 $00A94277  ADDPACKAGE,  line 2122 of ../packager/packagesystem
.pas 
 $00A8F8BE  OPENDEPENDENCYWITHPACKAGELINK,  line 998 of ../pack
ager/packagesystem.pas 
 $00AA78A0  OPENDEPENDENCY,  line 5785 of ../packager/packagesy
stem.pas 
 $00AA8B2B  OPENINSTALLEDDEPENDENCY,  line 5995 of ../packager/
packagesystem.pas 
 $00A949FE  LOADLAZARUSBASEPACKAGE,  line 2213 of ../packager/p
ackagesystem.pas 
 $00A9486F  LOADSTATICBASEPACKAGES,  line 2217 of ../packager/p
ackagesystem.pas 
 $00AB46C6  LOADINSTALLEDPACKAGES,  line 3086 of ../packager/pk
gmanager.pas 
 $004A8683  CREATE,  line 1590 of main.pp 
 $0041ECE6  main,  line 140 of lazarus.pp 
TApplication.HandleException: EFCreateError 
Unable to create file "/etc/fppkg/default" 
 Stack trace: 
 $0051EBA2 
 $0051E9F3 
 $00E15EFC 
 $00FA97CF  INSTANCE,  line 85 of ../packager/fppkghelper.pas 
 $00AA7DA4  OPENDEPENDENCY,  line 5838 of ../packager/packagesy
stem.pas 
 $00A94277  ADDPACKAGE,  line 2122 of ../packager/packagesystem
.pas 
 $00A8F8BE  OPENDEPENDENCYWITHPACKAGELINK,  line 998 of ../pack
ager/packagesystem.pas 
 $00AA78A0  OPENDEPENDENCY,  line 5785 of ../packager/packagesy
stem.pas 
 $00AA8B2B  OPENINSTALLEDDEPENDENCY,  line 5995 of ../packager/
packagesystem.pas 
 $00A949FE  LOADLAZARUSBASEPACKAGE,  line 2213 of ../packager/p
ackagesystem.pas 
 $00A9486F  LOADSTATICBASEPACKAGES,  line 2217 of ../packager/p
ackagesystem.pas 
 $00AB46C6  LOADINSTALLEDPACKAGES,  line 3086 of ../packager/pk
gmanager.pas 
 $004A8683  CREATE,  line 1590 of main.pp 
 $0041ECE6  main,  line 140 of lazarus.pp 
[v1@nb-msi lazarus]$ 


 
V.

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TRadioGroup not found error

2018-12-11 Thread Vojtěch Čihák via lazarus

TRadioGroup is in unit ExtCtrls. Lazarus, however, adds it automatically to 
"uses" when you insert it to form at design-time.
 
V.
__

Od: "Thomas Crone via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 11.12.2018 22:58
Předmět: [Lazarus] TRadioGroup not found error


My latest attempt to use Lazarus has given some odd errors…

First it complained about TEdit, so I replaced that with TMemo.

Now it is saying: Class “TRadioGroup” not found 

Do I have to add something manually to the Uses statement?

I’m on Win 7 pro 64bit with Lazarus 1.8.4, 2018-05-19, FPC Ver 3.0.4, SVN Rev. 
57972, x86_64 - win64 - win32/win64

Tom Crone cr...@cua.edu 

--

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Failed to wait for debug event. Errcode: 4

2018-12-02 Thread Vojtěch Čihák via lazarus

Hi,
 
sometimes, after I close my project, I got this message dialog: "Failed to wait for 
debug event. Errcode: 4".
I can see this in console:
 
Hint: (lazarus) [TMainIDE.DoRunProject] INIT Note: (lazarus) 
[TMainIDE.DoBuildProject] MainBuildBoss.DoCheckIfProjectNeedsCompilation 
nothing to be done Hint: (lazarus) [TMainIDE.DoRunProject] 
Debugger=TFpDebugDebugger Hint: (lazarus) [TMainIDE.DoRunProject] END Got PID: 
28074, TID: -1 Failed to read data. Errcode: 3 Unable to reset breakpoint at 
$00437200 (Address 0 out of 1) Failed to continue process. Errcode: 3 
Failed to continue process. Errcode: 3
 
(this output is always, dialog message is sometimes)
 
I use Lazarus 2.1.0 r59715 FPC 3.3.1 x86_64-linux-qt and FpDebug.
 
It does not happen with GDB.
 
Thanks.

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Order of OnCreate and OnActivate in Qt4

2018-11-26 Thread Vojtěch Čihák via lazarus

Thanks, Kostas, especially part about Qt styling.
 
I answered my solution yesterday, but it didn't appear in ML, it went to zejlko 
only - I noticed later. So here it is:
 
I don't have QtNativeEventFilter in qtdefines.inc at all.
However, I found simple workaround. I create main form with Visible:=False; and 
when all other forms are created I do FrmMain.Show; (in *.lpr). The order of 
events is as expected.
 
Thanks.
 
__

Od: "Kostas Michalopoulos via lazarus" 
Komu: "Lazarus mailing list" 
Datum: 26.11.2018 11:32
Předmět: Re: [Lazarus] Order of OnCreate and OnActivate in Qt4


I wouldn't rely on event order as anything between the creation to 
Application.Run could call Application.ProcessMessages - including some 
components/controls you may be using. As a rule of thumb you should assume that 
after calling a control (or form) that it can start receiving events.In Qt4 
styling is done through native code (QStyle subclasses) and it can alter 
widgets (QStyle::polish) so it isn't unthinkable that a theme could do 
something that generates events.
On Sun, Nov 25, 2018 at 6:47 PM zeljko via lazarus > wrote:On 11/25/2018 04:43 PM, Vojtěch Čihák via 
lazarus wrote:

> CRASH, because code in OnActivate assumes that FrmContext already exists.
> 
> So, Qt4+Plastique has different order of events than Qt4+QtCurve.
> 
> Unfortunately, I cannot reproduce with simple demo.
> 
> What I'm doing wrong? Do I rely on something that is not guaranteed?


Try to disable usage of QtNativeEventFilter in qtdefines.inc if it's 
enabled.


zeljko
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org 
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

--

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Order of OnCreate and OnActivate in Qt4

2018-11-25 Thread Vojtěch Čihák via lazarus

Hi,
 
I met strange bug today. I have these lines in .lpr:
...
Application.CreateForm(TFrmMain, FrmMain);
...
Application.CreateForm(TFrmContext, FrmContext);
...
 
and the order of events in Qt and GTk2 is:
FrmMain.Create
FrmContext.Create
FrmMain.Activate
 
Today I used tool qtconfig and changed style (Appearance) from Plastique to 
QtCurve. Now my code crashes, order of events is:
FrmMain.Create
FrmMain.Activate
CRASH, because code in OnActivate assumes that FrmContext already exists.
 
So, Qt4+Plastique has different order of events than Qt4+QtCurve.
Unfortunately, I cannot reproduce with simple demo.
 
What I'm doing wrong? Do I rely on something that is not guaranteed?
 
Thanks.

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Text in console in/output mirrored

2018-11-20 Thread Vojtěch Čihák via lazarus

Thankś, r.59612 is OK.
 
V.
__

Od: "Mattias Gaertner via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 20.11.2018 22:07
Předmět: Re: [Lazarus] Text in console in/output mirrored


On Tue, 20 Nov 2018 18:17:02 +0100
Vojtěch Čihák via lazarus  wrote:

Second try. Fixed.

Mattias
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Text in console in/output mirrored

2018-11-20 Thread Vojtěch Čihák via lazarus

Not yet OK, unfortunately. Text is not mirrored but looks like this (missing 
first letters of the words):

Heap ump y eaptrc nit f media/homeM/v1/Projects/ECSAS/ecsas
270869 emory locks llocated 7659478/78044368
270869 emory locks reed 7659478/78044368
0 nfreed emory locks
True eap ize 111808
True ree eap 111808
 
and when I stop app I have Range Check Error - see attachment.
 
Thanks, V.
 
__

Od: "Mattias Gaertner via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 20.11.2018 17:42
Předmět: Re: [Lazarus] Text in console in/output mirrored


On Tue, 20 Nov 2018 17:29:12 +0100
Vojtěch Čihák via lazarus  wrote:

> Hi,
>  
> it's caused by 59589
> (https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/debugger/pseudoterminaldlg.pp?root=lazarus=59589=59588=59589 <https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/debugger/pseudoterminaldlg.pp?root=lazarus=59589=59588=59589>). 
> V.


Sorry, fixed.

Mattias
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Text in console in/output mirrored

2018-11-19 Thread Vojtěch Čihák via lazarus

Hi,
 
it's funny, text is mirrored.
 
DebugLn('May the Force be with you.');
 
writes

.uoy htiw eb ecroF eht yaM
 
Lazarus 2.1.0 r59610 FPC 3.3.1 x86_64-linux-qt
 
V.

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Auto accel. keys on tabs in Qt5

2018-10-31 Thread Vojtěch Čihák via Lazarus
Hi,
 
I noticed that Qt5 automatically adds accerelator keys to TabSheets of 
PageControl, i.e. _TabSheet1, T_abSheet2, Ta_bSheet3 etc. which allows 
switching tab by Alt+T/A/B.
 
Is possible to disable this feature? The reason is that I have complex form and 
it creates duplicite shortcut Alt+C for Tab and Button, and this shortcut 
switches the tab rather than push button, which I want.
 
Thanks, V.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Remove unmatched vars in published

2018-10-25 Thread Vojtěch Čihák via Lazarus

Hi,
 
do you mean that you add control on the form (let's say Button1), then you remove it (in 
designer) and line "Button1: TButton;" remains in source editor?
 
V.
__

Od: "Fabio Luis Girardi via Lazarus" 
Komu: "Lazarus mailing list" 
Datum: 25.10.2018 15:09
Předmět: [Lazarus] Remove unmatched vars in published

Hi all!Lazarus has some feature, to remove all unmatched variable names (on published of class, specially on TForm class and it's descendants) that don't have a control or component with the same name?I'm working with big forms (process screens) and my coworkers are deleting some controls, but sometimes, Lazarus don't remove the variable. This behavior leads to some errors, like access violation, due access to a nil variable that still is referenced in code, but that is not created by the LFM reader (because it doesn't exist). If the variable is removed at the moment that the control is being deleted (or before save form) this erros will be filtered at compile time.-- 
The best regards,


Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada 

http://www.pascalscada.com 

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Can't assign event procedure....

2018-10-13 Thread Vojtěch Čihák via Lazarus

Did you try simply to add "const"?
 
V.
__

Od: "Bo Berglund via Lazarus" 
Komu: laza...@lists.lazarus.freepascal.org
Datum: 13.10.2018 20:43
Předmět: [Lazarus] Can't assign event procedure



What am I doing wrong here?

I have written similar types of programs where I have used this kind
of construction and it has worked fine (in Delphi).

Both the form file and the unit where the handler class is defined
have been set to:

{$mode Delphi}



--
Bo Berglund
Developer in Sweden

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] IDE Spotter- issues

2018-09-24 Thread Vojtěch Čihák via Lazarus

TEdit.Autosize does autosizing of edit's Height to its Font (mainly font.size 
or font.height). It does not affect edit's Width.
V.
__

Od: "Michael Van Canneyt via Lazarus" 
Komu: "Lazarus mailing list" , "AlexeyT" 

Datum: 24.09.2018 15:26
Předmět: Re: [Lazarus] IDE Spotter- issues




On Mon, 24 Sep 2018, AlexeyT wrote:

>> 3- input (edit) is not autosized, so height is small on Ubuntu.
>> 
>> So ? 
>

> better set AutoSize=true, so height will be native. (1.3x bigger.)

Done.

Originally there were some resizing problems. At some point I indeed
disabled AutoSize, because the effect of AutoSize for an edit is totally
unclear to me.

Michael.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Mouse wheel problem

2018-09-19 Thread Vojtěch Čihák via Lazarus

Hi, I tested with Lazarus 2.1.0 r59059M FPC 3.3.1 x86_64-linux-qt, Qt 4.8.7 & 
libQt4pas 5.2.5, Qt 5.11.1 & libQt5pas 2.6.r57057-1, GTk 2.24.32
 
V.
__

Od: "Fabio Luis Girardi" 
Komu: "Vojtěch Čihák" 
Datum: 19.09.2018 12:49
Předmět: Re: [Lazarus] Mouse wheel problem


What's your version of Lazarus and OS (including QT versions)?
Em Ter, 18 de set de 2018 17:03, Vojtěch Čihák > escreveu:Here the "Handled" trick works well for Qt4 and 
Qt5, no matter if the ItemIndex is -1 or >=0 or if the Combo is focused or not. Problem remains with 
GTk2 only. 
 
V.
__
> Od: "Fabio Luis Girardi" >
> Komu: "Vojtěch Čihák" >
> Datum: 18.09.2018 20:37
> Předmět: Re: [Lazarus] Mouse wheel problem
>
Hi!Even using this event, if the combobox selection is changed one time 
(ItemIndex<>-1), the mouse wheel will change the selection if the mouse cursor 
is over the combobox.I tried to modify the qt widget, but no success. Appears to be 
an LCL issue, since QT docs says to change the focus police to QtStrongFocus to solve 
this problem (I don't find the fix for GTK2) The best regards,Fabio

PascalSCADA Project
http://sourceforge.net/projects/pascalscada 

http://www.pascalscada.com 

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org 
https://lists.lazarus-ide.org/listinfo/lazarus 

--
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada 

http://www.pascalscada.com 
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Mouse wheel problem

2018-09-18 Thread Vojtěch Čihák via Lazarus

Hi,
you can use event
 
procedure TForm1.ComboBox1MouseWheel(Sender: TObject; Shift: TShiftState; 
WheelDelta: Integer; MousePos: TPoint;
  var Handled: Boolean);
begin
  Handled:=True;
end; 
 
this will not scroll the scrollbox when mouse pointer is over combobox, but 
ComboBox.ItemIndex will at least not change.
 
V.
 
__

Od: "Fabio Luis Girardi via Lazarus" 
Komu: "Lazarus mailing list" 
Datum: 18.09.2018 16:27
Předmět: [Lazarus] Mouse wheel problem

Hi all!I'm experiencing a problem with the mouse wheel and combobox control. I have a big form (4900x1000) on a single monitor. I put this big form on a Scrollbox to make it scrollable. To make the things easy to user/system operator, I decided to move the screen using the mouse wheel. This works fine and makes the navigation on this screen/form easy. The problem appears when the mouse cursor stops (after mouse wheel) over a combobox control. Even the combobox over the mouse cursor doesn't have the focus, the next mouse wheel event doesn't move the screen, but changes the combobox selection.All combobox on my application has Style set to csDropDownList. Another point that I noted, is that mouse wheel change doesn't occur if ItemIndex = -1.The same behavior is in GTK2 and QT4. I don't have tried on QT5.Someone knows how workaround or fix this?-- 
The best regards,


Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada 

http://www.pascalscada.com 

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Is FPC-Pascal list down?

2018-09-05 Thread Vojtěch Čihák via Lazarus

Hi,
 
FPC-Pascal list is probably down. Last message in my box is "[fpc-pascal] with in 
classes/records" by Sven from yesterday 14:15.
The two replies by Ryan Joseph + my new topic didn't appear in my box although 
they are listed in 
http://lists.freepascal.org/pipermail/fpc-pascal/2018-September/thread.html 
 
Thanks, Vojtěch.

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Vojtěch Čihák via Lazarus

Thanks,
 
column mode works well too.
 
V.
__

Od: Juha Manninen via Lazarus 
Komu: Lazarus mailing list 
Datum: 15.07.2018 15:26
Předmět: Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re:


On Sun, Jul 15, 2018 at 3:39 PM Vojtěch Čihák via Lazarus
 wrote:
> 2) I don't know what is "Column Mode Selection"

Alt-Shift with arrow keys select a column.

Juha
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Vojtěch Čihák via Lazarus

Hi,
 
I tested with Lazarus 1.9.0 r58530M FPC 3.1.1 x86_64-linux-qt. I tried also 
with -dDisableUTF8RTL
All works well with two exceptions:
 
1) folded block is copied folded only in implementation section. In interface 
section become unfolded (for example block TForm1 = class(TForm)...)
 
2) I don't know what is "Column Mode Selection"
 
Vojtěch
__

Od: Martin Frb via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 15.07.2018 12:27
Předmět: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re:


On 15/07/2018 12:07, Michael Van Canneyt via Lazarus wrote:
>
>
> It seems a fix is available but needs to be enabled using a define ?


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Vojtěch Čihák via Lazarus

Hi,
 
I tested with Lazarus 1.9.0 r58530M FPC 3.1.1 x86_64-linux-qt. I tried also 
with -dDisableUTF8RTL
All works well with two exceptions:
 
1) folded block is copied folded only in implementation section. In interface 
section become unfolded (for example block TForm1 = class(TForm)...)
 
2) I don't know what is "Column Mode Selection"
 
Vojtěch
__

Od: Martin Frb via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 15.07.2018 12:27
Předmět: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re:


On 15/07/2018 12:07, Michael Van Canneyt via Lazarus wrote:
>
>
> It seems a fix is available but needs to be enabled using a define ?


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] fpdebug question

2018-07-13 Thread Vojtěch Čihák via Lazarus

Thank you very much! :-)
__

Od: Martin Frb via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 13.07.2018 17:20
Předmět: Re: [Lazarus] fpdebug question


On 13/07/2018 16:01, Vojtěch Čihák via Lazarus wrote:Hi,
when I write following code (to force SIGSEGV)
...
 with fpdebug: also exception message box, when I click OK then Lazarus Main 
window dissapears, Access Violation, and I have to restart whole IDE.
 
Is it known issue? After all fpdebug is still marked "beta".
It was not.
It has been, since your mail.
It no longer is. (That is, it should be fixed in svn now)




--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] fpdebug question

2018-07-13 Thread Vojtěch Čihák via Lazarus

Hi,
when I write following code (to force SIGSEGV)
 
unit Unit1;
{$mode objfpc}{$H+}
 
interface
 
uses
  Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
 
type
  { TForm1 }
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
 
  public
 
  end;
 
var
  Form1: TForm1;
 
implementation
 
{$R *.lfm}
 
{ TForm1 }
 
procedure TForm1.Button1Click(Sender: TObject);
var a: array of Double;
begin
  a[99]:=3.14;
end;
 
end.      
 
with GDB: I got exception message box, then I got grayed line in Source Editor 
etc.
 
with fpdebug: also exception message box, when I click OK then Lazarus Main 
window dissapears, Access Violation, and I have to restart whole IDE.
 
Is it known issue? After all fpdebug is still marked "beta".
 
PS: Good thing about fpdebug is lower memory footprint.
  fpdebug: process lazarus 137MB
  gdb: process lazarus and gdb 86MB + 184MB = 270MB
 
Thanks, Vojtěch

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Searchable docs online

2018-07-05 Thread Vojtěch Čihák via Lazarus

Hi,
 
what is your browser? I use Falkon, here works both button and enter-key.
 
V.
__

Od: "Marcos Douglas B. Santos via Lazarus" 
Komu: Lazarus mailing list 
Datum: 05.07.2018 18:59
Předmět: Re: [Lazarus] Searchable docs online


On Thu, Jul 5, 2018 at 10:50 AM, Michael Van Canneyt via Lazarus
 wrote:
>
>
> Feedback and comments welcome.

There is no `action` in the search form. Nothing happens...

Regards,
Marcos Douglas
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] CodeTools commands question

2018-06-19 Thread Vojtěch Čihák via Lazarus

Thanks, it works.
 
Still, it would be nice to have two separate actions for this, Alt+Up and 
At+Down.
 
V.
__

Od: Mattias Gaertner via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 19.06.2018 17:05
Předmět: Re: [Lazarus] CodeTools commands question


On Tue, 19 Jun 2018 16:57:11 +0200
Vojtěch Čihák via Lazarus  wrote:

Maybe this option helps: "Jump directly to method body"

http://wiki.lazarus.freepascal.org/IDE_Window:_Codetools_Options#Jumping_.28e.g._Method_Jumping.29
 
<http://wiki.lazarus.freepascal.org/IDE_Window:_Codetools_Options#Jumping_.28e.g._Method_Jumping.29>



Mattias
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] CodeTools commands question

2018-06-19 Thread Vojtěch Čihák via Lazarus

Hi,
 
is there a CodeTool command that can take me directly to procedure/method 
implementation?
 
Example:
 
function TTreeNode.GetTop: integer;
begin
  if TreeView <> nil then
    TreeView.UpdateAllTops|;  //<-- caret is HERE
  Result := FTop;
end;  
 
by default, Ctrl+Shift+Up and Ctrl+Shift+Down jump between declaration and 
implementation of TTreeNode.GetTop;
Alt+Up takes me to declaration of TTreeNode.UpdateAllTops; and 
Ctrl+Shift+Up/Down takes me to its implementation.
 
I'm looking for a way to get to implementation of UpdateAllTops directly ( 
Alt+Down would be nice ).
 
Thank you,
 
V.

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Can't call the resource compiler

2018-06-14 Thread Vojtěch Čihák via Lazarus

Hi,
 
now I recompiled successfully after update to Lazarus 1.9.0 r58277M FPC 3.1.1 
x86_64-linux-qt
 
I see many updates related to lazdebuggers. May it be related?
 
Thanks,
 
V.
__

Od: Vojtěch Čihák via Lazarus
Komu: Lazarus mailing list 
Datum: 15.06.2018 01:05
Předmět: [Lazarus] Can't call the resource compiler


Hi,
 
I have often following message when I try to rebuild Lazarus from IDE:
 
lazarus.pp(167,1) Error: Can't call the resource compiler 
"/usr/local/bin/fpcres", switching to external mode
 
It happens ~last week with trunk: Lazarus 1.9.0 r58270M FPC 3.1.1 
x86_64-linux-qt (or qt5).
 
There's no specific error message, caret is on the last line of lazarus.pp. 
Console also didn't show anything unusual; fpcres is on its place.
 
How can I solve it?
 
Thanks,
 
V.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Can't call the resource compiler

2018-06-14 Thread Vojtěch Čihák via Lazarus
Hi,
 
I have often following message when I try to rebuild Lazarus from IDE:
 
lazarus.pp(167,1) Error: Can't call the resource compiler 
"/usr/local/bin/fpcres", switching to external mode
 
It happens ~last week with trunk: Lazarus 1.9.0 r58270M FPC 3.1.1 
x86_64-linux-qt (or qt5).
 
There's no specific error message, caret is on the last line of lazarus.pp. 
Console also didn't show anything unusual; fpcres is on its place.
 
How can I solve it?
 
Thanks,
 
V.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] New Image Lists question

2018-05-23 Thread Vojtěch Čihák via Lazarus

I have one more question: do I understand well that ImageList stores basic 
resolution uncompressed in node Bitmap and all other resolutions compressed in 
node BitmapAdv?
 
Thanks,
 
Vojtěch.
__

Od: Ondrej Pokorny via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 23.05.2018 19:43
Předmět: Re: [Lazarus] New Image Lists question


On 23.05.2018 19:35, Ondrej Pokorny via Lazarus wrote:
Ondrej


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] New Image Lists question

2018-05-23 Thread Vojtěch Čihák via Lazarus

 
__

Od: Ondrej Pokorny via Lazarus <lazarus@lists.lazarus-ide.org>
Komu: lazarus@lists.lazarus-ide.org
Datum: 23.05.2018 19:43
Předmět: Re: [Lazarus] New Image Lists question


On 23.05.2018 19:35, Ondrej Pokorny via Lazarus wrote:On 23.05.2018 19:29, 
Vojtěch Čihák via Lazarus wrote:But I need to add images at design-time via 
Image List Editor. I have my images at *.svg format and I use script for 
converting (I use rsvg tool). 
 So I need to know where to store transfered images (one or more directories) 
and what names (or suffixes) give them to be able to load them via Image List 
Editor at once (if possible).

I don't understand you.
Oh, sorry, I missed the "at once". You can only load either several images in one resolution or one 
image list in multiple resolutions at once. For the former use "Add ...", for the latter use 
"Add more resolutions ..." (select all resolutions of the image in the open file dialog).

Ondre


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] New Image Lists question

2018-05-23 Thread Vojtěch Čihák via Lazarus

But I need to add images at design-time via Image List Editor. I have my images 
at *.svg format and I use script for converting (I use rsvg tool). 
 
#!/bin/bash
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 80 -h 80 -a -o ../png80/`echo $i 
| sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 64 -h 64 -a -o ../png64/`echo $i 
| sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 56 -h 56 -a -o ../png56/`echo $i 
| sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 48 -h 48 -a -o ../png48/`echo $i 
| sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 40 -h 40 -a -o ../png40/`echo $i 
| sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 32 -h 32 -a -o ../png32/`echo $i 
| sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 28 -h 28 -a -o ../png28/`echo $i 
| sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 24 -h 24 -a -o ../png24/`echo $i 
| sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 20 -h 20 -a -o ../png20/`echo $i 
| sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 16 -h 16 -a -o ../png16/`echo $i 
| sed -e 's/svg$/png/'`; done
                                                                                
                                 
 
So I need to know where to store transfered images (one or more directories) 
and what names (or suffixes) give them to be able to load them via Image List 
Editor at once (if possible).
 
Thanks.
__

Od: Ondrej Pokorny via Lazarus <lazarus@lists.lazarus-ide.org>
Komu: lazarus@lists.lazarus-ide.org
Datum: 23.05.2018 19:20
Předmět: Re: [Lazarus] New Image Lists question


On 23.05.2018 19:18, Vojtěch Čihák via Lazarus wrote:Thanks, I saw the demos, I 
see now how it works. But how can I add multiple resolution to ImageList? Is it 
possible only with suffixes and all images must be in the same directory? I 
need to push 10 resolution to one ImageList. Default res. is 16x16 and the 
others are 20, 24, 28, 32, 40, 48, 56, 64 and 80.
How should I do it?

See the demo examples/imagelist_highdpi_runtime again.

Ondrej


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] New Image Lists question

2018-05-23 Thread Vojtěch Čihák via Lazarus

Thanks, I saw the demos, I see now how it works. But how can I add multiple 
resolution to ImageList? Is it possible only with suffixes and all images must 
be in the same directory? I need to push 10 resolution to one ImageList. 
Default res. is 16x16 and the others are 20, 24, 28, 32, 40, 48, 56, 64 and 80.
How should I do it?
 
V.
 
__

Od: Ondrej Pokorny via Lazarus <lazarus@lists.lazarus-ide.org>
Komu: lazarus@lists.lazarus-ide.org
Datum: 23.05.2018 17:33
Předmět: Re: [Lazarus] New Image Lists question


On 23.05.2018 16:07, Vojtěch Čihák via Lazarus wrote:
> I have application where user can choose size of toolbars, i.e. I have 
several image lists named IL16, IL20, IL24, IL32, IL48 and I switch them in 
property TToolBar.Images. In meanwhile, TImageList was redesigned to work with 
hi-DPI desktops.
> Now, I can load more images to each imagelist, with suffix _150 and _200. But 
it will cause dupicities, because icon16_150 and icon16_200 will have size 24 and 
32 respectively, which are already stored in IL24 and IL32.
>   
> Question is: how can I do it without duplicities?


You don't need several image lists any more. Delete IL20, IL24, IL32 and 
IL48 use only IL16 where you load all the images.


Read:
http://wiki.freepascal.org/Lazarus_1.10.0_release_notes#TCustomImageList_.2F_TImageList
 
<http://wiki.freepascal.org/Lazarus_1.10.0_release_notes#TCustomImageList_.2F_TImageList>
http://wiki.freepascal.org/TImageList <http://wiki.freepascal.org/TImageList>

Demos:
examples/imagelist_highdpi_designtime
examples/imagelist_highdpi_runtime

Ondrej
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] New Image Lists question

2018-05-23 Thread Vojtěch Čihák via Lazarus
Hi,
 
I have application where user can choose size of toolbars, i.e. I have several 
image lists named IL16, IL20, IL24, IL32, IL48 and I switch them in property 
TToolBar.Images. In meanwhile, TImageList was redesigned to work with hi-DPI 
desktops.
Now, I can load more images to each imagelist, with suffix _150 and _200. But 
it will cause dupicities, because icon16_150 and icon16_200 will have size 24 
and 32 respectively, which are already stored in IL24 and IL32.
 
Question is: how can I do it without duplicities?
 
Thanks, V.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] IDE multi-caret options wishes

2018-05-22 Thread Vojtěch Čihák via Lazarus

Yes, even on my first PC - Commodore 64 - it was "cursor". Therefore it is 
stupid that Delphi named that property Cursor: TCursor and it means image of mouse 
pointer.
 
V.
__

Od: Graeme Geldenhuys via Lazarus 


The "text cursor" has been around for much longer than the mouse device
existed. Think by how many years the terminal interface on Mainframes,
UNIX workstations and even DOS predates the Mouse device.

--
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-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Bug in form Taborder?

2018-05-05 Thread Vojtěch Čihák via Lazarus

Hi,
 
this is very probably issue https://bugs.freepascal.org/view.php?id=30010 - 
resolved in meanwhile.
You wrote that you use two versions of Lazarus. Does it happen in the newer 
1.8.2 too? I don't know if the fix is there.
 
V.


__

Od: frans via Lazarus 
Komu: Mattias Gaertner via Lazarus 
Datum: 04.05.2018 10:28
Předmět: Re: [Lazarus] Bug in form Taborder?


Hi Mattias

I've added 2 images. In both images the Tab order form shows the samen 
content, while the form on the richt shows a different selected component.

I hope now you understand what I mean.


---
Deze e-mail is gecontroleerd op virussen door AVG.
http://www.avg.com 


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Runtime error: INCLOCKED

2018-04-29 Thread Vojtěch Čihák via Lazarus

Hi,
 
I changed line 7:
 
TElement = record
      strr: String;
  end;
  TList = array[0..1] of TElement;  //HERE
  Plist = ^TList;   
 
and demo works. Simply, static and dynamic arrays are not the same.
AFAIR, dynamic array is just pointer while static array are data.
I guess someone else will give you more detailed answer.
 
V.
__

Od: Valdas Jankūnas via Lazarus
Komu: Lazarus@lists.lazarus-ide.org
Datum: 29.04.2018 18:16
Předmět: [Lazarus] Runtime error: INCLOCKED



type
  TElement = record
      strr: String;
  end;
  TList = array of TElement;
  Plist = ^TList;
.

Why I getting that error? Something wrong with records and constant 
initialization?

My system is: Linux 4.13.0-39-generic #44-Ubuntu SMP Thu Apr 5 14:25:01 UTC 
2018 x86_64 x86_64 x86_64 GNU/Linux
FPC (from SVN): 3.1.1 [2018/02/21] for x86_64
--
  Valdas Jankūnas
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] FormStyle=fsStayOnTop: broken?

2018-04-28 Thread Vojtěch Čihák via Lazarus

Hi,
it works here for GTk2, i.e. normal main form + fsStayOnTop form (a tool 
window).
I have Plasma (KDE). Isn't it related to your window manager?
 
V.
__

Od: AlexeyT via Lazarus 
Komu: Lazarus mailing list 
Datum: 28.04.2018 12:19
Předmět: [Lazarus] FormStyle=fsStayOnTop: broken?


Win32 and gtk2 app cannot show form on top. Pls confirm somebody?

--
Regards,
Alexey

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Selection block/brace

2018-04-26 Thread Vojtěch Čihák via Lazarus

Hi,
Select to Brace does nothing, no matter if caret is outside or inside (),[] or 
{}.
What it shoulld do?
 
(abc|def) should select "def"?
 
Thanks,
 
V.
__

Od: Martin Frb via Lazarus <lazarus@lists.lazarus-ide.org>
Komu: lazarus@lists.lazarus-ide.org
Datum: 26.04.2018 18:35
Předmět: Re: [Lazarus] Selection block/brace


On 25/04/2018 03:01, Vojtěch Čihák via Lazarus wrote:
> Hi,
>   
> I tried two items from Lazarus Edit menu: Select to Brace and Select Code Block. Both seem do nothing. Are they broken? I didn't use them before so I expexted they would do what their name say. I have Lazarus 1.9.0 r57693M FPC 3.1.1 x86_64-linux-qt.

>

Select to brace works well, if the caret is at a brace ()[]{}

"Code block" may not yet be implemented (check console output), needs to 
be verified. If so should be hidden

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Component editors and related

2018-04-25 Thread Vojtěch Čihák via Lazarus

Hi,
 
ad 1: I never tried two level collection. Are they all published (both 
collections and their items)?
 
ad 2: You can do (in your component editor) something like:
 
var aHook: TPropertyEditorHook;
begin
  ...
  aHook:=nil;
      if not GetHook(aHook) then exit;
  ...
  //add or insert:
    AddedItem:=aComponent.Columns.Add;
    aHook.PersistentAdded(AddedItem, True);  //this notifies component tree
    aHook.SelectOnlyThis(AddedItem);   //this selects added object
  //deleting
   DeletedItem:=aComponent.Columns[aIndex];
   aHook.DeletePersistent(TPersistent(DeletedItem));   //this notifies 
component tree
 
V.   
 
__

Od: Werner Pamler via Lazarus 
Komu: Lazarus mailing list 
Datum: 25.04.2018 19:56
Předmět: [Lazarus] Component editors and related


Hi all,

currently I am porting those JVCL components which look interesting to 
me 
(https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/jvcllaz/ ), 
but at the moment I am stuck with the component editor of the 
TJvOutlookBar. This is some kind of two-level vertical menu. The top 
level is a list of TJvOutlookBarPage items, and each page has a list of 
TJvOutlookbarButton items as second level. Both lists inherit from 
TCollection. My problem is that in the component tree of the object 
inspector I see only the page items, but not the button "sub-items". See 
attached screen shot of Lazarus and the Delphi version for comparison. 
How can I make the button subnodes appear in the component tree?


Another problem: The component comes with a ComponentEditor for the 
entire class, which looks similar to that of a TCollection, but contains 
a treeview to display the page-button relationships. After some 
twiddling around I was able to make this work in Lazarus, i.e. when I 
add nodes to the tree in the component editor the corresponding buttons 
or pages are added to the control on the form designer; and when I 
navigate in the component editor's tree the selected object follows in 
the component tree and in the object inspector. But the opposite 
direction does not work:  When I add a page or button in the object 
inspector (by using the Pages and Buttons collection property editors) 
the tree in the component editor is not updated. How can I do this?


Any hints greatly appreciated.
Werner




--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Selection block/brace

2018-04-24 Thread Vojtěch Čihák via Lazarus
Hi,
 
I tried two items from Lazarus Edit menu: Select to Brace and Select Code 
Block. Both seem do nothing. Are they broken? I didn't use them before so I 
expexted they would do what their name say. I have Lazarus 1.9.0 r57693M FPC 
3.1.1 x86_64-linux-qt.
 
Thanks
 
V.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Color and transparancy selection ?

2018-03-22 Thread Vojtěch Čihák via Lazarus

Hello,
 
native TColorDialog in Qt4 has slider and edit for Alpha channel but this value 
is never in the result (i.e. TColorDialog.Color property). TColor uses upper 8 
bits for other purposes than alpha.
 
V.
__

Od: Michael Van Canneyt via Lazarus 
Komu: Lazarus mailing list 
Datum: 22.03.2018 20:49
Předmět: [Lazarus] Color and transparancy selection ?



Hello,

Is there a version of TColorDialog which allows to specify an Alpha channel ?

Michael.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Lazarus projects (wiki)

2018-03-13 Thread Vojtěch Čihák via Lazarus
Hello,
 
I noticed that wiki pages 
http://wiki.freepascal.org/Lazarus_Application_Gallery and 
http://wiki.freepascal.org/Projects_using_Lazarus become too comprehensive and 
therefore obuscated. Especially the second should/can be separated to more 
pages - Components and Libraries, Multimedia, Games etc. because it is well 
separated in content of the page. No idea how to separate Application Gallery. 
Alphabetically?
 
V.
 
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Call context menu in my component

2018-03-10 Thread Vojtěch Čihák via Lazarus

Hi,
 
DoContextMenu(...) cannot work, this method only manages OnContextPopup event.
Perform(LM_CONTEXTMENU, 0, 0) (or SendMessage or PostMessage) works here (Qt). 
Handle must have assigned PopupMenu and it needs correct parameters, not just 
(...,0, 0) which shows Popmenu in the top-left screen corner here.
 
V.
 
__

Od: AlexeyT via Lazarus 
Komu: Lazarus mailing list 
Datum: 10.03.2018 09:27
Předmět: [Lazarus] Call context menu in my component


Hi. I try to call context menu inside ATSynEdit:

- DoContextMenu(...)- does nothing

- Perform(LM_CONTEXTMENU, 0, 0)- does nothing

- WMContextMenu() must work but I need TMessage param for it, how to get it?

--
Regards,
Alexey

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Special Request: Theme entire IDE support

2018-03-10 Thread Vojtěch Čihák via Lazarus

Hi,
 
you can do it for Qt applications, just run Lazarus (or any Laz. project built 
as Qt) as:
 
./lazarus -stylesheet mydarkstyle.qss
 
where mydarkstyle.qss must be valid Qt Style Sheet file, see: 
http://doc.qt.io/archives/qt-4.8/stylesheet.html#stylesheet
 
V.
__

Od: Anthony Walter via Lazarus 
Komu: Lazarus mailing list 
Datum: 10.03.2018 04:41
Předmět: [Lazarus] Special Request: Theme entire IDE support


I just wanted to put this idea out there, which I feel would bring significant 
pleasure to a lot of Lazarus users.Would someone consider adding or working on 
support to theme the entire Lazarus IDE? I've found myself quite fond of darker 
themed IDE, such as VS code:...If anyone has desire to communicate the 
pros/cons of this proposal (both of the concept and implementation) could you 
please it discuss here?

--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Floats not streamed always (bug in trunk)

2018-03-06 Thread Vojtěch Čihák via Lazarus

Reported: https://bugs.freepascal.org/view.php?id=33348
 
It happens with FPC 3.1.1 only, 3.0.4 works fine, so I reported it to FPC 
mantis.
 
V. 
__

Od: Vojtěch Čihák via Lazarus
Komu: Lazarus mailing list <laza...@lists.lazarus.freepascal.org>
Datum: 06.03.2018 20:27
Předmět: [Lazarus] Floats not streamed always (bug in trunk)


Hi,
 
I found bug in Lazarus 1.9 (Lazarus 1.9.0 r57442M FPC 3.1.1 x86_64-linux-qt).
Properties of type Float are not streamed to *.lfm when theirs value =0.
It is not problem with for example TFloatSpinEdit where is "default" =0 (default means 
"value set in constructor" here, since floats cannot have default).
Some my components has "default" -100 and when I change it to 0, it is not 
stored.
 
Is it Lazarus or FPC issue? I'll fill bugreptort.
 
V.


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Floats not streamed always (bug in trunk)

2018-03-06 Thread Vojtěch Čihák via Lazarus

Hi,
 
I found bug in Lazarus 1.9 (Lazarus 1.9.0 r57442M FPC 3.1.1 x86_64-linux-qt).
Properties of type Float are not streamed to *.lfm when theirs value =0.
It is not problem with for example TFloatSpinEdit where is "default" =0 (default means 
"value set in constructor" here, since floats cannot have default).
Some my components has "default" -100 and when I change it to 0, it is not 
stored.
 
Is it Lazarus or FPC issue? I'll fill bugreptort.
 
V.

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] An expression is returning false, why?

2018-03-04 Thread Vojtěch Čihák via Lazarus

Hi,
I just tested. Active Form always returns Focused False. Use property Active 
instead.
 
Result := (FControl is TCustomForm) and TCustomForm(FControl).Active;
 
V.
__

Od: Lubos Pintes via Lazarus 
Komu: laza...@lists.lazarus.freepascal.org
Datum: 04.03.2018 17:58
Předmět: [Lazarus] An expression is returning false, why?


Hello,
Sorry for possibly stupid subject and maybe off-topic question. In my 
UIA code, I am testing if a control has focus. So I have a FControl: 
TControl declared in my class.
Now say FControl contains a TForm1 instance, simply we have very simple 
program with just an empty window. Then an expression:

Result := FControl is TWinControl and TWinControl(FControl).Focused;
returns false. I am sure the form has focus..., because 
ShowMessage(BoolToStr(Focused)) returns -1, which represents true...


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] ghost selector in form editor

2018-02-17 Thread Vojtěch Čihák via Lazarus

Hi,
 
I can simulate this on Qt in several ways:
1) select two components on different tabs of page control, one of them will be 
ghost
2) some components can be hidden behind other, it is caused by wrong Z-order, 
for example TSpeedButton behind enlarged non-transparent TLabel or TStaticText.
and probably other ways.
 
BTW, what control is that "Status no valido!" caption? Isn't it the case no.2?
 
V.
 
__

Od: Luca Olivetti via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 15.02.2018 09:10
Předmět: [Lazarus] ghost selector in form editor

I've been seeing this from time immemorial, probably since 0.something, 
both under windows and linux/gtk/qt (though under linux is much more 
frequent):


when I select an object on the form, sometimes I see a ghost selection 
(or more than one, see the attached screenshots, first one windows, 
second one linux/gtk).


This is lazarus 1.8.0/fpc 3.0.4 but, as I said, I saw this with every 
previous lazarus version.



Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/ 
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] WARNING: TResourceCacheItem.IncreaseRefCount 1000 TFontHandleCache

2018-02-16 Thread Vojtěch Čihák via Lazarus

Hi,
 
don't you know what does this output mean (in Console In/Output, not in 
Messages): WARNING: TResourceCacheItem.IncreaseRefCount 1000 TFontHandleCache ?
 
Thanks,
 
V.

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] IDE loose func default param on class completion

2018-02-13 Thread Vojtěch Čihák via Lazarus

Thanks, I understand now. So I can confirm with Lazarus 1.9.0 r57291M FPC 3.0.4 
x86_64-linux-qt.
 
V.
__

Od: Mattias Gaertner via Lazarus <lazarus@lists.lazarus-ide.org>
Komu: lazarus@lists.lazarus-ide.org
Datum: 14.02.2018 00:45
Předmět: Re: [Lazarus] IDE loose func default param on class completion


On Tue, 13 Feb 2018 22:26:28 +0100
Vojtěch Čihák via Lazarus <lazarus@lists.lazarus-ide.org> wrote:

> I knw it but I always thought it is by design.

It should remove default values from implementation, not from interface.

Mattias
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] IDE loose func default param on class completion

2018-02-13 Thread Vojtěch Čihák via Lazarus

I knw it but I always thought it is by design.
 
V.
__

Od: AlexeyT via Lazarus 
Komu: Lazarus mailing list 
Datum: 13.02.2018 20:22
Předmět: [Lazarus] IDE loose func default param on class completion

On class completion (ctrl+shift+c?) I'm on method declaration in 
"implementation".


method decl in "interface" has "default" values of params. and this 
hotkey changes line in "interface" to same as in "impl" and default 
values - are lost... :-\



eg

  TATMarkers = class
  public
    procedure Add(APosX, APosY: integer;
  const ATag: Int64=0;
  ALenX: integer=0;
  ALenY: integer=0;
  APtr: TObject=nil;
  AInsertToBegin: boolean=false);

--
Regards,
Alexey

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] IDE focused window after app terminates

2018-01-28 Thread Vojtěch Čihák via Lazarus

Hi, my Linux+KDE (Plasma) experience:
 
I have no docking manager for Lazarus.
Source Editor (or Object Inspector or Messages etc.) is focused.
I run app. using F9.
When app. active, I close it, by click to [X] or by Alt+F4.
I can see Source Editor sometimes focused for a fraction of second (blink), but 
usually
Main Winow is immediately focused.
 
V.
__

Od: Graeme Geldenhuys via Lazarus 
Komu: Lazarus mailing list 
Datum: 28.01.2018 01:16
Předmět: [Lazarus] IDE focused window after app terminates


Hi,

The annoyance I never noticed before is that when my application 
terminates (run via F9 from within the IDE), the Main Window of Lazarus 
IDE always gets focus, instead of the Source Editor window. So this 
forces me to use the mouse to click the Source Editor window to get 
focus, before I can make my next small code change.


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-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Editor Macros looses key shortcuts

2018-01-15 Thread Vojtěch Čihák via Lazarus

Hi,
 
it happened me already twice (yesterday and ~month ago) that Editor Macros lost key shortcuts. All macros remains 
in EditorMacros.xml but without any key shortcut info, i.e. there are no  nodes.
No problem, I recovered from backup.
 
I use Lazarus SVN and I rebuild it quite often, I also do sometimes various 
tests which sometimes lead to AV.
I don't know what it causes, anyway I recommend to do the backup of your 
configs, especially EditorMacros.xml.
 
V.

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Redundant assigned(X) and (X is Txxx) in Laz. sources

2018-01-12 Thread Vojtěch Čihák via Lazarus

Hi,
 
I wrote a small routine to search Lazarus sources and it found about 60 places 
similar to this (taborderdlg.pas, line 398):
 
if Assigned(LookupRoot) and (LookupRoot is TWinControl) then begin
 
Should I make a patch for all occurences?
 
V.

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Source | complete code - does nothing.

2018-01-09 Thread Vojtěch Čihák via Lazarus

Hi,
 
example - you write:
i:=5;
and hit Ctrl+Shift+X on that line and it will open dialog where you can choose if you 
want to create "i" as a local or class variable.
 
V.
__

Od: Donald Ziesig via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 09.01.2018 17:54
Předmět: [Lazarus] Source | complete code - does nothing.


Hi All:
I was just playing with text editing "toys" such as code completion, outlines, 
etc.  While doing this I discovered that clicking on the menu entry:
Source
  Complete Code (with Dialog)   Ctrl-Shift-X
does nothing.  No dialog, no changes to text in editor.
I  then tried Ctrl-Shift-X with similar (no) results.
This is not a major issue for me, I was just being curious, but I would think 
that a main menu entry should do something ;-).
What is it supposed to do?
I am using the release version of Lazarus 1.8 (dated 2017-12-13) on Linux Mint 
18.3 with gtk2.
Thanks,
Don Ziesig
 


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Extended filter for Code Completion

2018-01-08 Thread Vojtěch Čihák via Lazarus

It can be resized by mouse, by the small handle in bottom-rigth corner.
 
V.
__

Od: AlexeyT via Lazarus 
Komu: Juha Manninen via Lazarus 
Datum: 08.01.2018 19:30
Předmět: Re: [Lazarus] Extended filter for Code Completion

patch makes red hilite of current ID in the listbox. Can you tell how to 
make listbox 2x-3x wider? it's narrow.

> Please test everybody. Does it have negative side-effects of some kind?

--
Regards,
Alexey

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Strip symbols in IDE

2018-01-07 Thread Vojtěch Čihák via Lazarus
Hi,
 
does the checkbox [X] Strip symbols from executble works well for you?
It does nothing here. If I then do:
>strip project1
in xterm, it works. I have "strip" installed in /usr/bin.
It seems that other options have no efect to it, except -Xg [X] Use external 
debug file.
 
V.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Package filenames with _package

2018-01-07 Thread Vojtěch Čihák via Lazarus

I noticed: if the main package file has the same name as the lpk than it is not 
listed in that lpk, right?
V.
__

Od: Mattias Gaertner via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 07.01.2018 14:55
Předmět: Re: [Lazarus] Package filenames with _package


On Sun, 7 Jan 2018 20:08:31 +0700
Ondrej Pokorny via Lazarus  wrote:

>[...]
> >> The package unit can have a different name as the package. See
> >> for example synedit.  
> >
> > I didn't know this, and this is good to know !  
> 
> I didn't know this either. Where can the pas file name be changed? I 
> can't find any entry in the Package Options dialog.


Right click on an unit in the package editor and set File Type to "Main
Unit". That is then the auto generated unit.

Here is how to create a new package with this:
http://wiki.freepascal.org/Lazarus_Packages#Create_a_package_with_a_unit_that_has_the_same_name_as_the_package
 


If you often need to create packages a custom main unit name, feel free
to create a new package type or an initial setup dialog.


Mattias
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Rebuilding IDE Gtk/Qt

2018-01-05 Thread Vojtěch Čihák via Lazarus

Hi,
 
I see now, FBuildTarget.CompilerOptions.GetEffectiveLCLWidgetType is never 
called. Result depends on parameter LCLWidgetType of function 
TBuildManager.SetBuildTarget().
This code:
procedure TMainIDE.mnuToolConfigBuildLazClicked(Sender: TObject);
var
  ...
begin
  //if ToolStatus<>itNone then exit;
  if fBuilder=Nil then
    fBuilder:=TLazarusBuilder.Create;    // Will be freed in the very end.
  MainBuildBoss.SetBuildTargetIDE;
  try
    
DlgResult:=fBuilder.ShowConfigureBuildLazarusDlg(MiscellaneousOptions.BuildLazProfiles);
  finally
    MainBuildBoss.SetBuildTargetProject1(true);
  end;
 
SetBuildTargetIDE calls SetBuildTarget with correct parameters but in turn in 
finally section SetBuildTargetProject1 calls:
SetBuildTarget('','','',ScanFPCSrc,Quiet);   //note that empty strings
It later calls:
 
function GetDefaultLCLWidgetType: TLCLPlatform;
begin
  if (WidgetSet<>nil) and (WidgetSet.LCLPlatform<>lpNoGUI) then
    Result:=WidgetSet.LCLPlatform
  else
    Result:=BuildLCLWidgetType;
end;
 
where WidgetSet is always assigned and Result is always gtk2.
 
V.
__

Od: Mattias Gaertner via Lazarus <lazarus@lists.lazarus-ide.org>
Komu: lazarus@lists.lazarus-ide.org
Datum: 05.01.2018 13:11
Předmět: Re: [Lazarus] Rebuilding IDE Gtk/Qt


On Fri, 05 Jan 2018 02:59:56 +0100
Vojtěch Čihák via Lazarus <lazarus@lists.lazarus-ide.org> wrote:

> I found the reason but to make a patch is beyond my powers.
> When I used the steps described below, I got this in console:
>[...]is unchangedThe changes come from method 
MainBuildBoss.SetBuildTargetProject1 which is called several times in main.pp, 
mainly in TMainIDE.mnuToolConfigBuildLazClicked at line 4595.

Yes, these are the switches between project and IDE settings.

> It calls TBuildManager.SetBuildTarget and nested function GetEffectiveLCLWidgetType 
where is line: Result:=FBuildTarget.CompilerOptions.GetEffectiveLCLWidgetTypeIt is probably 
the reason why combobox in "Configure Build Lazarus" is ignored and is replaced by 
value from Compiler Options.

No, when building the IDE the FBuildTarget is nil.
See TBuildManager.SetBuildTargetIDE.

Please start the IDE with -v -v to get more output.

Mattias


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Rebuilding IDE Gtk/Qt

2018-01-05 Thread Vojtěch Čihák via Lazarus

Hi, so I reproduced again unwanted qt to gtk2 rebuild. Now the -v -v output is 
bigger:
 
https://pastebin.com/MCPe8FE7
 
Thanks, V.
__

Od: Mattias Gaertner via Lazarus <lazarus@lists.lazarus-ide.org>
Komu: lazarus@lists.lazarus-ide.org
Datum: 05.01.2018 13:11
Předmět: Re: [Lazarus] Rebuilding IDE Gtk/Qt


On Fri, 05 Jan 2018 02:59:56 +0100
Vojtěch Čihák via Lazarus <lazarus@lists.lazarus-ide.org> wrote:

> I found the reason but to make a patch is beyond my powers.
> When I used the steps described below, I got this in console:
>[...]is unchangedThe changes come from method 
MainBuildBoss.SetBuildTargetProject1 which is called several times in main.pp, 
mainly in TMainIDE.mnuToolConfigBuildLazClicked at line 4595.

Yes, these are the switches between project and IDE settings.

> It calls TBuildManager.SetBuildTarget and nested function GetEffectiveLCLWidgetType 
where is line: Result:=FBuildTarget.CompilerOptions.GetEffectiveLCLWidgetTypeIt is probably 
the reason why combobox in "Configure Build Lazarus" is ignored and is replaced by 
value from Compiler Options.

No, when building the IDE the FBuildTarget is nil.
See TBuildManager.SetBuildTargetIDE.

Please start the IDE with -v -v to get more output.

Mattias


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Rebuilding IDE Gtk/Qt

2018-01-04 Thread Vojtěch Čihák via Lazarus

I found the reason but to make a patch is beyond my powers.
When I used the steps described below, I got this in console:
 
NOTE: Window with stalled focus found!, faking focus-out event
NOTE: Window with stalled focus found!, faking focus-out event
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 
New=x86_64-linux-qt FPC=False LCL=True
HERE1 lpQT
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-qt 
New=x86_64-linux-gtk2 FPC=False LCL=True
HERE2 lpQT
HERE3 lpQT
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 
New=x86_64-linux-qt FPC=False LCL=True
Note: (lazarus) deleted backup "/home/v1/Lazarus_Qt/lazarus/lazarus.old"
Note: (lazarus) renamed file "/home/v1/Lazarus_Qt/lazarus/lazarus" to 
"/home/v1/Lazarus_Qt/lazarus/lazarus.old"
Info: (lazarus) Execute Title="Build IDE"
Info: (lazarus) Working Directory="/home/v1/Lazarus_Qt/lazarus/"
Info: (lazarus) Executable="/usr/bin/make"
Info: (lazarus) Param[0]="idepkg"
Info: (lazarus) Param[1]="-w"
HERE4 lpQT
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-qt 
New=x86_64-linux-gtk2 FPC=False LCL=True
HERE5 lpQT
Hint: (lazarus) TMainIDE.DoRestart 
LAZARUS END - cleaning up ...
Hint: (lazarus) [TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE
Hint: (lazarus) [TMainIDE.Destroy] END
Heap dump by heaptrc unit
3185022 memory blocks allocated : 308622317/315523376
3185022 memory blocks freed     : 308622317/315523376
0 unfreed memory blocks : 0
True heap size : 1572864
True free heap : 1572864
TLazarusManager.Run starting /home/v1/Lazarus_Qt/lazarus/lazarus ...
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] 
PrimaryConfigPath="/home/v1/.lazarus"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] 
SecondaryConfigPath="/etc/lazarus"
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 
New=x86_64-linux-gtk2 FPC=True LCL=False
TComponentTreeView.SetSelection: Updating component node values.
TLazSourceFileManager.InitOpenedProjectFile select form in designer: 
Form1:TForm1 TDesigner
NOTE: Window with stalled focus found!, faking focus-out event
NOTE: Window with stalled focus found!, faking focus-out event
See several "Hint: (lazarus) [TBuildManager.SetBuildTarget]..." about changing widgetset.Lines 
"HEREx lpQt" are from me, they indicates that state of 
MiscellaneousOptions.BuildLazProfiles.Current.TargetPlatform); is unchangedThe changes come from method 
MainBuildBoss.SetBuildTargetProject1 which is called several times in main.pp, mainly in 
TMainIDE.mnuToolConfigBuildLazClicked at line 4595.It calls TBuildManager.SetBuildTarget and nested function 
GetEffectiveLCLWidgetType where is line: Result:=FBuildTarget.CompilerOptions.GetEffectiveLCLWidgetTypeIt is 
probably the reason why combobox in "Configure Build Lazarus" is ignored and is replaced by value 
from Compiler Options.V.__

Od: Vojtěch Čihák via Lazarus
Komu: Lazarus mailing list <lazarus@lists.lazarus-ide.org>
Datum: 02.01.2018 22:21
Předmět: Re: [Lazarus] Rebuilding IDE Gtk/Qt


Thanks to zeljko for confirming.
 
I was able to reproduce right now:
 
I have my Lazarus 1.9.0 r56925M FPC 3.0.4 x86_64-linux-qt.
I started new project. I saved it. I open Project Options -> Addition and Overrides and 
added LCLWidgetType "gtk2".
I run the project once just to see it is really GTk2 - it is.
Now I enter Tools -> Configure Bulid Lazarus. Options are Debug IDE, LCL 
WIdgetType = qt. I don't change them.
I switch to "Clean common files" and click Build.
After restart I have Lazarus 1.9.0 r56925M FPC 3.0.4 x86_64-linux-gtk2.
 
V.
 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Rebuilding IDE Gtk/Qt

2018-01-02 Thread Vojtěch Čihák via Lazarus

Thanks to zeljko for confirming.
 
I was able to reproduce right now:
 
I have my Lazarus 1.9.0 r56925M FPC 3.0.4 x86_64-linux-qt.
I started new project. I saved it. I open Project Options -> Addition and Overrides and 
added LCLWidgetType "gtk2".
I run the project once just to see it is really GTk2 - it is.
Now I enter Tools -> Configure Bulid Lazarus. Options are Debug IDE, LCL 
WIdgetType = qt. I don't change them.
I switch to "Clean common files" and click Build.
After restart I have Lazarus 1.9.0 r56925M FPC 3.0.4 x86_64-linux-gtk2.
 
V.
 
______________

Od: Vojtěch Čihák via Lazarus
Komu: Lazarus mailing list <laza...@lists.lazarus.freepascal.org>
Datum: 02.01.2018 16:01
Předmět: [Lazarus] Rebuilding IDE Gtk/Qt


Hi,
 
I sometimes experienced that IDE does not follow the value in combobox in Tools -> Configure 
"Build Lazarus". Setting Qt is ignored and IDE rebuilds to GTk. But when I change the 
value in Project Options -> Additions and Overrides -> LCL Widget Type and then I rebuild 
IDE, it rebuilds to correct widgetset.
However, it is not reproducible always, so I'd like to ask if someone 
experienced this too.
 
Note that it is not new, it was there before 1.8.
 
Thanks, V.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Rebuilding IDE Gtk/Qt

2018-01-02 Thread Vojtěch Čihák via Lazarus
Hi,
 
I sometimes experienced that IDE does not follow the value in combobox in Tools 
-> Configure "Build Lazarus". Setting Qt is ignored and IDE rebuilds to GTk. 
But when I change the value in Project Options -> Additions and Overrides -> 
LCL Widget Type and then I rebuild IDE, it rebuilds to correct widgetset.
However, it is not reproducible always, so I'd like to ask if someone 
experienced this too.
 
Note that it is not new, it was there before 1.8.
 
Thanks, V.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TTrackbar and Wine

2017-12-22 Thread Vojtěch Čihák via Lazarus

I can confirm behavior in Wine. When you change trVertical to trHorizotal - 
everything OK. But oppositely, trackbar calculates with new width and OLD 
height and ticks remain horizontal. When you resize it at least 1 pixel, 
everything is OK.
But I'm not able to say if the issue is in Wine or in Lazarus.
 
V.
 
__

Od: Giuliano Colla via Lazarus 
Komu: Lazarus mailing list 
Datum: 22.12.2017 12:01
Předmět: [Lazarus] TTrackbar and Wine


Sorry, this is almost OT, but I don't know where else to ask.

While checking an application, I found a strange problem: under Windows 
WS when TTrackbar Orientation is trVertical, it doesn't behave properly 
under Wine. The widget size is correct, but Tick Marks and bar movement 
behave following the Width value instead of the Height value. In a real 
Windows environment, it works properly as it works with other


Does anybody with experience in using Lazarus and Wine under Linux have 
an idea of why this happens and how to fix it?


My environment: Linux CentOs 6, Lazarus 1.8.0 FPC 3.0.4, wine 1.8.6

Giuliano


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Alternative key mappings and sequences

2017-12-12 Thread Vojtěch Čihák via Lazarus

Hi,
 
are alternative shortcuts and sequences broken? See screenshot. Ctrl+Alt+Q 
works but F9 doesn't. If I swap them, F9 works but Ctrl+Alt+Q doesn't.
 
If I will edit sequence [F9, Ctrl+Alt+Q], Lazarus doesn't wait for the second 
and run project immediately after F9.
The same for [Ctrl+Alt+Q, F9]. Here Lazarus doesn't wait for F9.
 
Lazarus 1.9.0 r56652:56696M FPC 3.0.4 x86_64-linux-qt
 
V.
 

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Highlight matching brackets

2017-12-11 Thread Vojtěch Čihák via Lazarus

I can confirm. It is also broken for [] and {}. I observed that it depends on 
previous character:
 
ControlStyle:=ControlStyle+[csNoDesignVisible];  //works
 
ControlStyle:=ControlStyle+ [csNoDesignVisible];  //does NOT work
 
i.e. when previous char is "red" +-*/@() etc. it works, while abcde...ABCDE... 
or *space* doesn't. Also with UTF chars it doesn't work (ěščřžýáí)
 
V.
__

Od: John Landmesser via Lazarus 
Komu: Lazarus@lists.lazarus-ide.org
Datum: 11.12.2017 19:33
Předmět: [Lazarus] Highlight matching brackets


i think there is something wrong?!

Lazarus svn

Lazarus 1.9.0 r56691M FPC 3.0.4 x86_64-linux-gtk2

should highlight Brackets as () but it highlights single quotes '

that happens for WinXP too!

sceenshot of settings (right) and IDE (left)

.. could not send the sreenshot, it's over 100 kb!!

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Note to new high-DPI icons

2017-12-09 Thread Vojtěch Čihák via Lazarus

I mean dark OS theme. See attached screeenshot. It was blue before, it can be 
found on the wiki: 
http://wiki.freepascal.org/Lazarus_Tutorial#The_Component_Palette
Such blueish theme is IMO unusual, the most common themes are light and dark 
grey (or black), sometimes with only a small saturation.
 
I didn't know about Ally. I saw issues with icon-patches on bugtracker opened 
by FTurtle, I thought he is author.
 
V.
__

Od: Werner Pamler via Lazarus <lazarus@lists.lazarus-ide.org>
Komu: lazarus@lists.lazarus-ide.org
Datum: 09.12.2017 22:24
Předmět: Re: [Lazarus] Note to new high-DPI icons


Am 09.12.2017 um 16:18 schrieb Vojtěch Čihák via Lazarus:
> Hi,
>   
> I tried to run Lazarus with dark theme and icons for TLabel and TStaticText are not visible. I propose to use that blue color used with the old icons instead of black.
>   
> V.
>   
> PS: I have no direct contact to author of icons, FTurtle, so I sent it to Lazarus ML.


Which "dark theme"? Is Lazarus themed? Or do you mean OS theme? What if 
somebody selects a blue-ish theme?


FTurtle is not responsible for the palette icons; those were drawn by 
Ally, a user of the German Lazarus forum.

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Note to new high-DPI icons

2017-12-09 Thread Vojtěch Čihák via Lazarus
Hi,
 
I tried to run Lazarus with dark theme and icons for TLabel and TStaticText are 
not visible. I propose to use that blue color used with the old icons instead 
of black.
 
V.
 
PS: I have no direct contact to author of icons, FTurtle, so I sent it to 
Lazarus ML.  
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Deleting items in OI

2017-11-29 Thread Vojtěch Čihák via Lazarus

Hi, thanks for reply.
 
Yes, I need something like
1) say to OI thah I'm going to delete TPersistent
2) delete it (my own code)
3) refresh OI (node must disappear)
 
I tried to search other people's code how they do it but I didn't find any.
 
Even worse, there is possibility to delete TPersistent in OI with Delete key 
which I didn't consider before so I have to redesign several components.
 
V.
 
__



Od: Juha Manninen via Lazarus <lazarus@lists.lazarus-ide.org>
Komu: Lazarus mailing list <lazarus@lists.lazarus-ide.org>
Datum: 28.11.2017 13:10
Předmět: Re: [Lazarus] Deleting items in OI


On Sat, Nov 25, 2017 at 8:21 PM, Vojtěch Čihák via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:
> I just have some more info. Everything was OK to revision 52209.
> OI was completly broken between 52210 and 52229 (components didn't appear at 
all).
> Revision 52230 improved OI but deleting didn't work as described in previous
> mails, it's up to now.

Yes, those were my commits. Sorry I did not answer earlier, something
always came up when I planned to study the issue.
The changes were more or less valid. At least they fixed bugs and
optimized the updates.
However your usage of TPropertyEditorHook looks suspicious and
counter-intuitive:

 aHook.PersistentDeleting(aECTab);
 aECTC.DeleteTab(aECTC.TabIndex);
 aHook.SelectOnlyThis(aECTC.Tabs);  { force the OI to refresh }

Calling aHook.DeletePersistent() would be intuitive. It that is not
possible in your case, then we should improve the API.
Something like "StartDeletingPersistent()" + "EndDeletingPersistent()"
pair maybe.
How about calling aHook.Modified?
What would be the most intuitive API in your opinion?

Juha
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Fonts for Lazarus

2017-11-26 Thread Vojtěch Čihák via Lazarus
Hi,
I started thread about fonts on forum. There's info about new font from IBM 
(IBM Plex Mono) and list of ten fonts good-looking in Source Editor. See: 
http://forum.lazarus.freepascal.org/index.php/topic,39020.0.html
 
V. 
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Deleting items in OI

2017-10-26 Thread Vojtěch Čihák via Lazarus

I still don't know if my code is wrong or not.
I tried to use DeletePersistent() - just like TTabControlComponentEditor do - 
but it doesn't work for my controls, nodes in OI are not refreshed.
Is there any magic for built-in components? I can't see anything special.
 
V.
__

Od: Juha Manninen via Lazarus <lazarus@lists.lazarus-ide.org>
Komu: Lazarus mailing list <lazarus@lists.lazarus-ide.org>
Datum: 25.10.2017 20:31
Předmět: Re: [Lazarus] Deleting items in OI


On Wed, Oct 25, 2017 at 8:30 PM, Vojtěch Čihák via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:

I could look at it. What is the easiest way to reproduce?

Juha
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Deleting items in OI

2017-10-25 Thread Vojtěch Čihák via Lazarus

The easiest is to install EC-Controls and then:
1) Put ECTabCtrl on the form
2) Add several tabs
3) Delete tab using pop-menu (in OI or in designed form). Do use Del key.
 
Tab will disappear but the node will persist.
 
Thanks, V.
__

Od: Juha Manninen via Lazarus <lazarus@lists.lazarus-ide.org>
Komu: Lazarus mailing list <lazarus@lists.lazarus-ide.org>
Datum: 25.10.2017 20:31
Předmět: Re: [Lazarus] Deleting items in OI


On Wed, Oct 25, 2017 at 8:30 PM, Vojtěch Čihák via Lazarus
<lazarus@lists.lazarus-ide.org> wrote:

I could look at it. What is the easiest way to reproduce?

Juha
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 
<https://lists.lazarus-ide.org/listinfo/lazarus>

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Deleting items in OI

2017-10-25 Thread Vojtěch Čihák via Lazarus

Hi,
 
I got this code for design time editing (note the line+comment *** 
aHook.SelectOnlyThis(aECTC.Tabs);  { force the OI to refresh } ***).
That line should refresh OI so the deleted item (CollectionItem) is removed 
(node in OI).
It worked in recent Lazarus versions, but it doesn't work in the latest trunk 
(i.e. item is removed but related node in OI persists).
I don't know which revision broke it.
What should I do?
 
Note: Lazarus (TPageControl) have not this problem. It uses plain 
DeletePersistent() method (in ComponentEditor.pas) .
 
procedure TECTabCtrlEditor.ExecuteVerb(Index: Integer);
var aECTC: TECTabCtrl;
    aECTab: TECTab;
    aHook: TPropertyEditorHook;
begin
  if Component is TECTabCtrl
    then aECTC:=TECTabCtrl(Component)
    else exit;  { Exit! }
    begin
      aHook:=nil;
      if not GetHook(aHook) then exit;  { Exit! }
      case Index of
        0: begin
             aECTab:=aECTC.AddTab(etaLast, True);
             aHook.PersistentAdded(aECTab, True);
           end;
        1: begin
             aECTab:=aECTC.AddTab(etaBeside, True);
             aHook.PersistentAdded(aECTab, True);
           end;
        2: begin
             aECTab:=aECTC.Tabs[aECTC.TabIndex];
             aHook.PersistentDeleting(aECTab);
             aECTC.DeleteTab(aECTC.TabIndex);
             aHook.SelectOnlyThis(aECTC.Tabs);  { force the OI to refresh }
           end;
        3: aECTC.MovePrevious();
        4: aECTC.MoveNext();
      end;
      Modified;
    end;
end;               
 
V.

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to enable Code outline feature of the IDE

2017-10-20 Thread Vojtěch Čihák via Lazarus

Tools -> Options... -> (Nodes) Editor / Display / Markup and Matches. There's 
checkbox Outline (global). It took me a while too :-).
 
V.
__

Od: Donald Ziesig via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 20.10.2017 17:07
Předmět: [Lazarus] How to enable Code outline feature of the IDE


Hi All!

The new code outline feature of the IDE sounds interesting but I must 
have missed something along the way. :-[


I perused what I thought were the appropriate IDE Menu items but didn't 
see anything that matched.  I have searched all the messages on this 
list and the only ones that mention this feature arrived today.  I 
looked at the release notes, etc. for 1.8 again with negative results.


What magic do I need to enable this feature? :-D

Thanks,

Don Ziesig
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Code outline feature of the IDE

2017-10-20 Thread Vojtěch Čihák via Lazarus

Hi,
 
I even didn't know this feature, but... so much colors, I almost collapsed :-)
 
Are there plans to make it (more) configurable? Keep keywords black and only 
lines colorful, or paint lines only when code-block exceeds vertical screen 
size.
 
Thanks.
__

Od: Werner Pamler via Lazarus 
Komu: Lazarus mailing list 
Datum: 20.10.2017 12:53
Předmět: [Lazarus] Code outline feature of the IDE

The new outline feature of the IDE in Laz 1.8 and trunk is extremely 
helpful in locating code block inconsistencies. I cannot imagine how I 
could have lived without it in older versions.


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Rendering Issue Emoji for HTML List Items

2017-10-16 Thread Vojtěch Čihák via Lazarus

Hi,
 
it seems OK on Qt and GTk2 at r.56055.
 
V.
__

Od: Martok via Lazarus 
Komu: laza...@lists.lazarus.freepascal.org
Datum: 16.10.2017 15:43
Předmět: [Lazarus] Rendering Issue Emoji for HTML List Items


...

Could someone please test this on other widgetsets, so I have an idea
whether/what/where to report this?
Thanks!


--
Regards,
Martok

Ceterum censeo b32079 esse sanandam.

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


  1   2   >