Tab modality in a Windows application

Using Delphi 2009 on Windows XP to develop desktop applications.

Is there a way to make the window dialog modal for the tab, not the application. How can i achieve this? Streams? any framework supporting this?

Something like

alt text

Thanks in advance.

Regards, Pavan.

+3
source share
2 answers

One way is to mimic this:

  • Temporarily disable all children of a tab sheet
  • Create form
  • Set Parenttabs to sheet
  • Install FormStyle := fsStayOnTop
  • Install BorderStyle := bsNone

Thus, you have a dialog on top of the tabs sheet, and this is the only thing users can interact with on this tab, but it does not block the main ui form or other tabs.

+1

, - ,

WindowList: ; WindowList: = DisableTaskWindows (MyForm.Handle);

EnableTaskWindows (WindowList);

. .

0

Source: https://habr.com/ru/post/1773806/


All Articles