mIRC Homepage
Posted By: Collective Custom windows - 14/12/02 11:45 AM
How can I check if a custom window was created on the desktop or not?
Posted By: Dana Re: Custom windows - 14/12/02 11:57 AM
Interesting. Appearantly there isn't a property under $window for it. When you create the window, set the window name into a variable ...
Posted By: starbucks_mafia Re: Custom windows - 14/12/02 12:16 PM
You could check whether $window(windowname).y and $window(windowname).dy are the same and that $window(windowname).x and $window(windowname).dx are the same. If they are then it's a desktop window.
Posted By: Nimue Re: Custom windows - 14/12/02 12:16 PM
$window(name).mdi -returns: $true for normal; $false for desktop windows
Posted By: Collective Re: Custom windows - 14/12/02 12:26 PM
Quote:
$window(name).mdi -returns: $true for normal; $false for desktop windows


Thx
Posted By: Dana Re: Custom windows - 14/12/02 12:36 PM
*curious*

What does mdi stand for?
Posted By: Nimue Re: Custom windows - 14/12/02 12:38 PM
You're welcome smile
Posted By: Nimue Re: Custom windows - 14/12/02 12:39 PM
Multiple Document Interface smile
Posted By: Nimue Re: Custom windows - 14/12/02 12:52 PM
To try and explain better,
If a program has a main window, and other child windows, it is MDI.
e.g. mIRC is MDI, Notepad isn't
The use of .mdi here is a little wrong (I think) but means "is the child window a <normal> child" (confined within mIRC's main window) or not.
Hope it helps a little, I'm not good at explaining. smile
© mIRC Discussion Forums