Page 1 of 1
Posted: Thu Jun 13, 2002 11:02 am
by BackupUser
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?
Posted: Thu Jun 13, 2002 12:50 pm
by BackupUser
Restored from previous forum. Originally posted by tranquil.
Sorry, but what the hell is a modall window?

Dont know.
Mike
Tranquilizer/ Secretly!
Registred PureBasic User
Posted: Thu Jun 13, 2002 1:35 pm
by BackupUser
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
Posted: Thu Jun 13, 2002 2:02 pm
by BackupUser
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
Posted: Thu Jun 13, 2002 2:29 pm
by BackupUser
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]
Posted: Thu Jun 13, 2002 6:31 pm
by BackupUser
Restored from previous forum. Originally posted by El_Choni.
You can use SetParent_(modalwindowid, mainwindowid), if that's what you're trying to do.
Bye,
El_Choni
Posted: Mon Jun 17, 2002 8:52 am
by BackupUser
Restored from previous forum. Originally posted by teachco.
You can use SetParent_(modalwindowid, mainwindowid), if that's what you're trying to do.
Bye,
El_Choni
Sorry, but this do not work!
Posted: Mon Jun 17, 2002 9:05 am
by BackupUser
Restored from previous forum. Originally posted by teachco.
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
For setwindowpos_ there don't exist the right flag.