Lost in the Windows fun-house
>From my research on the Internet, it appears that it is possible to
dynamically switch a window from Normal to Modal or the reverse *in Linux*.
My question #1 is, is it possible to do this in Windows?
#2: If, as appears to be the case, in Windows you open a window as either
Normal or Modal, and it stays whichever way you chose until you close it
(which if it works that way is REALLY STUPID), how can I close a window as
Normal, reopen it as Modal, and when the user closes the Modal version, then
reopen it as Normal? All code sequences I have attempted so far fail to
produce the desired results. For example, this doesn't work:
procedure onClose_myWin()
if myWin_isModal then
myWin_isModal = False
openWindow(myWin, Normal)
else
setFocus(parentWin)
end if
end procedure
procedure toModal()
closeWindow(myWin)
myWin_isModal = True
openWindow(myWin, Modal)
end procedure
Nor does this:
procedure toModalAndBack()
closeWindow(myWin)
myWin_isModal = True
openWindow(myWin, Modal)
-- Assuming, perhaps erroneously, that control doesn't return here
-- until the modal window is closed:
mWin_isModal = False
openWindow(myWin, Normal)
end procedure
And question #3 would be, is the assumption indicated in the comment
correct, or does openWindow() spin off another thread of execution?
Puzzled in Windows-land,
George
_____________________________________________________________________________________
Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
|
Not Categorized, Please Help
|
|