[Lazarus] Alternative component palette layout

Sandro Cumerlato sandro.cumerlato at gmail.com
Thu Jan 1 10:49:56 CET 2015


First of all: HAPPY NEW YEAR!

ComponentsListView should be read only.

Please apply attached patch if OK.

Sandro

On 31 December 2014 at 18:46, Sandro Cumerlato <sandro.cumerlato at gmail.com>
wrote:

> Hello Juha,
> I've implemented (auto) resize of Components list columns.
>
> Please review attached patch and apply if OK.
>
> Sandro
>
>
> On 28 December 2014 at 21:11, Juha Manninen <juha.manninen62 at gmail.com>
> wrote:
>
>> On Sun, Dec 28, 2014 at 1:08 PM, zeljko <zeljko at holobit.net> wrote:
>> > I'm against such workarounds since it can hide bug. Is it enough to
>> comment
>> > code LCLQt to completely disable LCLQt ifdef ?
>> > I'll try to debug and see what exactly happens, since it's impossible to
>> > reproduce it with simple example project.
>>
>> I already thought I spotted the error and I almost opened a bug
>> report. Unneeded pages are deleted like :
>>   Application.ReleaseComponent(Sheet);
>> I could reproduce the error in a small test project and then fix it using
>> :
>>   TabControl := TCustomTabControl(PageControl1);
>>   TabControl.Pages.Delete(0);
>> But ... I tried to use it in the component palette code and it didn't
>> work. I am puzzled and will not touch this issue for a while.
>>
>> TPageControl API sucks badly.
>> TPageControl inherits from TCustomTabControl. They both have "Pages"
>> but with different meaning. There is Pages[] and Page[].
>> I think it should be fixed even if it breaks Delphi compatibility.
>>
>> Anyway, the palette reordering works pretty much perfectly now!
>> Giuliano made a workaround for the QT issue and I fixed a last
>> remaining bug related to saving the configuration.
>> Please everybody test and create alternative palette layouts.
>>
>> Juha
>>
>> --
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150101/43949411/attachment-0002.html>
-------------- next part --------------
Index: ide/frames/componentpalette_options.lfm
===================================================================
--- ide/frames/componentpalette_options.lfm	(revisione 47275)
+++ ide/frames/componentpalette_options.lfm	(copia locale)
@@ -235,6 +235,7 @@
         54657374436F6D700800000054657374506167650B000000546573745061636B
         616765FFFFFFFFFFFFFFFFFFFFFFFF
       }
+      ReadOnly = True
       RowSelect = True
       ScrollBars = ssAutoBoth
       TabOrder = 0


More information about the Lazarus mailing list