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

2016-05-22 Thread Vojtěch Čihák
Předmět: Re: [Lazarus] Detect that component selected in OI. On 22.05.2016 17:37, Vojtěch Čihák wrote:Separating Component Editors is quiet easy but how can I separate the Hook (SelectionHook method) when I need "self"?   Thanks, V. For what do you need self? You have the l

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

2016-05-22 Thread Vojtěch Čihák
ng list <lazarus@lists.lazarus.freepascal.org> Datum: 22.05.2016 16:10 Předmět: Re: [Lazarus] Detect that component selected in OI. On 22.05.2016 15:45, Vojtěch Čihák wrote:With a small correction: it must be hooked only in design time.   constructor TMyTabSheet.Create(TheOwner: TComponent); begin

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

2016-05-22 Thread Vojtěch Čihák
OK, thanks. __ Od: Ondrej Pokorny <laza...@kluug.net> Komu: Lazarus mailing list <lazarus@lists.lazarus.freepascal.org> Datum: 22.05.2016 16:21 Předmět: Re: [Lazarus] Detect that component selected in OI. On 22.05.2016 14

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. ___

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:

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

[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

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

Re: [Lazarus] German umlauts in component names

2016-04-08 Thread Vojtěch Čihák
t;lazarus@lists.lazarus.freepascal.org> Datum: 08.04.2016 14:01 Předmět: Re: [Lazarus] German umlauts in component names On 04/08/2016 12:24 PM, Vojtěch Čihák wrote: Why sometimes come these empty mails from jel...@misticnabica.hr? Is it regular member or some bot? I think it's hacked ma

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]

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

2016-04-06 Thread Vojtěch Čihák
Here:   http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packager/packagesystem.pas?root=lazarus=51771=51770=51771   V. __ Od: Maxim Ganetsky Komu: Lazarus mailing list Datum:

