How can I get a modal window?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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]
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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.
Post Reply