Recent

Author Topic: components in the toolbar  (Read 1038 times)

marcos-ebm

  • Jr. Member
  • **
  • Posts: 51
components in the toolbar
« on: February 04, 2024, 09:54:59 pm »

[using the translator]


Hi everyone, I would like to know if it is possible to create a ComboBox to place in the Toolbar (see image)

If it is possible, how can I do this?

thanks


Lazarus 3.0 / LAMW 0.8.6.4 - Gradle 8.5 - Jdk 21 - Ndk 21e - Windows 11

wp

  • Hero Member
  • *****
  • Posts: 13207
Re: components in the toolbar
« Reply #1 on: February 04, 2024, 10:15:22 pm »
Just drop the combobox on the toolbar. However, you will notice that sometimes the size may not fit nicely. Since it is hard to reposition controls sitting directly on the toolbar, I normally drop a panel on the toolbar first and then and put the combobox in the panel. Now, for example, I can use the anchor editor to center it vertically. You should just turn off the panel's border and caption.

See attachment.

marcos-ebm

  • Jr. Member
  • **
  • Posts: 51
Re: components in the toolbar
« Reply #2 on: February 04, 2024, 10:22:48 pm »
Just drop the combobox on the toolbar. However, you will notice that sometimes the size may not fit nicely. Since it is hard to reposition controls sitting directly on the toolbar, I normally drop a panel on the toolbar first and then and put the combobox in the panel. Now, for example, I can use the anchor editor to center it vertically. You should just turn off the panel's border and caption.

See attachment.


wp, thank you very much for your answer

unfortunately I explained it wrong

I want to create a component to use in Lamw, this component (ComboBox) will have a list of smartphones available for compilation
Lazarus 3.0 / LAMW 0.8.6.4 - Gradle 8.5 - Jdk 21 - Ndk 21e - Windows 11

 

TinyPortal © 2005-2018