Re: [Lazarus] Running an app on boot

2017-01-25 Thread zeljko via Lazarus
On 01/25/2017 11:40 AM, Ed Murashie via Lazarus wrote: I wrote a simple Lazarus program that displays a window and a button and did the same thing using Glade which also uses Gtk+. I am using a Beaglebone Black with the latest stock Debian Jessie image which start a LxQt desktop program after

Re: [Lazarus] Request for apply patch

2017-02-09 Thread zeljko via Lazarus
On 02/09/2017 10:30 AM, LacaK via Lazarus wrote: Hi Lazarus Developers, can somebody please look at and if all okay apply patch in bug report http://bugs.freepascal.org/view.php?id=27764 There is one new unit which implements simple Delphi compatible Database Login Dialog. There's no Server

Re: [Lazarus] Show a window under GTK2 in front without stealing the focus

2017-01-19 Thread zeljko via Lazarus
On 19.01.2017 13:55, Michael Fuchs via Lazarus wrote: Hello, I try to use a notify-like window in one of my applications. That means that a window should be shown on top of all windows, but did not steal the focus from other running applications. Under windows this works with

Re: [Lazarus] Calling DrawFocusRect() outside the Paint() event

2016-10-10 Thread zeljko via Lazarus
On 10/10/2016 11:21 AM, Graeme Geldenhuys via Lazarus wrote: Hi, Working on a visual report designer for the upcoming fpReport. We use Canvas.DrawFocusRect() to draw a selection rectangle around a reporting element (eg: a memo). We can drag that rectangle around in the report designer (which

Re: [Lazarus] Scrollbars on form ?

2016-09-25 Thread zeljko via Lazarus
On 09/25/2016 12:06 AM, Michael Van Canneyt via Lazarus wrote: On Sat, 24 Sep 2016, Dmitry Boyarintsev wrote: Did you set AutoScroll to true? I tried AutoScoll true and false. What widgetset ? That should work (AutoScroll=True, v & h scrollbar properties untouched...try to set

Re: [Lazarus] Scrollbars on form ?

2016-09-25 Thread zeljko via Lazarus
On 09/25/2016 12:47 AM, Graeme Geldenhuys via Lazarus wrote: On 2016-09-24 23:06, Michael Van Canneyt via Lazarus wrote: I tried AutoScoll true and false. I wouldn't be surprised if it only works with a specific LCL widgetset (eg: LCL-Win32). It works on qtlcl on all supported platforms

Re: [Lazarus] Where is TSynMemo?

2016-11-06 Thread zeljko via Lazarus
On 11/06/2016 01:06 PM, Frans via Lazarus wrote: Hi. I'm using Lazarus 1.6 and FPC 3.0.0. on Windows 7. I've installed the SynEdit 1.0 and the SynEditDsgn 1.0 package. But strangely enough, I don't seem to have TSynMemo available. Stranger I find is the example SynAnyHighlighter. This uses

Re: [Lazarus] Exception in OnResize event handler

2016-11-06 Thread zeljko via Lazarus
On 11/06/2016 04:39 PM, Ondrej Pokorny via Lazarus wrote: Don't be like a woman who always finds much more meanings in her husband's words than he had in mind, all leading to problems :) X :) zeljko -- ___ Lazarus mailing list

Re: [Lazarus] DBLookupComboBox vs Qt

2016-11-05 Thread zeljko via Lazarus
On 11/05/2016 11:43 AM, Gabor Boros via Lazarus wrote: 2016. 11. 05. 10:47 keltezéssel, zeljko írta: On 11/05/2016 10:30 AM, Gabor Boros via Lazarus wrote: Hi All, Created an issue in the past but got no answer. Now attached a better example project. Please try and comment. Is it a Qt bug or

Re: [Lazarus] Exception in OnResize event handler

2016-11-07 Thread zeljko via Lazarus
On 11/06/2016 07:08 PM, Jürgen Hestermann via Lazarus wrote: Am 2016-11-06 um 16:39 schrieb Ondrej Pokorny via Lazarus: The sentence "Common mistake: Keep in mind that ClientWidth and ClientHeight can change even when Width, Height stays the same" makes me think that the event is not

Re: [Lazarus] DBLookupComboBox vs Qt

2016-11-05 Thread zeljko via Lazarus
On 11/05/2016 01:25 PM, Gabor Boros via Lazarus wrote: 2016. 11. 05. 13:05 keltezéssel, zeljko írta: Ok, just create example project with TComboBox which reproduces problem so I'll sit with it and try to fix it somehow. Done. You can find as an attachment in the bugtracker. Tnx. zeljko

Re: [Lazarus] DBLookupComboBox vs Qt

2016-11-05 Thread zeljko via Lazarus
On 11/05/2016 01:25 PM, Gabor Boros via Lazarus wrote: 2016. 11. 05. 13:05 keltezéssel, zeljko írta: Ok, just create example project with TComboBox which reproduces problem so I'll sit with it and try to fix it somehow. Done. You can find as an attachment in the bugtracker. Fixed. zeljko

