Recent

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

devEric69

  • Full Member
  • ***
  • Posts: 137
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: Ubuntu 18.04 + Laz. 1.8.5 + FPC 3.0.5 (64 bits).

Handoko

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

devEric69

  • Full Member
  • ***
  • Posts: 137
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: Ubuntu 18.04 + Laz. 1.8.5 + FPC 3.0.5 (64 bits).

devEric69

  • Full Member
  • ***
  • Posts: 137
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: Ubuntu 18.04 + Laz. 1.8.5 + FPC 3.0.5 (64 bits).

Oscar Vazquez

  • New member
  • *
  • Posts: 9
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

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7430
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)