Recent

Author Topic: Any idea for xplat tpopupmenu replacement that not closes when checking items  (Read 177 times)

MISV

  • Hero Member
  • *****
  • Posts: 662
Has anyone in LCL/lazarus community developed a replacement tpopupmenu that does not close when checking items? (e.g. if you have a ton of options shown in a menu)

I guess the common solution is making a window form that reads the menu and generates a tree structure or similar... So that is on my todo list if there isn't already a better solution available

jamie

  • Hero Member
  • *****
  • Posts: 2264
Use a tool Window..
that more or less floats on top.

I guess in Lazarus its a StayOnTop window.
Number 1 at blue screen app creations!

lucamar

  • Hero Member
  • *****
  • Posts: 2277
 AFAIK there's no popup-menu substitute that can do that.

What I do for those cases is either show an "Options" form or a panel where the user can select the options, like in the attached image (a generic base program for tests)
« Last Edit: August 20, 2019, 11:41:48 pm by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.4/2.0.6  - FPC 3.0.4 on:
(K|L)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

winni

  • Hero Member
  • *****
  • Posts: 723
Yes - ToolWindow with StayOnTop. I did that many times. And dont forget the "close"  option ......

Winni