Re: [Lazarus] DBLookupComboBox vs Qt

2016-11-05 Thread zeljko via Lazarus
On 11/05/2016 10:30 AM, Gabor Boros via Lazarus wrote: Hi All, Created an issue in the past but got no answer. Now attached a better example project. Please try and comment. Is it a Qt bug or this is the expected behaviour? http://bugs.freepascal.org/view.php?id=28597 I don't use db controls

Re: [Lazarus] TPageControl OnChange calling issue

2016-11-13 Thread zeljko via Lazarus
On 13.11.2016 22:24, Bart via Lazarus wrote: On 11/13/16, Ondrej Pokorny via Lazarus wrote: Unfortunately this will probably be impossible to make for all LCL-controls systematically. But we can make it for TPageControl - add a new option nboDelphiOnChange (or

[Lazarus] {Spam?} Re: Lazarus Release 1.6.2

2016-11-15 Thread zeljko via Lazarus
OK, I'm using a TSdfDataset, maybe it has the same bug as TMemDataset as mentioned in dblookup.inc (but then I don't understand why it worked with lazarus 1.4). FWIF, this appears to fix it: === --- lcl/include/dblookup.inc

[Lazarus] {Spam?} Re: Modal windows on Cocoa

2016-11-13 Thread zeljko via Lazarus
On 13.11.2016 19:52, Michael Van Canneyt via Lazarus wrote: Hi, I am not sure whether this is a bug of the cocoa widgetset, or whether this is a general limitation of the Mac. Imagine a main form, which shows a modal form. The modal form shows a message dialog (ShowMessage or MessageDlg, it

Re: [Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6

2016-11-04 Thread zeljko via Lazarus
On 11/04/2016 02:28 PM, Bart via Lazarus wrote: On 11/4/16, Ondrej Pokorny via Lazarus wrote: The TextHint implementation should be completely rewritten. It shouldn't use the text property but paint the TextHint onto the control by itself. Windows can do that

Re: [Lazarus] Teaching Pascal at College

2016-10-14 Thread zeljko via Lazarus
On 10/14/2016 08:28 AM, Mehmet Erol Sanliturk via Lazarus wrote: I consider QT a very big trap . Please be careful about its license if you want to develop commercial software and also if you want to teach computer programming to the students that they will work for commercial companies . I

Re: [Lazarus] New high DPI features in 1.7

2016-12-10 Thread zeljko via Lazarus
On 10.12.2016 08:52, Ondrej Pokorny via Lazarus wrote: On 10.12.2016 2:16, Josh via Lazarus wrote: error reading xxx.designtimedpi: unknow property:'DesignTimeDPI' Please open and resave the affected forms or delete DesignTimeDPI from all your LFMs and rebuild. Sorry for inconveniences. Is

Re: [Lazarus] New high DPI features in 1.7

2016-12-10 Thread zeljko via Lazarus
On 10.12.2016 15:23, Ondrej Pokorny via Lazarus wrote: On 10.12.2016 14:40, Michael W. Vogel via Lazarus wrote: Oh, then we get a global switch to enable/disable high DPI support OS independet (as defined in the Windows manifest - and then this value has to take care about that switch). Nono,

[Lazarus] {Spam?} Re: QT5 support

2016-12-07 Thread zeljko via Lazarus
On 06.12.2016 21:28, Erwin van den Bosch via Lazarus wrote: Op 6-12-2016 om 20:56 schreef zeljko: qt5lcl is ready to be commited, so expect something till the end of this year in lazarus trunk. That is very good news! I'm looking forward to it. Thanks a lot! Need somebody to test it? What QT5

Re: [Lazarus] Qt5 - Size and permissions of the compiled bindings

2017-01-02 Thread zeljko via Lazarus
On 02.01.2017 16:00, Gabor Boros via Lazarus wrote: Hi All, I tried to compile the bindings with Debian Stretch. Success. But the size of libQt5Pas.so.1.2.6 is very big (86222128 bytes). I compiled a debug build? The permissions of the file is 755 (libQt4Pas have 644). The execute permission(s)

Re: [Lazarus] Qt is broken, ATSynedit

2016-12-16 Thread zeljko via Lazarus
On 16.12.2016 18:42, Alexey wrote: On 16.12.2016 18:41, zeljko wrote: OK, posted an issue about it; maybe my Qt installation is bad? -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Qt is broken, ATSynedit

2016-12-16 Thread zeljko via Lazarus
On 17.12.2016 01:58, zeljko via Lazarus wrote: On 16.12.2016 18:42, Alexey wrote: On 16.12.2016 18:41, zeljko wrote: OK, posted an issue about it; maybe my Qt installation is bad? huh, here should be answer to alexey, so c/p :) No it's not. Qt does not like your DoubleBuffering for some

Re: [Lazarus] Mac Hi-DPI 2

2017-03-11 Thread zeljko via Lazarus
On 03/10/2017 12:54 PM, Ondrej Pokorny via Lazarus wrote: To me it looks like Carbon applications are scaled automatically by the OS. Something similar to what also Windows uses if you switch High-DPI awarness off. That means the regardless of your screen (retina, non-retina) the DPI is always

Re: [Lazarus] IDE and gtk2 themes for Windows XP

2017-03-02 Thread zeljko via Lazarus
On 03/02/2017 03:44 PM, Landmesser John via Lazarus wrote: Info: Lazarus 1.7 svn FPC 3.0.0 i386-win32-win32/win64 This is not gtk2-win32 lazarus, but pure win32 lazarus. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Window Maker form resizes when selecting component

2017-04-24 Thread zeljko via Lazarus
On 24.04.2017 13:50, Kostas Michalopoulos via Lazarus wrote: Hi all, Does anyone know why the form (in design mode) resizes itself every time i am selecting a component from the palette? Here is a small video showing the issue: https://webmshare.com/q78rb This only happens with Window Maker

Re: [Lazarus] Window Maker form resizes when selecting component

2017-04-24 Thread zeljko via Lazarus
On 24.04.2017 14:04, Kostas Michalopoulos wrote: (for some reason i do not see the message to the mailing list so i hit "Reply All" in case this is delayed) GTK2, latest SVN (54709) Note that this isn't new, i had it for at least a couple of years. I tried to figure out at the time but failed

Re: [Lazarus] what do i see left of the Scrollbar?

2017-05-11 Thread zeljko via Lazarus
On 11.05.2017 09:50, Landmesser John via Lazarus wrote: just curious: what do i see left of the Editor windows Scrollbar ... these little colored bars? Changed lines. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread zeljko via Lazarus
On 17.05.2017 19:59, Luca Olivetti wrote: It took me a while to see that the c bindings are included, the README.txt in the lcl/interfaces/qt5 directory just says: "To use them you also need to download and install at appropriate place the libQt5Pas.so (linux) or Qt5Pas.dll (ms windows) or

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread zeljko via Lazarus
On 17.05.2017 20:16, Luca Olivetti via Lazarus wrote: Meanwhile I see that in the plasma font setting I have the dpi forced to 96, a setting that apparently is respected both by qt4 and qt5 (as well as gtk applications). If it's forced than all qt based apps are using forced 96dpi. Even if

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread zeljko via Lazarus
On 18.05.2017 01:43, Kostas Michalopoulos via Lazarus wrote: I see the patch was added and Lazarus seems to work fine now, but the check was altered a little. The current check assumes that the Control will never be nil, but is this the case? I ask because i see in other places in the same

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread zeljko via Lazarus
On 18.05.2017 13:38, Marc Weustink via Lazarus wrote: zeljko via Lazarus wrote: On 18.05.2017 01:43, Kostas Michalopoulos via Lazarus wrote: if GDK_IS_WINDOW(PGtkWindow(OurWidget)^.window) and (gdk_window_get_state(PGtkWindow(OurWidget)^.window) = GDK_WINDOW_STATE_MAXIMIZED

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread zeljko via Lazarus
On 17.05.2017 14:39, Mattias Gaertner via Lazarus wrote: The Lazarus team is glad to announce the first release candidate of Lazarus 1.8. This release was built with FPC 3.0.2. The previous release Lazarus 1.6.4 was built with FPC 3.0.2 too. The Linux releases are built with FPC 3.0.3 r36152

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread zeljko via Lazarus
On 18.05.2017 13:43, Mattias Gaertner via Lazarus wrote: On Thu, 18 May 2017 13:20:52 +0200 zeljko via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] if GDK_IS_WINDOW(PGtkWindow(OurWidget)^.window) and (gdk_window_get_state(PGtkWindow(OurWidget)^.window) = GDK_WINDOW_STATE_MAX

Re: [Lazarus] Order of events: TEdit / TListBox

2017-05-23 Thread zeljko via Lazarus
On 05/23/2017 04:15 AM, kapibara via Lazarus wrote: Some more findings. Under Windows, the Edit.Exit event fires before both SelectionChange and OnClick no matter what item you select. It's normal. If you click onto listbox (OnMouseDown of listbox triggers), TEdit looses focus and triggers

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread zeljko via Lazarus
On 18.05.2017 20:24, Kostas Michalopoulos via Lazarus wrote: Yes the new code works perfectly fine here and is a better solution. My original thought was to use pure Gtk but i forgot about gdk_ and only looked for something like gtk_window_get_state - which i couldn't find :-). Thanks for

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-16 Thread zeljko via Lazarus
On 16.05.2017 21:26, Ondrej Pokorny via Lazarus wrote: On 16.05.2017 21:08, Michael Van Canneyt via Lazarus wrote: Surely, if the situation is that bad, then things would have been fixed a long time ago, no ? IIRC people complained about Gtk2 resizing their windows under some window managers

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-16 Thread zeljko via Lazarus
On 16.05.2017 21:08, Michael Van Canneyt via Lazarus wrote: What I don't get is: Why don't other programs in linux mint seem to have problems with this ? Surely, if the situation is that bad, then things would have been fixed a long time ago, no ? Just because other gtk2 programs on linux

Re: [Lazarus] LCL on Mac 64 bit

2017-06-15 Thread zeljko via Lazarus
On 06/15/2017 05:53 PM, Ondrej Pokorny via Lazarus wrote: On 15.06.2017 17:19, Mattias Gaertner via Lazarus wrote: On Thu, 15 Jun 2017 17:07:06 +0200 Andrea Mauri via Lazarus wrote: The Mac native 64bit API is Cocoa and it exists for the LCL. It is missing some

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-07 Thread zeljko via Lazarus
On 05/07/2017 12:02 PM, Michael Van Canneyt via Lazarus wrote: Hi, Another oddity in the IDE designer. I have a form which contains some group boxes, radio buttons and a buttonpanel. Bordertstyle is bsDialog. No special properties regarding autosize or whatsoever have been set. When I switch

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-07 Thread zeljko via Lazarus
On 05/07/2017 02:24 PM, Michael Van Canneyt wrote: On Sun, 7 May 2017, zeljko wrote: On 05/07/2017 12:02 PM, Michael Van Canneyt via Lazarus wrote: Hi, Another oddity in the IDE designer. I have a form which contains some group boxes, radio buttons and a buttonpanel. Bordertstyle is

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-07 Thread zeljko via Lazarus
On 05/07/2017 06:24 PM, Michael Van Canneyt wrote: On Sun, 7 May 2017, zeljko wrote: If you suspect on HiDPI then you should disable scaling at application level (lazaruside) via Application.Scaled := False (or similar prop name) . In that case TCustomForm.Scaled should not be taken into

Re: [Lazarus] TColorButton gives errors in console output

2017-05-08 Thread zeljko via Lazarus
On 08.05.2017 15:36, Graeme Geldenhuys via Lazarus wrote: Hi, I have a form with many TColorButton widgets (defined in LCL's Dialog unit). Whenever I load that form, I see tons of errors as follows in the console window. $0071B5C5 line 729 of

Re: [Lazarus] intercepting keyboard events

2017-05-08 Thread zeljko via Lazarus
On 08.05.2017 17:42, Michael Van Canneyt via Lazarus wrote: Hi, How can I respond to keyboard events in a TCustomControl (and hence TWinControl) descendent ? I have asigned the various OnKey* events handlers but they are not called. My control also does not seem to receive focus when

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-08 Thread zeljko via Lazarus
On 08.05.2017 12:08, Michael Van Canneyt via Lazarus wrote: On Mon, 8 May 2017, Fabio Luis Girardi via Lazarus wrote: Em 8 de mai de 2017 04:43, "Michael Van Canneyt via Lazarus" < lazarus@lists.lazarus-ide.org> escreveu: On Mon, 8 May 2017, Kostas Michalopoulos via Lazarus wrote: Maybe

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread zeljko via Lazarus
On 18.05.2017 13:43, Mattias Gaertner via Lazarus wrote: On Thu, 18 May 2017 13:20:52 +0200 zeljko via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] if GDK_IS_WINDOW(PGtkWindow(OurWidget)^.window) and (gdk_window_get_state(PGtkWindow(OurWidget)^.window) = GDK_WINDOW_STATE_MAX

Re: [Lazarus] LazReport - Issues 26971 and 30466

2017-09-13 Thread zeljko via Lazarus
On 09/13/2017 10:51 AM, Gabor Boros via Lazarus wrote: Hi All, https://bugs.freepascal.org/view.php?id=26971 ~3 years later. Any idea? No zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] crDrag cursor is now 2x bigger

2017-09-07 Thread Zeljko via Lazarus
On 09/07/2017 08:42 AM, Alexey via Lazarus wrote: with crNoDrop cursor. On Linux gtk2 I see cursor is 2x-3x bigger than I seen it before, 2-3 months ago. Maybe not related but this is my yesterday post to lazdevel list: cursorimage.inc TCursorImage.LoadFromResourceHandle() Line 95

Re: [Lazarus] Converting all code to use UnicodeString

2017-09-26 Thread zeljko via Lazarus
On 26.09.2017 11:31, Juha Manninen via Lazarus wrote: Maybe there still is a valid reason to use codepages but I don't know what it is. POS receipt printers :) zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Qt Ws doesn't support properly GetWindowSize() and GetWindowRect()

2017-12-15 Thread zeljko via Lazarus
On 15.12.2017 17:08, Giuliano Colla via Lazarus wrote: This snippet of code, which executes as expected with GTK2 WS, fails with QT WS: procedure TForm1.btnWsizeClick(Sender: TObject); var  aHandle: THandle;    aWidth,aHeight: Integer;    aRect: TRect; begin    aHandle:= Form1.Handle;    if

Re: [Lazarus] Why not to apply patch of TListView.CustomSort

2017-11-09 Thread Zeljko via Lazarus
On 11/09/2017 11:55 AM, Ondrej Pokorny via Lazarus wrote: On 09.11.2017 11:25, Alexey via Lazarus wrote: Patch is ready and tested I hope Zeljko will look at it soon. Yeah, I'll do that during weekend. zeljko -- ___ Lazarus mailing list

Re: [Lazarus] "Ambiguous unit found" message

2017-11-06 Thread zeljko via Lazarus
On 06.11.2017 17:16, Ondrej Pokorny via Lazarus wrote: On 06.11.2017 17:11, Sven Barth via Lazarus wrote: Am 06.11.2017 13:48 schrieb "Ondrej Pokorny via Lazarus" >: A secret insider tip: use Ctrl+C to copy the full text

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

2017-12-10 Thread zeljko via Lazarus
On 10.12.2017 11:39, Werner Pamler via Lazarus wrote: Ally has been mentioned in contributions.txt with his real name since his first contributions. Now I added "component icons" to his name in the same way as it is done for the translators. But I don't agree with AlexeyT that we should list

Re: [Lazarus] ButtonPanel uses not same back color as Form uses

2017-12-21 Thread zeljko via Lazarus
On 12/21/2017 08:11 AM, Alexey via Lazarus wrote: This is on Ubuntu 17.10, default theme, gtk2. Pucture, buttonpanel below. Let me power on my crystal ball to see what lazarus version is there Maybe this one hits you: https://bugs.freepascal.org/view.php?id=32779 So, if you are at lazarus

Re: [Lazarus] TStringGrid sort symbol in TitleButton

2018-05-14 Thread zeljko via Lazarus
On 05/14/2018 01:43 PM, Landmesser John via Lazarus wrote: In a StringGrid without(!) defined columns you never see that up and down arrow in the TitleButton if you click to sort this column. It's ok if you define at least one column, but i think that shouldn't be this way. I don't get what

Re: [Lazarus] Control's default Height and AutoSize

2018-05-14 Thread zeljko via Lazarus
On 05/14/2018 01:40 PM, Gabor Boros via Lazarus wrote: Hi All, I have three machines. One physical with Windows 10 (1703) and two virtual, one with Ubuntu Server 14.04.1 + KDE4 and Qt4 and one with RHEL 7.5 + KDE4 and Qt4. Start a new project with trunk (57932), drop a TEdit on Form1 and

[Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem

2018-05-13 Thread zeljko via Lazarus
Hi, Using trunk lazarus r57911 and fpc-3.0.4 (32 bit), Windows 10. When rebuilding ide from lazarus got "No memory left" while linking IDE. I have bunch of 3rd party packages so I guess that too many units triggers this error since "make bigide" from cmd works fine. With fpc-3.0.0 everything

Re: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem

2018-05-13 Thread zeljko via Lazarus
On 05/13/2018 02:05 PM, Martin Frb via Lazarus wrote: If it happens while linking, try to disable smart-linking. That fixed problem. Thanks ! zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Let's make a web browser

2018-05-18 Thread zeljko via Lazarus
On 05/18/2018 09:18 AM, Michael Van Canneyt via Lazarus wrote: On Fri, 18 May 2018, Anthony Walter via Lazarus wrote: how-to instructions Pretty neat ! Deceptively easy to do :) Question: Where are the components you used,

Re: [Lazarus] Let's make a web browser

2018-05-18 Thread zeljko via Lazarus
On 05/18/2018 10:46 AM, Michael Van Canneyt via Lazarus wrote: I thought it was perhaps chrome embedded ? Maybe, there are Delphi bindings around for chrome embedded z. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] spinedit issue with qt5

2018-06-11 Thread zeljko via Lazarus
On 11.06.2018 11:43, Luca Olivetti via Lazarus wrote: El 11/06/18 a les 11:30, Luca Olivetti via Lazarus ha escrit: I changed that to if (ACustomFloatSpinEdit.MaxValue > ACustomFloatSpinEdit.MinValue) then begin    ASpinWidget.setMinimum(ACustomFloatSpinEdit.MinValue);   

Re: [Lazarus] Problem with fpc-3.0.4 and double

2018-02-02 Thread zeljko via Lazarus
On 02/02/2018 04:10 PM, Marco van de Voort wrote: On Wed, Jan 31, 2018 at 07:31:56PM +0100, zeljko via Lazarus wrote: Using binary floats, there are just too many values that can't be represented 100%, regardless of the length of the mantissa. https://en.wikipedia.org/wiki/Floating

[Lazarus] Problem with fpc-3.0.4 and double

2018-01-31 Thread zeljko via Lazarus
Hi all, In one of my applications I'm using someDouble1 <> someDouble2 for years, now got problem with fpc-3.0.4 (all previous fpc versions were ok (3.0.2, 3.0.0, 2.6.4, 2.6.2, 2.6.0...etc) + kylix + delphi7), so now must use IsSameValue(someDouble1,someDouble2) to get correct comparision of

Re: [Lazarus] Problem with fpc-3.0.4 and double

2018-01-31 Thread zeljko via Lazarus
On 01/31/2018 07:27 PM, Ralf Quint via Lazarus wrote: Comparing any floating point value like this is pure luck when you claim that it worked in the past. In any programming language, unless maybe you are using one that by default utilizes BCD floats. Using binary floats, there are just too

Re: [Lazarus] ll 1.8.0 compiles fail with "Error while linking"

2018-02-11 Thread zeljko via Lazarus
On 02/10/2018 11:50 PM, Tom Lisjac via Lazarus wrote: Hi all, Getting "Error while linking" when trying to compile the 1.8.0 ide or any test programs on an old Fedora 19 and fresh installs of Fedora 23 and Centos 6.8. Reviewed some bugs and forum postings, but there doesn't seem to be a fix

Re: [Lazarus] ll 1.8.0 compiles fail with "Error while linking"

2018-02-11 Thread zeljko via Lazarus
On 11.02.2018 23:36, Tom Lisjac via Lazarus wrote: Thanks Zeljke, Péter and Mattias. Plenty of space on all three OS'es and I installed all the dependencies that the rpm's (from sourceforge) required. I've upgraded the Fedora 19 install many times without issues. This is the error after

Re: [Lazarus] Rebuilding IDE Gtk/Qt

2018-01-02 Thread zeljko via Lazarus
On 02.01.2018 16:01, Vojtěch Čihák via Lazarus wrote: 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 ->

Re: [Lazarus] TTrackbar and Wine

2017-12-22 Thread zeljko via Lazarus
On 12/22/2017 01:26 PM, Vojtěch Čihák via Lazarus wrote: 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

Re: [Lazarus] MDI problem and fix for Windows with Qt4/Qt5

2018-09-06 Thread zeljko via Lazarus
On 09/05/2018 08:38 PM, Rudolf Cornelissen via Lazarus wrote: Hi all, This is my first post here, I hope my input is considered helpfull. Anyhow, I am busy converting a Delphi MDI application (which I develop as a daytime job) to Lazarus using Qt/Qt5. Compared to Win32 Widgeset indeed Qt has

Re: [Lazarus] TStringGrid and cancelling a modal form

2018-03-12 Thread zeljko via Lazarus
On 03/12/2018 06:25 PM, Mark Morgan Lloyd via Lazarus wrote: Running on (Debian) Linux on AMD64 or ARM, Lazarus 1.6.4 and FPC 3.0.2, I'm seeing different behaviour depending on whether a program uses Qt or GTK2. The program changes the hardware configuration of a mouse (Logitech G600) using

Re: [Lazarus] TStringGrid and cancelling a modal form

2018-03-13 Thread zeljko via Lazarus
On 03/12/2018 08:05 PM, Mark Morgan Lloyd via Lazarus wrote: On 12/03/18 17:45, José Mejuto via Lazarus wrote: El 12/03/2018 a las 18:25, Mark Morgan Lloyd via Lazarus escribió:> On the main form I've got (a tabbed notebook containing multiple > instances of) a TStringGrid. The OnSelection

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

2018-03-10 Thread zeljko via Lazarus
On 03/10/2018 02:41 PM, Vojtěch Čihák via Lazarus wrote: 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:

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

2018-03-14 Thread zeljko via Lazarus
On 03/14/2018 03:00 PM, Juha Manninen via Lazarus wrote: On Sat, Mar 10, 2018 at 6:41 AM, AlexeyT via Lazarus wrote: I made big work to theme scrollbars in CudaText. TScrollBar is a native widget, isn't it? Why does it not follow the native theme? It follows

Re: [Lazarus] Color and transparancy selection ?

2018-03-23 Thread zeljko via Lazarus
On 03/22/2018 08:49 PM, Michael Van Canneyt via Lazarus wrote: Hello, Is there a version of TColorDialog which allows to specify an Alpha channel ? Qt4/Qt5 ws have alpha option in standard color dialog. zeljko -- ___ Lazarus mailing list

Re: [Lazarus] Color and transparancy selection ?

2018-03-23 Thread zeljko via Lazarus
On 03/23/2018 09:27 AM, Michael Van Canneyt via Lazarus wrote: On Fri, 23 Mar 2018, zeljko wrote: On 03/22/2018 08:49 PM, Michael Van Canneyt via Lazarus wrote: Hello, Is there a version of TColorDialog which allows to specify an Alpha channel ? Qt4/Qt5 ws have alpha option in standard

Re: [Lazarus] Color and transparancy selection ?

2018-03-23 Thread zeljko via Lazarus
On 03/23/2018 10:27 AM, Michael Van Canneyt via Lazarus wrote: ported platforms. Well, Qt works on all supported desktop platforms :) Oh please, you know what I meant :) s/platforms/platforms+widgetsets/g :) Of course I know :) zeljko -- ___

