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

2016-05-22 Thread Vojtěch Čihák
On 22.05.2016 17:37, Vojtěch Čihák wrote:Separating Component Editors is quiet easy but how can I separate the Hook (SelectionHook method) when I need "self"?   Thanks, V. For what do you need self? You have the list, so do for I := 0 to ASelection.Count-1 do   if ASelection[I] is T

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

2016-05-22 Thread Vojtěch Čihák
: [Lazarus] Detect that component selected in OI. On 22.05.2016 15:45, Vojtěch Čihák wrote:With a small correction: it must be hooked only in design time.   constructor TMyTabSheet.Create(TheOwner: TComponent); begin   ...   if csDesigning in ComponentState then     GlobalDesignHook.AddHandlerSe

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

2016-05-22 Thread Vojtěch Čihák
OK, thanks. __ Od: Ondrej Pokorny Komu: Lazarus mailing list Datum: 22.05.2016 16:21 Předmět: Re: [Lazarus] Detect that component selected in OI. On 22.05.2016 14:13, Vojtěch Čihák wrote:procedure  TMyTabSheet.HookSelection(const

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

2016-05-22 Thread Vojtěch Čihák
With a small correction: it must be hooked only in design time.   constructor TMyTabSheet.Create(TheOwner: TComponent); begin   ...   if csDesigning in ComponentState then     GlobalDesignHook.AddHandlerSetSelection(@HookSelection); end;     V. ___ Lazar

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

2016-05-22 Thread Vojtěch Čihák
Thank you, Ondrej, it works and it is pretty easy.   Summary:   Let's say you have class TMyPageControl which consists of TMyTabSheet classes (TWinControls).   uses ... PropEdits, ...;   TMyTabSheet = class(TWinControl)   ...   protected     procedure HookSelection(const ASelection: TPersistentSe

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

2016-05-21 Thread Vojtěch Čihák
That's something else. I need something that will be part of component. Something like overriden SetFocus; or so. So far I tried CMDesignHitTest and DoEnter but it didn't work. It's like when you design Form with PageControl and two TabSheets. You select the second TabSheet in OI and PageControl

[Lazarus] Detect that component selected in OI.

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

Re: [Lazarus] Source Editor font size

2016-04-22 Thread Vojtěch Čihák
And there are two combos "Extra line spacing" and "Extra char spacing" with predifned values 0, 1, 2. However they accept any value (-4, 5 etc.) Maybe this feature is hidden for some users.   V. __ Od: Graeme Geldenhuys Komu: Lazarus m

Re: [Lazarus] Bashing the developers

2016-04-09 Thread Vojtěch Čihák
Hi,   part of reason may be that unsatisfied people are usually very loud while  satisfied are usually calm. Therefore I'd like to say here (loudly) that I was always (and I'm now) happy in Lazarus and FPC community (forum, ML, bugtracker) and developers and other people always helped when I nee

Re: [Lazarus] German umlauts in component names

2016-04-08 Thread Vojtěch Čihák
Předmět: Re: [Lazarus] German umlauts in component names On 04/08/2016 12:24 PM, Vojtěch Čihák wrote: Why sometimes come these empty mails from jel...@misticnabica.hr? Is it regular member or some bot? I think it's hacked machine...I'll inform that ppl that they are sending spam. btw. I

Re: [Lazarus] German umlauts in component names

2016-04-08 Thread Vojtěch Čihák
Why sometimes come these empty mails from jel...@misticnabica.hr?    Is it regular member or some bot?   V. __ Od: "" Komu: Datum: 08.04.2016 11:31 Předmět: Re: [Lazarus] German umlauts in component names --

Re: [Lazarus] {$warn 5023 off: No warning about unused units}

