ahfitt@miavx1.acs.muohio.edu (10/29/90)
I am trying to get my Dialog box to have the "ok" option highlighted like a normal dialog window. I read about in Inside Macintosh and from it I came up with code like this. MyDialog = GetNewDialog(32363, 0,-1); PenSize(3, 3); GetDItem(MyDialog, 1, &itemType, &item, &box); InsetRect(&box, -4, -4); FrameRoundRect(&box, 16, 16); PenNormal(); ModalDialog(0, result); GetDItem(MyDialog, 2, &itemType, &item, &box); GetIText(item, temp); DisposDialog(MyDialog); I created my dialog window using res edit. When this code is run I get a system error #11 when it enters the function FrameRoundRect. If someone could tell me how to do this the right way it would be very helpful. Also the function GetIText returns a pascal type string. I wrote a function to copy a pascal string to a c string, but does Think C 4.0 support a standard way of doing this? Thanks in advance Arthur Fitt