Re: [Lazarus] Linux make libQt5Pas fails

2018-03-19 Thread zeljko via Lazarus
On 03/19/2018 05:03 AM, Anthony Walter via Lazarus wrote: Building on Ubuntu 16.04. Any suggestions? Probably you're using Qt5 lib < 5.6. AFAIR Ubuntu 16.04 have Qt-5.5 by default (same as mint 18.3), I've successfully installed Qt5 5.6.1 from some ubuntu repo and it works like a charm.

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

2018-03-04 Thread zeljko via Lazarus
On 03/04/2018 09:48 PM, Lubos Pintes via Lazarus wrote: Hello and thank for a reply. Do I understand correctly that a form is a special case? What about TEdit or TButton for example? I am encapsulating a TControl instance and am asking for properties needed for UI Automation, occasionally

Re: [Lazarus] Canvas cannot draw properly if has an alpha channel?

2018-04-25 Thread zeljko via Lazarus
On 25.04.2018 16:30, Anthony Walter via Lazarus wrote: I am trying to paint controls, so I need to eventually Canvas.Draw() to get a graphic onto a control. I've been working on creating a fully featured web browser for Lazarus and have been looking at the underlying widgetset interface code.

Re: [Lazarus] Scaling of menuitem icons

2018-10-19 Thread zeljko via Lazarus
On 10/19/2018 11:46 AM, Ondrej Pokorny wrote: On 19.10.2018 11:43, zeljko wrote: QProxyStyle can return any size for PM_SmallIconSize, but in that case we should know what's the current size of "normal" icons in LCL. The current size of "normal" icons in LCL is perfectly known, as well as