2016-04-06 Thread Vojtěch Čihák
Here:   http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packager/packagesystem.pas?root=lazarus&r1=51771&r2=51770&pathrev=51771   V. __ Od: Maxim Ganetsky Komu: Lazarus mailing list Datum: 07.04.2016 01:13 Předmět: Re: [Lazarus] {$w

[Lazarus] Esc closes modal forms [Qt4]

2016-04-04 Thread Vojtěch Čihák
Hi, this is user-unfreindly issue in Qt4. When I open form as modal (ShowModal) and then I open any combobox there, I sometimes want to leave it without change by Escape key. It closes the combo but at the same time it closes the form. It does not happen in Gtk2 (i.e. I would have to press Esc

Re: [Lazarus] Access violation r.51977

2016-03-24 Thread Vojtěch Čihák
I opened: http://bugs.freepascal.org/view.php?id=29889   Thanks. __ Od: Bart Komu: Lazarus mailing list Datum: 24.03.2016 14:30 Předmět: Re: [Lazarus] Access violation r.51977 Please open a ticket about it in Mantis. Can you see if

[Lazarus] Access violation r.51977

2016-03-23 Thread Vojtěch Čihák
Hi,   I got "Access Violation" window whenever I try to compile any (even an empty) project or package. It comes from r.51977, while r.51976 works well.   Commit description (by Bart): LazUtf8: firts attempt to rewrite Utf8CompareStr and Utf8CompareText so that it's results will be more consiste

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

2016-03-19 Thread Vojtěch Čihák
Hi,   there also must be   P.Canvas.Brush.Style:=bsClear;   before drawing text.   V. __ Od: Gabor Boros Komu: Datum: 16.03.2016 20:27 Předmět: [Lazarus] How to create a transparent PNG? Hi All, I want to draw onto a PNG image and s

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Vojtěch Čihák
Thanks, it's a nice idea. I think that selecting in listbox by arrow keys is annoying and slow. i would rather use RadioGroup where the option can be selected faster by Alt+Key.   V.   __ Od: Ondrej Pokorny Komu: Lazarus Datum: 07.03

[Lazarus] [ANN] Eye Candy Controls 0.9.4

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

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

2016-02-21 Thread Vojtěch Čihák
Probably not your case but when you add manually libs to system (/usr/lib or /usr/local/lib), you need to run ldconfig as superuser in terminal so the system rescans available libraries.   V. __ Od: Giuliano Colla Komu: Lazarus mailing

Re: [Lazarus] "Test" button in project inspector

2016-02-08 Thread Vojtěch Čihák
Main menu: Source -> Quick Syntax Check   Of course, you can assing some handy shortcut to it.   V. __ Od: Bo Berglund Komu: Datum: 08.02.2016 16:05 Předmět: Re: [Lazarus] "Test" button in project inspector On Fri, 5 Feb 2016 14:52:2

Re: [Lazarus] Can I assign items in an array all at once inFreePascal?

2016-02-06 Thread Vojtěch Čihák
Hmm, really:  http://blog.marcocantu.com/blog/2014_september_dynamic_arrays_delphixe7.html   V. __ Od: Sven Barth Komu: Lazarus mailing list Datum: 06.02.2016 21:40 Předmět: Re: [Lazarus] Can I assign items in an array all at once inFr

Re: [Lazarus] Code completion question

2016-01-26 Thread Vojtěch Čihák
Hi,   It is a bug? I know this behaviour for a long time and I always believed it is by design.   V. __ Od: Mattias Gaertner Komu: Datum: 26.01.2016 22:46 Předmět: Re: [Lazarus] Code completion question On Tue, 26 Jan 2016 21:50:43

Re: [Lazarus] Installation under SUSE

2016-01-06 Thread Vojtěch Čihák
Hi,   I guess you can't run Lazarus without this package. Maybe you need to add some repository, but I have no openSUSE anymore. Anyway, the package exits:  https://build.opensuse.org/package/view_file?file=gdk-pixbuf_2.24.0-1ubuntu1.dsc&package=gdk-pixbuf&project=home%3Atsx-5&rev=69b8579f342e48eb

Re: [Lazarus] Do we really need a PaintSwastika procedure?

2016-01-06 Thread Vojtěch Čihák
Hi,   I just tested and PaintSwastika always paints clockwise swastika (both  religious and nazi symbol). I vote for keeping procedure but there should be added boolean parameter + patch for painting anti-clockwise swastika (which is religious symbol only).   Blaazen _

[Lazarus] List of available defines

2016-01-04 Thread Vojtěch Čihák
  Hi,   is there some wiki or other place with list of available defines (for trunk)?   Currently, I have:   Debug Verbose WithSynMarkupIfDef EnableCodeCompleteTemplates EnableComponentPaletteOptions WithSynMultiCaret   UseOIThemedCheckbox   but I guess some are obsolete and maybe there are some n

Re: [Lazarus] Some components disappeared

2015-08-19 Thread Vojtěch Čihák
Reported in http://bugs.freepascal.org/view.php?id=28546   V.   Hi,   so I found revision which broke it. It is 48308 (i.e. 48307 is allright yet). I wonder why I noticed it so late, probably I didn't use "make clean all" during updates. This reversion (and a few revisions around) adds some ne

Re: [Lazarus] Some components disappeared

2015-08-19 Thread Vojtěch Čihák
ow where the problem exactly is. I only observed that those components does not implement "class procedure WSRegisterClass; override;". Maybe it is reason?   I am going to report it now.   V. __________ Od: "Vojtěch Čihák&

[Lazarus] Some components disappeared

2015-08-18 Thread Vojtěch Čihák
  Hello,   this is mystery. TCoolBar and TControlBar disappeared from component palette and they are not installed in IDE (I am not able to load project which uses TCoolBar). But those components are not part of any package, they are part of LCL, I checked comctrls.pp, the class TCoolBar is ther

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

2015-08-17 Thread Vojtěch Čihák
Hi,   your demo works well here. Manjaro Linux. Lazarus 1.5 r49677M FPC 3.1.1 x86_64-linux-qt.   V. __ Od: Paul Michell Komu: Datum: 17.08.2015 12:18 Předmět: [Lazarus] LCL MouseMove event problem on QT/Linux -- -- ___

Re: [Lazarus] New preprocessor directive

2015-05-17 Thread Vojtěch Čihák
Add I created code template for it: "icr" and it writes {$I %CURRENTROUTINE%} itself :-)   V. __ Od: leledumbo Komu: Datum: 17.05.2015 13:54 Předmět: Re: [Lazarus] New preprocessor directive At my request, Florian added {$I %CURREN

Re: [Lazarus] TStringGrid.OnSelectEditor

2015-05-14 Thread Vojtěch Čihák
I tested with r. 49022. Works well.   Thank you!   __ Od: "Jesus Reyes A." Komu: Lazarus mailing list Datum: 14.05.2015 09:05 Předmět: Re: [Lazarus] TStringGrid.OnSelectEditor En Wed, 13 May 2015 19:48:56 -0500, Voj

[Lazarus] TStringGrid.OnSelectEditor

2015-05-13 Thread Vojtěch Čihák
Hi,   I got troubles with TStringGrid. When I set:   goAlwaysShowEditor:=False; goEditing:=True;   OnSelectEditor is triggered always when I select any cell, even if editor (built-in or custom) is not shown yet. When I click the cell for the second time, editor is shown and OnSelectEditor is tri

Re: [Lazarus] Processing TCoolBar child by IDE

2015-05-11 Thread Vojtěch Čihák
't be difficult.   V. __ Od: Jesus Reyes Komu: Lazarus mailing list Datum: 11.05.2015 22:09 Předmět: Re: [Lazarus] Processing TCoolBar child by IDE En Mon, 11 May 2015 09:18:01 -0500, Vojtěch Čihák escribió: Hi,   developing TCoolBar w

Re: [Lazarus] Processing TCoolBar child by IDE

2015-05-11 Thread Vojtěch Čihák
Hi,   developing TCoolBar wasn't easy, one must deal with LCL austosizing mechanism, which is very sophisticated. I know that in design-time is not band-height recalculated immediately. The reason is mainly I wanted to do CoolBar efficient and avoid redundant recalculation (LCL triggers many res

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

2015-05-08 Thread Vojtěch Čihák
.   __ Od: Graeme Geldenhuys Komu: Datum: 09.05.2015 00:03 Předmět: Re: [Lazarus] What is main form? (Splash question) On 2015-05-08 20:59, Vojtěch Čihák wrote: the sleep() was there because demo is simple and is executed too fast and I needed to see whether

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

2015-05-08 Thread Vojtěch Čihák
x27;s time :)    __ Od: Mattias Gaertner Komu: Datum: 08.05.2015 21:52 Předmět: Re: [Lazarus] What is main form? (Splash question) On Fri, 08 May 2015 17:46:10 +0200 Vojtěch Čihák wrote: Hi,   what is main form from POV of Lazarus? It is the first form created with Application.CreateF

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

2015-05-08 Thread Vojtěch Čihák
. __ Od: Giuliano Colla Komu: Lazarus mailing list Datum: 08.05.2015 20:13 Předmět: Re: [Lazarus] What is main form? (Splash question) Il 08/05/2015 17:46, Vojtěch Čihák ha scritto: Is it bug? Or do I something wrong? The following code (where

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

2015-05-08 Thread Vojtěch Čihák
is created ? :-)   V. __ Od: Graeme Geldenhuys Komu: Datum: 08.05.2015 17:59 Předmět: Re: [Lazarus] What is main form? (Splash question) On 2015-05-08 16:46, Vojtěch Čihák wrote: It seems that after adding splash screen is FrmMain

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

2015-05-08 Thread Vojtěch Čihák
Hi,   what is main form from POV of Lazarus? I made this demo:   program project1; {$mode objfpc}{$H+}   uses   {$IFDEF UNIX}{$IFDEF UseCThreads}   cthreads,   {$ENDIF}{$ENDIF}   sysutils,   Interfaces, // this includes the LCL widgetset   Forms, Unit1, Unit2, Unit3   { you can add units after th

Re: [Lazarus] SVG format for icons and other graphics

2015-05-07 Thread Vojtěch Čihák
Hi, Inkscape is excellent open source application for designing vector graphics. There is also console tool for converting svg->png: rsvg-convert   I use this script which converts all svg files in directory to png images with various sizes and places them to directories:   #!/bin/bash   for i in

Re: [Lazarus] (no subject)

2015-05-06 Thread Vojtěch Čihák
Hi,   I like current splash (cheetah on the pillar). Its timeless, I wouldn't change it. The only aesthetic flaw is that it is a little empty in the middle. It is problem of Splash screen only. In About Box - there are written infos about Lazarus, FPC and system, so it looks fine.   V. _

Re: [Lazarus] User defined markup question

2015-05-04 Thread Vojtěch Čihák
Thanks, start/end bounds did the job. __ Od: Martin Frb Komu: Lazarus mailing list Datum: 05.05.2015 01:04 Předmět: Re: [Lazarus] User defined markup question -- ___ Lazarus mailing list L

Re: [Lazarus] User defined markup question

2015-05-04 Thread Vojtěch Čihák
I didn't write it explicitly, I want that only "LProjects" become green while "TGLProjects" remain default.  ______ Od: "Vojtěch Čihák" Komu: Lazarus mailing list Datum: 04.05.2015 22:00 Předmět: [La

[Lazarus] User defined markup question

2015-05-04 Thread Vojtěch Čihák
  Hi,   how to setup User Defined Markup in Source Editor so it changes style (color, bold etc.)? (See screenshot). There are some properties like Priority or Set Bound at Start/End but I don't know how to use them properly.   Thanks.   V. -- ___ Lazar

Re: [Lazarus] Two stage shortcuts question

2015-04-28 Thread Vojtěch Čihák
I opened issue    http://bugs.freepascal.org/view.php?id=27992 __ Od: Martin Frb Komu: Lazarus mailing list Datum: 28.04.2015 19:40 Předmět: Re: [Lazarus] Two stage shortcuts question Can you report an issue on the bugtracker please

Re: [Lazarus] Two stage shortcuts question

2015-04-28 Thread Vojtěch Čihák
Thanks,   I checked CTRL+M, it is assigned to many macros, CTRL+M,L or CTRL+M, CTRL+L (i.e. some of them has CTRL in the second stage, others not). All those macros works.   I tried to restart Lazarus, no effect.   I tried to change the macro from CTRL+M,CTRL+J to CTRL+M,J. After this change, b

[Lazarus] Two stage shortcuts question

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

Re: [Lazarus] Moving items between actionlist

2015-04-20 Thread Vojtěch Čihák
Wouldn't be enough to close project, manually edit *.lfm file(s) and reopen project? I guess *.lfm is the only place which states that Action A belongs to ActionList B.   V.   __ Od: Torsten Bonde Christiansen Komu: Lazarus mailing li

Re: [Lazarus] upper & lower case problem

2015-04-19 Thread Vojtěch Čihák
I just tested on Qt (Lazarus 1.5 r48755M FPC 3.1.1 x86_64-linux-qt) and works well. Isn't it wrong autosizing of TLabel on GTk2 rather than some encoding problem?   V. __ Od: Juha Manninen Komu: Lazarus mailing list Datum: 19.04.2015

Re: [Lazarus] Strange Alphasort in ListView

2015-04-14 Thread Vojtěch Čihák
Sort; form protected to public.   What is preferred?   V. __ Od: "Vojtěch Čihák" Komu: Lazarus mailing list Datum: 14.04.2015 15:23 Předmět: Re: [Lazarus] Strange Alphasort in ListView I understand. Method Sort; is protected

Re: [Lazarus] Strange Alphasort in ListView

2015-04-14 Thread Vojtěch Čihák
_ Od: "Valdas Jankūnas" Komu: Lazarus mailing list Datum: 14.04.2015 15:02 Předmět: Re: [Lazarus] Strange Alphasort in ListView 2015.04.14 15:34, Vojtěch Čihák rašė: No, it isn't a bug. In sources, you can see comment: function AlphaSort: Boolean; // always sorts column 0 in sdAsce

Re: [Lazarus] Strange Alphasort in ListView

2015-04-14 Thread Vojtěch Čihák
No, it isn't a bug.   In sources, you can see comment:   function AlphaSort: Boolean; // always sorts column 0 in sdAscending order   So if you want other sorting, you must set three sort-related properties:   ListView1.SortColumn:=1; ListView1.SortDirection:=sdAscending; ListView1.SortType:=stTex

Re: [Lazarus] How to stream TColor in hexadecimal format?

2015-04-14 Thread Vojtěch Čihák
Thanks,   it does not work. Where should I place such overloaded procedure?   The reason I need it is that the *.xml file is config file so there is a chance that someone will edit it manually. Or there is possibility to change declaration from TColor to string.   V. _

[Lazarus] How to stream TColor in hexadecimal format?

2015-04-13 Thread Vojtěch Čihák
Hello,   how to stream TColor in hexadecimal format?   Currently, TColor is streamed as   Color = 5810431 Color = clTeal   in *.lfm or     in *.xml. How can I stream it in $00FEDCBA format?   In the worst case, I probably can move those properties from published to public and TPersistent.DefineP

Re: [Lazarus] Recent changes in XML?

2015-04-09 Thread Vojtěch Čihák
with older versions of FPC (before Read/WriteSignature was introduced).   Thanks, V.   __ Od: zeljko Komu: Lazarus mailing list Datum: 09.04.2015 15:42 Předmět: Re: [Lazarus] Recent changes in XML? On 04/09/2015 03:36 PM, Vojtěch Čihák

[Lazarus] Recent changes in XML?

2015-04-09 Thread Vojtěch Čihák
  Hi,   I am not sure if this XML issue belong to Lazarus or FPC.   I noticed that my app. gives warning "Constructing a class "TXMLObjectWriter" with abstract method "WriteSignature" and later crashes. So I tried demo "streamasxmldemo" from lazarus/examples and it is the same: "mainunit.pas(109,

Re: [Lazarus] Cannot bulid Lazarus Qt

2015-04-08 Thread Vojtěch Čihák
azarus and FPC are OK (but I didn't try BIGIDE).V.__ Od: zeljko Komu: Lazarus mailing list Datum: 08.04.2015 15:29 Předmět: Re: [Lazarus] Cannot bulid Lazarus Qt On 04/08/2015 01:41 PM, Vojtěch Čihák wrote: Hi, I got strange probl

[Lazarus] Cannot bulid Lazarus Qt

2015-04-08 Thread Vojtěch Čihák
  Hi, I got strange problem I didn't see ever before.   I cannot build Lazarus for Qt. It always falls to GTk2.   I got set "Qt" in Configure Build Lazarus Dialog and Build with Clean All option.   I also tried to buid from console: make clean all useride LCL_PLATFORM=qt   but no luck.   Linux 64

Re: [Lazarus] BUG: Gtk MouseExit, MouseUp

2015-04-07 Thread Vojtěch Čihák
Yes, already reported by me, 3 years ago :-)   http://bugs.freepascal.org/view.php?id=21982   V.   __ Od: Anthony Walter Komu: Lazarus mailing list Datum: 07.04.2015 23:16 Předmět: [Lazarus] BUG: Gtk MouseExit, MouseUp I can't believ

Re: [Lazarus] Mild bug in 1.4RC2?

2015-04-07 Thread Vojtěch Čihák
I cannot reproduce in 1.4RC3 under Wine.   V. __ Od: Juha Manninen Komu: Lazarus mailing list Datum: 03.04.2015 14:02 Předmět: Re: [Lazarus] Mild bug in 1.4RC2? On Thu, Apr 2, 2015 at 9:44 PM, Vojtěch Čihák wrote: I'm sure i

[Lazarus] Assembler window

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

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

2015-04-04 Thread Vojtěch Čihák
Hi,   DropDownCount works well in Qt but has no effect in GTk2 (and probably in Carbon too). You can also see it in OI, tab "Restricted".   V. __ Od: Donald Ziesig Komu: Lazarus mailing list Datum: 04.04.2015 20:06 Předmět: [Lazarus]

Re: [Lazarus] Mild bug in 1.4RC2?

2015-04-02 Thread Vojtěch Čihák
I'm sure it was this: http://bugs.freepascal.org/view.php?id=23891  __ Od: Juha Manninen Komu: Lazarus mailing list Datum: 02.04.2015 20:09 Předmět: Re: [Lazarus] Mild bug in 1.4RC2? On Thursday, April 2, 2015, Vojtěch Čihák &g

Re: [Lazarus] Mild bug in 1.4RC2?

2015-04-02 Thread Vojtěch Čihák
Hi,   this is already resolved in trunk.   V.   __ Od: JuuS Komu: Lazarus mailing list Datum: 02.04.2015 18:53 Předmět: [Lazarus] Mild bug in 1.4RC2? Hi all, I'm working with Lazarus 1.4RC2 on kubuntu 14.04. Tonight while designing

Re: [Lazarus] how to handle Shift=[ssCtrl]

2015-04-02 Thread Vojtěch Čihák
mouseup tnotifyevent, shift parameter has not value of mouse button, values is zero. Button parameter has value, mbRight etc. if ssCtrl in Shift then...  has same result, I mean not handle ctrl or other keys(ssalt, ssshift) On 2.04.2015 14:54, Vojtěch Čihák wrote: Hi, You must use: if

Re: [Lazarus] how to handle Shift=[ssCtrl]

2015-04-02 Thread Vojtěch Čihák
Hi,   You must use: if ssCtrl in Shift then ... instead.   That's because mouse-buttons are in Shift too. If you do Ctrl+right-click, then Shift=[ssRight, ssCtrl]. And possibly something else (ssCaps).   V. __ Od: FreeMan Komu: Lazarus

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

2015-03-31 Thread Vojtěch Čihák
OK, so the patch is fine.   V. __ Od: Martin Frb Komu: Lazarus mailing list Datum: 01.04.2015 00:13 Předmět: Re: [Lazarus] Coolbar: IDE shows a drag cursor on buttons The change was (afaik) not because of the GTK part. I wrote (none p

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

2015-03-31 Thread Vojtěch Čihák
Hi,   I ask here because I wasn't enough fast to ask on bugtracker. Issue is already closed.   About 27762: IDE shows a drag cursor on the coolbar   IMO it was GTk2 issue rather than CoolBar issue, I couldn't reproduce on Qt.   Cursor changing was implemented intentionally, if coolband can be siz

Re: [Lazarus] svn version of Lazarus broken?

2015-03-30 Thread Vojtěch Čihák
Hi,   On Linux (Lazarus 1.5 r48530M FPC 3.1.1 x86_64-linux-qt) I can drop SynMemo on form.   Did you build with Clean All ?   V. __ Od: John Landmesser Komu: Datum: 30.03.2015 18:22 Předmět: [Lazarus] svn version of Lazarus broken?

Re: [Lazarus] Sorted editor tabs

2015-03-22 Thread Vojtěch Čihák
Hi, I created a trivial demo of pagecontrol with grouped tabs.   Tabs are grouped like it was in Opera12. Holding mouse down opens the menu.   It works on Qt and GTk2.   However, Drag+Drop operations and proper group management is a lot of work.   V.   _

Re: [Lazarus] Sorted editor tabs

2015-03-22 Thread Vojtěch Čihák
Hi, I love the new feature that the editor notebook can display files now in  multiple tab rows   How can I activate this feature? Is it avaiable in Qt? I have Laz. trunk.   Thanks.   V. ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org htt

Re: [Lazarus] Startup delay of project (Qt)

2015-03-07 Thread Vojtěch Čihák
How can I detect it?   I have Qt 4.8.6 from repositories, it should be standart stable version for end-users. __ Od: Martin Frb Komu: Lazarus mailing list Datum: 07.03.2015 18:44 Předmět: Re: [Lazarus] Startup delay of project (Qt)

Re: [Lazarus] Startup delay of project (Qt)

2015-03-07 Thread Vojtěch Čihák
zarus] Startup delay of project (Qt) On 07/03/2015 11:37, Vojtěch Čihák wrote:   Hi,   I have noticed that Qt projects started with F9 have a delay (about ~12 seconds) before the form appears. Its not only with large projects, its also with small projects or even empty forms.   The delay is there

Re: [Lazarus] Startup delay of project (Qt)

2015-03-07 Thread Vojtěch Čihák
Thanks.   I execued Lazarus in strace but no it gives no special output.   TExternalTool.DoExecute Title="Compile Project, Mode: Default, Target: project1" Process.CurrentDirectory="/home/v1/tmp/" Executable="/usr/local/bin/fpc" Params: -Tlinux -Px86_64 -MObjFPC -Shi -Cg -g -gl -gh -l -vewnhibq -

[Lazarus] Startup delay of project (Qt)

2015-03-07 Thread Vojtěch Čihák
  Hi,   I have noticed that Qt projects started with F9 have a delay (about ~12 seconds) before the form appears. Its not only with large projects, its also with small projects or even empty forms.   The delay is there even if nothing in project changes and I start it by F9 repeatedly. When I tr

[Lazarus] OnUndock event question

2015-03-01 Thread Vojtěch Čihák
  Hi,   when is triggered OnUndock event of the form?   I have Panel (UseDockManager=True, DockSite=True) and I dock there a form (it is a toolwin) with method Dock(Panel, rect); Then I undock it with Dock(nil, rect);    It seems that OnUndock is never triggered, I also tried OnUndock of the panel

Re: [Lazarus] about checkbox in Object inspector

2015-02-28 Thread Vojtěch Čihák
You are right, I promised it in december. IIRC it should be in some UseOIThemedCheckBox define at first. I'll look at it.   V. __ Od: Juha Manninen Komu: Lazarus mailing list Datum: 28.02.2015 17:20 Předmět: Re: [Lazarus] about checkb

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

2015-02-24 Thread Vojtěch Čihák
It is Lazarus 1.5 r47939M FPC 3.1.1 x86_64-linux-qt __ > Od: > Komu: Lazarus mailing list > Datum: 24.02.2015 18:00 > Předmět: Re: [Lazarus] [Qt] Random issues at startup > On 2015-02-23 16:42, Vojtěch Čihák wrote: &

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

2015-02-23 Thread Vojtěch Čihák
And I observed (with breakpoints in *.lpr) that the "malloc ..." message comes from Application.Initialize;   V. __ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists

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

2015-02-23 Thread Vojtěch Čihák
zarus] [Qt] Random issues at startup On 2015-02-23 09:10, Vojtěch Čihák wrote: Hi, I work on app. (~2 lines) and sometimes at startup (10 - 15% cases of hiting F9) I got this message in console: malloc(): smallbin double linked list corrupted: 0x010ee860 *** and it crashes. (Note

[Lazarus] [Qt] Random issues at startup

2015-02-23 Thread Vojtěch Čihák
Hi,   I work on app. (~2 lines) and sometimes at startup (10 - 15% cases of hiting F9) I got this message in console:   malloc(): smallbin double linked list corrupted: 0x010ee860 ***   and it crashes.   (Note that it is only in Qt, the same app. in GTK2 is  OK.) CallStack window does

[Lazarus] Themed Panel

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

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

2015-01-05 Thread Vojtěch Čihák
So finally there'll be no 2.8 ?   Anyway, it works well. I just updated to 29419 and built it with 2.6.4. Lazarus compiled well too. Just have Lazarus 1.3 r47310M FPC 3.1.1 x86_64-linux-qt.   Thanks   Vojtěch  __ Od: Marco van de Voort

[Lazarus] Question {%MainUnit} IDE directive

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

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

2014-12-22 Thread Vojtěch Čihák
Hi,   just tested on Qt. My TEdits are also white.   This line:   writeln(ColorToString(Edit1.Brush.Color));   writes out clWindow for default color (clDefault) and clRed for clRed.   Vojtěch  __ Od: Bart Komu: Lazarus mailing list Dat

Re: [Lazarus] OI Checkboxes

2014-11-30 Thread Vojtěch Čihák
Yes, I can reproduce with oxygen, probably Oxygen and Air are similar. However, I don't know how to solve it. My EC-Controls are affected too. Maybe draw dotted rectangle around with clBtnText color?   Vojtěch  __ Od: FreeMan Komu: Laz

Re: [Lazarus] OI Checkboxes

2014-11-30 Thread Vojtěch Čihák
: [Lazarus] OI Checkboxes On 30-11-2014 01:13, Vojtěch Čihák wrote:It looks like flag DT_VCENTER does not work in Windows.   On the first look, patch is OK. I will test it in Linux soon.    Vojtěch  _ ___ Lazarus mailing list Lazarus

Re: [Lazarus] OI Checkboxes

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

Re: [Lazarus] OI Checkboxes

2014-11-29 Thread Vojtěch Čihák
apply if OK under QT/GTK2. Sandro On 29 November 2014 at 21:32, Vojtěch Čihák > wrote: I'll try it next week.   Vojtěch  __ Od: Juha Manninen > Komu: Lazarus mailing list > Datum: 29.11.2014 21:07 Předmět: Re: [Lazarus]

Re: [Lazarus] OI Checkboxes

2014-11-29 Thread Vojtěch Čihák
I'll try it next week.   Vojtěch  __ Od: Juha Manninen Komu: Lazarus mailing list Datum: 29.11.2014 21:07 Předmět: Re: [Lazarus] OI Checkboxes On Friday, November 28, 2014, Vojtěch Čihák > wrote: TCheckBoxThemed is done:

Re: [Lazarus] OI Checkboxes

2014-11-28 Thread Vojtěch Čihák
Hello,   TCheckBoxThemed is done:   http://bugs.freepascal.org/view.php?id=27106    Currently it installs to LazControls.   As proposed, it has: - property Alignment; - public class method PaintSelf capable to paint checkbox without instance the rest is the same as TCheckBox.    No idea about acce

Re: [Lazarus] OI Checkboxes

2014-11-27 Thread Vojtěch Čihák
OK, I'm starting tp implement it. I will reuse as much code as possible from my TECSwitch (not deriving, but just Copy-Paste) because it is, in fact, custom drawn checkbox too. I will add property Alignment as proposed from Bart and class method for self-painting for OI purposes. No idea about "

Re: [Lazarus] OI Checkboxes

2014-11-27 Thread Vojtěch Čihák
Hi,   what does it mean? __ Od: Frederic Da Vitoria Komu: Lazarus mailing list Datum: 27.11.2014 09:37 Předmět: Re: [Lazarus] OI Checkboxes 2014-11-27 0:20 GMT+01:00 Juha Manninen >: On Wednesday, November 26, 2014, Vojtěch Či

Re: [Lazarus] OI Checkboxes

2014-11-26 Thread Vojtěch Čihák
mailing list Datum: 26.11.2014 08:42 Předmět: Re: [Lazarus] OI Checkboxes On Tuesday, November 25, 2014, Vojtěch Čihák > wrote: If so, then it will never work properly. It may never be perfect but it can be very close.I wrapped my mind around this issue last night and improved it a lot.Ple

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Vojtěch Čihák
Hi,   Do I understand correctly that currently - unselected row paints checkbox + caption via themes, while - selected row is regular TCheckBox ?   If so, then it will never work properly.   Vojtěch -- ___ Lazarus mailing list Lazarus@lists.lazarus.free

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Vojtěch Čihák
I found one more issue with Linux-Qt. This one is not Oxygen related. When the row in OI is selected, Caption is written 1 or 2 pixels higher than in non selected row. The checkbox itself is OK. Vojtěch ___ Lazarus mailing list Lazarus@lists.lazarus.fr

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Vojtěch Čihák
This is not Linux-Qt related, this is Oxygen related. Other themes work OK. Hardcoding 1 or 2 pixels is IMO not good idea, it may cause troubles elsewhere. I tested ThemeServices.GetDetailSize and it gives the same output for tbCheckBoxCheckedDisabled, tbCheckBoxCheckedNormal and tbCheckBoxCheck

Re: [Lazarus] Toolbar divider issues

2014-11-11 Thread Vojtěch Čihák
Hi, I added patch http://bugs.freepascal.org/view.php?id=27030 It (I hope) solves all issues you pointed here.   Vojtěch  ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Toolbar divider issues

2014-11-09 Thread Vojtěch Čihák
  Vojtěch  __ Od: Giuliano Colla Komu: Lazarus mailing list Datum: 09.11.2014 17:41 Předmět: Re: [Lazarus] Toolbar divider issues Il 09/11/2014 15:04, Vojtěch Čihák ha scritto: Hi, with this code: procedure TToolButton.SetStyle(Value: TToolButtonStyle); begin   if FSty

Re: [Lazarus] Toolbar divider issues

2014-11-09 Thread Vojtěch Čihák
Hi,   with this code:    procedure TToolButton.SetStyle(Value: TToolButtonStyle); begin   if FStyle = Value then exit;   FStyle := Value;   if Value = tbsSeparator then Width := 10;   if Value = tbsDivider then Width := 5;   InvalidatePreferredSize;   if IsControlVisible then   UpdateVisibleToolba

  1   2   >