Author Topic: Automatically close a modeless dialog after few seconds  (Read 119 times)

Rakesh Rao

  • Member
  • *
  • Posts: 25
Automatically close a modeless dialog after few seconds
« on: September 28, 2021, 05:52:02 PM »
Dear Forum Support,

Is it possible to define a modeless dialog so that it closes after a pre-defined number of seconds after launch?

Ideally, if there is a click or some activity on the form, it can stay open, but if no one touches the form, I want it to close in NN seconds.

Is that possible using OpenDCL?

I am trying to create an entity-hover tooltip?

Any pointers would be appreciated.

Best Regards
Rakesh Rao
« Last Edit: September 28, 2021, 10:14:08 PM by Rakesh Rao »

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3059
    • Outside The Box
Re: Automatically close a modeless dialog after few seconds
« Reply #1 on: September 29, 2021, 07:14:38 PM »
It can be done by using the OnTimer event, but probably will leave unwanted residue in the command line.

Rakesh Rao

  • Member
  • *
  • Posts: 25
Re: Automatically close a modeless dialog after few seconds
« Reply #2 on: September 29, 2021, 09:28:14 PM »
Thank you Owen. Tried and it works beautifully.

No residues on the command line either, in BricsCAD.

- RR