Re: [Lazarus] Scaling of menuitem icons

2018-10-19 Thread zeljko via Lazarus
On 10/19/2018 10:15 AM, Ondrej Pokorny via Lazarus wrote: >  On my Linux + KDE system however icons of the IDE's main menuitems do not scale. > In KDE settings panel -> Fonts I set the "Force font's DPI" value to 144 which is about 150%. I remember I worked on it: 1.) Gtk2: I added support

Re: [Lazarus] TListView + OwnerData=true + CheckBoxes

2018-12-10 Thread zeljko via lazarus
On 12/10/2018 08:38 PM, Marcos Douglas B. Santos via lazarus wrote: I don't know what Themes is. I want to use just default components. ...and nobody more answered. Is everybody using TDBGrid to show their data? :) No. Use TVirtualStringTree instead of TListView, it's x10 faster. zeljko --

Re: [Lazarus] TListView + OwnerData=true + CheckBoxes

2018-12-11 Thread zeljko via lazarus
On 12/11/2018 01:18 PM, Marcos Douglas B. Santos via lazarus wrote: I've searched by TVirtualStringTree on http://packages.lazarus-ide.org/ and haven't found. My ENV is Lazarus 1.9.0 r58537 FPC 3.1.1 i386-win32-win32/win64 I have several IDE versions but, for that project I cannot update my

