ListBox lb = (ListBox)((DataBox)parent).parent;
property::path = browsedPath;
if(eClass_IsDerived(lb._class, class(ListBox)))
+ {
+ // Ensure the DataBox is visible, For the ListBox to save (Popping up the FileDialog hides it)
+ parent.visible = true;
lb.StopEditing(true);
+ }
}
};
pathBox.path = this;
char * browsePath = CopyString(OnBrowse());
char fileName[MAX_LOCATION];//, filePath[MAX_LOCATION];
+ incref this;
+
GetLastDirectory(browsePath, fileName);
StripLastDirectory(browsePath, browsePath);
OnPathBrowsed(browseDialog.filePath);
NotifyModified(master, this);
}
+
+ delete this;
}
return true;
}