Денис Победря писал(а):Есть ли в PB аналог, что-бы окно обработало сообщения (желательно сразу все)
Есть...
' Single modeless dialog message pump example.
' (Assume dialog already created with DIALOG NEW)
DIALOG SHOW MODELESS hDlg CALL DlgCallback
DO
DIALOG DOEVENTS TO Count&
LOOP WHILE Count&
' Application code continues here...
' Multiple modeless dialog message pump example.
' In some applications, the number of modeless dialogs can vary at any given moment, we want to break the message loop when the 'main' dialog is closed.
' (Assume dialogs already created with DIALOG NEW)
DIALOG SHOW MODELESS hMainDlg& CALL DlgCallback
DIALOG SHOW MODELESS hChildDlg1&
DIALOG SHOW MODELESS hChildDlg2&
...
DO
DIALOG DOEVENTS
DIALOG GET SIZE hMainDlg& TO x&, x&
LOOP WHILE x& ' When x& = 0, dialog has ended
' Application code continues here...