Re: [Lazarus] Qt patch needs /const/ word

2018-12-10 Thread zeljko via lazarus
On 12/10/2018 10:02 AM, AlexeyT via lazarus wrote: https://github.com/graemeg/lazarus/commit/16dea52f979acc4a2998942f07d2e17ea5233aa5 I see N functions with somename(s: string). they need word /const/ for parameter. Yeah, mea culpa, I'll fix it. zeljko --

Re: [Lazarus] Qt patch needs /const/ word

2018-12-10 Thread zeljko via lazarus
On 12/10/2018 10:02 AM, AlexeyT via lazarus wrote: https://github.com/graemeg/lazarus/commit/16dea52f979acc4a2998942f07d2e17ea5233aa5 I see N functions with somename(s: string). they need word /const/ for parameter. Done. zeljko -- ___

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

2018-11-25 Thread zeljko via lazarus
On 11/25/2018 04:43 PM, Vojtěch Čihák via lazarus wrote: 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.

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

2018-11-25 Thread zeljko via lazarus
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

Re: [Lazarus] TListView + OwnerData=true + CheckBoxes

2018-12-09 Thread zeljko via lazarus
On 12/09/2018 12:58 PM, Marcos Douglas B. Santos via lazarus wrote: Hi, Has anybody already used, with success, virtual ListView showing CheckBoxes? There are any links on Internet, most about Delphi, but each one say something little different then other. I've tried a few combinations reading

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

