Recent

Author Topic: Component palette multilned as "Old Delphi"  (Read 1075 times)

rnervi

  • Newbie
  • Posts: 2
Component palette multilned as "Old Delphi"
« 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)(

winni

  • Hero Member
  • *****
  • Posts: 2122
Re: Component palette multilned as "Old Delphi"
« Reply #1 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

lucamar

  • Hero Member
  • *****
  • Posts: 3455
Re: Component palette multilned as "Old Delphi"
« Reply #2 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
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.10/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

wp

  • Hero Member
  • *****
  • Posts: 7967
Re: Component palette multilned as "Old Delphi"
« Reply #3 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.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

lucamar

  • Hero Member
  • *****
  • Posts: 3455
Re: Component palette multilned as "Old Delphi"
« Reply #4 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.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.10/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

wp

  • Hero Member
  • *****
  • Posts: 7967
Re: Component palette multilned as "Old Delphi"
« Reply #5 on: November 29, 2020, 05:40:52 pm »
Checking or unchecking the "Show complete component palette" does not change anything for me (Win 10).
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

lucamar

  • Hero Member
  • *****
  • Posts: 3455
Re: Component palette multilned as "Old Delphi"
« Reply #6 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 ... :-\
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.10/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

winni

  • Hero Member
  • *****
  • Posts: 2122
Re: Component palette multilned as "Old Delphi"
« Reply #7 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

lucamar

  • Hero Member
  • *****
  • Posts: 3455
Re: Component palette multilned as "Old Delphi"
« Reply #8 on: November 29, 2020, 09:36:35 pm »
For Linux-gtk2 it's normal: TPageControl.Multiline isn't supported by the widgeset.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.10/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6819
  • Debugger - SynEdit - and more
    • wiki
Re: Component palette multilned as "Old Delphi"
« Reply #9 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.

lucamar

  • Hero Member
  • *****
  • Posts: 3455
Re: Component palette multilned as "Old Delphi"
« Reply #10 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.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.10/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

tetrastes

  • Jr. Member
  • **
  • Posts: 85
Re: Component palette multilned as "Old Delphi"
« Reply #11 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
« Last Edit: November 29, 2020, 09:54:24 pm by tetrastes »

lucamar

  • Hero Member
  • *****
  • Posts: 3455
Re: Component palette multilned as "Old Delphi"
« Reply #12 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 :)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.10/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

tetrastes

  • Jr. Member
  • **
  • Posts: 85
Re: Component palette multilned as "Old Delphi"
« Reply #13 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  :)

winni

  • Hero Member
  • *****
  • Posts: 2122
Re: Component palette multilned as "Old Delphi"
« Reply #14 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!

 

TinyPortal © 2005-2018