[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

[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

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

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] [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

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]

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

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:

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

Re: [Lazarus] Installation under SUSE

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

[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

Re: [Lazarus] Some components disappeared

2015-08-19 Thread Vojtěch Čihák
exactly is. I only observed that those components does not implement class procedure WSRegisterClass; override;. Maybe it is reason?   I am going to report it now.   V. __ Od: Vojtěch Čihák vojtech.ci...@atlas.cz Komu: Lazarus mailing list

Re: [Lazarus] Some components disappeared

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

[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

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

2015-08-17 Thread Vojtěch Čihák
Hi,   your demo works well here. Manjaro Linux. Lazarus 1.5 r49677M FPC 3.1.1 x86_64-linux-qt.   V. __ Od: Paul Michell p...@michellcomputing.co.uk Komu: lazarus@lists.lazarus.freepascal.org Datum: 17.08.2015 12:18 Předmět: [Lazarus]

Re: [Lazarus] New preprocessor directive

2015-05-17 Thread Vojtěch Čihák
Add I created code template for it: icr and it writes {$I %CURRENTROUTINE%} itself :-)   V. __ Od: leledumbo leledumbo_c...@yahoo.co.id Komu: lazarus@lists.lazarus.freepascal.org Datum: 17.05.2015 13:54 Předmět: Re: [Lazarus] New

Re: [Lazarus] TStringGrid.OnSelectEditor

2015-05-14 Thread Vojtěch Čihák
Wed, 13 May 2015 19:48:56 -0500, Vojtěch Čihák vojtech.ci...@atlas.cz escribió: Hi,   I got troubles with TStringGrid. When I set:   goAlwaysShowEditor:=False; goEditing:=True;   OnSelectEditor is triggered always when I select any cell, even if editor (built-in or custom) is not shown yet. When

[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

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

Re: [Lazarus] Processing TCoolBar child by IDE

2015-05-11 Thread Vojtěch Čihák
be difficult.   V. __ Od: Jesus Reyes jesus...@gmail.com Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 11.05.2015 22:09 Předmět: Re: [Lazarus] Processing TCoolBar child by IDE En Mon, 11 May 2015 09:18:01 -0500, Vojtěch

[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

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

2015-05-08 Thread Vojtěch Čihák
? :-)   V. __ Od: Graeme Geldenhuys mailingli...@geldenhuys.co.uk Komu: lazarus@lists.lazarus.freepascal.org Datum: 08.05.2015 17:59 Předmět: Re: [Lazarus] What is main form? (Splash question) On 2015-05-08 16:46, Vojtěch Čihák wrote

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

2015-05-08 Thread Vojtěch Čihák
. __ Od: Giuliano Colla giuliano.co...@fastwebnet.it Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 08.05.2015 20:13 Předmět: Re: [Lazarus] What is main form? (Splash question) Il 08/05/2015 17:46, Vojtěch Čihák ha scritto

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

2015-05-08 Thread Vojtěch Čihák
:)    __ Od: Mattias Gaertner nc-gaert...@netcologne.de Komu: lazarus@lists.lazarus.freepascal.org Datum: 08.05.2015 21:52 Předmět: Re: [Lazarus] What is main form? (Splash question) On Fri, 08 May 2015 17:46:10 +0200 Vojtěch Čihák vojtech.ci...@atlas.cz wrote: Hi,   what is main form from

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

2015-05-08 Thread Vojtěch Čihák
.   __ Od: Graeme Geldenhuys mailingli...@geldenhuys.co.uk Komu: lazarus@lists.lazarus.freepascal.org Datum: 09.05.2015 00:03 Předmět: Re: [Lazarus] What is main form? (Splash question) On 2015-05-08 20:59, Vojtěch Čihák wrote: the sleep() was there because

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 laza...@mfriebe.de Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 05.05.2015 01:04 Předmět: Re: [Lazarus] User defined markup question --

Re: [Lazarus] User defined markup question

2015-05-04 Thread Vojtěch Čihák
I didn't write it explicitly, I want that only LProjects become green while TGLProjects remain default.  __ Od: Vojtěch Čihák vojtech.ci...@atlas.cz Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 04.05.2015 22

[Lazarus] User defined markup question

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

[Lazarus] 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] 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,

Re: [Lazarus] Two stage shortcuts question

2015-04-28 Thread Vojtěch Čihák
I opened issue    http://bugs.freepascal.org/view.php?id=27992 __ Od: Martin Frb laza...@mfriebe.de Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 28.04.2015 19:40 Předmět: Re: [Lazarus] Two stage shortcuts

Re: [Lazarus] Moving items between actionlist

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

Re: [Lazarus] upper lower case problem

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

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.

Re: [Lazarus] Strange Alphasort in ListView

2015-04-14 Thread Vojtěch Čihák
: Valdas Jankūnas zmu...@gmail.com Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 14.04.2015 15:02 Předmět: Re: [Lazarus] Strange Alphasort in ListView 2015.04.14 15:34, Vojtěch Čihák rašė: No, it isn't a bug. In sources, you can see comment: function AlphaSort: Boolean

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 vojtech.ci...@atlas.cz Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 14.04.2015 15:23 Předmět: Re: [Lazarus] Strange Alphasort

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;

[Lazarus] How to stream TColor in hexadecimal format?

2015-04-13 Thread Vojtěch Čihák
Hello,   how to stream TColor in hexadecimal format?   Currently, TColor is streamed as   Color = 5810431 Color = clTeal   in *.lfm or   integer name=ClrDWBCurve value=33023/ ident name=ClrSF2Curve value=clRed/   in *.xml. How can I stream it in $00FEDCBA format?   In the worst case, I probably

Re: [Lazarus] Recent changes in XML?

2015-04-09 Thread Vojtěch Čihák
changes in XML? On 04/09/2015 03:36 PM, Vojtěch Čihák wrote: Hi, I am not sure if this XML issue belong to Lazarus or FPC. I noticed that my app. gives warning Constructing a class TXMLObjectWriter with abstract method WriteSignature and later crashes. So I tried demo streamasxmldemo from

[Lazarus] Recent changes in XML?

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

[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

Re: [Lazarus] Cannot bulid Lazarus Qt

2015-04-08 Thread Vojtěch Čihák
are OK (but I didn't try BIGIDE).V.__ Od: zeljko zel...@holobit.net Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 08.04.2015 15:29 Předmět: Re: [Lazarus] Cannot bulid Lazarus Qt On 04/08/2015 01:41 PM, Vojtěch

Re: [Lazarus] Mild bug in 1.4RC2?

2015-04-07 Thread Vojtěch Čihák
, Apr 2, 2015 at 9:44 PM, Vojtěch Čihák vojtech.ci...@atlas.cz wrote: I'm sure it was this: http://bugs.freepascal.org/view.php?id=23891 http://bugs.freepascal.org/view.php?id=23891 Lazarus 1.4 was branched at 11 of January this year. The bug was fixed a long before that, thus the fix is included

Re: [Lazarus] BUG: Gtk MouseExit, MouseUp

2015-04-07 Thread Vojtěch Čihák
Yes, already reported by me, 3 years ago :-)   http://bugs.freepascal.org/view.php?id=21982   V.   __ Od: Anthony Walter sys...@gmail.com Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 07.04.2015 23:16 Předmět:

[Lazarus] 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

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

2015-04-04 Thread Vojtěch Čihák
Hi,   DropDownCount works well in Qt but has no effect in GTk2 (and probably in Carbon too). You can also see it in OI, tab Restricted.   V. __ Od: Donald Ziesig don...@ziesig.org Komu: Lazarus mailing list

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

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

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

Re: [Lazarus] Mild bug in 1.4RC2?

2015-04-02 Thread Vojtěch Čihák
Hi,   this is already resolved in trunk.   V.   __ Od: JuuS j...@mykolab.ch Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 02.04.2015 18:53 Předmět: [Lazarus] Mild bug in 1.4RC2? Hi all, I'm working with

Re: [Lazarus] Mild bug in 1.4RC2?

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

[Lazarus] 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

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

2015-03-31 Thread Vojtěch Čihák
OK, so the patch is fine.   V. __ Od: Martin Frb laza...@mfriebe.de Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 01.04.2015 00:13 Předmět: Re: [Lazarus] Coolbar: IDE shows a drag cursor on buttons The change

Re: [Lazarus] svn version of Lazarus broken?

2015-03-30 Thread Vojtěch Čihák
Hi,   On Linux (Lazarus 1.5 r48530M FPC 3.1.1 x86_64-linux-qt) I can drop SynMemo on form.   Did you build with Clean All ?   V. __ Od: John Landmesser jmlandmes...@gmx.de Komu: Lazarus@lists.lazarus.freepascal.org Datum: 30.03.2015

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

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] Startup delay of project (Qt)

2015-03-07 Thread Vojtěch Čihák
@lists.lazarus.freepascal.org Datum: 07.03.2015 18:10 Předmět: Re: [Lazarus] Startup delay of project (Qt) On 07/03/2015 11:37, Vojtěch Čihák wrote:   Hi,   I have noticed that Qt projects started with F9 have a delay (about ~12 seconds) before the form appears. Its not only with large projects, its also with small

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

2015-03-07 Thread Vojtěch Čihák
How can I detect it?   I have Qt 4.8.6 from repositories, it should be standart stable version for end-users. __ Od: Martin Frb laza...@mfriebe.de Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 07.03.2015 18:44

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

Re: [Lazarus] about checkbox in Object inspector

2015-02-28 Thread Vojtěch Čihák
You are right, I promised it in december. IIRC it should be in some UseOIThemedCheckBox define at first. I'll look at it.   V. __ Od: Juha Manninen juha.mannine...@gmail.com Komu: Lazarus mailing list

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

2015-02-24 Thread Vojtěch Čihák
16:42, Vojtěch Čihák wrote: And I observed (with breakpoints in *.lpr) that the malloc ... message comes from Application.Initialize; fpc 2.6.4 or 3.XX ? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

[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

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

2015-02-23 Thread Vojtěch Čihák
Datum: 23.02.2015 21:03 Předmět: Re: [Lazarus] [Qt] Random issues at startup On 2015-02-23 09:10, Vojtěch Čihák wrote: Hi, I work on app. (~2 lines) and sometimes at startup (10 - 15% cases of hiting F9) I got this message in console: malloc(): smallbin double linked list corrupted

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

[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.  

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

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

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-30 Thread Vojtěch Čihák
@lists.lazarus.freepascal.org Datum: 30.11.2014 11:02 Předmět: Re: [Lazarus] OI Checkboxes On 30-11-2014 01:13, Vojtěch Čihák wrote:It looks like flag DT_VCENTER does not work in Windows.   On the first look, patch is OK. I will test it in Linux soon.    Vojtěch

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

Re: [Lazarus] OI Checkboxes

2014-11-29 Thread Vojtěch Čihák
, 2014, Vojtěch Čihák vojtech.ci...@atlas.cz vojtech.ci...@atlas.cz wrote: TCheckBoxThemed is done: I added it to LazControls package. Thanks.Would you like to implement the Boolean editor using your component?Otherwise it will take time as I have other duties in near future.It should be selectable

Re: [Lazarus] OI Checkboxes

2014-11-29 Thread Vojtěch Čihák
checkboxthemed2.png (after patch) and review attached diff file. Please apply if OK under QT/GTK2. Sandro On 29 November 2014 at 21:32, Vojtěch Čihák vojtech.ci...@atlas.cz vojtech.ci...@atlas.cz wrote: I'll try it next week.   Vojtěch  __ Od: Juha

Re: [Lazarus] OI Checkboxes

2014-11-27 Thread Vojtěch Čihák
Manninen juha.mannine...@gmail.com juha.mannine...@gmail.com: On Wednesday, November 26, 2014, Vojtěch Čihák vojtech.ci...@atlas.cz vojtech.ci...@atlas.cz wroteHmm, would such a control be screen-reader friendly? -- Frederic Da Vitoria (davitof) Membre de l'April - « promouvoir et défendre le logiciel

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-26 Thread Vojtěch Čihák
...@gmail.com Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 26.11.2014 08:42 Předmět: Re: [Lazarus] OI Checkboxes On Tuesday, November 25, 2014, Vojtěch Čihák vojtech.ci...@atlas.cz vojtech.ci...@atlas.cz wrote: If so, then it will never work properly. It may never be perfect

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

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

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

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
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  

Re: [Lazarus] Toolbar divider issues

2014-11-09 Thread Vojtěch Čihák
  __ Od: Giuliano Colla giuliano.co...@fastwebnet.it Komu: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Datum: 09.11.2014 17:41 Předmět: Re: [Lazarus] Toolbar divider issues Il 09/11/2014 15:04, Vojtěch Čihák ha scritto: Hi, with this code: procedure

Re: [Lazarus] FPC options - cool!

2014-10-20 Thread Vojtěch Čihák
Hi,   Is there something I need to do to enable this functionality in trunk?   You need to fill a bugreport :-).   I just tested with Lazarus 1.3 r46582M FPC 2.7.1 x86_64-linux-qt and realy, there is only an empty space instead of list of options.   Vojtěch 

Re: [Lazarus] Redundant text on project buttons

2014-10-14 Thread Vojtěch Čihák
Hello,   I don't think it urgently need to be removed. On the other hand, Lazarus is not consistent. Some windows (Call Stack, Project Inspector) has icons with captions while others (Watch List, History) are icons only. If you will create patch to remove text, please check that all buttons has

  1   2   >