Restored from previous forum. Originally posted by teachco.
I want to generate a MODAL window with the openwindow-statement.
There there any other statement to make the window modal.
Or how can I use the WinAPI to make the window modal?
How can I get a modal window?
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by teachco.
After you opened a modal dialog window, you are NOT able to do anything within the main window of the application. To get again the focus of the main window, you first have to close the modal dialog window.
Edited by - teachco on 13 June 2002 14:36:44
After you opened a modal dialog window, you are NOT able to do anything within the main window of the application. To get again the focus of the main window, you first have to close the modal dialog window.
Edited by - teachco on 13 June 2002 14:36:44
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tranquil.
possible this is what you want:
setwindowpos_(windowID,#HWND_TOPMOST,x,y,width,height,#SWP_NOMOVE)
the last flag can specifie some settings to the window eg no move here. There are many other flags in the API documented. take a look there, possible you will find what you need.
H0pe that helps
Mike
Tranquilizer/ Secretly!
Registred PureBasic User
possible this is what you want:
setwindowpos_(windowID,#HWND_TOPMOST,x,y,width,height,#SWP_NOMOVE)
the last flag can specifie some settings to the window eg no move here. There are many other flags in the API documented. take a look there, possible you will find what you need.
H0pe that helps
Mike
Tranquilizer/ Secretly!
Registred PureBasic User
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by crono.
You could use the API 'EnableWindow' on the Main Window
kind regards,
Alexander Schoenfeld
Email: [url]mailto:alexander.schoenfeld@chronologic.de[/url]
You could use the API 'EnableWindow' on the Main Window
kind regards,
Alexander Schoenfeld
Email: [url]mailto:alexander.schoenfeld@chronologic.de[/url]
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by teachco.
For setwindowpos_ there don't exist the right flag.possible this is what you want:
setwindowpos_(windowID,#HWND_TOPMOST,x,y,width,height,#SWP_NOMOVE)
the last flag can specifie some settings to the window eg no move here. There are many other flags in the API documented. take a look there, possible you will find what you need.
H0pe that helps
Mike
Tranquilizer/ Secretly!
Registred PureBasic User