Recent

Author Topic: [Solved] Visual control, which is like an "accordion", containing controls  (Read 1962 times)

devEric69

  • Hero Member
  • *****
  • Posts: 648
Hello,

I call on your knowledge, in Lazarus visual controls

I'm looking for a visual control, which is like an "accordion" (a bit like folding \ unfolding views in Lotus Notes,  for those who know; ; there is also the same thing in JQuery: we can unfold a <div> containing a <form> with its controls), which is then a parent container of controls. It would then unfold a panel on which a dbgrid could be placed for example, and which would fold back when clicking in the top left corner of the said "accordion" (clic on a triangle or a minus sign), to save vertical space on a TForm or TFrame.

(I can already add a button at the bottom of the form - like a wizard - that enlarges or reduces the height of the TForm, displaying or hiding a row of containers, each with their schrollbox, containing their dbGrid; I'm just wondering if there's something more "sophisticated")

Does this kind of approaching control already exist?

Regards.
« Last Edit: August 30, 2019, 11:33:14 am by devEric69 »
use: Linux 64 bits (Ubuntu 20.04 LTS).
Lazarus version: 2.0.4 (svn revision: 62502M) compiled with fpc 3.0.4 - fpDebug \ Dwarf3.

Handoko

  • Hero Member
  • *****
  • Posts: 5150
  • My goal: build my own game engine using Lazarus

devEric69

  • Hero Member
  • *****
  • Posts: 648
Re: Visual control, which is like an "accordion", containing controls
« Reply #2 on: August 29, 2019, 07:07:28 pm »
Visually, that's exactly what I'm looking for ==> I'll try it on!
Thank you  :) .
use: Linux 64 bits (Ubuntu 20.04 LTS).
Lazarus version: 2.0.4 (svn revision: 62502M) compiled with fpc 3.0.4 - fpDebug \ Dwarf3.

devEric69

  • Hero Member
  • *****
  • Posts: 648
Re: Visual control, which is like an "accordion", containing controls
« Reply #3 on: August 30, 2019, 11:32:16 am »
Okay, this control is working as I hoped :) .
use: Linux 64 bits (Ubuntu 20.04 LTS).
Lazarus version: 2.0.4 (svn revision: 62502M) compiled with fpc 3.0.4 - fpDebug \ Dwarf3.

Oscar Vazquez

  • New Member
  • *
  • Posts: 11
Re: [Solved] Visual control, which is like an "accordion", containing controls
« Reply #4 on: September 16, 2019, 11:06:09 pm »
Este a mi me funciono muy bien.
Saludos

https://wiki.freepascal.org/TMyRollOut_and_ExpandPanel
https:/?/joinchat/IbmDtw88init_yo3ArCJqg

Chat de Telegram Lazarus

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11446
  • FPC developer.
Re: [Solved] Visual control, which is like an "accordion", containing controls
« Reply #5 on: September 16, 2019, 11:11:03 pm »
(isn't this introduced in commctrls with Office 2000 or 2003? There might be a native windows control for it)

 

TinyPortal © 2005-2018