How to show close icon on dialog title bar in modal dialog on Mac?
Hi everyone..!!
I have a question.. When we display a modal dialog on mac, it does not contain a close icon at the top left corner. If the dialog type is panel then the close icon appears. What should be done so that the close icon shows on the dialog when its type is modal... for eg, kADMSystemAlertDialogStyle..?? Does something need to be changed in the resource file in the section that defines the dialog specifications mentioned below..?
resource 'DLOG' (kMyDialog, "My Dialog", purgeable) {
{0, 0, 580, 570}, // top, left, bottom, right
5, // movableDBoxProc
0x0, // not visible initially
0x0, // no close button
0x0, // application options
18504, // resource ID
"My Dialog", // dialog title
0x0 // dialog positioning noAutoCenter
};
I tried changing values for the "no close button", but as there is no document that describes what the valid values for that field are, so I had no success..
Please help..
Thanks!
![]()
