/*
if(destroyed)
{
- OldLink slave = master.slaves.FindVoid(this);
+ OldLink slave = master.slaves.FindLink(this);
master.slaves.Delete(slave);
}
*/
if(!master) master = parent;
if(style.modal && master.modalSlave)
- return false;
+ property::master = master.modalSlave;
+ //return false;
if(parent)
parent.children.Remove(this);
property int documentID { get { return documentID; } };
property Window previous { get { return prev; } }
property Window next { get { return next; } }
- property Window nextSlave { get { OldLink link = master.slaves.FindLink(this); return (link && link.next) ? link.next.data : null; } }
+ property Window nextSlave { get { OldLink link = master ? master.slaves.FindLink(this) : null; return (link && link.next) ? link.next.data : null; } }
property PopupMenu menuBar { get { return menuBar; } }
property ScrollBar sbv { get { return sbv; } }
property ScrollBar sbh { get { return sbh; } }
HICON oldIcon = (HICON)SendMessage(window.windowHandle, WM_GETICON, ICON_BIG, 0);
// Dialogs Inherit master's icon if none set
- Window master = window.master, rootWindow = (master && master != guiApp.desktop) ? master.rootWindow : null;
-
- if(!resource && !window.style.showInTaskBar && window.hasClose && rootWindow && rootWindow.icon)
- resource = rootWindow.icon;
+ if(!window.style.showInTaskBar && window.hasClose)
+ {
+ Window master = window.master;
+ while(master && !resource)
+ {
+ Window rootWindow = (master && master != guiApp.desktop) ? master.rootWindow : null;
+ if(rootWindow && rootWindow.icon)
+ resource = rootWindow.icon;
+ else
+ master = master.master;
+ }
+ }
// WARNING -- putting this here as it is right after CreateRootWindow
// Take out Layered flag if we're not in 24 bit
{
DialogResult diagRes = MessageBox
{
- type = okCancel, master = rootWindow,
+ type = okCancel, master = ide,
text = "Lose Changes?",
contents = "Are you sure you wish to discard changes made to the build options?"
}.Modal();
{
DialogResult diagRes = MessageBox
{
- type = yesNoCancel, master = rootWindow,
+ type = yesNoCancel, master = ide,
text = "Save changes to project settings?",
contents = "Would you like to save changes made to the build options?"
}.Modal();
{
DialogResult diagRes = MessageBox
{
- type = yesNoCancel, master = rootWindow,
+ type = yesNoCancel, master = ide,
text = "Save changes to project options?",
contents = "Would you like to save changes made to the project options?"
}.Modal();