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


[Lazarus] Lazarus Release Candidate 1 of 2.0

2018-09-19 Thread Mattias Gaertner via Lazarus
The Lazarus team is glad to announce the first release candidate of
Lazarus 2.0.

This release was built with FPC 3.0.4.
The previous release Lazarus 1.8.4 was built with FPC 3.0.4 as well. 

Here is the list of fixes for Lazarus 2.0.x:
http://wiki.freepascal.org/Lazarus_2.0_fixes_branch

Here is the list of changes for Lazarus and Free Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes
http://wiki.lazarus.freepascal.org/User_Changes_3.0.4

The release is available for download on SourceForge:
http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the "Lazarus 2.0RC1" directory.

Checksums for the SourceForge files:
http://www.lazarus-ide.org/index.php?page=checksums#2_0_0RC1

Minimum requirements:

Windows:
  2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit.

FreeBSD/Linux:
  gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit.

Mac OS X:
  10.5 to 10.12; Carbon (32bit), Cocoa (64bit, beta), qt and
  qt5 (32 or 64bit).

The svn tag is
http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0_RC1

For people who are blocked by SF, the Lazarus releases from SourceForge
are mirrored at: ftp://ftp.freepascal.org/pub/lazarus/releases/
and later at (after some time for synchronization)
http://mirrors.iwi.me/lazarus/

== Why should everybody (including you) test the release candidate? ==

In the past weeks the Lazarus team has stabilized the 2.0 fixes branch.
The resulting 2.0RC1 is now stable enough to be used by any one for
test purposes.

However many of the fixes and new features that where committed since
the release of 1.8 required changes to the code of existing features
too. While we have tested those ourself, there may still be problems
that only occur with very specific configurations or one project in a
million.

Yes, it may be that you are the only person with a project, that will
not work in the new IDE. So if you do not test, we can not fix it.

Please do not wait for the final release, in order to test. It may be
too late. Once the release is out we will have to be more selective
about which fixes can be merged for further 2.0.x releases. So it may
be, that we can not merge the fix you require. And then you will miss
out on all the new features.

== How to test ==

Download and install the 2.0 RC1.
- On Windows you can install as a 2ndary install, that will not affect
your current install:
http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus
- On other platforms, if you install to a new location you need to use
--primary-config-path

In either case you should make backups. (including your primary config)

Open your project in the current Lazarus (1.8.x), and use "Publish
Project" from the project menu. This creates a clean copy of your
project.

You can then open that copy in the RC1. Please test:
- If you can edit forms in the designer
  - rename components / change properties in Object inspector / Add new
events
  - Add components to form / Move components on form
  - Frames, if you use them
- If you can navigate the source code (e.g. jump to implementation)
- Auto completion in source code
- Compile, debug and run
- Anything else you use in your daily work


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


[Lazarus] Call for translations updates for 2.0 release

2018-09-19 Thread Maxim Ganetsky via Lazarus
Hello.

Now that Lazarus 2.0 branch has been created it is time for translators
to review and update their translations.

Check out fixes branch
(http://svn.freepascal.org/svn/lazarus/branches/fixes_2_0 ), review and
update your translations and post updates to our bugtracker. See
\languages\README.txt for details.

Mark your reports with Lazarus version clearly in order to avoid confusion.

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

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


[Lazarus] Custom control with stepwise size adjustment

2018-09-19 Thread gabor via Lazarus

Hi.
How to properly create a control with step-size adjustment? I mean a 
control whose width is a multiple of, eg. 16 (16,32,48...).

In delphi, I simply override TCustomControl.SetBounds method.

procedure TMyControl.SetBounds(aTop, aLeft, aWidth, aHeight: Integer);
begin
  aWidth := (aWidth div 16) * 16;
  if aWidth = 0 then
aWidth := 16;
  aHeight := (aHeight div 16) * 16;
  if aHeight = 0 then
aHeight := 16;
  inherited SetBounds(aTop, aLeft, aWidth, aHeight);
end;

Unfortunately, the same does not work well with LCL. Especially in 
connection with Anchors or in form designer.

So how to deal with it?

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


Re: [Lazarus] Lazarus Release Candidate 1 of 2.0

2018-09-19 Thread AlexeyT via Lazarus

 Hi. as I see, no OnMouseWheelHorz /Left/Right is added. is it ok?
Alex
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Custom control with stepwise size adjustment

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

Try set Constraints - set MinHeight=MaxHeight=your calculated height, and the 
same for Width.
But it will maybe fool Lazarus autosizing mechanism.
 
V.
__

Od: "gabor via Lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 19.09.2018 14:29
Předmět: [Lazarus] Custom control with stepwise size adjustment


Hi.
How to properly create a control with step-size adjustment? I mean a 
control whose width is a multiple of, eg. 16 (16,32,48...).

In delphi, I simply override TCustomControl.SetBounds method.

procedure TMyControl.SetBounds(aTop, aLeft, aWidth, aHeight: Integer);
begin
  aWidth := (aWidth div 16) * 16;
  if aWidth = 0 then
    aWidth := 16;
  aHeight := (aHeight div 16) * 16;
  if aHeight = 0 then
    aHeight := 16;
  inherited SetBounds(aTop, aLeft, aWidth, aHeight);
end;

Unfortunately, the same does not work well with LCL. Especially in 
connection with Anchors or in form designer.

So how to deal with it?

Regards, Michał.
--
___
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 Release Candidate 1 of 2.0

2018-09-19 Thread AlexeyT via Lazarus

OnMouseWheelHorz is already included, thanks.

--
Regards,
Alexey

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


Re: [Lazarus] Lazarus Release Candidate 1 of 2.0

2018-09-19 Thread Mark Morgan Lloyd via Lazarus

On 19/09/18 12:00, Mattias Gaertner via Lazarus wrote:

The Lazarus team is glad to announce the first release candidate ofLazarus 2.0.
This release was built with FPC 3.0.4.The previous release Lazarus 1.8.4 was 
built with FPC 3.0.4 as well.
Here is the list of fixes for Lazarus 
2.0.x:http://wiki.freepascal.org/Lazarus_2.0_fixes_branch
Here is the list of changes for Lazarus and Free 
Pascal:http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_noteshttp://wiki.lazarus.freepascal.org/User_Changes_3.0.4


Please could somebody (Martin?) review the final patch at 
https://bugs.freepascal.org/view.php?id=33935 which limits a hack I put 
in to certain widget sets (Qt will print a $00 character, GTK2 won't).


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

[Opinions above are the author's, not those of his employers or colleagues]
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Call for translations updates for 2.0 release

2018-09-19 Thread Alonso Cárdenas Márquez via Lazarus
El mié., 19 sept. 2018 a las 7:07, Maxim Ganetsky via Lazarus (<
lazarus@lists.lazarus-ide.org>) escribió:

> Hello.
>
> Now that Lazarus 2.0 branch has been created it is time for translators
> to review and update their translations.
>
> Check out fixes branch
> (http://svn.freepascal.org/svn/lazarus/branches/fixes_2_0 ), review and
> update your translations and post updates to our bugtracker. See
> \languages\README.txt for details.
>
> Mark your reports with Lazarus version clearly in order to avoid confusion.
>
>
Hi Maxim

Please look at https://bugs.freepascal.org/view.php?id=34304 for spanish
translation. It applies to trunk

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