2019-03-26 Thread zeljko via lazarus
On 03/26/2019 10:50 AM, leledumbo via lazarus wrote: Am I correct, that the LCL widgetset should auto compile, even though my Lazarus IDE is compiled with LCL-GTK2? Yes, it should. I build my apps for both GTK2 and QT(4) using build modes in one go. My IDE stays at QT. Maybe activate clean

Re: [Lazarus] Compilation error Lazarus r.60828

2019-04-04 Thread zeljko via lazarus
On 04/04/2019 03:00 PM, leyba bronstain via lazarus wrote: When I try to compile subj I get error message (3104) Compiling generatefppkgconfigurationdlg.pas d:\\lazarus_21_r60828\ide\generatefppkgconfigurationdlg.pas(9 1,63) Error: (5000) Identifier not found "GetFPCVer"

Re: [Lazarus] Universal FontDialog for LCL

2019-03-07 Thread zeljko via lazarus
On 03/06/2019 07:54 PM, AlexeyT via lazarus wrote: I have an idea to make LCL based TFontDialog- which will be LCL form, which can be called by TFontDialog.Execute (if Boolean variable in LCL is set). Why make it? - we can make all best features of FontDlgs from all WSes - we can make

Re: [Lazarus] Building lazarus from cli - how to specify target widgetset

