Lazarus

Using the Lazarus IDE => Options => Topic started by: rnervi on November 29, 2020, 02:21:43 pm

Title: Component palette multilned as "Old Delphi"
Post by: rnervi on November 29, 2020, 02:21:43 pm
I've missed this feature. Didnt' found an option in the ide cfg to check.
So I've made these small edit to have it "multiline":

open this file  lazarus\ide\mainbar.pas

find these lines

Code: Pascal  [Select][+][-]
  1. // Component palette
  2. ComponentPageControl := TPageControl.Create(TheOwner);
  3. ComponentPageControl.Name := 'ComponentPageControl';
  4. ComponentPageControl.Align := alClient;
  5. ComponentPageControl.Visible := EnvironmentOptions.Desktop.ComponentPaletteOptions.Visible;
  6. ComponentPageControl.Parent := Self;

Add this:

Code: Pascal  [Select][+][-]
  1. ComponentPageControl.Multiline := True;  // edited by rnervi

Rebuild ide environment.

(hope in next versions a structural implement of this)(
Title: Re: Component palette multilned as "Old Delphi"
Post by: winni on November 29, 2020, 02:34:03 pm
Hi!

The other way is NOT to use the component palette but
MainMenu --> View --> Components
Alt+Strg+P    by default

There you can also search if you are on the hunt for an "exotic" component

Winni
Title: Re: Component palette multilned as "Old Delphi"
Post by: lucamar on November 29, 2020, 02:54:05 pm
I've missed this feature. Didnt' found an option in the ide cfg to check.

It's there, though not where you'd expect. Select Tools->Options" and, in the dialog, under "Environment", "Window". The option is called "Show complete component palette", and it's rather badly placed off to the right.

It can also be accessed by right-clicking the palette and selecting "Options"; that opens the same dialog but with only the "Environment" branch showing.

HTH
Title: Re: Component palette multilned as "Old Delphi"
Post by: wp on November 29, 2020, 04:34:17 pm
Add this [...]
If it's really that easy you should write a bug report (see the bugtracker link in the left forum sidebar) and propose this idea to the devs as a feature request. Probably it will work only on Windows because multiline tabs are not supported by many other widgetsets, but multiline tabs have been implemented for the editor as well.
Title: Re: Component palette multilned as "Old Delphi"
Post by: lucamar on November 29, 2020, 04:56:39 pm
Let me repeat: It's already there. Only not where you'd expect it :(

A possible feature request might be to add it as an item in the main window popup.
Title: Re: Component palette multilned as "Old Delphi"
Post by: wp on November 29, 2020, 05:40:52 pm
Checking or unchecking the "Show complete component palette" does not change anything for me (Win 10).
Title: Re: Component palette multilned as "Old Delphi"
Post by: lucamar on November 29, 2020, 05:54:55 pm
Checking or unchecking the "Show complete component palette" does not change anything for me (Win 10).

Neither does for me (Xubuntu 18.04), but IIRC it worked on Windows XP. As all this kind of things it might or might not work, depending on OS, theme, etc.

Hmmm ... or might be there is a bug when parsing options? It could be worth checking the sources if you want it ... :-\
Title: Re: Component palette multilned as "Old Delphi"
Post by: winni on November 29, 2020, 09:21:49 pm
Checking or unchecking the "Show complete component palette" does not change anything for me (Win 10).

Hi!

a) Lin64 Laz 2.0.10 GTK2  : Does not work
b) Win7 64   Laz 2.0.0 : Does not work

Winni
Title: Re: Component palette multilned as "Old Delphi"
Post by: lucamar on November 29, 2020, 09:36:35 pm
For Linux-gtk2 it's normal: TPageControl.Multiline isn't supported by the widgeset.
Title: Re: Component palette multilned as "Old Delphi"
Post by: Martin_fr on November 29, 2020, 09:42:13 pm
I've missed this feature. Didnt' found an option in the ide cfg to check.

It's there, though not where you'd expect. Select Tools->Options" and, in the dialog, under "Environment", "Window". The option is called "Show complete component palette", and it's rather badly placed off to the right.

That is a different feature though.

The OT afaik talks about the tabs of the page control. And having the tabs shown multiline.

The existing features relates to the icons on each page of the pagecontrol.
If there are like 50 components on one single tab, then the component-icons are shown multiline (always). Normally that triggers are vertical scrollbar. But with that option, the main IDE bar extends it height, so that several rows of icons become visible at the same time.
Title: Re: Component palette multilned as "Old Delphi"
Post by: lucamar on November 29, 2020, 09:48:07 pm
The existing features relates to the icons on each page of the pagecontrol.
If there are like 50 components on one single tab, then the component-icons are shown multiline (always). Normally that triggers are vertical scrollbar. But with that option, the main IDE bar extends it height, so that several rows of icons become visible at the same time.

Oops! Sorry, then; I was completely wrong :-[

Never go to bed without learning something new, as they say. Thanks, Martin.
Title: Re: Component palette multilned as "Old Delphi"
Post by: tetrastes on November 29, 2020, 09:51:03 pm
Checking or unchecking the "Show complete component palette" does not change anything for me (Win 10).

Hi!

a) Lin64 Laz 2.0.10 GTK2  : Does not work
b) Win7 64   Laz 2.0.0 : Does not work

Winni

Linux 64 Lazarus 2.1.0 GTK2 - works
Title: Re: Component palette multilned as "Old Delphi"
Post by: lucamar on November 29, 2020, 10:21:43 pm
Linux 64 Lazarus 2.1.0 GTK2 - works

Yes, but as Martin said, it's not quite what we were testing for :)
Title: Re: Component palette multilned as "Old Delphi"
Post by: tetrastes on November 29, 2020, 10:35:01 pm
Linux 64 Lazarus 2.1.0 GTK2 - works

Yes, but as Martin said, it's not quite what we were testing for :)

I just wanted to show that checking or unchecking the "Show complete component palette" does change something  :)
Title: Re: Component palette multilned as "Old Delphi"
Post by: winni on November 29, 2020, 11:01:04 pm

I just wanted to show that checking or unchecking the "Show complete component palette" does change something  :)

Yes - it changes the tickmarks in the checkboxes.
What a miracle!
Title: Re: Component palette multilned as "Old Delphi"
Post by: lucamar on November 29, 2020, 11:18:18 pm
I just wanted to show that checking or unchecking the "Show complete component palette" does change something  :)
Yes - it changes the tickmarks in the checkboxes.
What a miracle!

No, it does what Martin said.  You  have only to resize the window to see it. At least in this Xubuntu 18.04 machine, with Laz/FPC 2.0.10/3.2.0. Check it with the "SynEdit" tab; it's more components than any other :)
Title: Re: Component palette multilned as "Old Delphi"
Post by: rnervi on November 30, 2020, 06:35:21 am
I meant this way to see "component palette" (c pic)
w/o this fix the component palette goes right out of monitor
Title: Re: Component palette multilned as "Old Delphi"
Post by: tetrastes on November 30, 2020, 08:13:21 am

I just wanted to show that checking or unchecking the "Show complete component palette" does change something  :)

Yes - it changes the tickmarks in the checkboxes.
What a miracle!

You are too lazy to enlarge pictures, aren't you?  :D
TinyPortal © 2005-2018