Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tab-modality in windows application

Using Delphi 2009 on Windows XP to develop desktop application.

Is there any way to make a windows dialog modal to a tab, instead of application. How can I achieve this? Threads? any frameworks supporting this?

Something similar to

alt text

Thanks in advance.

Kind Regards, Pavan.

like image 661
fr21 Avatar asked Jan 29 '26 13:01

fr21


1 Answers

One way is to simulate this is:

  1. Temporarily disable all child controls of the tab sheet
  2. Create a Form
  3. Set its Parent to the tab sheet
  4. Set FormStyle := fsStayOnTop
  5. Set BorderStyle := bsNone

This way you have a dialog on top of a tab sheet and it's the only thing that users can interact with on this tab sheet, but it doesn't block the main form ui or other tab sheets.

like image 165
Jens Mühlenhoff Avatar answered Jan 31 '26 08:01

Jens Mühlenhoff



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!