2019-04-14 Thread zeljko via lazarus
On 04/14/2019 05:54 PM, Graeme Geldenhuys via lazarus wrote: As the subject lines says, how do I build lazarus IDE and LCL from the Linux command line and specify a specific widgetset target. eg: lcl-gtk1 instead of the default lcl-gtk2. make LCL_PLATFORM=gtk , gtk2 is default so make only is

Re: [Lazarus] Qt4: circle painted with artifact

2019-05-12 Thread zeljko via lazarus
On 05/12/2019 01:45 PM, AlexeyT via lazarus wrote: I noticed that Qt4 build of CudaText paints tabs' X on mouse-over wrong. Picture attached (1K). It is ATTabs code - see here https://github.com/Alexey-T/ATTabs/blob/master/attabs/attabs.pas#L1486 attabs.pas, procedure TATTabs.DoPaintXTo

Re: [Lazarus] Qt4 crash in CudaText

2019-09-28 Thread zeljko via lazarus
On 09/28/2019 09:54 AM, AlexeyT wrote: Qt4 version. Ok, as I can see it's 4.8.7, so last Qt4 release and it's ok. Please open an issue about it, in this case I must install your components and see what's going on inside your atlistbox.pas , and what kind of image is that. zeljko --

Re: [Lazarus] Qt4 crash in CudaText

