Recent

Author Topic: Panel above listview  (Read 673 times)

juank1971

  • Full Member
  • ***
  • Posts: 112
Panel above listview
« on: September 19, 2020, 02:10:13 pm »
How can I put a panel under a listview and when I want
to show it in front of it, try with jpanel1.BringToFront

Bat no show
 above

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Panel above listview
« Reply #1 on: September 19, 2020, 03:38:54 pm »
Hi!

If I understand you right then do this:

If you don't want the listview to be shown then:

Code: Pascal  [Select][+][-]
  1. listview.visible := false;

And if it shall be shown again then

Code: Pascal  [Select][+][-]
  1. listview.visible := true;
  2. listview.bringToFront;

Winni


Manlio

  • Full Member
  • ***
  • Posts: 162
  • Pascal dev
Re: Panel above listview
« Reply #2 on: November 19, 2020, 04:42:01 pm »
I find that calling UpdateLayout is sometimes necessary after making controls visible/invisible.
manlio mazzon gmail

 

TinyPortal © 2005-2018