2019-09-27 Thread zeljko via lazarus
On 09/27/2019 03:46 PM, AlexeyT via lazarus wrote: I just tested CudaText Linux x64 qt4 build: it now crashes on showing Command Palette dialog. Crash inside ATListbox.pas in Paint handler, in some Qt painting code. (I tried to change ATListbox.DoubleBuffered, no help.) Please send gdb

Re: [Lazarus] Qt4 crash in CudaText

2019-09-27 Thread zeljko via lazarus
On 09/27/2019 06:57 PM, AlexeyT via lazarus wrote: Stack trace. #0 QTransform::type() const at :0 #1 ?? at :0 #2 QPainter::drawImage(QRectF const&, QImage const&, QRectF const&, QFlags) at :0 This is crash in Qt library. #3 QPainter_drawImage2 at :0 #4 DRAWIMAGE(0x7fffdd6aad80,

Re: [Lazarus] Qt4 crash in CudaText

2019-09-28 Thread zeljko via lazarus
On 09/27/2019 07:40 PM, AlexeyT wrote: >>    if (not EqualRect(LocalRect, sourceRect^) then Changed this; still crash. call stack is similar: In that case it looks like a bug in Qt library (QPainter::drawImage is called after our libQt4Pas inside Qt lib). What is your qt4 library version ?

Re: [Lazarus] Why is there a define switch UseCThreads?

2019-11-10 Thread zeljko via lazarus
On 11/10/19 11:29 PM, Bo Berglund via lazarus wrote: I have ported a console application from Windows to Linux (Raspbian Buster) and I got to wonder about the check for a defined symbol appearing in the beginning of the code as produced by the Lazarus template: uses {$IFDEF UNIX}{$IFDEF

Re: [Lazarus] Why is there a define switch UseCThreads?

2019-11-11 Thread zeljko via lazarus
On 11/11/19 6:03 PM, Bo Berglund via lazarus wrote: then the idea is that if building for Linux and you use threads anywhere you need to put this first in the project file, right? Lazarus trunk -> New project automatically adds cthreads enclosed with IFDEF UNIX, if you create your program

  1   2   >